Agent engineering: Pi SDK

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.
评论
?
参与讨论