The memory + seatbelt for your AI coding agent. Spec-driven TDD for Claude Code —
knowledge-aware, self-healing memory, human-gated, local-first. It remembers your project and
stops the agent shipping the wrong thing.
One install line, one setup. Run them in your repo:
uv tool install "mokata[full]" # mokata + everything full mode uses, fetched by the installer
mokata setup claude --mode full # detects and wires it all — installs nothing
# restart Claude Code, then check:
mokata doctor
Same with pipx: pipx install "mokata[full]" · with pip (inside a dedicated venv):
pip install "mokata[full]". Updating later: uv tool upgrade mokata (or pipx upgrade mokata)
keeps the extra, then re-run mokata setup claude --mode full. Or just mokata update: it
shows the release notes and that command, asks once, and does both.
mokata[full] bundles the local semantic-memory model runtime, the code-review-graph structural
graph, the TypeScript parser and the IDE companion's web stack (about 360 MB, all local, no API
key). --mode full never rebuilds its own environment: it switches the semantic tier on, warms the
model (a ~30 MB one-time download from huggingface.co — if that is blocked, it says why), and pins
code-review-graph as the code graph. It ends with a table of what is active and, for anything that
is not, the cause and the ONE line that fixes it for the installer you used.
Prefer less? --mode seatbelt (just the gates) or --mode memory (gates + persistent memory, with
mokata[embeddings]).
mokata setup claude runs mokata init for you on a repo that has no .mokata/ yet, and on a
repo that has one it leaves your config, memory and ledger alone and refreshes only the wiring —
new commands (e.g. /review-window) appear and stale ones are removed. Re-run it after every
upgrade. Needs uv (or pipx) and Python ≥ 3.12; mokata gets
its own environment, never your project's, and works on your existing Claude Code sign-in — no
API key. Requires Claude Code ≥ 2.1.198 — mokata doctor names any feature an older one lacks.
Or, entirely inside Claude Code · the plugin — two in-app commands, no pip, no terminal:
The plugin runs everything — its MCP server, its hooks, /mokata:doctor and the review window
(/mokata:review-window, the IDE preview) — from ONE pinned environment,
uvx --from "mokata[full]==<plugin version>", so the plugin and the Python package can never be
different versions. It needs uv (not Python: uv fetches one if you
have none); without it, the first session tells you the one install line for your OS. The first
start fetches mokata[full] once (about 100 packages, ~400 MB in uv's cache — seconds on a fast
link, minutes on a slow one); if /mcp shows mokata failed meanwhile, reconnect it when the
download ends. Finish full mode in a repo with the one command the first briefing names:
uvx --from "mokata[full]==<plugin version>" mokata setup claude --mode full --plugin (or ask
/mokata:init full). /mokata:doctor checks the route: uv found · package resolved · versions
match · MCP server running · hooks firing.