---
title: "The most expensive part of a reply was the part that never changed — ServiceAgentX Blog"
description: "Why moving an agent’s memory notes to the end of its instructions, and keeping the rest for an hour, cut the cost of a reply by about 70% — and why your limits now count cost instead of tokens."
url: https://www.serviceagentx.com/blog/the-most-expensive-part-of-a-reply
markdown: https://www.serviceagentx.com/blog/the-most-expensive-part-of-a-reply.md
---

# The most expensive part of a reply was the part that never changed

Engineering · November 28, 2026 · Peter

Every reply from an agent re-sends its whole instruction book. We were paying to store it again on most replies — and counting it against your limits at full price. Here is what we changed.

---

When you send a message to one of your agents, the model does not remember the last one. Each reply starts from scratch: we send the agent’s instructions — who it is, how it works, its rules, the playbooks for its desk — then the conversation so far, then your new message. For a Claude agent that is around 35,000 tokens of instructions before a single word of yours.

Model providers know this, and they offer a cache. If the start of a request is exactly the same as one they saw recently, they read it back from memory and charge a small fraction of the normal price for it. Storing it the first time costs a little more than usual. Used well, most of a reply is read from that cache.

> The cache only works if the beginning is exactly the same. One changed line in the middle, and everything after it is new again.

## Two small leaks

When we measured it, about 7 in 10 replies sent a minute or two apart were storing the instructions all over again. Two things were doing it.

- **Things that change were mixed into things that do not.** What an agent remembers about you, and what is going on in your team right now, sat in the middle of its instructions. They change often — your agent’s memory fills in as you talk — and each change made everything after it look new.
- **The cache forgot after five minutes.** People read a reply, think, and answer. Usually that takes longer than five minutes, so by the time you replied the stored instructions were gone, and 9 in 10 of those replies stored them again.

## Instructions first, the changing parts last

The fix is mostly about order. An agent’s prompt now has two parts. First, everything that does not change from one reply to the next. Then, at the end, the parts that do: its memory notes about you, what is happening right now, the files in this chat. The first part is kept for an hour; the second, which is small, for five minutes. A change at the end no longer spoils the beginning.

Keeping something for an hour costs more to store than keeping it for five minutes. But it is stored about once an hour instead of on most replies, so it is a good trade. Measured on real replies, the agent now reads its instructions back from the cache and stores only a couple of thousand new tokens each time. A Claude reply costs about 70% less to make.

## Your limits now count cost, not tokens

The second change follows from the first. Your plan’s 5-hour and weekly limits used to count every token sent, at full weight — including all those instructions read back from the cache for a fraction of the price. A reply that cost very little still took a big bite out of your week.

They now count what a reply really cost. A typical Claude reply used to take about 65,000 tokens out of your limit; it now takes the equivalent of about 7,800. Replies from the models we run ourselves take even less. You still see your limits as a percentage, and the price of every plan is the same.

## If you use your own API key

Some of you connect your own Anthropic key, so your provider bills you directly for the model. The same cache works on your key: you pay your provider less for every reply. And because your provider is paying for the model, replies on your own key now count only a tenth against your plan’s limits.

## What we did not change

The agents see exactly the same instructions in the same words; only the order of a few blocks moved, and nothing about what they can do. Extra usage still charges for what goes past a limit — but at the reply’s real cost now, with cached tokens at their real, lower price.
