Help us improve
Share bugs, ideas, or general feedback.
From claude-praetorian
Preserves context across sessions by hooking PreToolUse, PreCompact, PostToolUse, SubagentStop to compact/save insights. Manual /compact-praetorian and /restore-praetorian commands.
npx claudepluginhub vvkmnn/claude-emporium --plugin claude-praetorianHow this skill is triggered — by the user, by Claude, or both
Slash command
/claude-praetorian:claude-praetorianThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Context guard. Saves and restores valuable context at the right moments — before planning, after research, when subagents complete.
Suggests manual context compaction at logical intervals (e.g., after research, before implementation) to preserve task context, avoiding arbitrary auto-compaction during long sessions.
Preserves critical rules, decisions, and state across /compact events, session boundaries, and agent handoffs using CLAUDE.md, .claude/rules files, and MEMORY.md.
Preserves critical context data before Claude Code's automatic compaction using snapshots, integrity verification, and zero-loss extraction protocols for complex projects.
Share bugs, ideas, or general feedback.
Context guard. Saves and restores valuable context at the right moments — before planning, after research, when subagents complete.
| 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 web_research |
| SubagentStop | After subagent completes | Prompts to compact as task_result |
| Command | Description |
|---|---|
/compact-praetorian [type] [title] | Save current context |
/restore-praetorian [query] | Load previous context |
praetorian_compact(type, title, key_insights, refs)praetorian_restore(title) to confirm it savedsearch_plans() to check if past context already covers thiskey_insightspraetorian_compact(type, title, key_insights, refs)praetorian_restore() — list recent compactionspraetorian_restore("query") — search for specific topicpraetorian_restore("query") — load praetorian contextsearch_conversations("query") for broader session historysearch("query") for tools relevant to the restored context| Sibling | Value | How |
|---|---|---|
| Historian | Past plans surface during planning compactions | search_plans() enriches pre-plan hook |
| Oracle | Tool discoveries included in compactions | Oracle results added to key_insights |
| Gladiator | Observations inform what to compact | Failure patterns highlight important context |
| Vigil | Files checkpointed alongside context | Quicksave protects files during compaction |
claude mcp add praetorian -- npx claude-praetorian-mcp