Agent engineering: Pi SDK

Agent engineering: Pi SDK 图片 1

In the previous post, I built a news reader using Pi’s CLI with an extension file and a system prompt file. Two files in a .pi/ directory, run with pi -p. It already felt minimal compared to the Claude Code version, but it still relied on Pi’s runtime to discover and load the extension.

Pi also has a programmatic SDK that lets you embed the agent in your own script, the same way the Agent SDK let me collapse the Claude Code version into a single Python file.

添加评论
点赞收藏
点踩分享查看原文
评论
?
参与讨论