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.
npx agentmods add commands/sliamh11/deus/resumegit clone --depth 1 https://github.com/sliamh11/DeusWrote 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/sliamh11/deus/resume)<a href="https://agentmods.dev/commands/sliamh11/deus/resume"><img src="https://agentmods.dev/badge/commands/sliamh11/deus/resume.svg" alt="Measured on agentmods" 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 | $0.00000 | $0.00988 |
| Opus 5 | $0.00000 | $0.00494 |
| Sonnet 5 | $0.00000 | $0.00198 |
| Haiku 4.5 | $0.00000 | $0.00099 |
Grade A, and why
resume 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 3d 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
Load context from the vault before starting work.
NOTE: This is the home-mode (~/deus) version. For external projects, the user-level /resume skill at ~/.claude/skills/resume/ handles project-focused context loading automatically.
First, resolve the vault path using this per-instance order (highest priority first). $VAULT means the resolved path:
DEUS_VAULT_PATHenv var, if set.vault_pathin./.deus/config.json(the current working directory's instance-local config), if that file exists. If the file exists but has no usablevault_path, STOP and tell the user it is present but missingvault_path— do not fall through to the global config (that fall-through is what reads from another instance's vault).vault_pathin~/.config/deus/config.json(global fallback).
Tiers 1 and 2 are the per-instance mechanisms: when several Deus instances run on one machine they share the global config (tier 3), so resolving from it alone can silently point this instance's /resume at a different instance's vault. The instance-local ./.deus/config.json keeps each instance self-contained. The memory_indexer.py calls below resolve the vault by the same order, so their reads come from this instance's vault too.
-
Always read core memory: $VAULT/CLAUDE.md
-
Based on likely task context, also read:
- Study session → $VAULT/STUDY.md
- Deus / tools / infra session → $VAULT/INFRA.md
- If unclear → read both (they're small, ~10 lines each)
-
Check for a mid-session checkpoint from today: Run: find "$VAULT/Checkpoints" -name "$(date +%Y-%m-%d)-*.md" 2>/dev/null | xargs ls -t 2>/dev/null | head -1 If a file is found → read it fully. Note "resuming mid-session checkpoint" in the summary.
4a. Load warm tier — recent sessions (no API cost): Run: python3 scripts/memory_indexer.py --recent-days 3 This returns ALL sessions from the last 3 calendar days, sorted newest-first. Include as "Recent Sessions" context.
FALLBACK — if the script fails, fall back to:
find "$VAULT/Session-Logs" -name "*.md" -not -path "*/.obsidian/*" | xargs ls -t 2>/dev/null | head -6
Then read frontmatter only (lines between the two --- markers) of those files.
4b. Load learnings — what's new since last /resume (no API cost): Run: python3 scripts/memory_indexer.py --learnings --since 7 --top 3 If output is non-empty, include it as a "What's Emerging" section after recent sessions. If no output (nothing new), skip silently — silence signals stability.
4c. Load cold tier — semantically relevant older sessions: Formulate a 1-sentence query based on the loaded context from steps 1–3 (e.g. "linear algebra exam prep" or "whatsapp channel debugging"). Run: python3 scripts/memory_indexer.py --query "" --top 2 --recency-boost Include the output as additional context. Deduplicate: skip any session that already appeared in step 4a (compare by filename). If the script fails or returns nothing, skip silently — warm tier already provides continuity. NOTE: Since warm tier now returns all sessions from 3 days, cold tier is purely for older context.
-
If a search term was passed as argument, grep session logs for it and read frontmatters of matches.
-
Summarize in 2–3 lines: ongoing context, pending tasks, ready to continue. If a checkpoint was loaded, prepend: "Resuming mid-session: [checkpoint next_action]"
-
Register daily reminders cron (always, every /resume): Use CronCreate with: cron: "3 9 * * *" recurring: true durable: true prompt: "Read ~/.deus/daily-tasks.md and ~/.deus/posting-schedule.md. Show a morning checklist: first, any posts due today from the posting schedule (platform + ready-to-copy text); then any pending one-time tasks that are approaching or overdue. If absolutely nothing is due today, say nothing at all." Do not mention this step in the summary — just register it silently.
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.
- 3d ago First seen · 58 lines · 0 tokens per session scan A 3d8a1e8b355a
resume is a command published in the GitHub repository sliamh11/Deus (51 stars, last pushed today), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 988 tokens. 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.
Other commands, from other repositories
toon-decode
Convert TOON v2.0 format back to JSON using the Zig decoder.
toon-encode
Convert JSON to TOON v2.0 format using the Zig encoder.
toon-validate
Validate TOON v2.0 files for correctness.
memcord-save-progress
Auto-summarize and save conversation progress.
memcord-save
Save current conversation to memory.
memcord-close
Deactivate memory slot and end session.