/resume — Load Context
Load persistent context from the vault.
The vault is mounted at /workspace/vault/. If it doesn't exist, check /workspace/extra/obsidian/Deus/ as a legacy fallback.
Steps
- Resolve vault path and read permanent memory (full — it's compact):
```bash
VAULT_DIR="${DEUS_VAULT_DIR:-/workspace/vault}"
[ ! -d "$VAULT_DIR" ] && VAULT_DIR="/workspace/extra/obsidian/Deus"
cat "$VAULT_DIR/CLAUDE.md"
```
- Find recent session logs (default: last 3, or use number given as argument):
```bash
ls -t "$VAULT_DIR"/Session-Logs/*.md 2>/dev/null | head -${args:-3}
```
- For each session log: read frontmatter only (the YAML block between the two
---lines):
```bash
awk '/^---/{n++} n==2{exit} {print}' <file>
```
This gives ~10 lines per log (~80 tokens) instead of the full file (~900 tokens).
Only read the full log if the user asks for details or context is unclear.
- If a search term was given (e.g.
/resume auth), grep logs and read frontmatter of matches:
```bash
grep -ril "<term>" "$VAULT_DIR/Session-Logs/" 2>/dev/null
```
- Summarize in 2–3 lines: ongoing context, pending tasks, ready to continue.
Argument Variants
/resume— CLAUDE.md + last 3 session frontmatters/resume 5— CLAUDE.md + last 5 session frontmatters/resume auth— + search logs for "auth", read frontmatters of matches/resume full— load last 3 session logs in full (use sparingly)