1
0
Fork 0
mirror of https://github.com/SeriousBug/dotfiles synced 2026-07-27 12:35:37 -05:00
Commit graph

3 commits

Author SHA1 Message Date
Kaan Barmore-Genc 1aea5cf659 cc-compact: recursively summarize the /clear -> cc-compact lineage
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.
2026-07-21 02:54:53 -05:00
Kaan Barmore-Genc 876ac92432 cc-compact: auto-select latest session when no selector given
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.
2026-07-21 02:49:15 -05:00
Kaan Barmore-Genc b0070920e3 Add cc-compact skill and claude-token-count CLI
- 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
2026-05-31 02:28:42 -05:00