Agent design is still hard

AI-generated summary of reporting by Simon Willison’s Weblog. Read the original for the full story.

Why it matters

Armin Ronacher argues agent abstraction SDKs aren't worth adopting yet, so teams building agents should stick to raw provider SDKs and expect to write their own loop.

Read this as

Armin Ronacher, the creator of the Flask web framework, shared lessons from months of building AI agents, programs where an AI model decides which tools to use. He says existing agent libraries are not worth using because AI models differ too much from each other. Testing these agents for reliability remains the hardest unsolved problem. Teams building such systems will need to invent their own approaches for now.

Ronacher concludes that agent frameworks and SDK abstractions don't yet repay their cost, because differences between model providers, caching, tool prompts, provider-side tools, force custom work anyway. Testing and evals are the hardest problem, and no observability-based eval solution he tried has convinced him. Companies building agents should budget for custom abstractions and unsolved evaluation, not off-the-shelf tooling. He adds a follow-up arguing LLM APIs are a 'synchronization problem'.

Ronacher argues the agent loop is trivial but no SDK abstraction fits, because per-provider differences, cache control, tool prompts, provider-side tools, reinforcement requirements, break generic designs. He coins 'reinforcement': injecting reminders of the objective, task status and background state changes into every tool result, as Claude Code's TODO list does. Evals can't run externally due to required context, so they must hook observability data or instrument real runs; no solution tried so far satisfies him. A follow-up post frames LLM APIs as a state-synchronization problem, suggesting local-first ideas.

Read the original

This summary exists to save you time, not to replace the source.

Key terms

Armin Ronacher Claude Code LLM Flask Hacker News

Was this summary useful?

One click, anonymous. It tells us which summaries to re-run.

Related reading