SECTION · UTILITY COMMANDS
Utility Commands

/moai
The fully autonomous automation command. When the user provides a goal, MoAI …
/moai goal
A condition-declared autonomous loop command: declare a completion condition and …
/moai todo
NEW · v3.1 A backlog queue where you stack up what to do next, one line at a …
/moai loop
The autonomous iterative fix-loop command. The AI diagnoses issues, fixes them, …
/moai review
Reviews code across four lenses — security, performance, quality, and UX — …
/moai codemaps
The command that scans the codebase and auto-generates architecture …
/moai fix
The one-shot auto-fix command. It scans your code in parallel for errors, then …
/moai clean
The dead-code identification and safe-removal command. Through static analysis …
/moai gate
A lightweight gate command that quickly validates quality before a commit. It …
/moai mx
A command that scans the codebase and adds @MX code annotations. @MX tags are …
/moai feedback
The command for submitting feedback or bug reports to MoAI-ADK.
Info One-line …
/moai e2e
Creates and runs E2E (End-to-End) tests for web, mobile, and desktop …InfoBelongs to: Agentic Loop Engineering · Agentic Harness
A collection of commands for autonomous automation, iterative fix loops, code management, and feedback.
InfoUnlike the workflow commands (/moai plan,/moai run,/moai sync), the utility commands specialize in fast automation and problem solving.
This section is where v3’s second pillar, agentic loop engineering, actually runs. /moai loop is a diagnostic loop that iterates until the issue queue found by diagnostic tools is empty, and /moai goal is a condition-declared loop where you declare a completion condition and the session works on its own until the condition holds. /moai fix is the one-shot (single-pass) preset in the same family. The observations left behind as the loop runs become raw material for harness learning — the entrance to the recursive cycle where loops accumulate observations, the harness learns, and the guidance evolves.
| Command | Purpose | Execution style | When to use |
|---|---|---|---|
/moai | Fully autonomous automation | The whole pipeline from SPEC creation to documentation | When you want to hand over a new feature end to end |
/moai goal | Condition-declared autonomous loop | Keeps taking turns until the completion condition holds | When you want to declare an end state like “until all tests pass” |
/moai loop | Iterative fix loop | Repeats diagnose → fix → verify | When you want to knock out many errors at once |
/moai fix | One-shot auto-fix | Diagnose → fix → done (once) | When you want to fix lint or type errors quickly |
/moai gate | Pre-commit quality gate | Lint · format · type · test in parallel (<30s) | When you want a fast pass/fail check before committing |
/moai mx | @MX code annotations | Codebase scan → @MX tag insertion | When you want to plant AI-context code anchors and danger markers |
/moai clean | Dead-code removal | Static analysis → usage graph → safe removal | When you want to clean up unused code |
/moai codemaps | Architecture doc generation | Codebase scan → auto-generated structure docs | When you want to produce project architecture docs |
/moai review | Multi-lens code review | Security · performance · quality · UX verdict + @MX compliance check | When you want a multi-lens review of a PR/changeset |
/moai e2e | E2E testing | web/mobile/desktop auto-detection + CLI-first runs | When you want to create and run user-journey E2E tests |
/moai feedback | Submit feedback | Auto-creates a GitHub issue | When sending a bug report or improvement proposal to MoAI-ADK |
flowchart TD
A[Utility commands] --> B[Automation commands]
A --> C[Code management commands]
A --> D[Feedback commands]
B --> E["/moai
fully autonomous automation"]
B --> F["/moai loop
iterative fix loop"]
B --> G["/moai fix
one-shot auto-fix"]
C --> H["/moai clean
dead-code removal"]
C --> I["/moai codemaps
architecture doc generation"]
C --> K["/moai gate
pre-commit quality gate"]
C --> L["/moai mx
@MX code annotations"]
C --> M["/moai review
multi-lens code review"]
C --> N["/moai e2e
E2E testing"]
D --> J["/moai feedback
submit feedback"]
E -->|used internally| F
F -->|run just once| G
H -->|regenerate after cleanup| IInfoFor the SPEC 3-Phase lifecycle commands (/moai plan,run,sync,project,design,harness), see the workflow commands section. The full list of 16 subcommands the/moaiorchestrator routes is also there.
InfoNot sure which command to use?
- Want to build a whole feature at once →
/moai- “Work on your own until this condition is met” →
/moai goal- Lots of errors in the code you want fixed iteratively →
/moai loop- Just want simple lint errors fixed fast →
/moai fix- Just want a fast pass/fail check before committing →
/moai gate- Want to plant AI-context code annotations (@MX) →
/moai mx- Want to clean up unused code →
/moai clean- Want to produce project architecture docs →
/moai codemaps- A problem with MoAI-ADK itself →
/moai feedback