Sovereign Agent OS — Persistent Memory, Governance & Compliance for AI Agents
Project description
Nucleus
A personal AI operating system — persistent memory, governance, and coordination for AI agents.
Nucleus is an MCP server that gives AI agents a persistent brain. Sessions survive restarts, decisions leave audit trails, and governance rules enforce boundaries — all running locally on your machine.
This is a solo founder project. Built because I needed it, open-sourced because others might too.
Quick Start
pip install nucleus-mcp
nucleus init --recipe founder
nucleus morning-brief
Three commands. You now have a persistent brain with memory, governance, and a daily workflow.
Other recipes: nucleus recipe list (SRE, ADHD, and more).
What It Does
┌──────────────────────────────────────────────────────┐
│ Nucleus │
│ │
│ ┌─ Memory ──────┐ ┌─ Governance ──┐ ┌─ Audit ──┐ │
│ │ Engrams │ │ HITL gates │ │ Decision │ │
│ │ Sessions │ │ Kill switch │ │ trails │ │
│ │ Commitments │ │ Compliance │ │ Reports │ │
│ │ Heartbeat │ │ Resource lock │ │ Traces │ │
│ └───────────────┘ └──────────────┘ └──────────┘ │
│ │
│ ┌─ Coordination ┐ ┌─ CLI ────────┐ │
│ │ Task queue │ │ Engram CRUD │ │
│ │ Agent slots │ │ Session mgmt │ │
│ │ Multi-brain │ │ Chat (multi- │ │
│ │ sync │ │ provider) │ │
│ └───────────────┘ └──────────────┘ │
│ │
│ 100% local · Zero cloud dependency · MIT │
└──────────────────────────────────────────────────────┘
Key Features
- Engrams — Persistent knowledge that survives across sessions. Write once, recall forever.
- Session persistence — Save work context, resume later. No more "where was I?"
- Commitment tracking — Open loops tracked with age tiers (green/yellow/red) and health scores.
- Heartbeat — Proactive check-ins that catch stale blockers, velocity drops, and idle sessions.
- Multi-agent coordination — Task queues, agent slots, and brain sync for multi-agent setups.
- Governance — HITL approval gates, kill switch, resource locking, compliance configuration.
- Decision trails — Every agent decision logged with reasoning. Full audit trail.
- 170+ MCP tools — Organized into facade tools for memory, governance, orchestration, sessions, and more.
Nucleus Pro
Everything above is free (MIT). Nucleus Pro adds verifiable governance:
nucleus trial # 14-day free trial
nucleus compliance-check # Score your AI governance
nucleus audit-report --signed -o report.html # Cryptographically signed report
$19/month or $149/year — nucleusos.dev/pricing
| Free | Pro | |
|---|---|---|
| 170+ MCP tools | Yes | Yes |
| Persistent memory | Yes | Yes |
| Governance & HITL | Yes | Yes |
| Audit trails (DSoR) | Yes | Yes |
| Signed audit reports | - | Ed25519 |
| Compliance exports | Score only | Full PDF/HTML |
| Priority issues | - | Yes |
Configure Your MCP Client
Claude Desktop / Cursor / Windsurf
Add to your MCP config (claude_desktop_config.json or equivalent):
{
"mcpServers": {
"nucleus": {
"command": "python3",
"args": ["-m", "nucleus_mcp"],
"env": {
"NUCLEAR_BRAIN_PATH": "/path/to/your/project/.brain"
}
}
}
}
Claude Code
Add to .mcp.json in your project root:
{
"mcpServers": {
"nucleus": {
"command": "python3",
"args": ["-m", "nucleus_mcp"],
"env": {
"NUCLEAR_BRAIN_PATH": ".brain"
}
}
}
}
Path Discovery
Nucleus finds your .brain automatically:
NUCLEAR_BRAIN_PATHenvironment variable (explicit)- Walk up from CWD looking for
.brain/directory - Fall back to
$HOME/.nucleus/brain
CLI
Nucleus has a full CLI alongside the MCP tools. Auto-detects TTY (table output) vs pipe (JSON).
# Memory
nucleus engram write my_key "insight here" --context Decision --intensity 7
nucleus engram search "compliance"
nucleus engram query --context Strategy --limit 10
# Tasks
nucleus task list --status READY
nucleus task add "Ship the feature" --priority 1
# Sessions
nucleus session save "Working on auth refactor"
nucleus session resume
# Health
nucleus status --health
nucleus sovereign
# Compliance
nucleus comply --jurisdiction eu-dora
nucleus audit-report --format html -o report.html
# Chat (multi-provider: Gemini, Anthropic, Groq)
nucleus chat
Pipe-friendly:
nucleus engram search "test" | jq '.key'
nucleus task list --format tsv | cut -f1,3
Compliance
One-command configuration for regulatory frameworks:
nucleus comply --jurisdiction eu-dora # EU DORA
nucleus comply --jurisdiction sg-mas-trm # Singapore MAS TRM
nucleus comply --jurisdiction us-soc2 # US SOC2
| Jurisdiction | Retention | HITL Ops | Kill Switch |
|---|---|---|---|
eu-dora |
7 years | 5 types | Required |
sg-mas-trm |
5 years | 5 types | Required |
us-soc2 |
1 year | 3 types | Optional |
global-default |
90 days | 2 types | Optional |
Telemetry
Nucleus collects anonymous, aggregate usage statistics (command name, duration, error type, versions, OS). No engram content, no file paths, no prompts, no API keys, no PII — ever.
nucleus config --no-telemetry
# or: NUCLEUS_ANON_TELEMETRY=false
See TELEMETRY.md for details.
Contributing
- Bug? Open an Issue
- Feature idea? Start a Discussion
- Code? See CONTRIBUTING.md
- Chat? Discord
License
MIT © 2026 | hello@nucleusos.dev
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file nucleus_mcp-1.7.0.tar.gz.
File metadata
- Download URL: nucleus_mcp-1.7.0.tar.gz
- Upload date:
- Size: 14.6 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
723369fcf7ffafe2b7d2f46276c01601bc88d2ca620ec3f084900809402ebe29
|
|
| MD5 |
d1dcd3a2ecdee470b19d3c39a680620c
|
|
| BLAKE2b-256 |
3b2ec9ccc345bf0afbb80bc81d14f1b8ec10b8ea620445f99097884b0694c8ef
|
File details
Details for the file nucleus_mcp-1.7.0-py3-none-any.whl.
File metadata
- Download URL: nucleus_mcp-1.7.0-py3-none-any.whl
- Upload date:
- Size: 790.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b209d1597e4796204c4f5aa1ff5a1772806477fbca8cea04e176d72f3cee890f
|
|
| MD5 |
794da7399044364ea616ce92e4da237d
|
|
| BLAKE2b-256 |
10baf38db240f866ebc9f710986ed11e59d41449816860e4f8a8e0dd69cd4669
|