SmartCompact
SmartCompact is a context compaction plugin for coding agent sessions, supporting Claude Code, Pi, and Codex CLI. It compacts context early at pause points after a piece of work is completed, to reduce the cost of long sessions. Across 18–60 consecutive coding tasks, it reduces cost by 7–44% with no loss of hidden acceptance test results; the longer the session, the greater the savings. It triggers only at the end of a turn when work has been completed since the last compaction (such as a commit, passing tests, or task completion) and there are no file changes, avoiding interruption of work. After compaction, it hands key information back to the model via a progress ledger (file changes, latest commit, test results, user requirements and decisions, and the agent's last reply).