Persistent, local-first memory for AI agents and the projects they work on.
Visit the live site ยท Docs ยท Comparison ยท Agent reference
npx musememory connect # detect your coding agents and wire the memory server into each
npx musememory doctor # confirm the store, schemas and agent wiring are healthyThat is the whole setup. No account, no API key, no config file, no background
daemon โ the store is two plain directories (.memory/ in your project,
~/.memory/ globally) that you can read, diff and commit.
Then, in any session with a connected agent:
memory context --query "how does auth work" --budget 2000What you get: a memory that survives the session, is checked against your real code before it is stored, and is withheld at recall if the code it cites has since changed.
| Install | npx musememory connect |
| Requires | Node.js โฅ 18 or Bun โฅ 1.2 โ nothing else |
| Storage | .memory/ (project) + ~/.memory/ (global) |
| Data leaves your machine | Never |
| Cost | Free, MIT, no telemetry |
Five defects found by a cross-file invariant audit, and a guarantee that the numbers on this page are the numbers the code produces.
- Prompt-injection channel closed:
CURRENT.mdwas written with the raw, un-stripped constraint text while the stored memory was sanitised. BecauseCURRENT.mdis replayed into every later prompt, one captured constraint could reach every future session. Sanitisation now happens at the sink. - Bi-temporal queries answered from the wrong snapshot: the context cache
key omitted
as_of, so "what did we believe in Q1?" could return today's answer from a 30-second-old cache entry. - Access counter never accumulated: every read reset it to its baseline, which silently disarmed the access-frequency ranking axis.
- Store could fail its own schema validator: entries that failed embedding were permanently reported as corrupt.
- Tier token budget was declared but never enforced: 327 tokens against a 200-token budget.
- Every published number is now generated from the source and checked by a test, so the site can no longer advertise a figure the code does not produce.
Closed-loop failure attribution, trajectory fix-pair mining, HOT.md compounding, and LangMem logarithmic frequency ranking.
- Scoped failure attribution matching code anchors with decaying strike counters (#313)
- Trajectory fix-pair mining discovering negative lessons from agent error sequences (#144)
- Active working set compounding and candidate scoring directly from HOT.md (#314)
- Multi-channel knowledge distillation router across system, content, and health (#324)
- Pre-mutation 30-snapshot rolling ring buffer for zero-daemon recovery (#177)
- In-lock mutation safety guards preventing bulk deletion and semantic erosion (#50)
- Strict CodeAnchor field alignment and dispute tracking type safety (#325)
- LangMem logarithmic frequency rank curve with 2x application weighting (#315)
- Diff-preserving CURRENT.md checkpoint merge semantics for agent handoffs (#324)
- Constitutional immunity defending non-negotiable rules against strike decay (#313)
For earlier releases, see the Changelog or GitHub Releases.
- Start here (60 seconds)
- What's new
- What Muse Memory does
- How it works
- Key capabilities
- Where your memory lives
- ๐ Documentation map
- ๐ Complete lifecycle
- ๐ Upgrading & self-healing
- ๐ฅ Team & multi-member setup
- ๐๏ธ System capabilities & architecture
- ๐ Cognitive Studio dashboard
- ๐ CLI & MCP reference
- ๐ง Shipped agent skills
- ๐ค 5 role archetypes
- ๐งช Testing & verification
- ๐ฎ Roadmap
- ๐ License
AI agents lose project context when a session ends. Muse Memory keeps that context on your machine, where your tools can retrieve it during the next task.
Store working constraints, decisions, handoffs, and verified facts in one local memory layer. SQLite handles retrieval, while readable Markdown and YAML files keep the important context inspectable in Git.
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ AI Agents, Subagent Pods & Autonomous Swarms โ
โ (Claude Code, Cursor, Antigravity, Windsurf, Codex, CLI) โ
โโโโโโโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโ
โ MCP stdio / Terminal CLI โ Local HTTP
โโโโโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโ
โ Muse Memory Core Engine โ
โ โ
โ โโโโโโโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ โ Unified Context & โ โ 5-Pillar Health Gate โ โ Autonomous Cognition โ โ
โ โ Knapsack Retrieval โ โ & ADR Drift Sentry โ โ & "Why" Reasoner โ โ
โ โโโโโโโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ โโโโโโโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ โ P2P Gossip Sync โ โ Monorepo Workspace โ โ Web Observability โ โ
โ โ (Vector Clock Mesh) โ โ Cross-Project Mesh โ โ Studio (memory studio)โ โ
โ โโโโโโโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ โโโโโโโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ โ Vibeguard Credential โ โ Dynamic Code Anchors โ โ Universal Migrator โ โ
โ โ Secret Defense โ โ & Structural Hashes โ โ (30 Engines) โ โ
โ โโโโโโโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโโโโโโ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Atomic SQLite & File I/O
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Dual-Scope Storage Engine (.memory/) โ
โ โ
โ .memory/ โ
โ โโโ memory.db # Primary SQLite database (WAL + FTS5 BM25) โ
โ โโโ CURRENT.md # Real-time working constraints & session handoffs โ
โ โโโ USER.md # Persona archetypes & working style preferences โ
โ โโโ sync_pool/ # Zero-daemon shared P2P gossip pool drop folder โ
โ โโโ mesh_links.json # Explicit multi-repo cross-project mesh links โ
โ โโโ sync_peers.json # Peer agent vector clock causal tracking ledger โ
โ โโโ audit.jsonl # Append-only operational audit & compliance trail โ
โ โโโ memories/ # Dual-persisted human-readable YAML mirror โ
โ โโโ m_1700000001000_auth.yaml โ
โ โโโ m_1700000002000_mesh.yaml โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Three steps, on a loop:
- Remember it โ when your assistant makes a decision or fixes a bug, Muse saves a short note about what changed and why.
- Check it โ before the note is stored, Muse confirms the file or function it mentions actually exists. Citations are structural fingerprints, not line numbers, so a refactor does not silently break the note.
- Hand it back โ next time you start work, Muse returns the notes that fit the task, sized to your token budget, not the whole archive.
If a saved fact no longer matches your code, Muse leaves it out and says so, rather than serving it as if it were still true.
- ๐ค Persona & Style Grounding (
USER.md): Configures your role (developer,designer,marketer,casual,custom) and communication preferences so AI models write code that matches your style. - ๐ Real-Time Active Constraints (
CURRENT.md): Bi-temporal working constraints and invariant tracking synchronized on every mutation to eliminate amnesia during task handoffs. - ๐พ SQLite Primary + Dual-Persisted YAML Mirror: Sub-millisecond queries via SQLite with transparent human-readable
.yamlfiles in.memory/memories/for seamless Git diffs. - โ๏ธ Token Knapsack Retrieval: Multi-factor scoring (applicability, verification bonus, AST graph overlap, time decay, due date urgency) tightly packed under prompt token ceilings.
- ๐งญ Optional Local Semantic Recall (
memory embed): Pointretrieval.embedderUrlat any OpenAI-compatible/v1/embeddingsendpoint (llama.cpp server, Ollama, or hosted) to add a semantic cosine dimension to ranking. Embeddings are cached as float32 blobs inside SQLite, so nothing changes and no network call happens until you configure an endpoint. - ๐ Pluggable AST CodeGraph & Symbol Indexing: Native CodeGraph & Graphify integration that indexes codebase AST symbols, auto-tags memories, and awards graph overlap bonuses.
- ๐ณ Hierarchical Tree Retrieval & Progressive Disclosure: Sharded tree partitions with 3-tier progressive disclosure (
L1abstracts,L2summaries,L3full context) for massive knowledge bases. - ๐ Obsidian Markdown Wiki & Entity Graph Compiler: Dual-persistence knowledge compounding compiling linked Markdown pages (
wiki/concepts/,wiki/entities/) with bidirectional[[wikilinks]]. - ๐ก๏ธ Vibeguard Zero-Leakage Secret Scanner: Regex-powered memory defense intercepting and rejecting API keys, AWS credentials, private keys, database URIs, and passwords before writes.
- ๐ Zero-Permission Auto-Wiring (the majority of coding agents): Automatically detects and wires Claude Code, Cursor, Antigravity, Windsurf, OpenCode, Codex, Gemini CLI, Hermes, and the rest of the tools developers actually use.
- ๐ Universal Memory Migrator (30 Engines): One-click migration from Letta, Mem0, Supermemory, Cognee, Beads, Mnemosyne, GBrain, and more with state preservation.
- ๐จ Cognitive Studio Visual Dashboard (
memory ui): Embedded zero-dependency web interface featuring 3D force-directed knowledge graphs, liveCURRENT.mdmonitor, wiki reader, and persona editor. - โฐ Proactive Nudges & Routines Scheduler: Cron-invoked daily briefings, staleness policy tracking, and ambient open-loop trackers with zero resident background daemons.
Everything Muse knows is a folder you can open, read, diff, back up, or commit.
.memory/ # project scope โ travels with your repo
โโโ memory.db # SQLite: memories, anchors, graph edges, audit
โโโ memories/ # one YAML file per memory โ plain text, reviewable
โโโ CURRENT.md # active constraints, injected every session
โโโ USER.md # your persona and working preferences
โโโ observations.jsonl # append-only event log the harvester mines
โโโ audit.jsonl # tamper-evident write log
โโโ sync_pool/ # zero-daemon shared gossip pool
~/.memory/ # global scope โ preferences that follow you
There is no server, no port, and no service to keep alive. Delete the folder to delete the memory.
Tip
Set up the memory store and connect your local AI agents with one command:
npx musememory install
# (or with Bun: bunx musememory install)This command automatically:
- Initializes the SQLite primary database (
.memory/memory.db) andCURRENT.mdconstraints file. - Auto-detects all installed AI coding agents on your machine.
- Auto-wires the memory MCP server into installed agents with zero-permission auto-approval.
- Scans for existing memory stores (Letta, Mem0, Beads, Supermemory, etc.) for instant migration.
Verify anytime: npx musememory doctor
Explore Studio UI: npx musememory ui (Opens cognitive studio on port 2222)
# Option A: Global Install with NPM or Bun (Recommended)
npm install -g musememory
# or with Bun:
bun add -g musememory
# Option B: One-Line Shell Installer
curl -fsSL https://raw.githubusercontent.com/harshsinghmp/musememory/main/scripts/install.sh | bash
# Option C: Docker Container
git clone https://github.com/harshsinghmp/musememory.git && cd musememory
docker build -t musememory .Two layers, on purpose. Human docs are narrative and explain why. Agent docs are contracts: exact commands, exact tool names, exact failure behaviour, with nothing to interpret. An agent should never have to read a prose paragraph to learn a flag name.
| Document | What it gives you |
|---|---|
| Agent reference | The contract: install, file layout, mandatory session protocol, trust gates, failure semantics. |
| CLI & MCP reference | Every command and every MCP tool, generated from the source. |
mcp-tool-matrix.json |
The tool list as JSON, for programmatic consumption. |
claims.json |
Every countable claim, generated from src/ โ tool, platform and test counts. |
llms.txt |
The website, for agents. llms-full.txt is the whole site as plain text. |
| Guide | Intent & Framework | Target Audience |
|---|---|---|
| ๐ง Core Concepts & Architecture | ACCA Framework: Explains the guarded 7-state lifecycle machine, dual-scope engine, knapsack scoring, and zero-daemon architecture. | Tech Leads, Architects, Evaluators |
| ๐ก๏ธ Failure Attribution & Negative Mining | QUEST Framework: Scoped attribution, decaying strikes, trajectory fix-pair mining, HOT.md compounding, and logarithmic frequency ranking. | AI Engineers, Systems Architects |
| ๐ ๏ธ Developer Daily User Guide | QUEST Framework: The 3-phase daily pair-programming loop (/muse-ground โ CURRENT.md โ /muse-capture). |
Solo Developers, Daily AI Coders |
| โก Retrieval Performance & Guardrails | QUEST Framework: WeakMap token sets, memoized runtime anchors, dirty-gating, limit clamping, and dry-run safety. | Platform Engineers, AI Architects |
| ๐๏ธ Living Architecture & Drift Auditing | ACCA Framework: Binding ADRs to line-independent code anchors, write-time base_path normalization, and pure read-path drift sentry. |
System Architects, Tech Leads |
| โก Real-Time Daemon & Observability | QUEST Framework: Real-time SSE event hub (memory daemon), CI upgrade gates (--check, --strict), and PageIndex depth parameters. |
Swarm Engineers, DevOps, Builders |
| ๐ฅ Team Quickstart & Deployment Guide | Single-host server deployment, systemd/Docker setups, and per-editor client recipes (Cursor, Opencode, Claude Code, Antigravity, Windsurf). | Engineering Managers, Team Leads |
| ๐๏ธ Team Slice Wiring & Architecture | Technical deep-dive into in-process SQLite WAL vs corrupted network mounts. | Infrastructure Engineers, Systems Architects |
| ๐ Capability Comparison | 14-capability comparison of local-first memory against vector stores, graph platforms and session search. | Decision Makers, Evaluators |
Keep Muse Memory and all your connected AI coding agents at peak cognitive performance with automated updates and self-healing environment repairs.
Run memory upgrade (or npx musememory upgrade) to trigger the Gamified Level-Up Matrix:
memory upgrade
# or with NPX zero-install:
npx musememory upgrade- Package Manager Auto-Detection: Detects whether your workstation runs
bun,npm,pnpm, oryarnand pulls the latest published binary. - Self-Healing Storage Repair: Recovers missing
.memory/,CURRENT.mdconstraints, orUSER.mdpersona files if corrupted or deleted. - Coding Agent Re-Discovery: Scans for newly installed coding agents (Cursor, Claude Code, Windsurf, OpenCode, Codex, Gemini CLI, Hermes, and the rest of the mainstream field) and auto-wires them with zero permissions.
- AST Symbol Graph Re-Indexing: Re-synchronizes CodeGraph/Graphify symbol caches under
.memory/graph-symbols.json.
| Toolchain / Runtime | Upgrade Command | Verification |
|---|---|---|
| Bun (Ultra-Fast) | bun add -g musememory@latest |
memory doctor |
| NPM (Standard Node) | npm install -g musememory@latest |
memory doctor |
| PNPM | pnpm add -g musememory@latest |
memory doctor |
| Yarn | yarn global add musememory@latest |
memory doctor |
| NPX (Zero-Install) | npx musememory@latest upgrade |
npx musememory doctor |
# Check if updates are available without applying (exits 0 if up to date, 1 if registry fails)
memory upgrade --check
# Enforce up-to-date installation in CI pipelines (exits 1 if update is available)
memory upgrade --check --strict
# Preview upgrade actions in dry-run mode
memory upgrade --dry-run
# Force re-installation and complete platform re-wiring
memory upgrade --forceEvery command works with zero installation via npx musememory <cmd> (or bunx musememory <cmd>). Use plain memory <cmd> if installed globally.
# Full setup: init .memory/, detect agents, wire MCP, scan for migratable stores
npx musememory install
# Initialize workspace only (no agent wiring)
npx musememory init# Comprehensive ecosystem diagnostic (storage, schemas, secrets, MCP wiring)
npx musememory doctor
# Memory store breakdown and active briefing
npx musememory stats
npx musememory briefing# Scan workstation for installed AI coding agents
npx musememory agents
# Auto-wire all detected agents with zero permissions
npx musememory connect all
# Wire one specific agent explicitly
npx musememory connect claude-code
npx musememory connect cursor
npx musememory connect antigravity
npx musememory connect windsurf
npx musememory connect opencode
# Claude Code lives under ~/.claude*, so it needs an explicit harness opt-in.
# Without this flag the Claude config is reported as skipped and nothing is written.
npx musememory connect claude-code --harness claude๐๏ธ Complete Uninstallation & System Removal Steps โ Click to expand
Muse Memory can be cleanly and completely removed with zero trace left on your machine.
Remove the memory MCP server configuration from every detected agent config file (cursor, claude-code, antigravity, windsurf, opencode, codex, etc.):
# Preview changes before modifying any configuration
npx musememory uninstall --dry-run
# Unwire all detected AI coding agents automatically
npx musememory uninstall
# Or unwire a single specific agent
npx musememory uninstall cursorBy default, uninstall preserves your project .memory/ data. To completely delete all memory files and databases:
# Unwire agents AND purge local project .memory/ directory
npx musememory uninstall --purge
# Remove global user profile and global memory store (~/.memory/)
npx musememory uninstall --global --purge
# Manual cleanup (equivalent):
rm -rf .memory/ # Local project store
rm -rf ~/.memory/ # Global user profile & storeIf you installed musememory globally via a package manager:
# If installed via npm:
npm uninstall -g musememory
# If installed via bun:
bun remove -g musememory
# If installed via yarn / pnpm:
pnpm remove -g musememory
yarn global remove musememoryIf you installed the pre-commit transcript harvester hook or injected agent prompt directives:
- Git Hook: Delete
.git/hooks/pre-commit(or restore your previous hook). - AGENTS.md: Remove the
<!-- musememory:start --> ... <!-- musememory:end -->block from your project'sAGENTS.mdfile.
Deploy a shared persistent cognitive memory layer across your entire engineering team. All team members' coding agents (Cursor, Opencode, Claude Code, Antigravity, Windsurf) connect to a single host server running in-process SQLite over MCP Streamable HTTP (2025-06-18) with Bearer token authentication.
Central Team Server (`team.db` + `CURRENT.md`)
โฒ
โ MCP Streamable HTTP (Bearer Auth)
โโโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโดโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโ
Cursor Opencode Antigravity Claude Code
Run on your team's internal VM, build server, or workstation:
# Start server with individual or shared Bearer auth tokens
musememory serve --port 31338 --host 0.0.0.0 --tokens alice:tok_alice_123,bob:tok_bob_456Generate ready-to-paste configurations tailored to each engineer's specific editor:
# Interactive editor selector
musememory connect
# Or output directly into console:
musememory connect --recipe --endpoint http://192.168.1.50:31338/mcp --token tok_alice_123For full server setup (systemd service, Docker, reverse proxy), editor-specific client JSON configs, team memory scoping rules (team.db vs personal tenant_<id>.db), and prompt injection defenses, see:
- ๐ Team Quickstart & Deployment Guide โ Step-by-step setup for Team Leads and Engineers.
- ๐ Team Slice Wiring & Architecture Spec โ Technical deep dive into in-process SQLite vs networked mounts.
- Local Workspace (
<project>/.memory/): Repository-specific architectural decisions, bug fixes, activeCURRENT.mdconstraints, and session timeline nodes. - Global System (
~/.memory/via--global/-g): Universal developer preferences, cross-repo coding conventions, and global prompt patterns.
All memory entries transition through a guarded state machine:
[propose] โโโบ candidate โโโบ confirm() โโโบ confirmed โโโบ supersede() โโโบ superseded
โ โ
โโโโบ markStale() โโโโโโโโโโโโค
โ โ โ
โ โผ โผ
โโโโบ stale rejected
โ
โโโโบ delete() โโโบ [Purged from Disk + audit.jsonl logged]
Every mutation (propose, confirm, supersede, mark_stale, reject, delete, link) writes an immutable log record to .memory/audit.jsonl.
Retrieval dynamically ranks knowledge using a calibrated multi-factor formula:
--token-budget to guarantee zero prompt overflow.
When a local embedder is configured (retrieval.embedderUrl), a semantic cosine dimension (0.5 ร cosine similarity) joins the ranking, so paraphrases match even without shared trigrams. Leave the embedder unset and ranking is identical to the lexical behaviour above โ no network calls, no new dependency.
- Active constraint memories automatically mirror into
CURRENT.md. - In-flight task states, agent checkpoints, and active loops persist across terminal restarts, context compactions, and sudden interruptions.
- Obsidian Wiki Compiler (
memory wiki): Compiles confirmed memory clusters into linked Markdown pages (wiki/concepts/,wiki/entities/) with bidirectional[[slug]]wikilinks. - Named Entity Extraction (
memory entities): Automatically extracts persons, products, organizations, tools, and code symbols with co-occurrence edge weights. - PageIndex Reasoning Engine (
memory pageindex): Indexes unstructured documents into hierarchical reasoning trees.
Auto-detects and ingests existing memory stores across 29 external engines:
# Auto-detect all external memory stores on your machine
memory detect
# Ingest and preserve state mappings
memory migrate --provider letta
memory migrate --provider mem0
memory migrate --provider beads
memory migrate --allSee the live capability comparison for the published page, and
docs/research/musememory-comparison.htmlfor the research survey dossier (68 systems).
Muse Memory includes an embedded, zero-dependency visual graph studio and observability dashboard:
memory studio
# or alias:
memory ui --port 2222Navigate to http://localhost:2222 to access:
- ๐ 3D Force-Directed Knowledge Graph: Orbital canvas physics, degree-scaled node radii, and link relationship viewer.
- ๐ฅ 5-Pillar Project Health Gate: Live architectural scorecard (Store Integrity, Native Anchors, Doc-Code Alignment, Anti-Pattern Sentry, Technical Debt) with A-F grading and PASS/WARN/FAIL status.
- ๐๏ธ ADR Registry & Drift Inspector: First-class Architecture Decision Records and bi-directional code โ documentation drift auditor.
- ๐ค Autonomous "Why" Reasoner: Traces historical evolution of symbols/files backwards through past bug fixes and trade-offs to explain architectural rationale before refactoring.
- ๐ค P2P Gossip Mesh Topology: Real-time peer vector clocks, local agent identity, and one-click broadcast/shared pool sync.
- ๐ธ๏ธ Monorepo & Cross-Project Mesh: Workspace monorepo topology (pnpm, npm, bun, lerna), discovered package nodes, cross-project memory query, and contract drift audit.
- โก Active Invariants & Real-Time Handoff: Live
CURRENT.mdmonitor tracking in-flight session status and agent checkpoints. - ๐ Obsidian Wiki Browser: Concept and entity page reader with full Markdown rendering.
- ๐ค Persona Studio (
USER.md): 5 archetype picker (developer,designer,marketer,casual,custom) and live editor. - ๐ Knapsack Retrieval Sandbox: Interactive token budget simulator (500โ6,000 tokens) with live prompt context generation.
- ๐ Compliance Audit Ledger: Live tabular feed of state transitions and audit logs.
๐ CLI & MCP reference (generated from source) โ Click to expand
The complete command and tool surface is generated from src/, not
transcribed by hand, so it cannot drift:
| Document | Contents |
|---|---|
docs/cli-reference.md |
Every CLI command with its flags, and every MCP tool with its required parameters โ grouped by purpose. |
docs/mcp-tool-matrix.json |
The MCP tool list as JSON, for programmatic consumption. |
docs/agent-reference.md |
The contract an agent must follow: session protocol, trust gates, failure semantics. |
claims.json |
Every countable claim, generated from src/. |
memory context [query] --token-budget N # top-ranked context for prompt injection
memory search <query> --limit N # ranked search with a score breakdown
memory capture "<text>" --project P # persist a memory (secret-scanned, citation-verified)
memory propose "<text>" --project P # propose a candidate without confirming it
memory confirm <id> # promote a candidate to confirmed
memory supersede <old_id> --with <new_id> # replace outdated knowledge, keep lineage
memory current get | set "<text>" # read/write active constraints
memory link <id> --related <id1,id2> # bidirectional relation between entries
memory audit [--operation OP] # query the append-only audit ledger
memory doctor # full ecosystem health diagnostic
memory health # 5-pillar health gate with a letter grade
memory verify <id> --strict # run an entry's verification command
memory harvest "<text>" --project P # distil a turn into a fix/decision unit
memory wiki compile # compile memories into an Obsidian wiki
memory benchmark # measured speed, quality and token-economy report| Tool | When |
|---|---|
get_context |
First turn of any session. Persona, constraints, top-K memories. |
muse_context |
Task-shaped fused context (constraints + memories + negative lessons + anchors). |
memory_capture |
Right after a fix, a decision, or a new constraint. |
memory_supersede |
When knowledge is replaced โ never delete. |
search / memory_tree_search |
Investigating what is already known. |
muse_why |
Before a refactor: why is the code like this? |
muse_code_impact |
Before touching a file: what depends on it? |
memory_audit |
When you need to know who changed what, and when. |
muse_profile_list |
Which tools are exposed in the current profile. |
Tools are exposed through 7 task-focused profiles (core, coding,
debugging, review, architecture, maintenance, full) so an agent is
never handed the whole surface. Select one with MUSE_MCP_PROFILE.
๐ง Shipped agent skills (.agents/skills/) โ Click to expand
Muse Memory ships with 11 turnkey Agent Skills designed for coding agents (Claude Code, Cursor, Antigravity, OpenCode, Codex, Gemini CLI, etc.) under .agents/skills/:
| Skill | Trigger Phase | Core Agent Responsibility |
|---|---|---|
muse-ground |
Session Start | Retrieves Top-$K$ relevant memories, active USER.md persona profile, and CURRENT.md constraints before writing code. |
muse-capture |
During Fixes & Refactors | Captures atomic fix/architecture memories, validates evidence, runs Vibeguard secret scan, and supersedes obsolete knowledge. |
muse-current |
Invariants & Handoffs | Synchronizes hard constraints into .memory/CURRENT.md and persists structured handoffs across context resets. |
muse-health |
Hardening Gates & PRs | Evaluates 5-pillar architectural health (store, anchors, doc/code alignment, negative sentry, debt) and outputs remediation checklists. |
muse-drift |
System Architecture & ADRs | Audits documentation |
muse-why |
Refactoring & Historical Context | Reconstructs historical rationale, synthesizes past bug fixes and accepted trade-offs, and audits recurring bug friction clusters. |
muse-sync |
Multi-Agent & Swarm Gossip | Coordinates cross-agent knowledge sync with whole-packet SHA-256 integrity, vector clocks, and P2P gossip mesh pool. |
muse-mesh |
Monorepo & Multi-Repo Mesh | Discovers monorepo workspaces, resolves cross-package memories with badges, and propagates shared security constraints. |
muse-graph |
AST Code Investigation | Indexes .codegraph/.graphify symbols and queries symbol-matching decisions with +0.2 graph overlap bonus. |
muse-wiki |
Knowledge Compounding | Compiles confirmed memories into Obsidian-compatible Markdown pages ([[wikilinks]]) and entity co-occurrence graphs. |
muse-brief |
Daily Hygiene & Loops | Generates morning briefings, tracks 90/180-day staleness decay, and surfaces unresolved transcript commitments. |
๐ค 5 Zero-Fingerprint Role Archetypes (`USER.md`) โ Click to expand
Muse Memory maintains a persistent user profile (~/.memory/USER.md globally, or .memory/USER.md locally) to ground AI agents in your working style:
developer(Default): Code-first, direct, concise, runnable diffs, strict types, fail-fast mechanics.designer: Visual hierarchy, CSS/Tailwind systems, GSAP animations, WCAG accessibility, Figma/tokens design tokens.marketer: Conversion-rate optimization (CRO), punchy benefit-driven copy, SEO clustering, audience hooks.casual: Plain English, jargon-free explanations, step-by-step guidance.custom: Clean blank template ready for personalized instructions.
# View active profile
memory user get
# Initialize with a specific archetype
memory user init developer
memory user init designer --global
# Update user profile
memory user set "- Prefers TypeScript, Bun, and ultra terse responses"bun install
bun test # 1335 pass, 0 fail, 6123 assertions across 205 files
bun run typecheck # 0 static type errors
bun run build # Clean bundled distribution build (dist/index.js)See CONTRIBUTING.md for the branch/PR model, the per-commit gate, and the post-merge sequence.
Work moves through four phases โ requested โ planned โ in progress โ done โ
and ships as a pull request from dev to main.
| Phase | Status |
|---|---|
| ๐ Requested | 4 items in the backlog |
| ๐ Planned | 7 confirmed features scheduled |
| โก In progress | none โ sprint SOW-200 shipped |
| โ Done | shipped to production |
Full roadmap โ ยท Live issues & milestones ยท CHANGELOG
MIT License. Built for the AI Developer Ecosystem.