restore-praetorian — Claude Code command: restore context
restore-praetorian is a Claude Code command that retrieves past work from praetorian memory. It helps resume tasks by finding recent summaries or searching saved session context.
MIT ★ 78 updated 2026-03-05
/plugin marketplace add Vvkmnn/claude-emporium
/plugin install claude-praetorian@claude-emporiumWhat restore-praetorian does
With no query, the command returns recent session summaries. Add a search term to look across all summaries for relevant context; for instance, auth can find material about authentication. The command then gives you a short account of the results.
It calls praetorian_restore(query?). Run it when beginning a session, returning to earlier work, or while useful context is still available. The command reads from praetorian memory, so it depends on that memory containing the work you need.
What it helps with
- retrieve context from an earlier session
- review recent summaries without a search term
- resume a task after switching sessions
- find saved decisions by topic
Example prompts for the agent
- Show me the recent summaries from praetorian memory.
- Search earlier work about authentication:
/claude-praetorian:restore-praetorian auth. - Find context about API design:
/claude-praetorian:restore-praetorian "API design".
How to install restore-praetorian
1Plugin marketplace
/plugin marketplace add Vvkmnn/claude-emporium/plugin install claude-praetorian@claude-emporium2Manually: put the files in place
.claude/commands/restore-praetorian.mdCall it with /restore-praetorian. For all projects use ~/.claude/commands/
Manually: put the files in place
~/.codex/prompts/restore-praetorian.mdCall it with /prompts:restore-praetorian. Codex marks this format deprecated in favour of skills
Manually: put the files in place
.github/prompts/restore-praetorian.prompt.mdManually: put the files in place
.gemini/commands/restore-praetorian.tomlGemini stores commands as TOML: the prompt text goes into the prompt field
Questions about restore-praetorian
How do I install restore-praetorian in Claude Code?
In Claude Code, run /plugin marketplace add Vvkmnn/claude-emporium, then run /plugin install claude-praetorian@claude-emporium. Invoke the command as /claude-praetorian:restore-praetorian.
What does restore-praetorian do?
It retrieves recent summaries from praetorian memory or searches all summaries for a supplied query, then summarizes the matches.
Can restore-praetorian search for a specific topic?
Yes. Add a query after the command, such as /claude-praetorian:restore-praetorian auth. It searches across all stored summaries.
Source text
restore-praetorian.md · MIT
--- name: restore-praetorian description: Load previous context from praetorian memory arguments: query? --- # /restore-praetorian Load previous work from praetorian memory. ## Usage - `/restore-praetorian` - Show recent compactions (last 3-5) - `/restore-praetorian auth` - Search for auth-related context - `/restore-praetorian "API design"` - Search for specific topic ## Action Call `praetorian_restore(query?)` and summarize the results: - Without query: Returns most recent compactions - With query: Semantic search across all compactions ## When to Use - **Session start**: Check if previous work exists for current task - **Resuming work**: Load context from previous sessions - **Context low**: Restore key insights before compaction clears context ## Example Output ``` Found 2 relevant compactions: 1. "Auth Implementation" (decisions, Jan 9) - Using JWT with refresh tokens - Storing tokens in httpOnly cookies - Middleware pattern at src/middleware/auth.ts 2. "API Research" (web_research, Jan 8) - REST best practices from OpenAPI spec - Rate limiting patterns ```
© vvkmnn · MIT · Vvkmnn/claude-emporium