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/XeldarAlz/everything-claude-unityWrote 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/xeldaralz/everything-claude-unity/unity-session-save)<a href="https://agentmods.dev/commands/xeldaralz/everything-claude-unity/unity-session-save"><img src="https://agentmods.dev/badge/commands/xeldaralz/everything-claude-unity/unity-session-save/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/xeldaralz/everything-claude-unity/unity-session-save"><img src="https://agentmods.dev/badge/commands/xeldaralz/everything-claude-unity/unity-session-save.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.00032 | $0.00443 |
| Opus 5.5 | $0.00013 | $0.00177 |
| Sonnet 5.5 | $0.00006 | $0.00089 |
| Haiku 4.5 | $0.00003 | $0.00044 |
Grade A, and why
unity-session-save 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.
What it actually says
/unity-session-save — Snapshot Current Session
Save the live session state (.claude/state/session.json) as a named snapshot: $ARGUMENTS
Unlike the automatic Stop-hook save (which overwrites session.json), this creates a named copy the user can return to later.
Steps
- Resolve the label from
$ARGUMENTS.- If empty: default to
auto-<YYYYMMDD-HHMM>. - Sanitize to
[a-z0-9-]+; reject anything with slashes or spaces.
- If empty: default to
- Check that
.claude/state/session.jsonexists. If not, ask the user whether to save the in-memory context (in which case trigger a Stop-hook-equivalent save first, or tell them to wait until at least one Edit/Read has happened). - Ensure
.claude/state/sessions/exists. - Read
session.json; inject a top-levellabelfield and asource: "manual-save"field into a copy. - Write to
.claude/state/sessions/<label>.json. - If a file with the same label already exists, ask before overwriting. Default to append a numeric suffix (
<label>-2.json) if the user says no. - Report:
Session saved as **<label>**.
Branch: <branch>
Phase: <workflow_phase>
Modified files: <count>
Use `/unity-session-resume <label>` to restore.
Rules
- Label sanitization — reject
.., leading-, paths — accept only[a-z0-9-]+. - Never overwrite silently — always prompt, always offer a safe fallback.
- Idempotent — saving the same label twice with user approval replaces cleanly.
- Does not mutate the live session —
session.jsonis unchanged.
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 · 40 lines · 32 tokens per session scan A 5272521300e9
unity-session-save is a command published in the GitHub repository XeldarAlz/everything-claude-unity (25 stars, last pushed 7mo ago), licensed MIT. It adds 32 tokens to every session and 443 once invoked, about $0.0001 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-30.
unity-session-save compared with commands from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| unity-session-saveXeldarAlz/everything-claude-unity | Command | 25 | 7mo ago | MIT | A | 32 | Claude Code |
| context-restorewshobson/agents | Command | 43k | yesterday | MIT | A | 10 | Claude Code |
| context-savewshobson/agents | Command | 43k | yesterday | MIT | A | 12 | Claude Code |
| export-closedloop-learningsclosedloop-ai/claude-plugins | Command | 123 | today | Apache-2.0 | A | 13 | Claude Code |
| pull-learningsclosedloop-ai/claude-plugins | Command | 123 | today | Apache-2.0 | A | 12 | Claude Code |
| mbfockus/skill-memory-bank | Command | 33 | today | MIT | A | 49 | Claude Code |
| catchupfockus/skill-memory-bank | Command | 33 | today | MIT | A | 40 | Claude Code |