Magic Compact — Development skill for Claude Code
Lossless context compression plugin for Claude Code & OpenCode.
How to install Magic Compact
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open aerovato/magic-compact and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Magic Compact does
Lossless context compression plugin for Claude Code & OpenCode.
Alternatives in Development
- Magic Modules — Magic Modules Skill 1.1k ★
- Kaggle Tpu Lab — Qwen3.8-27B (bf16) on a free Kaggle TPU: OpenAI-compatible endpoint, 262k context, ~130 tok/s, works with Clau 170 ★
- Compact 서비스 (대화 요약) — 관찰 위치: Claude Code 내부 아키텍처 변수: NO_TOOLS_PREAMBLE, BASE_COMPACT_PROMPT, PARTIAL_COMPACT_PROMPT, PARTIAL_COMPACT 149 ★
README
Magic Compact
English | [中文](./README.zh-CN.md)
[!IMPORTANT] Magic Compact development has been paused in favor of [Operator Memory](https://github.com/aerovato/operator-memory), its successor. Magic Compact focuses on context compression; Operator already provides durable memory and documentation, and will gain context-management features over time. Install and follow Operator for future development; a Claude Code plugin will be added soon. Magic Compact remains fully functional.
Lossless context compression for OpenCode and Claude Code.
Built with [Operator Memory](https://github.com/aerovato/operator-memory)
Why
OpenCode and Claude Code's built-in compaction replaces an entire conversation with one summary blob. The user messages, the assistant's reasoning, tool calls, design decisions, and workflow are all flattened into a generic template (Goal, Progress, Key Decisions...). The agent wakes up with amnesia, forced to reconstruct its working state from an abstraction that captured a fraction of what mattered.
Magic Compact takes a different approach: preserve the conversation skeleton, condense each old assistant turn into its own summary, prune bulky tool I/O, and keep everything retrievable. The agent retains its memory of what it did, why, and what comes next.
How
Instead of collapsing an entire session into a single generic summary, Magic Compact replaces old assistant turns with high-fidelity summaries while leaving user messages and tool calls in place.
The assistant's thought process, decisions, and actions remain in context along with all your commands while unnecessary bloat is stripped away. Long tool calls are aggressively pruned but can be retrieved via a custom `read_omitted_content` tool.
Features
- Lossless context comp
Related Skills
Skill Compact
Shrink Claude Code SKILL.md token cost without breaking skills. Trigger-preserving description gate + lossless
Better Compact
Staged context pruning for OpenCode, Oh My Pi, pi, and Claude Code.
Ccr
CCR (Compressed Context with Retrieval) — recall the full original of context that great_cto compressed/filter
Toonify MCP
Context compression plugin for Claude Code. Automatically trims large tool output—JSON, YAML, stack traces, an
ClaudeTokenSAP
⚡ Claude Code plugin to reduce token usage by up to 70% with smart compression for logs, JSON, and large conte
Flightlog
Total recall for Claude Code. MCP server that indexes conversation history into SQLite — search past sessions,
Related Agents
Skillers Compactor
Extract workflow patterns from conversation transcripts and compact into themed knowledge files. Reads transcr
Context Master
Use when context exceeds ~85% of the window, or during WF closeout to extract durable knowledge before compres
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