resume

resume is a command for Claude Code from sliamh11/Deus. It costs 0 tokens per session (988 once invoked), scanned A, original, MIT.

A command that loads saved project context from a configured vault before work begins. A vault is the location where the project stores that continuing context.

In plain words
What is it for?
Use it at the beginning of work to resolve the correct vault and load previously saved context.
Why use it?
It helps recover relevant information from earlier work and avoids starting without the project history.

Command for Claude Code

Install

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.

agentmods
npx agentmods add commands/sliamh11/deus/resume
Clone the repo
git clone --depth 1 https://github.com/sliamh11/Deus

Made for: Claude Code.

Wrote 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.

agentmods badge for resume

README.md
[![agentmods](https://agentmods.dev/badge/commands/sliamh11/deus/resume.svg)](https://agentmods.dev/commands/sliamh11/deus/resume)
Your own site
<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>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 988 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 3d ago against content hash 3d8a1e8b355a, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

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.

.claude/commands/resume.md · 58 lines

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:

  1. DEUS_VAULT_PATH env var, if set.
  2. vault_path in ./.deus/config.json (the current working directory's instance-local config), if that file exists. If the file exists but has no usable vault_path, STOP and tell the user it is present but missing vault_path — do not fall through to the global config (that fall-through is what reads from another instance's vault).
  3. vault_path in ~/.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.

  1. Always read core memory: $VAULT/CLAUDE.md

  2. 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)
  3. 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.

  1. If a search term was passed as argument, grep session logs for it and read frontmatters of matches.

  2. Summarize in 2–3 lines: ongoing context, pending tasks, ready to continue. If a checkpoint was loaded, prepend: "Resuming mid-session: [checkpoint next_action]"

  3. 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.

Changes

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.

  1. 3d ago First seen · 58 lines · 0 tokens per session scan A 3d8a1e8b355a

Subscribe to this mod's changes

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.