Inception Mercury Compaction — Development skill for Claude Code
Universal context compaction tool for CLI coding agents (Claude Code, Codex CLI, OpenCode, Mistral Vibe).
How to install Inception Mercury Compaction
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open simbo1905/inception-mercury-compaction and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Inception Mercury Compaction does
Universal context compaction tool for CLI coding agents (Claude Code, Codex CLI, OpenCode, Mistral Vibe). Detects JSONL or SQLite rollouts, finds the last compaction point, and streams new messages to Inception Mercury 2.5 for summarization.
Alternatives in Development
- Agent Of Empires — Manage multiple Claude Code, OpenCode agents from either TUI or Web for easy access on mobile 3.1k ★
- Obsidian Challenge — Red-team your current idea against your own vault history — finds contradictions, past failures, and flawed as 277 ★
- 01 Fts5 Search — Replace Inkwell's naive LIKE post filter with a real SQLite FTS5 full-text index that ranks 143 ★
README
inception-mercury-compaction
Universal context compaction tool for CLI coding agents. Uses [Inception Mercury 2.5](https://www.inceptionlabs.ai) — a diffusion LLM running at 1,100 tokens/sec — to compact long agent sessions.
Why
Every CLI coding agent (Claude Code, Codex CLI, OpenCode, Mistral Vibe) hits context limits on long sessions. Their built-in compaction is slow and uses expensive frontier models. Mercury 2.5 does the same job at 1,100 tok/s for $0.04/M input and $0.15/M output (launch pricing).
Augment Code [moved compaction to Mercury and cut latency 82%](https://www.inceptionlabs.ai/blog/introducing-mercury-2-5) (150s to 27s) and costs 90%. This tool does the same for your CLI agent sessions.
What it does
- Detects the session format (JSONL or SQLite) — works across all tools
- Finds the last compaction point in the session
- Streams messages since that point to Mercury 2.5
- Writes a compaction summary that can be fed back into the agent
Supported tools
| Tool | Storage | Chat history repos / gists |
|---|---|---|
| Mistral Vibe | JSONL (~/.vibe/logs/session/) |
gist: mistral-vibe-chat-history |
| OpenCode | SQLite (~/.local/share/opencode/) |
simbo1905/opencode-chat-history |
| Codex CLI | JSONL + SQLite | simbo1905/codex-chat-history |
| Claude Code | JSONL | simbo1905/claude-chat-history |
| Cursor | SQLite | simbo1905/cursor-chat-history |
Compaction prompt research
The compaction prompts and strategies in this tool are informed by [badlogic's context compaction research](https://gist.github.com/badlogic/cd2ef65b0697c4dbe2d13fbecb0a0a5f) comparing Claude Code, Codex CLI, OpenCode, and Amp.
Key findings from that
Related Skills
Trajex
数万行散落的 Claude Code、Codex 与 Pi JSONL 会话,索引至同一个 SQLite 中: Agent 可通过 CLI 实现毫秒级查询,用户可通过 App 直观浏览|Past Claude Code,
Post Compact Reminder
Claude Code hook that detects context compaction and injects a reminder to re-read AGENTS.md, preventing post-
Claude Workspace Snapshot
new Snapshot and restore live Claude Code sessions as named, color-coded Windows Terminal tabs. Detects runnin
Token Review
Analyze SDLC token usage from .claude/sdlc/token-log.json (last run) and token-history.jsonl (rolling). Surfac
Setup Copilot
Universal Claude Copilot setup. Auto-detects context and routes to the appropriate setup command.
Plugin Doubt Gate
Claude Code Stop hook plugin that detects uncertainty in assistant messages and requests verification
Related Agents
Agent Of Empires
Claude Code, OpenCode, Mistral Vibe, Codex CLI, Gemini CLI Coding Agent Terminal Session manager via tmux and
Skills Manager (AI 技能管理器)
一款用于管理 AI 编程助手技能(Skills)的统一桌面应用。 无缝组织、同步和共享 Claude Code、Codex、Opencode 及其他 AI 工具的技能。 Version Platform
Developer Overview
code-container (container) creates isolated Docker environments for AI coding harnesses (Claude Code, OpenCode