How AI coding tools shrink long work sessions
The post compares how Claude Code, Codex CLI, OpenCode, Cline, Cursor, and Amp handle long context. The author says these tools are moving toward layered context compression. They differ on what they protect, such as recent user messages, tool outputs, or older assistant messages. The post also says tools differ on whether they tell the model that older context was compressed.
Key points
- The author looked at six AI coding tools used for real coding work.
- Most tools try to protect recent user messages because they are treated as the source of truth.
- Many tools also protect tool outputs when they contain current state.
- The tools differ in how they handle older assistant messages.
- The author prefers making context compression explicit so the model knows its memory was reduced.
Quick term guide
- Long Context
- The total amount of text or conversation history an AI can remember and process at once.
- context compression
- A way to shorten long input so the AI has less to process.
- compression
- A process that shortens older chat details so the AI can keep working in a long session.
- tool outputs
- Results the AI gets after using tools such as file reading, search, or command execution.
- assistant messages
- Earlier replies written by the AI in the same conversation.
- compressed
- Reduced so it takes less data or processing work.
- AI coding tools
- Programs like Claude, Cursor, or ChatGPT that write code for you when you describe what you want in plain language.
- AI coding tool
- Software that uses AI to help write, edit, or explain code.