Local self-improving learning engine for Claude Code with cross-session memory, correction tracking, and evolving behavioral frameworks.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent โ or use 1-click editor setup below.
We ran the install command below but it didn't respond within our test window โ this can mean a slow first-time install rather than a real problem.
npx -y claude-soulNo response to initialize.
This is an experimental automated check and can have false negatives โ missing environment variables, a slow cold install, etc. It doesnโt necessarily mean somethingโs wrong. Last checked 4d ago.
๐ก Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Inspect callable tools, capabilities, and parameters exposed to AI agents by Claude Soul.
Claude Code forgets everything between sessions. Claude Soul doesn't.
One command. No API key, no cloud, everything local.
Prerequisites: Node.js >= 18, Claude Code (Pro or Max plan).
Cross-session memory with semantic search. Facts, decisions, lessons โ all searchable by meaning, not just keywords. Uses local SQLite + optional Ollama embeddings.
Every time you correct your Claude โ "that's wrong", "you missed this", "stop doing that" โ the system detects the pattern, classifies it, and tracks whether it's getting better or worse.
Patterns move through lifecycle stages: new โ active โ improving โ internalized. After 200 sessions of real data: robot_mode went from 0.8 corrections/session to zero.
The system extracts behavioral signals from every session and periodically reflects on them. Frameworks that keep working get promoted. Bad ones get retired. After a few weeks, you get a Claude that pushes back on bad ideas, catches its own confabulation, and develops techniques you never prompted.
Add this to your CLAUDE.md:
Done. Memory works with keyword search, everything else runs automatically.
Semantic search finds memories by meaning โ "auth decision" finds a memory stored as "chose JWT tokens for login." Without it, search is keyword-based (still works, just less flexible).
The system auto-detects Ollama. No configuration needed.
Skips the name/context questions. Add the CLAUDE.md snippet to your agent's working directory and it works the same way โ memory, correction tracking, and framework evolution all run through Claude Code's hooks and MCP server regardless of whether a human is typing or an agent is running.
Your soul files, frameworks, and data stay untouched. The upgrade re-registers hooks and MCP server with the latest version and adds any new features.
After upgrading, run claude-soul index once to backfill existing data into the memory system.
memory_save, memory_search, recall, etc.) for cross-session fact storage with semantic searchclaude-soul shadow shows behavioral patterns with trend arrows and lifecycle stagesclaude-soul index loads your existing journals and soul files into the memory databaseThese are optional โ the system runs automatically. The CLI is for inspecting collected data from your terminal.
| Command | What it does |
|---|---|
claude-soul status | System health โ frameworks, signals, phase |
claude-soul shadow | Your correction patterns with trends |
claude-soul shadow --generate | Auto-generate a SHADOW.md from your data |
claude-soul index | Index existing files into memory database |
claude-soul upgrade | Update hooks without touching your data |
Everything runs through Claude Code's official extension points: an MCP server (15 tools) and hooks (signal extraction, journaling, memory indexing, correction tracking).
Identity & Learning
| Tool | Purpose |
|---|---|
soul_context | Load identity + frameworks + state at session start |
soul_activate | Select relevant frameworks for current conversation |
soul_framework | Load a single framework with full evidence history |
soul_signal | Record observed interaction patterns |
soul_reflect | Trigger a reflection cycle (quick/deep/meta) |
soul_self_evaluate | Record a self-evaluation of a complex response |
soul_read | Read soul files (SOUL.md, SHADOW.md, etc.) |
soul_write | Write to user-editable soul files |
soul_status | Get current system status |
Memory
| Tool | Purpose |
|---|---|
memory_save | Save facts, decisions, or lessons |
memory_search | Semantic search across all memories |
memory_journal | Search or browse conversation journals |
memory_recent | List recently saved memories |
memory_stats | Memory system statistics |
recall | Unified "ask anything about the past" search |
| File | Purpose | Managed by |
|---|---|---|
SOUL.md | Your identity โ who you are, how you work | You + Claude |
SHADOW.md | Blind spots and behavioral tendencies | You + Claude |
STORY.md | Timeline of growth and key moments | You + Claude |
CORRECTIONS.md | Patterns to avoid, learned from mistakes | You + Claude |
STATE.md | System telemetry (confidence, phase, counts) | Auto |
FRAMEWORKS.md | Active framework index | Auto |
All settings in ~/.soul/config.json:
Contributions welcome. Open an issue to discuss before submitting large PRs.
MIT
Factual signals from GitHub, npm, and our automated checks โ not a rating.
No reviews yet โ be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/domdemetz-claude-soul)<a href="https://allmcps.com/mcp/domdemetz-claude-soul"><img src="https://allmcps.com/api/badge/domdemetz-claude-soul?style=directory" alt="Claude Soul on AllMCPs" /></a>