realfamousbae

Ctx Compact — Development skill for Claude Code

Development community

Compact the shared journal — move lasting knowledge into DECISIONS/GOTCHAS/MAP and archive old entries.

How to install Ctx Compact

Installs to ~/.claude/commands/realfamousbae-agent-context-kit-ctx-compact.md

Terminal
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/realfamousbae/agent-context-kit/HEAD/.claude/commands/ctx-compact.md -o ~/.claude/commands/realfamousbae-agent-context-kit-ctx-compact.md

Restart Claude Code, or start a new session, for it to be picked up.

What Ctx Compact does


description: Compact the shared journal — move lasting knowledge into DECISIONS/GOTCHAS/MAP and archive old entries

Follow "Compaction" in `.context/PROTOCOL.md`:

  1. Add a line to Now in .context/TASKS.md (sh .context/bin/ctx claim --new "Compact the journal" --area ".context/").
  2. sh .context/bin/ctx compact lists what is old. Read those entries.
  3. Move lasting knowledge to DECISIONS, GOTCHAS and MAP; mark obsolete gotchas [resolved YYYY-MM-DD] reason and replaced decisions `

Alternatives in Development

  • Code Review Graph — Local knowledge graph for Claude Code 3.7k ★
  • Cq — An open standard for shared agent learning 1.3k ★
  • Maestro Session Manage — Manage a v3 Session — inspect status/resume-view, review knowledge candidates, complete, archive/unarchive 530 ★

Full documentation available on GitHub

View Source Repository