# Agent engineering: Agent SDK

> Source: <https://roman.pt/posts/agent-sdk-rewrite/>
> Published: 2026-06-03 00:00:00+00:00

In [the previous post](https://roman.pt/posts/claude-code-as-your-execution-environment/), I built a news reader that uses Claude Code as its execution environment. It worked well, but the project was spread across half a dozen config files, each in a different directory, connected by naming conventions. Changing anything meant knowing where each piece lived and how they were wired together.

That post ended with a teaser about the [Claude Agent SDK](https://code.claude.com/docs/en/agent-sdk/overview) and a five-line script that wraps the existing project. That was the lazy migration. This post goes the other direction: throw away the scaffolding and rebuild from scratch as a single Python file.
