2 hours ago · Tech · hide

Over the past year, I’ve written a handful of agents. Some of them handle production traffic at work, and a couple run on a Raspberry Pi on my desk. I’ve written agent loops by hand and used most of the popular frameworks: AWS Strands, Google ADK, LangGraph, OpenAI Agents SDK, Pydantic AI, and the Claude Agent SDK. Along the way, I settled on a pattern that I now use for nearly every agent, regardless of the framework. Note By agent, I mean a model plus a harness. The harness is the glue code around the model that does things on its behalf, like calling tools, reading files, and talking to other services. Agents can be triggered by an API call, an event, or a cron job. Once awake, the agent typically follows the same steps, and each run is one pass of a reconciliation loop. Reconciliation loops # In Reconciling Everything, Andrew Godwin describes a reconciliation loop as stateless programs that talk to one source of truth. Each program reads the current state and finds something that…

Commenting on Bubbles has been removed. Why? If you want to talk about this post, write to the author, use the comments on their blog if it has them, or reply with a "RE:" post on your own blog. Suggestions? feedback@bubbles.town