How Prefix Caching Changes the Cost of a Coding Agent
The core of a coding agent can be surprisingly small. Give a model a task and a few tools, let it choose an action, return the result, and repeat. A search tool, a file reader, an editor, and a way to run tests can take it a long way. The control flow can look roughly like this. This is pseudocode; permissions, error handling, and execution limits still need their own implementation:...