ConPACT — Development skill for Claude Code
CONtext comPACT coordinates agent-initiated context compaction at verified scope closure—after the final answer and a durable checkpoint.
How to install ConPACT
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open st0nebridge/conPACT and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What ConPACT does
CONtext comPACT coordinates agent-initiated context compaction at verified scope closure—after the final answer and a durable checkpoint. It compacts the live context without clearing the visible conversation history.
Alternatives in Development
- 子代理驱动开发 (sadd) — 派发独立子代理处理任务,在迭代间进行代码审查 checkpoint 714 ★
- Mnemos Checkpoint — /mnemos-checkpoint — Write Mnemos Checkpoint 705 ★
- Fast Jev Compaction — Claude Code plugin that replaces the compaction summary with Jev decisions: every tool call and result is scor 425 ★
README
conPACT
*CONtext comPACT.* Lets your coding agent compact its own context when a piece of work is done, and offers to compact idle sessions before their prompt cache expires. For **Claude Code Desktop** and **ChatGPT Desktop (Codex)**.
Why
Long agent sessions get expensive in two ways:
- The context keeps growing long after the work that needed it is finished.
- An idle session goes cold. Come back after its prompt cache has expired and the next message re-reads the whole context uncached.
`/compact` fixes both, but only if someone types it at the right moment. conPACT does it for you, for real:
- At the end of a piece of work, the agent queues a compaction of its own
session. It runs after the final answer, as a genuine
/compact: your chat history stays visible, and only the live context is summarised. With the conPACT mod, Claude Code does it from inside the session; without it, it travels over Remote Control. - When a big session sits idle, a small toast appears shortly before the cache expires and offers to compact it now, or always to do so for that session.
- In ChatGPT Desktop, the same two things, through an optional sidecar.
What it is not: a token-threshold trigger, a reminder for you to type `/compact`, `/clear`, or a fake "I compacted" message.
Requirements
- Python 3.11 or later. No other dependencies; everything is standard library.
- Claude Code Desktop. With the conPACT mod (Claude Code 2.1.284 or later) a
session compacts itself, for the agent and for the idle toast, and needs
nothing else. Without the mod, Remote Control must be on for the sessions
you want compacted: it is the route the
/compacttravels. - Windows, Linux or macOS. The whole test suite runs on Windows 11, Linux and macOS, and conPACT has been used live on Windows. Only the Claude Code integration reads a macOS Keychain login; ChatGPT Desktop and Codex CLI use Codex's own authenticated process a
Related Skills
Compact At
Set the hard threshold where this session compacts (soft reminder lands 5 below).
Superpowers To Watchtower
Use when a superpowers plan (writing-plans / brainstorming output saved locally) is ready and you want durable
Post Compact Reminder
Claude Code hook that detects context compaction and injects a reminder to re-read AGENTS.md, preventing post-
Compact Middleware
Claude Code's compaction engine, as a drop-in DeepAgents middleware
Wave Checkpoint
Save wave state to disk so an auto-compact, session crash, or laptop battery death doesn't kill the run. Run t
Context Compact
Prepare context for compaction: $ARGUMENTS
Related Agents
Teamai Recall
Search the team knowledge base (skills + learnings + docs + rules + codebase graph) and return a compact, stru
Memory Writer
Budgeted reflection scribe — merges a parent agent's distilled session summary into its checkpoint file and st
Gsd Debug Session Manager.Compact
Manages multi-cycle /gsd:debug checkpoint and continuation loop in isolated context. Spawns gsd-debugger agent