Agent engineering: Pi SDK Pi released a programmatic SDK that allows developers to embed its coding agent directly into their own scripts, eliminating the need for separate extension and system prompt files. The SDK follows the same approach as the Agent SDK, enabling a more streamlined integration similar to the Claude Code version. In the previous post https://roman.pt/posts/pi-dev-version/ , 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 https://github.com/earendil-works/pi/tree/main/packages/coding-agent/examples/sdk that lets you embed the agent in your own script, the same way the Agent SDK https://roman.pt/posts/agent-sdk-rewrite/ let me collapse the Claude Code version into a single Python file.