About Accordion
Accordion is a context visualization and context management extension for coding agents. It shows an agent's entire context window on one screen, one square per block in conversation order, colored by type (user message, thinking, tool call, tool result, assistant response) and sized by token count. Developers can click any block to fold it into a short digest, and an automated conductor can fold and unfold blocks between the agent's turns.
It is aimed at developers running long coding agent sessions who hit the limits of standard compaction. Every fold is reversible: a folded block collapses to a digest tagged with a stable six character code, and the agent can call unfold to restore the block or recall to read it once without changing the view. Nothing is deleted, user messages and tool calls are never folded, and the newest roughly 20,000 tokens are always protected. Conductor strategies range from simple first in, first out folding to attention based approaches. The project claims three benefits over blocking compaction: no waiting for a compaction call, all older blocks remaining recoverable, and fewer tokens sent per call, with a demo showing 84,900 tokens per call instead of 132,300.
Accordion is free and MIT licensed, installed as a package for the pi coding agent harness. No paid plan is published.
Today it runs only inside pi; support for Vibe, OpenCode, Claude Code and Codex is listed on the roadmap rather than available.