Claude-emporium claude-praetorian
Context preservation with cross-session memory — hooks prompt compaction at high-impact moments, siblings enrich what gets saved
install
source · Clone the upstream repo
git clone https://github.com/Vvkmnn/claude-emporium
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/Vvkmnn/claude-emporium "$T" && mkdir -p ~/.claude/skills && cp -r "$T/plugins/claude-praetorian/skills/claude-praetorian" ~/.claude/skills/vvkmnn-claude-emporium-claude-praetorian && rm -rf "$T"
manifest:
plugins/claude-praetorian/skills/claude-praetorian/SKILL.mdsource content
Praetorian Plugin
Context guard. Saves and restores valuable context at the right moments — before planning, after research, when subagents complete.
Hooks
| Hook | When | Action |
|---|---|---|
| PreToolUse(EnterPlanMode) | Before planning | Lists prior compactions, suggests restoring |
| PreCompact | Before context resets | Prompts to save decisions/insights/findings |
| PostToolUse(WebFetch/WebSearch) | After web research | Prompts to compact as |
| SubagentStop | After subagent completes | Prompts to compact as |
Commands
| Command | Description |
|---|---|
| Save current context |
| Load previous context |
Workflows
Compact (standalone)
- Identify what's worth saving (research, decisions, patterns)
praetorian_compact(type, title, key_insights, refs)- Verify with
to confirm it savedpraetorian_restore(title)
Compact (with siblings)
- If historian active:
to check if past context already covers thissearch_plans() - If oracle active: include any tool discoveries in
key_insights praetorian_compact(type, title, key_insights, refs)- If vigil active: files are also checkpointed via quicksave
Restore (standalone)
— list recent compactionspraetorian_restore()
— search for specific topicpraetorian_restore("query")- Summarize findings for the current task
Restore (with siblings)
— load praetorian contextpraetorian_restore("query")- If historian active:
for broader session historysearch_conversations("query") - If oracle active:
for tools relevant to the restored contextsearch("query") - Combine all sources into a unified briefing
Sibling Synergy
| Sibling | Value | How |
|---|---|---|
| Historian | Past plans surface during planning compactions | enriches pre-plan hook |
| Oracle | Tool discoveries included in compactions | Oracle results added to |
| Gladiator | Observations inform what to compact | Failure patterns highlight important context |
| Vigil | Files checkpointed alongside context | Quicksave protects files during compaction |
Requires
claude mcp add praetorian -- npx claude-praetorian-mcp