---
title: "Discussion on \"One byte in the wrong place: prompt caching in my coding agent\" | Hashnode"
description: "Discussion on \"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\nprovider's prompt cache survives from one model call to the next, the bugs that silently broke it, and the decisions\n(with the rejected alternatives) that fixed them. State as of 2026-11-21, `package-structure` at v0.2.16. Where I did\nnot measure something, I say so."
url: "https://hashnode.com/posts/one-byte-in-the-wrong-place-prompt-caching-in-my-coding-agent/6b01e0e3739872c18cf9b265"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [One byte in the wrong place: prompt caching in my coding agent](https://devhubcommunity.hashnode.dev/one-byte-in-the-wrong-place-prompt-caching-in-my-coding-agent?utm_source=hashnode&utm_medium=feed)

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.

Nov 21 · 39 min read · devhubcommunity.hashnode.dev  
Read the article

-   [#promptengineering](https://hashnode.com/tag/promptengineering)
-   [#prompt-caching](https://hashnode.com/tag/prompt-caching)
-   [#context-engineering](https://hashnode.com/tag/context-engineering)
-   [#harness](https://hashnode.com/tag/harness)
-   [#claude-code](https://hashnode.com/tag/claude-code)

## Written by

[Varun Kumawat](https://hashnode.com/@thisisvarun)

@thisisvarun · Kharagpur, India

  
[View profile](https://hashnode.com/@thisisvarun)

building a better Dev community

Founder, GetHired \[gethired.devhub.co.in\]

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
