Index Ai Academy
Glossary · Phase 10 · Agent harnesses

Context editing

Removing or shrinking parts of a conversation, such as old tool results, to save space. The Claude API can do it on the server.

Try it now

The cut starts on a user message of tool results, so it steps back once, to the assistant message that made those calls.

Learn it properly

Managing the context window · Budgets, clearing old tool results, compaction and a cacheable prefix. About 40 minutes.

Create a free account See what's in the lesson

Other terms from the same lesson

Never trained an AI?

Teach a small one to write, right in your browser. It takes about 20 seconds and needs no account.

Teach it to write