Soul Check
Audit SOUL.md health. This file defines the agent's persona and has the highest system priority (priority=20) — it loads every conversation.
Steps
- Determine whether to use LLM mode:
- User says "--llm" or "with LLM" or "semantic check" →
use_llm=True - Otherwise →
use_llm=False
- User says "--llm" or "with LLM" or "semantic check" →
- Call
memory_soul_check_ocwith the appropriateuse_llmvalue - Add a one-line risk verdict before the report:
- ✅ healthy / 🟡 minor issues / ⚠️ review recommended / 🔴 action required
- Show the full report
- If problems found, tell the user what to fix — but note that SOUL.md must be edited manually
LLM mode adds
- C2 precision: classifies suspicious paragraphs as persona vs task instruction (task instructions don't belong in SOUL.md)
- C4-a: finds semantically contradictory instruction pairs within SOUL.md
- C4-b: compares SOUL.md against IDENTITY.md for inconsistencies
Important
This tool never modifies SOUL.md. Any fixes must be made manually by the user. LLM mode requires an API key (MINIMAX_API_KEY, OPENAI_API_KEY, ANTHROPIC_API_KEY, or KIMI_API_KEY).