Knows in ~20 ms. Learns in ~500 ms.
The memory and decision layer for coding agents. Every answer is citable.
Install MM3 See it run View on GitHub
/plugin marketplace add mvp-scale/mm3
/plugin install mm3@mvp-scalenpm install -g @mvpscale/mm3
mm3 init --agentsPlugin: tools with a plugin store, like Claude Code. npm: everything else. Node 22.13+ · Apache-2.0
First run: your key and endpoint
Plugin
Pick project scope. Claude asks for a TypeSafe API key (masked, optional): press Enter on “TypeSafe API key”, paste, Enter, then “Save configuration”. Leave it empty to add one later with mm3 init.
npm
Needs Node 22.13 or newer. After npm install -g @mvpscale/mm3, run mm3 init.
Your own endpoint
Bring a TypeSafe API key. MM3 wraps TypeSafe’s API (Jev at api.typesafe.ai), and any TypeSafe endpoint works. Your key stays out of your project: Claude Code keeps it in its secure storage, mm3 init in your OS keychain (or a 0600 file). To switch endpoints, mm3 config shows the settings in effect and mm3 config --write creates .mm3/config.yaml (uncomment baseURL:) and mm3 config --load checks it and makes it the active config; or for one run only:
TYPESAFE_BASE_URL=https://api.example.com mm3 class review.yamlAdd --dry-run to any request to validate it and count its questions without a call. With no key set, MM3 falls back to a built-in sample provider; its answers are canned and labelled, never evidence.
Agents: run mm3 agent first. Humans: mm3 help.
- Answers with receiptsScore. Questions asked. An ID you can quote.Demo→
- Your code stays yoursNo account. No tracking. Only code you pick goes to your AI service.Architecture→
- FeatherweightUnder 2 MB. One dependency. One folder.Ledger→
- Bring your own AIAny AI tool. Any compatible AI service.Agents→
- No ceilingOne check today. A routine that runs itself tomorrow.Patterns→
01 How it works
How it works
Agents can ask a fast classifier a yes/no about your code, but each answer is untraceable and never reused. MM3 makes it one checklist in, one calibrated verdict out, and every answer kept. Six verbs, one ledger.
1 Ask six verbs, one ledger
MAK³ make use what is proven
- view~20 msfree lookup of the ledger
- class~500 msone subject, one verdict
- replay~500 msrecheck after a fix
MDL³ model learn what is missing
- scan~500 mssweep to find where to look
- drill~500 msdig into one weak spot
- loop~500 msvet a design before code
One ledger under all six. It learns.
2 Run one engine, one folder, one call out
MM3 runs on your machine and keeps everything in your project. Simple on purpose, built to grow.
request ↓ ↑ verdict
new questions ↓ ↑ answers
Your project · .mm3/
- Code + gitthe evidence, read-only
- log.jsonlthe ledger and source of truth, append-only
- index.dbhot cache that heals itself, sub-millisecond lookups, tested to 100k runs
- config.yamlbudget, endpoint and model, reuse rules, your own fields
One folder. One file of truth. One call out, only for what's new. No server, no MM3 account, no telemetry.
3 Remember the ledger compounds
The ledger is our favorite part. One append-only file. The runs you’d make anyway become a heat map at 10, a reference architecture at 20, a knowledge graph at 50.
log.jsonl · one line per run, append-only
- 10 runsA layered heat map of your architecture.
- 20 runsA reference architecture, with a heat map.
- 50 runsA knowledge graph of your whole system.
The mdl: block is open: keep the stock fields, add your own, free, and your agent paints any of it back from the log or the SQLite index. Same questions on unchanged code come back from the ledger: no call, no cost.
02 See it run
See it run
The challenge: you host n8n yourself and want it to run faster. You ask your agent where to start. It narrows the question to one place, the node loader’s cleanup in directory-loader.ts, and asks MM3 twelve questions about it in one call: nine yes/no, two decisions and the goal itself.
The request the agent wrote (45 lines)
The response real output · jev-1.13.0 · api.typesafe.ai · 321 ms · ~$0.000063
MM3-0008 · n8n · 321 ms · 12 questions, one call
- Goalpass 0.79Yes, this cleanup could be faster.
- Availabilityfail 0.88
realpathSync()calls on line 606 block the event loop. - Designfail ×3Rescans on every
unloadAll()(0.78), a try-catch that silently skips errors (0.90), caching would help (0.84). - Design-riskunsureNone of 0.40, 0.46, 0.64 lands clearly either way.
- Decision: measure firstpass 0.89Severity is unsure (low, 0.56).
- NextdrillThe concerns disagree (SPLIT), so it points at a drill into availability.
- GoalDid the claim hold, and what does it suggest?
- Failing categoryWhere it breaks.
next:What to run next.
Every concern is written so that “no” is healthy: a pass: no answer clears the bar at 0.30 or below.
03 Patterns
The same six verbs, used five ways
From your first check to a loop that runs itself. Each level has a recipe for every verb.
04 Limits and alternatives
Where MM3 stops
Honest limits, and what to do instead.
- It advises, it does not act
- You make the call. Delete, deploy, drop and pay stay human.
- A pass is a probability
- A calibrated 0.9 is wrong one time in ten.
unsureis a real answer, andmm3 outcomeshows which verdicts held. - It answers yes or no, not open questions
- Use a full review: a model that reads the whole codebase answers anything.
- Linters, scanners and tests are free and exact
- Run them first. MM3 takes the questions they can’t ask, like “does this handler check the caller?”
- It is only as good as your map
- Map your architecture first. Tag requests with
mdl.usesandmm3 report graphdraws the layers, so every later question lands in a known place. - It is beta
- Works well in our own use and on an intentionally vulnerable app (OWASP NodeGoat). Formal benchmarks are coming.