simbo1905

Inception Mercury Compaction — Development skill for Claude Code

Development community

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

  • Ccusage — CLI for analyzing Claude Code/Codex usage from local JSONL files 11.8k ★
  • Peon Ping — Warcraft III Peon voice notifications (+ StarCraft, Portal, Zelda) for Claude Code and other agents 4k ★
  • Memory Gc — Inspect or rotate the autopilot ledger JSONL files (findings.jsonl, negatives.jsonl) 3.8k ★

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

  1. Detects the session format (JSONL or SQLite) — works across all tools
  2. Finds the last compaction point in the session
  3. Streams messages since that point to Mercury 2.5
  4. 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