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:...

September 27, 2026 · Sai

KV-Cache Offloading in vLLM: Design Considerations and Edge Cases

A coding agent finishes a model call. Its conversation remains available, but its cached attention state competes with every other request for GPU memory. By the time the agent makes another call, that state may have been reclaimed. CPU memory offers somewhere else to keep it. The next request could recover a matching prefix from RAM instead of computing it again. That sounds like a capacity improvement until several requests need their state back at once, the GPU has little free space, and transfers are still using buffers that the allocator would like to recycle....

September 27, 2026 · Sai