
One byte in the wrong place: prompt caching in my coding agent
A field report from building DoStuff, a terminal coding agent. This covers how the request is laid out so the provider's prompt cache survives from one model call to the next, the bugs that silently broke it, and the decisions (with the rejected alternatives) that fixed them. State as of 2026-11-21, `package-structure` at v0.2.16. Where I did not measure something, I say so.










