Are you the author? Sign in to claim
Local-first operating memory for AI coding agents - Claude Code, Codex, and any MCP client. Tracks decisions and their e
Local operating memory that lets AI agents read the board, cite the evidence, and stay inside explicit boundaries.
MAMA OS connects chats, docs, decisions, and work logs into a local memory substrate. Agents can use it to search raw evidence, follow relationships, inspect timelines, and produce better briefings instead of guessing from a short prompt.
This release ships the foundation: raw search/window APIs, graph/entity/timeline APIs, situation
packets, trusted provenance, model/tool traces, strict search diagnostics, runtime envelopes, and
Context Compile V0. context_compile turns those pieces into one selected/rejected/missing
evidence packet for a task, and mama_save can attach that packet through trusted
context_packet_id provenance.
The living center of MAMA OS is the trigger loop: an agent that authors its own triggers from recurring situations in your channels, fires them on future messages to recall the right memory, and folds everything into owner situation reports. The loop evolves itself — a review pass retires noisy triggers, and delivered reports that cite a fired trigger feed a success signal back into that trigger's stats.
What runs continuously today:
/ui — a React viewer with four agent-published slots (briefing, action
required, decisions, pipeline) rendered live over SSE, a Triggers tab showing the loop's own
library, and a native Tasks surface backed by the task ledger. Tasks display workflow status and
temporal state separately, so an overdue item is never silently treated as blocked or complete.daily/YYYY-MM-DD.md) plus lesson pages
(lessons/clients|process|system) that strengthen with evidence and get superseded, never
deleted.MAMA is being built toward a local memory twin that agents can inspect, cite, and act on inside explicit permission boundaries.
Ask:
"Is Project A at risk right now?"
A search tool finds messages containing "Project A." A MAMA-backed agent reads the board:
A mature MAMA-backed agent should be able to report:
That is the product direction: not another search box, but the substrate for an extra analyst-operator that can read the company record, separate evidence from inference, forecast the next risk, and only act inside the scope it was given.
Agents are useful when they can simulate. AlphaGo read the board before choosing the next move. Work agents need the same thing: enough context to reconstruct what happened, infer what may matter, and compare possible next actions.
Most agents never see that board. They see a prompt, a few files, or one search result. MAMA's job is to make the board visible.
MAMA OS is moving toward a company memory twin: an append-only substrate of raw records, memories, entities, cases, reports, edges, and provenance that strong agents can inspect, simulate, and cite.
That North Star has three parts:
This release is the runtime foundation for that direction. It ships envelope, provenance,
worker-context, strict-search, and Context Compile building blocks, including append-only
context packets and downstream context_packet_id save provenance.
MAMA OS is a local daemon that connects to your apps, reads continuously, and turns scattered records into scoped, auditable operating memory for agents and humans.
The operator board at /ui is the primary live surface: four agent-published report slots
(briefing, action required, decisions, pipeline) updating over SSE, plus the trigger library. The
legacy viewer at /viewer remains available with Dashboard, Memory, Feed, Wiki, Agents,
Logs, and Settings tabs and a global chat shell.
Current building blocks and direction:
Without MAMA: The agent sees fragments. You still reconstruct the board.
With MAMA: The agent gets bounded evidence surfaces. You get the
raw material for cited briefings and safer next actions.
This is the direction for local AI agents: read connected evidence continuously, then explain which sources they used, what may still be missing, and which permission boundary they were inside.
MAMA OS executes AI agents as official CLI subprocesses — spawning claude or codex the same way you would in your terminal.
MAMA OS daemon
└─ spawns: claude … / codex … (your official agent CLI)
└─ Claude Code or Codex CLI (your existing OAuth session)
└─ Provider API (standard authenticated request)
This is the provider-sanctioned execution method. No API keys to manage, no token extraction, no header spoofing. Your existing CLI authentication is reused directly.
Why this matters: Some third-party agent frameworks reach these providers via unofficial methods — extracting OAuth tokens, spoofing API headers, or bypassing rate limits. Those approaches violate provider Terms of Service (e.g. Anthropic's or OpenAI's) and risk account suspension. MAMA OS doesn't do any of that. If claude or codex works in your terminal, MAMA OS works.
# Already have Claude Code or Codex?
claude auth status # or: codex login — if authenticated, you're ready
mama start # MAMA reuses your existing CLI authentication
MAMA doesn't just store facts. It tracks how knowledge evolves:
"Use JWT" (decision, confidence: 0.8)
│
├── superseded by → "Use JWT with refresh tokens"
│ reason: "Users complained about frequent logouts"
│
├── builds_on → "Add token rotation for security"
│
└── debates → "Consider session-based auth for web app"
reason: "Simpler for server-rendered pages"
Edge types: supersedes (replaced), builds_on (extended), debates (alternative view), synthesizes (unified from multiple).
MAMA answers "why did we switch?" — not just "what do we use?"
Connectors (15) Gateways (4)
Slack, Gmail, Sheets... Discord, Slack, Telegram, Chatwork
| |
v v
3-Pass Extraction Reactive Runtime Envelopes
(Truth -> Hub -> Spoke) scope, expiry, signature, audit
| |
+------------+---------------+
|
MAMA Core (mama-memory.db)
SQLite + 1024-dim embeddings
memory, raw refs, model runs,
tool traces, twin edges,
worker packets, context packets
|
+------+------+
| |
Viewer UI Claude Code Plugin / MCP
Local-first. All data stays on your device. No cloud. AI provider independent — works with Claude, Codex, or any future backend.
MAMA OS has full system access via the backend CLI — so security is foundational, not optional.
allowed_chats allowlist (text-only open mode warns loudly at boot); the owner_console role is
granted only in an allowlisted chat's 1:1 DM. That verified owner may compose Drive operations
against the folder selected in the active request. Non-owner Drive operations remain limited to
role-permitted tools and configured connector/envelope scope; they cannot select arbitrary roots.
Supplied destination capabilities remain validated, and uploads can read only private MAMA
workspace files. Memory writes refuse secret-shaped content, and Telegram forwarded messages,
forwarded-image analysis, and Drive-derived Code-Act output are wrapped as untrusted at their
model boundaries.See the full Security Guide for Cloudflare Zero Trust setup, token authentication, threat scenarios, and Code-Act sandbox isolation.
Benchmark context: LongMemEval has 500 questions across 6 types, with ~115K tokens of conversation history per question. The current MAMA result is a 100-question tool-use sample.
| System | Score | Model | Notes |
|---|---|---|---|
| Mastra | 94.87% | GPT-5-mini | |
| MAMA OS | 93.0% | Sonnet 4.6 | Tool-use answer, 100Q sample |
| SuperMemory | 81.6% | GPT-4o | |
| Zep | 71.2% | GPT-4o |
On that sampled run, MAMA lands above SuperMemory while running entirely locally with open-source components.
| Package | Version | Description |
|---|---|---|
| @jungjaehoon/mama-os | 0.28.4 | Always-on runtime, envelopes, connectors, worker APIs |
| @jungjaehoon/mama-server | 1.14.0 | MCP server for Claude Desktop/Code and any MCP client |
| @jungjaehoon/mama-core | 1.9.0 | Core memory, provenance, raw refs, graph, embeddings |
| mama plugin | 1.10.0 | Claude Code plugin (marketplace) |
| memorybench | 1.0.0 | Memory retrieval benchmarking framework |
/plugin install mama
# Decisions are saved automatically via hooks
# Search manually when needed:
/mama:search "authentication strategy"
claude auth login # or: codex login
npx @jungjaehoon/mama-os init
mama start # starts daemon at localhost:3847
Operator board at http://localhost:3847/ui (agent-published report slots + trigger library);
legacy viewer at http://localhost:3847/viewer with Dashboard, Memory, Feed, Wiki,
Agents, Logs, and Settings tabs. Connects to Discord, Slack, Telegram.
Requires: Claude Code CLI or Codex CLI installed and authenticated. Node.js >= 22.13.0.
{
"mcpServers": {
"mama": {
"command": "npx",
"args": ["@jungjaehoon/mama-server"]
}
}
}
context_packet_id provenanceAnyone who installs MAMA OS and connects their apps gets:
context_compile selects, rejects, and explains evidence
for a specific task before a worker saves memory or composes a reportmama_search remains the broad candidate retriever. context_compile is now the task-shaped layer
that selects, rejects, and explains evidence before a worker writes memory or composes a report.
| Phase | Version | Focus |
|---|---|---|
| Done | v0.15 | Search quality overhaul, FTS5, evolution engine (58% -> 88%) |
| Done | v0.16 | event_date API, tool-use answer, memory agent v5 (88% -> 93%) |
| Done | v0.17 | Connector framework (15 connectors), truth-first 3-pass extraction |
| Done | v0.18 | Output layer: knowledge agents, viewer redesign, security hardening |
| Done | v0.19 | Agent-management foundation: viewer-aware frontdoor, validation UI, activity telemetry, conductor isolation |
| Done | v0.20.1 | M1-M6 runtime foundation plus Context Compile V0: envelopes, model/tool trace ledger, raw/situation/graph worker APIs, strict search diagnostics, append-only context_packets, context_compile, and downstream context_packet_id provenance |
| Done | v0.21 | The operator runtime: self-evolving trigger loop with a citation success circuit, /ui operator board (four live report slots + trigger library), task-truth from the real task ledger, wiki v5 daily journal + lessons, scheduled memory promotion, self-auditing with alert dedup |
| Done | v0.23 | The owner console + workorder ownership: trust-conditional owner_console role, artifact-hub tools, secret-safe memory writes, and the Stage-2 durable workorder pipeline |
| Done | v0.24 | Codex app-server parity: durable multiplexed threads, native MAMA host tools (including connector/Trello surfaces), role-scoped Code-Act, strict managed runtime isolation, and automatic migration from the legacy codex-mcp backend |
| Now | v0.25 | Verified temporal owner-task reconciliation with source-bound evidence, authoritative receipts, mixed-version safety, and bounded shutdown handling |
| Later | Cross-language retrieval hardening, domain extraction templates, cross-worker packet analytics, and team-scoped context review workflows | |
| v1.0 | Team mode: shared scoped knowledge graph for organizations. General release |
git clone https://github.com/jungjaehoon-lifegamez/MAMA.git
cd MAMA && pnpm install && pnpm build
pnpm test # 3000+ tests across all packages
See CLAUDE.md for development guidelines.
Last updated: 2026-07-21
MIT
Run Claude Code as an MCP server so any agent can delegate coding tasks to it
Browser automation using accessibility snapshots instead of screenshots
Google's universal MCP server supporting PostgreSQL, MySQL, MongoDB, Redis, and 10+ databases
Official GitHub integration for repos, issues, PRs, and CI/CD workflows