About Moai Adk
Moai Adk is an MCP server published by modu-ai in the Agents category: agentic development harness for Claude Code — SPEC-driven plan/run/sync, TRUST 5 quality gates, model+effort routing, and Claude×GLM multi-LLM cost control. Single Go binary, 16 languages, zero deps. Conduid read 32 tools from its source: audit_cache, audit_multi, claude_audit, codex_audit, codex_review, codex_setup and 26 more. No package is published for it, so it installs from a source checkout.
The repository has 1.3K stars and 223 forks, is licensed Apache-2.0, and its last commit was on 2 Dec 2026. The latest release is v3.1.2 (21 Aug 2026): v3.1.2 is a statusline release, plus the documentation sweep it forced. It follows v3.1.1 (20 Aug 2026), and the 5 most recent releases go back to v3.0.0 (19 Jul 2026). It passes all 4 static checks Conduid ran on the repository. Its topics include agentic-coding, agentic-workflow, ai-coding, cli-tool, code-generation and code-quality.
Install
git clone https://github.com/modu-ai/moai-adkTools (32)
audit_cacheMulti-auditor convergence| Parameter | Type | Description |
|---|---|---|
| auditor_version | string | Auditor identifier (for op=store). |
| hash | string | Plan-artifact hash (for op=lookup, op=store). |
| op * | string | Operation: 'compute_hash', 'lookup', or 'store'. |
| report_path | string | Audit report path (for op=store). |
| spec_dir | string | SPEC directory (for op=compute_hash). |
| spec_id | string | SPEC id (for op=lookup, op=store). |
audit_multiMulti-auditor convergenceclaude_auditMulti-auditor convergencecodex_auditMulti-auditor convergence| Parameter | Type | Description |
|---|---|---|
| delta_base | string | |
| focus | string | Adversarial-only focus area (e.g. 'concurrency', 'auth'). |
| mode | string | Audit mode: 'native' (codex review/start) or 'adversarial' (codex turn/start + red-team prompt). Defaults to native. |
| model | string | Optional model override; omitted ⇒ the workflow.audit.codex pin, else codex's own configured default. |
| target | string | What codex reviews: 'uncommittedChanges' or 'baseBranch'. For 'baseBranch' the branch name is resolved SERVER-SIDE and cannot be supplied here — it is read from the reviewed tree, the configured git_strategy.worktree_base_branch first (when set and resolvable), then the remote default head, then 'main', the same chain the GLM backend uses so both review the same change. A tree where neither resolves returns 'inconclusive' naming that cause rather than reviewing something else. |
codex_reviewAsk codex to review YOUR OWN change. The result is ADVISORY (non-binding): it files no audit receipt, is never subject to a required audit gate, and cannot stand in for an audit verdict or for the leader's evidence read. scope=card reviews the card diff — resolved by the same scope resolver the turn-end review gate uses, with the merge base recomputed on every call; a tree that is not a card worktree returns 'inconclusive' without reviewing anything. scope=uncommitted reviews the uncommitted changes of the named tree (in the primary checkout that is the whole shared working tree; there is no path restriction). A missing codex, an error, or an empty change returns verdict 'inconclusive' (fail-open). Every result names its scope, base (the merge base SHA for scope=card), backend, and the canonical tree reviewed.codex_setupProbe the local codex installation: exec.LookPath + codex --version + auth-provider classification (ChatGPT / apiKey / provider / unknown) + the current enable_review_gate toggle state. Pure Go — no Node bridge.factory_completeTake a merge-ready card through merging to merged-local by the F1 merge gate — the MCP form of `moai factory complete` (no re-measure positional; complete records the merge evidence itself). Lane session only; a Codex lane is refused. The integration window stays held — release is the lane's next step. Under github-flow the same call delivers by pull request instead: it pushes the card branch, opens a PR against the integration target and records pr-open (no local merge, no window); a later call records merged-pr once the PR is observed merged.| Parameter | Type | Description |
|---|---|---|
| card * | string | The card id. |
| run | string | Factory run id (default: the single active run). A run that is not the active run refuses stale-run. |
factory_decideRecord one operator decision — the MCP form of `moai factory decide` (one card per call). Refused for a lane session: decide records the operator's decisions.| Parameter | Type | Description |
|---|---|---|
| card * | string | The card id. |
| choice | string | approve|reject (kickoff), done|push (gate push: done is the default for a merged-local card whatever the remote and needs the leader receipt; push takes the pushed route), or resume|block|unblock|abandon. |
| gate | string | Decision gate: kickoff or push. Empty with a lifecycle choice decides the card's pause state. |
| run | string | Factory run id (default: the single active run). |
factory_nextLease the lane's next card through the factory record — the MCP form of `moai factory next` (no --wait). Lane session only; runs from the parent checkout named by project_root. Same implementation, same record changes, same refusals. With card it leases exactly that card or returns the refusal line `factory next: refused <token>: <detail>` as an error result.| Parameter | Type | Description |
|---|---|---|
| card | string | Optional: the card id to lease (the session's own judged pick). Leased through the same version-checked edges, or refused with a reason token; the quota hold and the Codex skip apply as to any new card. Absent: the unnominated priority-order lease. |
| run | string | Factory run id (default: the single active run). A run that is not the active run refuses stale-run. |
factory_renewExtend the lane's card lease by the configured duration — the MCP form of `moai factory renew --json` (SPEC-FACTORY-LEASE-RENEW-001 REQ-FLR-002). Lane session only. Returns the same JSON outcome as the verb: result (renewed, refused-expired, refused-not-holder, or error) and expires_at. A refused renewal writes nothing and is returned as that result, not as a tool error.| Parameter | Type | Description |
|---|---|---|
| card * | string | The card id. |
| run | string | Factory run id (default: the single active run). A run that is not the active run refuses stale-run. |
factory_stageApply a card's next F1 stage transition with its evidence and renew the lease — the MCP form of `moai factory stage`. Lane session only; a Codex lane is refused the merge-ready → merging edge. Same implementation, same record changes, same refusals.| Parameter | Type | Description |
|---|---|---|
| card * | string | The card id. |
| evidence | string | Optional evidence: `<sha>` where the edge reads a commit only, `<sha>:<repo-relative-artifact>` where it also names the artifact. |
| run | string | Factory run id (default: the single active run). A run that is not the active run refuses stale-run. |
| state * | string | The F1 state to transition to (e.g. plan-audit). |
glm_auditMulti-auditor convergence| Parameter | Type | Description |
|---|---|---|
| focus | string | Optional focus area (e.g. 'concurrency', 'auth', 'secret handling'). |
| model | string | Optional GLM model override; omitted ⇒ the backend default GLM model (glm_audit reads the workflow.audit.glm pin first). |
| target | string | What GLM reviews: 'uncommittedChanges' (default) or 'baseBranch'. The named change is collected as a diff and sent in the request — GLM has no filesystem, so a target that yields no diff returns 'inconclusive' rather than a verdict. |
glm_job_cancelGLM (z.ai) background job delegationglm_job_resultGLM (z.ai) background job delegationglm_job_statusGLM (z.ai) background job delegationglm_reviewAsk GLM (z.ai) to review YOUR OWN change. The result is ADVISORY (non-binding): it files no audit receipt, is never subject to a required audit gate, and cannot stand in for an audit verdict or for the leader's evidence read. GLM has no filesystem, so the change is collected as a diff and sent in the request: scope=card is the diff from the recomputed merge base (same resolver as the turn-end review gate; a non-card tree returns 'inconclusive' without a request), scope=uncommitted is the diff of the named tree against HEAD, staged changes included. Runtime-managed paths are excluded; untracked files cannot be part of a diff and are named in 'excluded_untracked'; 'truncated' is set when the diff was cut at the size cap. A missing key, an error, or an empty diff returns verdict 'inconclusive' (fail-open) without asking GLM for a verdict.glm_taskGLM (z.ai) background job delegation| Parameter | Type | Description |
|---|---|---|
| background | boolean | Run the task in the background and return a job id immediately. Background jobs live inside this server process and do not survive its exit. |
| max_tokens | integer | Optional response token bound; defaults to the server-side glm_task ceiling. |
| model | string | Optional GLM model override; omitted ⇒ the backend default GLM model (glm_audit reads the workflow.audit.glm pin first). |
| prompt * | string | The task to give GLM. |
| system | string | Optional system prompt for the task. |
goal_armAutonomous loop + multi-session coordination| Parameter | Type | Description |
|---|---|---|
| condition * | string | Goal condition text (a shell command optionally suffixed 'exits <N>', or a transcript-referencing model claim). |
| max_duration | integer | Wall-clock bound in seconds since arm time (required when max_turns = 0). |
| max_turns | integer | Turn ceiling (0 = infinite, requires max_duration > 0). Default 30 when omitted. |
| session_id | string | Session id to arm under; defaults to the resolved current session. |
goal_statusAutonomous loop + multi-session coordination| Parameter | Type | Description |
|---|---|---|
| session_id | string | Session id whose goal state is read. |
graph_file_apiList a source file's exported declarations with signatures — no source bodies. Answers name the tree root + commit they were computed from.| Parameter | Type | Description |
|---|---|---|
| file * | string | Repository-relative file path (e.g. internal/graph/check.go). |
graph_find_codeSearch the code-derived edge layer for a symbol: callee sites (where it is called) and caller observations, each with its resolution grade and per-edge resolution confidence (1.0 extracted / 0.95 intra-package / 0.85 inferred; absent on pre-upgrade artifacts). Answer names the tree root + commit.| Parameter | Type | Description |
|---|---|---|
| query * | string | Symbol name to search for (e.g. 'CheckFreshness'). |
graph_shortest_pathShortest call path from one symbol to another over code-call edges (capped at 8 hops), each hop carrying its line and resolution confidence (absent on pre-upgrade artifacts). Endpoints are file:function node ids or bare symbol names resolving to exactly one node; no-path and ambiguous-name answers are structured results naming both endpoints and the cap. Answer names the tree root + commit.| Parameter | Type | Description |
|---|---|---|
| from * | string | Path start: a node id (file:function) or a bare symbol name resolving to exactly one node. |
| to * | string | Path end: a node id (file:function) or a bare symbol name resolving to exactly one node. |
graph_trace_callsTraverse code-call edges from a symbol: callers (who reaches it) and callees (what it calls), up to depth hops over the code-derived layer, each edge carrying its resolution confidence (absent on pre-upgrade artifacts). Answer names the tree root + commit.| Parameter | Type | Description |
|---|---|---|
| depth | integer | Traversal depth in hops (default 1, capped at 8). |
| symbol * | string | Symbol name to trace from (e.g. 'RefreshIndex'). |
session_listAutonomous loop + multi-session coordination| Parameter | Type | Description |
|---|---|---|
| spec_id | string | Optional SPEC-ID filter; empty lists all active sessions. |
spec_auditEra classification + drift detection| Parameter | Type | Description |
|---|---|---|
| filter_era | string | Optional era filter (e.g. V3R6). |
| filter_spec | string | Optional SPEC-ID filter (exact match). |
| include_grandfathered | boolean | Surface grandfathered (V2.x/V3R2-R4/V3R5) SPECs as INFO. |
spec_driftEra classification + drift detectionspec_progressEra classification + drift detectiontodo_addAppend one card to the backlog queue. Same implementation as `moai todo add` (without --pick/--force).| Parameter | Type | Description |
|---|---|---|
| text * | string | The card text. |
todo_claimClaim the oldest queued card under a lease (atomic CAS + lease), or renew a held card's lease with --renew. Same implementation as `moai todo claim`.| Parameter | Type | Description |
|---|---|---|
| lane | string | Attribute the claim to this operator/leader-supplied lane label (optional). |
| renew | string | Renew the addressed card's lease (id) instead of claiming a new card (optional). |
todo_listRender the backlog queue (lock-free; the default view — live cards plus the dropped count). Same implementation as `moai todo list`.verify_snapshotPer-key evidence snapshots| Parameter | Type | Description |
|---|---|---|
| command | string | When set, RECORD a check entry via verify.RecordCheck instead of reading. |
| exit_code | integer | Exit code for a recorded check (used with 'command'). |
| key * | string | Snapshot key (HEAD:digest form). |
verify_trendPer-key evidence snapshots| Parameter | Type | Description |
|---|---|---|
| key * | string | Snapshot key whose check trend is read. |
Security checks
Static checks derived from the repository 4 days ago. Heuristics on the source, not an audit.
- ✓README presentThe repository's README runs to about 8.8K words.
- ✓License declaredThe repository declares the Apache-2.0 license.
- ✓Tests presentA test suite exists in the repository.
- ✓Dependencies pinnedDependency versions are pinned by go.sum.
2 checks have not been run yet.
Releases
README
The repository's README runs to about 8.8K words, fetched 4 days ago. The original in the repository is authoritative.
Read full README