# Agent engineering: Pi SDK

> Source: <https://roman.pt/posts/pi-sdk-version/>
> Published: 2026-06-07 10:00:00+00:00

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.
