Resume

From sliamh11/Deus · View interactive version

Resume is an AI agent skill from the GitHub repository sliamh11/Deus. Load context from permanent memory and recent session logs. Tiered loading — CLAUDE.md full, session logs frontmatter-only by default.

How to use this skill

Skill file

/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

  1. 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"

```

  1. 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}

```

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

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

```

  1. Summarize in 2–3 lines: ongoing context, pending tasks, ready to continue.

Argument Variants

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.