OverviewHistoryStatsSecurity
npx skills add ...
Documentation
SKILL.md
npx skills add egorfedorov/claude-context-optimizer --skill cco-clean
Clean up old tracking data and reset statistics
npx skills add egorfedorov/claude-context-optimizer --skill cco-clean
The user wants to clean up tracking data. Parse $ARGUMENTS:
--reset-all: Delete all data in ~/.claude-context-optimizer/ and confirm--sessions-older-than N: Delete session files older than N days--prune (or the user just wants the safe cleanup): apply the retention policy now — per-session files older than 90 days (sessions, summaries, prompts) and live-session state older than 14 days (budget, read-cache, notices). Aggregated stats and learned patterns are kept. This also runs automatically once a day at session start.
--prune first — it is non-destructive to stats)To check data size, Glob ~/.claude-context-optimizer/sessions/*.json and report
the session count.
--reset-all and --sessions-older-than delete files: state exactly what will
be removed and let the user approve the command — these are not pre-approved.