Claude Soul

v1.0.0Coding Agentsstable

Self-improving learning engine for Claude Code. Extracts signals from sessions (corrections, successes,confusion), runs periodic reflections, and evolves behavioral frameworks through evidence. 9 MCP tools, automatichooks, local-only.

aiai-agentclaudeclaude-codeclaude-code-extension
Share:
76
Stars
0
Downloads
0
Weekly
0/5

What is Claude Soul?

Claude Soul is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to self-improving learning engine for claude code. extracts signals from sessions (corrections, successes,confusion), runs periodic reflections, and evolves behavioral frameworks through evidence. 9 mcp ...

Self-improving learning engine for Claude Code. Extracts signals from sessions (corrections, successes,confusion), runs periodic reflections, and evolves behavioral frameworks through evidence. 9 MCP tools, automatichooks, local-only.

This server falls under the Coding Agents category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • Self-improving learning engine for Claude Code. Extracts sig

Use Cases

Self-improving Claude Code engine
Session signal extraction and reflection
Behavioral framework evolution
DomDemetz

Maintainer

LicenseMIT License
Languagetypescript
Versionv1.0.0
UpdatedMay 21, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx claude-soul

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use Claude Soul

Claude Soul is a self-improving learning engine for Claude Code that makes your AI assistant smarter over time by learning from your actual sessions. It extracts signals from corrections, successes, and moments of confusion, runs periodic reflections at configurable thresholds, and evolves behavioral frameworks stored locally in ~/.soul/. The system provides 15 MCP tools covering identity, signal logging, reflection, memory search, and journaling — all operating entirely on your machine with no data leaving your device.

Prerequisites

  • Node.js 18+ installed
  • Claude Code CLI installed: npm install -g @anthropic-ai/claude-code
  • Optional: Ollama running locally with the nomic-embed-text model for semantic memory search (keyword search works without it)
  • An MCP-compatible Claude Code session (Claude Soul hooks into Claude Code's extension points)
1

Initialize Claude Soul

Run the init command with the --starter flag to scaffold the ~/.soul directory structure, write default config, and register the MCP server and hooks with Claude Code automatically.

npx claude-soul init --starter
2

Verify the installation

Check that the MCP server is registered and the soul directory was created with the expected config file.

claude mcp list
# Should show claude-soul in the server list
ls ~/.soul/
# Should show config.json and initial framework files
3

Review and customize the config

Open the generated config to tune reflection thresholds, model selection (haiku is faster, sonnet is more thoughtful), context budget, and feature flags.

# ~/.soul/config.json key settings:
# reflection.thresholds.quick: 20   (signals before a quick reflection)
# reflection.thresholds.deep: 100   (signals before a deep reflection)
# reflection.model: "haiku"         (or "sonnet" for richer reflections)
# context.maxTokens: 4500
# signals.maxLogSize: 51200         (50KB)
4

Start a Claude Code session — hooks fire automatically

Open Claude Code normally. Claude Soul's hooks intercept session events to log signals, journal interactions, and inject soul context at the start of each conversation without any manual steps.

claude
5

Manually trigger reflection or check status

You can invoke Claude Soul's MCP tools directly in a session to inspect state or force a reflection cycle.

# In a Claude Code session, ask:
"Run soul_status to show current signal count and last reflection time"
"Run soul_reflect to trigger a reflection now"
"Search memory for notes about TypeScript error handling"
6

Upgrade to the latest version

Keep Claude Soul current to get the latest behavioral framework improvements.

claude-soul upgrade

Claude Soul Examples

Client configuration

Claude Soul registers itself via the init command. If you need to add it manually to claude_desktop_config.json:

{
  "mcpServers": {
    "claude-soul": {
      "command": "npx",
      "args": ["claude-soul"]
    }
  }
}

Prompts to try

Use these prompts inside Claude Code to interact with Claude Soul's memory and learning tools:

- "Call soul_context to load my behavioral frameworks for this session"
- "Log a signal: I prefer explicit type annotations over inferred types in TypeScript"
- "Search my memory for previous notes about database migration patterns"
- "Show soul_stats — how many signals have been collected and when did I last reflect?"
- "Run a deep reflection on my last 100 signals and update my behavioral frameworks"

Troubleshooting Claude Soul

soul_context returns empty or no frameworks on session start

The system needs a few sessions worth of signals before meaningful frameworks emerge. Run 'claude-soul index' from the terminal to rebuild the index if you have existing sessions that haven't been processed yet.

Semantic memory search returns no results

Semantic search requires Ollama running locally with the nomic-embed-text model: 'ollama pull nomic-embed-text'. Without it, only keyword search is available. Verify Ollama is running with 'ollama list'.

Hooks are not firing between sessions

Check that the hooks were written to ~/.claude/settings.json during init. If missing, re-run 'npx claude-soul init --starter'. Hooks require Claude Code 1.0+ and will silently do nothing on older versions.

Frequently Asked Questions about Claude Soul

What is Claude Soul?

Claude Soul is a Model Context Protocol (MCP) server that self-improving learning engine for claude code. extracts signals from sessions (corrections, successes,confusion), runs periodic reflections, and evolves behavioral frameworks through evidence. 9 mcp tools, automatichooks, local-only. It connects AI assistants to external tools and data sources through a standardized interface.

How do I install Claude Soul?

Follow the installation instructions on the Claude Soul GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.

Which AI clients work with Claude Soul?

Claude Soul works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is Claude Soul free to use?

Yes, Claude Soul is open source and available under the MIT License license. You can use it freely in both personal and commercial projects.

Browse More Coding Agents MCP Servers

Explore all coding agents servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "claude-soul": { "command": "npx", "args": ["-y", "claude-soul"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use Claude Soul?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides