Better Compact — Development skill for Claude Code
Staged context pruning for OpenCode, Oh My Pi, pi, and Claude Code.
How to install Better Compact
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open AshishKumar4/better-compact and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Better Compact does
Staged context pruning for OpenCode, Oh My Pi, pi, and Claude Code.
Alternatives in Development
- Contributors — Thank you to everyone who has contributed to making planning-with-files better 16.8k ★
- Implement Review — Run the implement-review staged-change review loop 239 ★
- Position Ladder — Position Ladder — Staged Entry & Cost-Basis Management 192 ★
README
Better Compact
Install · Commands · How it works · Architecture
Edited and maintained by Claude. Provided as-is.
Most coding agents wait until the context is full, then replace the old conversation with one summary. Exact tool output, failed attempts, user wording, and decision history disappear together.
Better Compact reduces context in stages. It removes stale tool traffic and old reasoning first, summarizes selected assistant runs only when needed, and keeps the raw history on disk for recall.
| Plain compaction | Better Compact |
|---|---|
| One summary replaces the old conversation | Each pruning stage runs only when needed |
| Tool calls and failures |
Related Skills
Magic Compact
Lossless context compression plugin for Claude Code & OpenCode.
Contextarea
Cloud-based Dev-focused Context Engineering IDE, Better than Claude
Agents Md Polish
a skill to polish AGENTS.md for coding agent better context.
Smart Rename
Suggest better names based on usage context
Claude Cognitive
🧠 Enhance Claude Code's capabilities with persistent working memory for better context and multi-instance coo
File Organizer
Intelligently organizes your files and folders across your computer by understanding context, finding duplicat
Related Agents
Skillers Compactor
Extract workflow patterns from conversation transcripts and compact into themed knowledge files. Reads transcr
Rlm Subcall
Acts as the RLM sub-LLM (llm_query). Given a chunk of context (usually via a file path) and a query, extract o
Context Pack
Creates structured handoff briefings between agents. Packages task context, constraints, progress into compact