conPACT is a Claude Code mod that automatically compacts a session's context after a task finishes via an MCP tool, and prompts to compact idle sessions before the prompt cache expires. It ships as an in-process plugin hooks mod in Claude Code 2.1.284+, with a Stop hook fallback over Remote Control, and also supports Codex/ChatGPT Desktop. Author reports ~4.7% spend savings and lower peak context, MIT licensed.

I built conPACT: Claude Code compacts its own context when a task is done, and offers to compact idle sessions before the prompt cache expires
Stars 0Permission footprint Not scanned