Context Compression: Keep Long AI Tasks Understandable
Context compression replaces lengthy material with a smaller representation for the next AI response. Learn what a continuation summary should preserve and how to check it.
Updated 5 min read
Context compression reduces the material supplied to an AI by replacing longer content with a smaller representation, often a summary. It helps a long task continue with less active context, but the smaller version can omit details or change their meaning.
The goal is to preserve what the next step depends on. A tool like fenbs keeps reviewed decisions and task progress outside the conversation, giving you a record to check when a shortened continuation leaves something unclear.
What does compression change in a conversation?
During a long job, a chat accumulates questions, corrections, draft answers and results from tools. Not all of that needs to be supplied again for every next step. Compression tries to replace the relevant history with a more compact account.
Anthropic’s compaction documentation (opens in a new tab) describes replacing older conversation turns with a summary. Compaction is a name you may see for this process. The exact controls depend on your app or API, the software interface used by developers. Check its documentation rather than assuming every chat handles it identically.
Imagine a studio reviewing three versions of a brochure. The next session may need the approved version, the remaining corrections and the reason a claim was removed. It probably does not need every rejected opening sentence. That is a judgment about relevance, not simply about making the text shorter.
The AI context window guide explains the space the material must fit into. Compression works within that space; it does not create a larger window.
Why can a useful summary still lose something important?
A readable summary can leave out a small fact that controls the next action. It might retain the main conclusion while dropping the exception, the source version or the need for a person’s approval. A sentence can also become more definite during rewriting.
| Original record | Risky compression | What needs to survive |
|---|---|---|
| The draft is complete; source checks remain. | The report is complete. | The uncompleted source checks. |
| The owner approved the wording for the landing page only. | The wording is approved. | The scope of the approval. |
| Try the shorter form after the client chooses it. | Use the shorter form. | The decision is still open. |
| The replacement image was requested but not received. | The image was replaced. | The actual state of the work. |
These are hypothetical examples, but they show why polish is a weak test of accuracy. A summary should preserve the difference between proposed and chosen, written and verified, requested and received. If the next assistant cannot see those differences, it may continue from a state that never existed.
Anthropic’s context engineering guide (opens in a new tab) discusses curating the information available to a model over time. Your practical responsibility is to choose which facts must remain recoverable, even after the conversation is shorter.
What should a continuation summary preserve?
Write for the next action, with enough evidence to check the starting point. Keep the summary distinct from its sources. A link or task reference makes a short statement useful without pretending it contains every underlying detail.
- Goal and limits: what the person asked for, what is in scope and what needs approval.
- Current state: what exists now, what changed and where the output can be found.
- Decisions: what a person chose, why, and where the original decision is recorded.
- Checks: what was actually tested or reviewed, the result and any uncompleted checks.
- Uncertainty: open questions, conflicting evidence and assumptions that still need confirmation.
- Next action: the specific place to start, plus anything that must be stopped or inspected first.
Keep exact details exact when a later action depends on them. A file path, document revision or task reference may be worth preserving word for word. Do not substitute “the latest version” if several versions can plausibly qualify.
In fenbs, the project’s Where we left off can hold the continuation while Decisions and rules retain the choices behind it. That gives the summary an accountable record to point back to.
How do you check a shortened continuation?
- Compare it with the current outputs. Confirm that each claimed change exists where the summary says it does.
- Compare it with the original decisions. Check scope, exceptions and anything that still requires a person to choose.
- Check the evidence behind completion. A successful draft is different from a reviewed or tested result.
- Ask a fresh session to describe its next action without taking it yet. Correct misunderstandings before allowing work to continue.
A useful test question is, “What could you mistakenly assume from this summary?” Another is, “Which statement would you need to verify before changing the deliverable?” These questions expose missing qualifiers more directly than asking whether the summary is good.
If the summary contradicts a source, correct the summary and keep the source available. Do not resolve the disagreement by making both accounts equally vague. Our context files comparison covers places where instructions may live; compression should preserve the relevant instruction’s identity and scope.
Keep the original choice in fenbs’s Decisions and rules so a shortened continuation can point back to the person’s actual decision.
Give a short summary a record to return to
Use fenbs to save where each task stands, the decisions that apply and the project’s next step. Ask the next connected assistant to read that record and check its continuation against it. The summary can stay brief because the approved work remains available outside the chat.
Create a free accountFree for one person · No credit card · Works with Claude, ChatGPT, Cursor and more
When should you keep the original material available?
Keep the source whenever wording, calculations or evidence will matter again. A summary of a contract clause cannot replace the clause for a wording review. A summary of a data check cannot replace the actual result when you need to inspect the calculation.
Repeatedly summarizing a summary can also make it harder to notice an earlier omission. At a meaningful handoff, compare the latest continuation with the original decisions and current outputs. Treat the summary as a route back to the work, rather than the only remaining account of it.
For the broader routine of selecting and refreshing material, see managing AI context. Compression is one operation within that routine, useful when you can explain what the shorter version must preserve.
How to do this with fenbs
- Create a free account and add a project for the work you want another session to continue.
- Record the person’s approved choices in Decisions and rules. Keep task progress and checks precise enough to distinguish completed work from work still awaiting review.
- Connect a supported AI app using Integrations. MCP is the standard connection that lets the app use fenbs as an outside tool.
- Before stopping, ask the assistant to save task progress and Where we left off. In the next session, ask it to read the project context and explain the proposed next action against the saved record.
fenbs does not compact a model’s conversation or guarantee that a summary preserves every detail. It is a good fit for retaining the reviewed work that makes a continuation checkable. Keep full documents and other source material in the systems where you maintain them.
The context engineering hub covers related approaches. For a first trial, shorten one completed session, then check whether a fresh assistant can identify the remaining work without treating an open decision as permission.