Getting it into your agent
This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.
/plugin marketplace add shck-dev/ccx-context-system/plugin install ccxWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/shck-dev/ccx-context-system/save-state)<a href="https://agentmods.dev/skills/shck-dev/ccx-context-system/save-state"><img src="https://agentmods.dev/badge/skills/shck-dev/ccx-context-system/save-state/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/shck-dev/ccx-context-system/save-state"><img src="https://agentmods.dev/badge/skills/shck-dev/ccx-context-system/save-state.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00061 | $0.01156 |
| Opus 5.5 | $0.00024 | $0.00462 |
| Sonnet 5.5 | $0.00012 | $0.00231 |
| Haiku 4.5 | $0.00006 | $0.00116 |
Grade A, and why
save-state scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 90 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Save state — the single-pane work index
This regenerates the scratch INDEX, the one screen that shows everything in flight. Pull, don't copy: the index is a thin layer of pointers + live status; the real detail stays in each thread's STATE doc. Never hand-maintain the INDEX — re-run this skill.
Freshness is automatic — the
auto-compile-indexhook recompiles the INDEX on every STATE write, so forgetting this skill loses nothing. Run it for the full dashboard pass: frontmatter refresh, orphan-note sweep, and the live environment/PR picture below.
Live data (injected at load — already current below)
Project + config:
!bun "${CLAUDE_PLUGIN_ROOT}/scripts/where.ts"
Branch: !git rev-parse --abbrev-ref HEAD 2>/dev/null || echo "(not a git repo)"
Worktrees (parallel work):
!git worktree list 2>/dev/null || echo "(none)"
Recent commits:
!git log --oneline -8 2>/dev/null || echo "(no git history)"
Uncommitted (working tree):
!git status --short 2>/dev/null | head -15
Scratch threads:
!bun "${CLAUDE_PLUGIN_ROOT}/scripts/threads.ts"
Notes missing a graph backlink (orphan risk — each should open with a wikilink to its STATE):
!bun "${CLAUDE_PLUGIN_ROOT}/scripts/orphans.ts"
Open PRs:
!gh pr list --limit 12 2>/dev/null || echo "(gh unavailable / not a GitHub repo)"
Then do this
- Refresh each active thread's STATE frontmatter so its INDEX line is right. The INDEX is a
pure render of these fields — stale frontmatter = stale dashboard:
kind:—thread(in-flight) ·hub(permanent reference note) ·done(shipped / prune candidate).summary:— the single-line INDEX blurb (the live working-state, not just the title); YAML-quote itsummary: '…'(double any'). A thread missingsummary/kind→ add them (the compiler falls back to the**Status:**first sentence and flags the gap).- Also keep the one-line
**Status:**field under each STATE's H1 current — it is the durable working-state that survives context loss.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 3mo ago First seen · 90 lines · 61 tokens per session scan A d234f1efd099
save-state is a skill published in the GitHub repository shck-dev/ccx-context-system (1 stars, last pushed 4mo ago), licensed MIT. It adds 61 tokens to every session and 1,156 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
save-state compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| save-stateshck-dev/ccx-context-system | Skill | 1 | 4mo ago | MIT | A | 61 | Claude Code |
| audit-contextMalo-T/claude-toolbelt | Skill | 2 | 5d ago | MIT | A | 249 | Claude Code |
| handoffMalo-T/claude-toolbelt | Skill | 2 | 5d ago | MIT | A | 151 | Claude Code |
| resumeArcticFox2029/chamnan | Skill | 9 | 26d ago | MIT | A | 36 | Claude Code |
| branch-recapMalo-T/claude-toolbelt | Skill | 2 | 5d ago | MIT | A | 338 | Claude Code |
| slack-changelogMalo-T/claude-toolbelt | Skill | 2 | 5d ago | MIT | A | 332 | Claude Code |
| ignore-setupMalo-T/claude-toolbelt | Skill | 2 | 5d ago | MIT | A | 157 | Claude Code |