com um clique
claude-praetorian
// Context preservation with cross-session memory — hooks prompt compaction at high-impact moments, siblings enrich what gets saved
// Context preservation with cross-session memory — hooks prompt compaction at high-impact moments, siblings enrich what gets saved
Prompt rhetoric coach — deterministic scoring and restructuring using Anthropic best practices
Continuous learning — hooks observe failures and prompt reflection, sibling synergy deepens analysis with history and tool discovery
Automatic history search — checks past sessions before web research, planning, and debugging, siblings deepen coverage
Automatic tool discovery across 17 sources — hooks search before planning and after errors, siblings avoid redundant searches
File checkpoint and recovery — auto-quicksaves before destructive commands, manual checkpoints for safe rollback
| name | claude-praetorian |
| description | Context preservation with cross-session memory — hooks prompt compaction at high-impact moments, siblings enrich what gets saved |
| triggers | ["PreToolUse","PreCompact","PostToolUse","SubagentStop"] |
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