MM3beta

MM3

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-scale

Plugin: 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.yaml

Add --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.

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

How MM3 works. MM3: make and model. Six verbs in two bands and three columns. MAK³, make, use what is proven: view is a free lookup of the ledger, class gives one verdict for one subject, replay rechecks after a fix. MDL³, model, learn what is missing: scan sweeps to find where to look, drill digs into one weak spot, loop vets a design before code. The columns are Know, Judge and Prove. One ledger sits under all six and learns.

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.

MM3 architecture. Any coding agent calls MM3 through its MCP tool or the mm3 CLI. MM3 runs on your machine: it reuses answers it already has and pays only for new questions, sent to a TypeSafe-compatible classifier endpoint (typesafe.ai or self-hosted), its only outside call. In your project it reads code and git as evidence, appends every run to log.jsonl, the append-only ledger and the only source of truth, and keeps index.db, a read-only hot cache of the ledger that rebuilds itself and answers lookups in under a millisecond, tested to 100,000 runs. No server, no MM3 account, no telemetry. config.yaml sets the budget cap, endpoint and model, reuse rules and your own mdl fields, and is the one file in .mm3/ that git keeps. MM3's whole footprint in your project is the .mm3/ folder.
Your agentany coding agentMCP tool or CLI
MM3runs on your machinerequest → reuse → ask → verdict. Pays only for what it doesn't already know.
Classifierany TypeSafe endpointtypesafe.ai or self-hosted. The only outside call.

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.

The MM3 ledger. One append-only JSONL file, filled by runs you were making anyway. The same 10 runs give you a layered heat map of your architecture; 20, a reference architecture with a heat map; 50, a knowledge graph of your whole system. The mdl block is yours: add any field to any request, such as standard or owner, for free. Your agent reads the log or the SQLite index in milliseconds and paints charts, maps and graphs. Where your agents are strong, and where they are not.

log.jsonl · one line per run, append-only

  1. 10 runsA layered heat map of your architecture.
  2. 20 runsA reference architecture, with a heat map.
  3. 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.

A real MM3 quick class run on n8n (MM3-0008). On the left, a coding agent is asked where n8n could be faster and runs one mm3 class request: 12 yes/no and decision questions, one call, 321 ms, about $0.00006, and a next move. On the right, the run's real YAML: the request opens folded (one claim, with concerns, decisions and an mdl block collapsed to fit) and a pointer unfolds each in turn; then the whole response (verdict, gates and odds per concern, consensus and the next command) and what the ledger now holds, where looking the same request up again is free.

The request the agent wrote (45 lines)

The request the agent wrote for MM3-0008: one goal on one file, three concerns of three yes/no questions each, two decisions, and an mdl block saying why it asked.

The response real output · jev-1.13.0 · api.typesafe.ai · 321 ms · ~$0.000063

The response to MM3-0008: the gate fails; a gate and odds per concern and decision, consensus SPLIT, escalate true, what the mdl block recorded, and the next command.

MM3-0008 · n8n · 321 ms · 12 questions, one call

  • Goalpass 0.79Yes, this cleanup could be faster.
  • Availabilityfail 0.88realpathSync() 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).
  1. GoalDid the claim hold, and what does it suggest?
  2. Failing categoryWhere it breaks.
  3. 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.

  1. 1×Coding agent
  2. 5×Senior engineer
  3. 10×Agentic engineer
  4. 25×Forward Deployed Engineer
  5. 50×Growth hacker

Open the pattern playbook

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. unsure is a real answer, and mm3 outcome shows 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.uses and mm3 report graph draws 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.