resume
Load context from permanent memory and recent session logs. Tiered loading — CLAUDE.md full, session logs frontmatter-only by default.
- License 许可
- MIT
- 所属仓库
- sliamh11/Deus
- 最近更新
- 2026-11-13
- Stars
- ★ 51
- Forks
- 7
01 前言 Front Matter
- name
- resume
- description
- Load context from permanent memory and recent session logs. Tiered loading — CLAUDE.md full, session logs frontmatter-only by default.
03 SKILL.md 正文
/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):
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):
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):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:grep -ril "<term>" "$VAULT_DIR/Session-Logs/" 2>/dev/null -
Summarize in 2–3 lines: ongoing context, pending tasks, ready to continue.
Argument Variants
04 同仓库更多 Skills
status
Quick read-only health check — session context, workspace mounts, tool availability, and task snapshot. Use when the user asks for system status or runs /status.
preserve
Scan the current conversation and silently save anything worth permanent memory to CLAUDE.md. Keeps the file compact — structured key:value, no prose.
compress
Save the current session to the vault. Writes a compact session log with a TL;DR frontmatter (always) and full details below (when useful).
capabilities
Show what this Deus instance can do — installed skills, available tools, and system info. Read-only. Use when the user asks what the bot can do, what's installed, or runs /capabilities.
agent-browser
Browse the web for any task — research topics, read articles, interact with web apps, fill forms, take screenshots, extract data, and test web pages. Use whenever a browser would be useful, not just when the user explicitly asks.
x-integration
X (Twitter) integration for Deus. Post tweets, like, reply, retweet, and quote. Use for setup, testing, or troubleshooting X functionality. Triggers on "setup x", "x integration", "twitter", "post tweet", "tweet".