Product Radar Edition 06 · 2 Dec 2026

Compact agent context by hand

Shrinking an agent's conversation into a summary yourself to save cost, instead of letting the agent do it when its memory is full.

HoldNew on 13 Nov 2026
Position on the radar

Konstantin's verdict: Hold

An agent works inside a context: all the text of the conversation so far. When the context gets long, the agent can compact it. It replaces the old text with a short summary.

I used to compact my agent context by hand at about 200,000 tokens, out of habit. A token is a small piece of text. I thought this saved money. A cost analysis showed it rarely does. With prompt caching, the model reads the earlier text again at a small fraction of the normal price. A manual compaction paid back only after about 30 more requests.

So I stopped. Now the agent compacts by itself when its context fills. A change in prices or caching would make me look again.

What moved

ADOPTTRIALASSESSHOLD12 Oct22 Oct30 Oct13 Nov20 Nov2 Dec13 Nov 2026: New2 Dec 2026: No change
  1. Added in HoldI stopped: with prompt caching, it rarely saves money.

On other radars

No community radar places this yet.

Place it on your radar

Sources

Also in Practices · Hold