Follow the chain of ancestor sessions each session was compacted from, up
to --max-depth (default 10), summarizing each older session more tightly
via a per-depth decay factor. Guards against cycles and already-visited
sessions. Bounds the full chain to ~24k tokens worst case.
Default to the most recently active session in the current project,
excluding the caller's own session (found via CLAUDE_CODE_SESSION_ID).
Lets you run /clear then cc-compact to reload the just-cleared session,
emulating Claude Code's built-in /compact.
- cc-compact: skill to reload a past Claude Code session's context
(resolves by id or ai-title, extracts a bounded XML summary via
compact_session.py) so work can be resumed without ingesting the log
- migrate the existing new-work skill into the repo
- deploy ~/.claude/skills via ensure_dir_symlink in setup.sh
- claude-token-count: count tokens via Anthropic's count_tokens endpoint,
pulling the API key from 1Password at runtime