{"slug": "agent-engineering-agent-sdk", "title": "Agent engineering: Agent SDK", "summary": "The author rebuilds a news reader project using the Claude Agent SDK, consolidating a scattered multi-file setup into a single Python script to simplify configuration and maintenance.", "body_md": "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.\n\nThat 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.", "url": "https://wpnews.pro/news/agent-engineering-agent-sdk", "canonical_source": "https://roman.pt/posts/agent-sdk-rewrite/", "published_at": "2026-06-03 00:00:00+00:00", "updated_at": "2026-06-15 20:41:55.592736+00:00", "lang": "en", "topics": ["ai-tools", "developer-tools", "ai-agents"], "entities": ["Claude Agent SDK", "Claude Code"], "alternates": {"html": "https://wpnews.pro/news/agent-engineering-agent-sdk", "markdown": "https://wpnews.pro/news/agent-engineering-agent-sdk.md", "text": "https://wpnews.pro/news/agent-engineering-agent-sdk.txt", "jsonld": "https://wpnews.pro/news/agent-engineering-agent-sdk.jsonld"}}