Skip to main content
command CX Codex

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

Install into Claude Code · Plugin marketplace All methods and platforms ↓
/plugin marketplace add Vvkmnn/claude-emporium
/plugin install claude-praetorian@claude-emporium
Open on GitHub

What 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-emporium

2Manually: put the files in place

.claude/commands/restore-praetorian.md

Call it with /restore-praetorian. For all projects use ~/.claude/commands/

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

Similar slash commands

All slash commands for Agent setup: memory, context, orchestration →

From the same set20

The whole set →
save-vigil save-vigil creates a named snapshot of selected or recently modified files before risky changes. It helps preserve code state for quick recovery later. CX Codex +1 ★ 78repo stars restore-vigil restore-vigil is a Claude Code command that lists saved checkpoints and restores files from a selected one. It supports returning a project to an earlier saved state. CX Codex +1 ★ 78repo stars reprompt-orator reprompt-orator rewrites a prompt with Anthropic techniques: scores it on seven dimensions, picks the fitting ones and hands back a restructured version. CX Codex +1 ★ 78repo stars search-oracle search-oracle searches across 17 sources for skills, plugins, and MCP servers. Useful when you need to discover and install new tooling directly inside Claude Code. CX Codex +1 ★ 78repo stars compact-praetorian compact-praetorian — a Claude Code command that writes the current session context into praetorian memory so it persists across sessions. Trigger it after research, exploration, or any decision worth keeping. CX Codex +1 ★ 78repo stars review-gladiator review-gladiator processes recorded observations across sessions, clusters recurring patterns, and suggests actionable workflow rules. CX Codex +1 ★ 78repo stars claude-oracle claude-oracle searches 17 sources for relevant skills, plugins, and MCP servers. It runs before planning and after Bash errors. CX Codex +1 ★ 78repo stars claude-praetorian claude-praetorian — a skill that snapshots your context before it gets compacted and brings it back later: before planning, after web research, when a subagent finishes. CX Codex +1 ★ 78repo stars

Project sponsors

Companies that keep this analytics open