Smarter Compact — Development skill for Claude Code
Trim coding-agent context without a summary.
How to install Smarter Compact
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open bcmyguest/smarter-compact and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Smarter Compact does
Trim coding-agent context without a summary. Older turns stay in a local store the agent can search.
Alternatives in Development
- Magic Compact — Lossless context compression plugin for Claude Code & OpenCode 144 ★
- Aegis Claude — Windows & macOS TUI: VPN leak check, TZ/WebRTC runtime guard & local Claude ID reset (chats stay) / Защита сре 96 ★
- Mobius — Agent Session Hub: search, cite, resume and hand off local Claude Code, Codex, OpenCode, Pi, Grok and OMP sess 58 ★
README
Smarter Compact
[](https://www.npmjs.com/package/smarter-compact) [](LICENSE) [](https://github.com/bcmyguest/smarter-compact)
**Context management (smart compaction) for coding agents.** Long sessions keep small, cached prompts. Every message goes into a local SQLite session store. Once the prompt reaches your token limit, older turns leave it, and the next kept turn carries a pointer to them.
The agent searches the store with `smart_compact_search`, `smart_compact_sql`, and `smart_compact_get` when it needs a detail back. Ask it to forget something, such as a pasted key, and `smart_compact_forget` redacts it from the store without deleting the session. The cut stays put on later requests, so the prompt cache keeps hitting.
**Learn more:** [How it works](https://bcmyguest.github.io/smarter-compact/context-management/) · [Benchmarks](https://bcmyguest.github.io/smarter-compact/benchmarks/) · [Context proxy & port](https://bcmyguest.github.io/smarter-compact/context-proxy/) · [Context store](https://bcmyguest.github.io/smarter-compact/context-store/)
**Benchmarks:** On [ContextBench](https://github.com/RulinShao/ContextBench) ([paper](https://arxiv.org/abs/2609.37725), [dataset](https://huggingface.co/datasets/cont
Related Skills
Book Compact
Compress a closed volume into a summary and consolidate story-bible Facts Logs — what keeps a 500-1000 chapter
Pantheon Forget
Compress old memory entries into summarized form. /pantheon-forget lists entries older than N days, then repla
Lcc
Compact coding-agent context without summarizing it away. Verbatim, offline, with a receipt and recall for eve
ConPACT
CONtext comPACT coordinates agent-initiated context compaction at verified scope closure—after the final answe
Ccstitch
Local trace store for Claude Code's OpenTelemetry spans: repairs orphaned headless turns (claude-code#99607),
Claudehut Learning Report
Show the ClaudeHut learning scoreboard — measured memory health (store size, reinforcement, effectiveness/recu
Related Agents
Context Harvester
Use before non-trivial work to search project knowledge (AGENTS.md, rules, docs, ADRs, notes, changelog) and r
Claude Context Local
Code search MCP for Claude Code. Make entire codebase the context for any coding agent. Embeddings are created
Teamai Recall
Search the team knowledge base (skills + learnings + docs + rules + codebase graph) and return a compact, stru