Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
git clone --depth 1 https://github.com/eddiebelaval/squireWrote 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/commands/eddiebelaval/squire/save-state)<a href="https://agentmods.dev/commands/eddiebelaval/squire/save-state"><img src="https://agentmods.dev/badge/commands/eddiebelaval/squire/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/commands/eddiebelaval/squire/save-state"><img src="https://agentmods.dev/badge/commands/eddiebelaval/squire/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.00008 | $0.00355 |
| Opus 5.5 | $0.00003 | $0.00142 |
| Sonnet 5.5 | $0.00002 | $0.00071 |
| Haiku 4.5 | $0.00001 | $0.00036 |
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 2mo 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.
What it actually says
/save-state - Force Checkpoint
Creates an immediate checkpoint of the current session state. Use this before:
- Major refactoring
- Experimental changes
- Switching to a different part of the codebase
- Any risky operation
Usage
Basic Save
/save-state
Save with Reason
/save-state Before implementing auth system
What Gets Saved
A checkpoint includes:
- Current session status and progress
- All task statuses and assignments
- Files modified in this session
- Decisions made during development
- Last tool outputs
- Recovery instructions
Implementation
Run this command in the session-resilience-agents project:
cd ~/Development/session-resilience-agents && npm run checkpoint -- --reason="$REASON"
Where $REASON is the argument provided to this command (or "Manual checkpoint" if none).
When to Use
Use /save-state before:
- Risky refactoring
- Switching focus to different feature
- Taking a break
- Experimenting with approach
- Running destructive operations
The system auto-saves:
- Every 5 tool uses (Write, Edit, Bash, etc.)
- After each task completion
- Before running tests
Verification
After saving, verify with:
cd ~/Development/session-resilience-agents && npm run status
You should see an incremented checkpoint count.
Recovery
If anything goes wrong, resume from the checkpoint:
cd ~/Development/session-resilience-agents && npm run resume --checkpoint=CP-XXXXXX
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.
- 2mo ago First seen · 75 lines · 8 tokens per session scan A fc5ae87b5f64
save-state is a command published in the GitHub repository eddiebelaval/squire (21 stars, last pushed 3mo ago), licensed MIT. It adds 8 tokens to every session and 355 once invoked, about $0.0000 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-09-03.
save-state compared with commands from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| save-stateeddiebelaval/squire | Command | 21 | 3mo ago | MIT | A | 8 | Claude Code |
| disk-cleanupyonatangross/orchestkit | Command | 312 | today | MIT | A | 61 | Claude Code, Cursor |
| prompt-focusyonatangross/orchestkit | Command | 312 | today | MIT | A | 37 | Claude Code, Cursor |
| paul:handoffChristopherKahler/paul | Command | 1.3k | 3mo ago | MIT | A | 12 | Claude Code |
| paul:progressChristopherKahler/paul | Command | 1.3k | 3mo ago | MIT | A | 14 | Claude Code |
| paul:pauseChristopherKahler/paul | Command | 1.3k | 3mo ago | MIT | A | 14 | Claude Code |
| context-healthdoncheli/don-cheli-sdd | Command | 59 | 3mo ago | Apache-2.0 | A | 77 | Claude Code |