/mokata:setup [profile] # minimal | standard | full (default: ask)from mokata
Guided first-run setup that detects installed tools, asks which integrations to wire, and applies changes only after explicit user approval.
Ships in mokata. Installing the plugin adds it to Claude Code.
You are giving the user a guided first run: detect what's installed, ask which integrations to wire and which profile to use, then wire it all — with their explicit approval at every durable step. mokata detects → recommends → runs with approval; it never silently installs a third-party tool. Writing config / harness wiring is a durable write, so this is human-gated: preview → approval → apply.
${CLAUDE_PLUGIN_ROOT} is NOT expanded inside command bodies, so discover the bundled engine:
Read the cached plugin root: cat ~/.mokata/plugin-root → ROOT.
If that file is missing/empty, search the Claude Code plugins directory for a mokata plugin
containing src/mokata/__init__.py and set ROOT to it. (If a mokata CLI is on PATH, use
it directly.)
Define the engine as a shell FUNCTION on the absolute interpreter — arguments then reach
it as separate words, never re-parsed by eval (pass user or repo text single-quoted):
PY="$(command -v python3 || command -v python)"
mokata() { PYTHONPATH="$ROOT/src" "$PY" -m mokata "$@"; } # skip when a `mokata` CLI is on PATH
Show the user what's actually installed — graph backends, memory backends, Postgres / vector — so the choices are grounded:
mokata detect --path .
mokata init --profile standard --preview --path . # detected tools + what each profile wires
Ask the user (briefly explaining the trade-off):
minimal (engine only), standard (engine + graph + memory on lean local
defaults), or full (every known provider).MOKATA_PG_DSN). For anything detected-but-not-installed, recommend the install command
(e.g. pip install 'mokata[postgres]') and let the user run it — never install it for them.mokata MCP server, and wire the
SessionStart + secret-guard hooks + the stage badge.Show exactly what will be written/wired and ask for an explicit yes. Do not proceed without it. If they decline, stop — and don't ask again.
# scaffold config for the chosen profile:
mokata init --profile '<profile>' --yes --path .
# wire a detected integration into the manifest (example — Postgres memory via an env-var DSN):
# mokata config set capabilities.memory_store.fallback '["postgres","sqlite"]' --yes --path .
# wire mokata into Claude Code (commands + MCP + hooks + badge):
# mokata setup claude --yes --path .
The CLI's own interactive wizard (mokata init in a terminal, or mokata init --wizard) does
the same detect → ask → wire flow end-to-end; from inside Claude Code you drive the gated steps
above.
After applying, run mokata status --path . and tell the user, in one short block: what
was detected, what got wired, the graph/memory that's now standing, the 5 starter guardrails (the
constitution), and the one next step — /mokata:brainstorm to start their first governed
change (or /mokata:tour for a 60-second demo). Remind them to restart Claude Code so the
SessionStart briefing reflects the new stack.
What the command file sets; muted values are Claude Code's defaults
7-day visitors to each command page
npx claudepluginhub jasgujral/mokata-oss --plugin mokata40 commands in this plugin
/brainstormmokata · Socratic pre-spec exploration — explore approaches WITH the user, one question at a time, and HARD-GATE the spec behind explicit approval. Runs standalone or as the front of mokata's pipeline./bugmokata · Start from a reproducer and a failing test, then fix./chainmokata · Plan a manual chain of skills to run in order — each step keeps its own gate./debugmokata · Reproduce first, capture in a failing test, then fix./decomposemokata · Split the approved spec into independent subtasks + a dependency plan, then confirm to run./developmokata · Implement the minimum to turn a failing test green.Other plugins' commands for the same job