MoAI Agentic Development Kit - SPEC-First DDD with MoAI SuperAgent
Project description
๐ฟ MoAI-ADK: Agentic AI Development Framework
Available Languages: ๐ฐ๐ท ํ๊ตญ์ด | ๐บ๐ธ English | ๐ฏ๐ต ๆฅๆฌ่ช | ๐จ๐ณ ไธญๆ
"The purpose of vibe coding is not rapid productivity but code quality."
MoAI-ADK provides an AI development environment for quality code. SPEC-First DDD (Domain-Driven Development), continuous refactoring with behavior preservation, and 20 specialized AI agents work together.
๐ MoAI-ADK Sponsor: z.ai GLM 4.7
๐ Optimal Solution for Cost-Effective AI Development
MoAI-ADK partners with z.ai GLM 4.7 to provide developers with an economical AI development environment.
๐ GLM 4.7 Special Benefits
| Benefit | Description |
|---|---|
| ๐ฐ 70% Cost Savings | 1/7 the price of Claude with equivalent performance |
| โก Fast Response Speed | Low-latency responses with optimized infrastructure |
| ๐ Compatibility | Fully compatible with Claude Code, no code modification needed |
| ๐ Unlimited Usage | Use freely without daily/weekly token limits |
๐ Sign-Up Special Discount
๐ GLM 4.7 Sign Up (10% Additional Discount)
By signing up through this link:
- โ Additional 10% discount benefit
- โ Contribute to MoAI open source development (reward credits are used for open source projects)
๐ก Usage Guide
# 1. Get GLM API Key
Sign up at the link above and get your API key
# 2. Configure GLM in MoAI-ADK
moai glm YOUR_API_KEY
๐ก Tip: Using GLM 4.7 in a Worktree environment allows you to design with Opus and implement in bulk with GLM, saving up to 70% on costs.
๐ Core Values
- ๐ฏ SPEC-First: 90% reduction in rework with clear specifications
- ๐ต DDD (Domain-Driven Development): ANALYZE-PRESERVE-IMPROVE cycle with behavior preservation
- ๐ค AI Orchestration: 20 specialized agents + 52 skills
- ๐ง Sequential Thinking MCP: Structured problem-solving with step-by-step reasoning
- ๐ Multilingual Routing: Automatic support for Korean/English/Japanese/Chinese
- ๐ณ Worktree Parallel Development: Unlimited parallel work in completely isolated environments
- ๐ MoAI Rank: Motivation through vibe coding leaderboard
- ๐ Ralph-Style LSP Integration (NEW v1.9.0): LSP-based autonomous workflow with real-time quality feedback
๐ฏ Ralph-Style LSP Integration (NEW v1.9.0)
LSP Integration Overview
MoAI-ADK now supports Ralph-style autonomous workflow with LSP (Language Server Protocol) diagnostics integration. The system captures LSP diagnostic state at workflow entry, monitors diagnostic state during execution, and automatically completes phases when quality thresholds are met.
Key Features
LSP Baseline Capture:
- Automatic LSP diagnostic capture at phase start
- Tracks errors, warnings, type errors, lint errors
- Baseline used for regression detection
Completion Markers:
- Plan Phase: SPEC created, baseline recorded
- Run Phase: 0 errors, 0 type errors, coverage >= 85%
- Sync Phase: 0 errors, <10 warnings
Execution Modes:
- Interactive (default): Manual approval at each step
- Autonomous (optional): Continuous loop until completion
Loop Prevention:
- Maximum 100 iterations
- No progress detection (5 iterations)
- Alternative strategy on stall
Configuration:
# .moai/config/sections/workflow.yaml
execution_mode:
autonomous:
user_approval_required: false
continuous_loop: true
completion_marker_based: true
lsp_feedback_integration: true
๐ For detailed information, see the official online documentation: https://adk.mo.ai.kr
1. 30-Second Installation
โ ๏ธ Windows Users: MoAI-ADK supports PowerShell only. WSL (Windows Subsystem for Linux) and Command Prompt (cmd.exe) are not supported. Please use PowerShell or Windows Terminal with PowerShell.
๐ Prerequisites
Required Dependencies:
- Python 3.11+: MoAI-ADK requires Python 3.11 or later
- PyYAML 6.0+: Required for hook scripts (automatically installed via
uv run --with pyyaml) - uv: Package installer for Python (included with MoAI-ADK installation)
Note: PyYAML is required for:
- AST-grep multi-document rule parsing
- Configuration file read/write operations
- SPEC file YAML frontmatter parsing
- Skill metadata handling
If PyYAML is not available, hooks will automatically attempt to install it using uv run --with pyyaml.
๐ Method 1: Quick Install (Recommended)
curl -LsSf https://modu-ai.github.io/moai-adk/install.sh | sh
๐ง Method 2: Manual Install
# Install MoAI-ADK
uv tool install moai-adk
๐จ Interactive Setup Wizard
Running moai init starts a 9-step interactive wizard:
Step 1: Language Selection
Select your conversation language. All subsequent instructions will be displayed in your chosen language.
๐ Language Selection
โฏ Select your conversation language: [โโ] Navigate [Enter] Select
โฏ Korean (ํ๊ตญ์ด)
English
Japanese (ๆฅๆฌ่ช)
Chinese (ไธญๆ)
Step 2: Name Input
Enter your user name. AI will provide personalized responses.
๐ค User Settings
โฏ Enter your user name (optional):
Step 3: GLM API Key Input
Enter your GLM API key from Z.AI.
๐ API Key Input
GLM CodePlan API key (optional - press Enter to skip)
โ Found existing GLM API key: 99c1a2df...
Press Enter to keep existing key, or enter new key to replace
? Enter your GLM API key:
๐ GLM Sign-Up Benefit: If you don't have a GLM account, sign up using the link below!
๐ GLM Sign Up (10% Additional Discount)
By signing up through this link, you'll receive an additional 10% discount. Also, rewards generated from link sign-ups are used for MoAI open source development. ๐
Step 4: Project Setup
Enter your project name.
๐ Project Setup
โฏ Project name: MoAI-ADK
Step 5: Git Setup
Select your Git mode.
๐ Git Setup
โฏ Select your Git mode: [โโ] Navigate [Enter] Select
โฏ manual (local only) - Use local repository only
personal (GitHub personal) - Use GitHub personal account
team (GitHub team) - Use GitHub team/organization
Step 6: GitHub Username
For personal/team selection, enter your GitHub username.
โฏ GitHub username:
Step 7: Commit Message Language
Select the language for Git commit messages.
๐ฃ๏ธ Output Language Settings
โฏ Commit message language: [โโ] Navigate [Enter] Select
English
โฏ Korean (ํ๊ตญ์ด)
Japanese (ๆฅๆฌ่ช)
Chinese (ไธญๆ)
Step 8: Code Comment Language
Select the language for code comments.
โฏ Code comment language: [โโ] Navigate [Enter] Select
English
โฏ Korean (ํ๊ตญ์ด)
Japanese (ๆฅๆฌ่ช)
Chinese (ไธญๆ)
Step 9: Documentation Language
Select the language for documentation.
โฏ Documentation language: [โโ] Navigate [Enter] Select
English
โฏ Korean (ํ๊ตญ์ด)
Japanese (ๆฅๆฌ่ช)
Chinese (ไธญๆ)
๐ก Token Optimization Strategy: Internal prompts for agent instructions are fixed in English.
Reason: Non-English languages consume 12-20% additional tokens in Claude. When infinite agent loops are frequent, this significantly impacts costs and weekly token limits, so MoAI fixes internal agent instructions in English and provides user conversations only in the user's language.
This is MoAI's effort to reduce token waste.
Installation Complete
When all settings are complete, 5-phase installation runs automatically:
๐ Starting installation...
Phase 1: Preparation and backup... โโโโโโโโโโโโโโโโ 100%
Phase 2: Creating directory structure... โโโโโโโโโโโโโโโโ 100%
Phase 3: Installing resources... โโโโโโโโโโโโโโโโ 100%
Phase 4: Generating configurations... โโโโโโโโโโโโโโโโ 100%
Phase 5: Validation and finalization... โโโโโโโโโโโโโโโโ 100%
โ
Initialization Completed Successfully!
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
๐ Summary:
๐ Location: /path/to/my-project
๐ Language: Auto-detect (use /moai project)
๐ Git: manual (github-flow, branch: manual)
๐ Locale: ko
๐ Files: 47 created
โฑ๏ธ Duration: 1234ms
๐ Next Steps:
1. Run cd my-project to enter the project
2. Run /moai project in Claude Code for full setup
3. Start developing with MoAI-ADK!
Add to Existing Project
cd your-existing-project
moai init .
# Existing files are preserved
๐ MoAI-ADK Update
Update existing projects to the latest version.
moai update
3-Phase Smart Update Workflow:
Stage 1: ๐ฆ Package Version Check
โโ Check latest version from PyPI โ Auto-upgrade if needed
Stage 2: ๐ Config Version Comparison
โโ Compare package template vs project config
โโ Skip if same (70-80% performance improvement)
Stage 3: ๐ Template Synchronization
โโ Create backup โ Update template โ Restore user settings
Key Options:
# Check version only (no update)
moai update --check
# Synchronize templates only (skip package upgrade)
moai update --templates-only
# Config edit mode (re-run init wizard)
moai update --config
moai update -c
# Force update without backup
moai update --force
# All is well~ Auto mode (auto-approve all confirmations)
moai update --yes
Merge Strategy Selection:
๐ Choose merge strategy:
[1] Auto-merge (default)
โ Automatically preserve template + user changes
[2] Manual merge
โ Create backup + merge guide (direct control)
# Force auto-merge (default)
moai update --merge
# Force manual merge
moai update --manual
Automatically Preserved Items:
| Item | Description |
|---|---|
| User Settings | .claude/settings.local.json (MCP, GLM settings) |
| Custom Agents | User-created agents not in template |
| Custom Commands | User-defined slash commands |
| Custom Skills | User-defined skills |
| Custom Hooks | User-defined hook scripts |
| SPEC Documents | Entire .moai/specs/ folder |
| Reports | Entire .moai/reports/ folder |
๐ก Update Tip: You can change language, API key, and Git settings anytime with
moai update -c. It's recommended to create your commands, agents, skills, and hooks in folders other than moai.
โ ๏ธ Known Issues & Solutions
pip and uv tool Conflict
Problem: When both pip and uv tool are used to install MoAI-ADK, version conflicts can occur.
Symptoms:
# moai update shows latest version
moai update
โ Package already up to date (1.5.0)
# But actual command uses old version
which moai
~/.pyenv/shims/moai # Uses pip version (e.g., 1.1.0)
# Import errors in hooks
ModuleNotFoundError: No module named 'yaml'
Root Cause:
uv tool installinstalls to~/.local/bin/moaipip installinstalls to~/.pyenv/shims/moai- PATH priority determines which version is used
- Windows users may experience more severe issues due to Python environment differences
Solutions:
Option 1: Clean reinstall with uv tool (Recommended)
# Uninstall any existing installation
pip uninstall moai-adk -y
uv tool uninstall moai-adk
# Reinstall with uv tool
uv tool install moai-adk
# Verify
moai --version # Should show latest version
Option 2: Update shell configuration
For macOS/Linux (~/.zshrc or ~/.bashrc):
# Add to PATH
export PATH="$HOME/.local/bin:$PATH"
For Windows (PowerShell $PROFILE):
# Add to $PROFILE
$env:PATH = "$env:USERPROFILE\.local\bin;$env:PATH"
Prevention:
- Always use
uv tool install moai-adkfor installation - Regularly check
which moaito verify active installation
WSL (Windows Subsystem for Linux) Support
MoAI-ADK fully supports WSL 1 and WSL 2 on Windows 10 and Windows 11.
Installation on WSL
# Install MoAI-ADK in WSL
uv tool install moai-adk
# Initialize your project
cd your-project-directory
moai-adk init
Path Handling
MoAI-ADK automatically converts between Windows and WSL path formats:
- Windows paths:
C:\Users\goos\projectโ WSL paths:/mnt/c/Users/goos/project - No manual configuration required
- Works seamlessly with projects in both Linux filesystem (
/home/user/) and Windows filesystem (/mnt/c/)
Best Practices
Recommended: Place projects in Linux filesystem for optimal performance
# โ
Best performance
cd ~/projects
moai-adk init
Also Supported: Projects on Windows filesystem
# โ
Works but may have slight overhead
cd /mnt/c/Users/YourName/projects
moai-adk init
Troubleshooting WSL
Verify WSL Environment:
# Check if running in WSL
echo $WSL_DISTRO_NAME
# Verify CLAUDE_PROJECT_DIR (set by Claude Code)
echo $CLAUDE_PROJECT_DIR
PATH Not Loaded (~/.local/bin not in PATH):
This is the most common issue in WSL. Even if you added PATH to ~/.bashrc, it may not be loaded because WSL uses login shell which reads ~/.profile, not ~/.bashrc.
Symptoms:
# Status line shows:
"Native installation exists but ~/.local/bin is not in your PATH"
# MCP servers fail to start
# Commands like 'moai' or 'uv' not found
Diagnosis:
# Run the diagnostic command
moai-adk doctor --shell
# Or check manually
echo $PATH | grep -o "$HOME/.local/bin"
Solutions:
Option A: Use automatic fix (Recommended)
# Run with --fix flag
moai-adk doctor --shell --fix
Option B: Manual fix for bash users
# Add to ~/.profile (NOT ~/.bashrc)
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.profile
source ~/.profile
Option C: Manual fix for zsh users
# Add to ~/.zshenv (always sourced)
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.zshenv
source ~/.zshenv
Why ~/.profile instead of ~/.bashrc?
- WSL starts as a login shell
- Login shell reads:
~/.profileโ~/.bashrc(if sourced) - By default,
~/.profiledoesn't source~/.bashrcfor PATH - Adding PATH directly to
~/.profileensures it's always loaded
Hook/MCP Server Issues:
- If hooks fail, verify
CLAUDE_PROJECT_DIRis set correctly - MoAI-ADK automatically converts Windows paths to WSL format
- Check
.claude/settings.jsonfor correct path references
Related Issues:
2. Project Documentation Generation (Optional)
For new or existing projects, you can automatically generate project documentation to help Claude Code understand your project:
> /moai project
3 Generated Files
| File | Purpose | Key Content |
|---|---|---|
.moai/project/product.md |
Product Overview | Project name/description, target users, core features, use cases |
.moai/project/structure.md |
Structure Analysis | Directory tree, main folder purposes, core file locations, module composition |
.moai/project/tech.md |
Tech Stack | Technologies used, framework selection reasons, dev environment, build/deployment settings |
Why Do You Need This?
- Context Provision: Claude Code quickly grasps project context
- Consistency Maintenance: Share project understanding among team members
- Onboarding Acceleration: Reduce new developer project ramp-up time
- AI Collaboration Optimization: More accurate code suggestions and reviews
๐ก Tip: Running
/moai projectat project start or after structure changes updates documentation to the latest state.
3. Core Commands Collection
๐ฏ /moai project - Project Initialization
> /moai project
Automatically analyzes your project's current state and configures the optimal development environment. Detects programming languages and frameworks, and automatically sets up Git workflows and quality assurance standards. Once all configuration is complete, you're ready to start development immediately.
Tasks:
- โ Project structure analysis
- โ Programming language/framework detection
- โ
.moai/config/config.yamlcreation - โ Git workflow setup
- โ Session memory system configuration
- โ Quality assurance standards setup
๐ /moai plan - SPEC Writing
> /moai plan "feature description"
Automatically generates unambiguous specifications using EARS format. Includes requirements definition, success criteria, and test scenarios to clearly present development direction. The generated SPEC serves as a single source of truth that the development team and AI share the same understanding.
Auto-generated:
- EARS format specification
- Requirements definition
- Success criteria
- Test scenarios
Example:
> /moai plan "user profile page"
# โ Creates SPEC-002
> /moai plan "payment API"
# โ Creates SPEC-003
Important: Must execute > /clear next
๐ป /moai run - Implementation (DDD)
> /moai run SPEC-001
NEW v1.9.0: LSP-enhanced DDD cycle with completion markers
Implements SPEC using DDD (Domain-Driven Development) methodology with the ANALYZE-PRESERVE-IMPROVE cycle:
DDD Cycle:
- ๐ ANALYZE: Analyze domain boundaries, coupling, and existing behavior
- ๐ก๏ธ PRESERVE: Create characterization tests to preserve existing behavior
- โจ IMPROVE: Incrementally improve structure with test validation
LSP-Enhanced Quality Gates (NEW v1.9.0):
- LSP baseline capture at phase start
- Real-time regression detection
- Automatic completion at 0 errors, 0 type errors, coverage >= 85%
- Completion marker detection:
<moai>DONE</moai>
Verification items:
- Test coverage >= 85%
- Pass linting
- Pass type checking
- Pass security checks
- โ TRUST 5 validation
๐ /moai sync - Documentation Sync
> /clear # Always run clear before sync to reset session and run quality checks
> /moai sync SPEC-001
Performs quality verification followed by documentation synchronization, Git commits, and PR automation. Automatically generates API documentation, architecture diagrams, README, and CHANGELOG, keeping them up to date. Automatically commits changes and converts PRs from Draft to Ready in team mode.
Auto-executed tasks:
-
Phase 1: Quality Verification
- Run tests (pytest, jest, go test, etc.)
- Linter checks (ruff, eslint, golangci-lint, etc.)
- Type checkers (mypy, tsc, go vet, etc.)
- Code review (manager-quality)
-
Phase 2-3: Documentation Sync
- Auto-generate API documentation
- Update architecture diagrams
- Update README
- Sync SPEC documents
-
Phase 4: Git Automation
- Commit changes
- PR Draft โ Ready conversion
- (Optional) Auto-merge
Execution modes:
auto(default): Selective sync of changed files onlyforce: Regenerate all documentationstatus: Perform status check onlyproject: Sync entire project
Details: Refer to command file
๐ /moai - Fully Autonomous Automation
> /moai "feature description"
NEW v1.9.0: LSP integration with autonomous mode
User presents the goal and AI autonomously performs exploration, planning, implementation, and verification. Analyzes codebase through parallel exploration and self-corrects issues through autonomous loops. Automatically terminates when completion marker (<moai>DONE</moai>) is detected, so developer only needs to verify final result.
LSP-Enhanced Autonomous Mode (NEW v1.9.0)
Autonomous Mode:
- LSP baseline capture at start
- Real-time regression detection
- Automatic completion when markers met
- Loop prevention safeguards
Interactive Mode (default):
- Manual approval at each phase
- Backward compatible with existing workflows
Concept and Workflow
flowchart TB
Start([User Request<br/>/moai 'feature description']) --> Phase0[Phase 0: Parallel Exploration]
Phase0 --> Explore[๐ Explore Agent<br/>Analyze codebase structure]
Phase0 --> Research[๐ Research Agent<br/>Research technical docs]
Phase0 --> Quality[โ
Quality Agent<br/>Assess quality state]
Explore --> Phase1[Phase 1: SPEC Creation]
Research --> Phase1
Quality --> Phase1
Phase1 --> Spec[๐ EARS format SPEC doc<br/>Requirements specification]
Spec --> Phase2[Phase 2: DDD Implementation]
Phase2 --> Analyze[๐ ANALYZE: Domain analysis]
Analyze --> Preserve[๐ก๏ธ PRESERVE: Characterization tests]
Preserve --> Improve[โจ IMPROVE: Incremental improvement]
Improve --> Check{Quality Check<br/>TRUST 5}
Check -->|Pass| Phase3[Phase 3: Documentation Sync]
Check -->|Fail| Loop[๐ Autonomous Loop<br/>Auto-fix issues]
Loop --> Analyze
Phase3 --> Docs[๐ README, API docs<br/>Auto-update]
Docs --> Done{<moai>DONE</moai><br/>Completion marker detected}
Done -->|Yes| End([โ
Complete<br/>Deliver result only])
Done -->|No| Loop
style Phase0 fill:#e1f5fe
style Phase1 fill:#fff3e0
style Phase2 fill:#f3e5f5
style Phase3 fill:#e8f5e9
style Done fill:#c8e6c9
style End fill:#4caf50,color:#fff
Detailed Process
Single Execution:
-
Phase 1: Parallel Exploration (3-4x faster analysis)
- Explore Agent: Codebase structure, patterns, related files
- Research Agent: Technical docs, best practices
- Quality Agent: Current quality state, potential issues
-
Phase 2: SPEC Creation (EARS format)
- Clear requirement definitions
- Acceptance criteria specification
- User story writing
-
Phase 3: DDD Implementation (Autonomous loop)
- ANALYZE: Analyze domain boundaries and existing behavior
- PRESERVE: Create characterization tests for behavior preservation
- IMPROVE: Incrementally improve code structure
- Loop: Auto-fix if quality check fails
-
Phase 4: Documentation Sync
- README, API docs auto-update
- CHANGELOG auto-generation
- User guide update
When to use?
| Situation | Description | Example |
|---|---|---|
| New feature development | AI handles everything from start to finish | "Add JWT authentication system" |
| Complex refactoring | Large changes affecting multiple files | "Database layer restructure" |
| Bug fixing | Automate from root cause analysis to fix | "Fix login failure bug" |
| SPEC-based development | Implement features with SPEC documents | /moai SPEC-AUTH-001 |
Options:
--loop: Enable autonomous iterative fixes (AI self-resolves issues)--max N: Specify max iterations (default: 100)--sequential/--seq: Sequential exploration (for debugging) - parallel is default--branch: Auto-create feature branch--pr: Create Pull Request after completion--resume SPEC: Resume work
Performance: Parallel exploration is now the default, providing 3-4x faster analysis. Use
--sequentialonly for debugging.
Example:
# Basic autonomous execution (parallel by default)
> /moai "Add JWT authentication"
# Auto loop with sequential exploration (for debugging)
> /moai "JWT authentication" --loop --seq
# Resume
> /moai resume SPEC-AUTH-001
# UltraThink mode (deep analysis with Sequential Thinking)
> /moai "Add JWT authentication" --ultrathink
UltraThink Mode (--ultrathink): Enhanced analysis mode that automatically applies Sequential Thinking MCP to deeply analyze requests and generate optimal execution plans.
When --ultrathink is appended, MoAI activates structured reasoning to:
- Break down complex problems into manageable steps
- Map each subtask to appropriate agents
- Identify parallel vs sequential execution opportunities
- Generate optimal agent delegation strategy
Example Output with UltraThink:
thought: "Analyzing request: User wants JWT authentication. This involves: user model (backend), API endpoints (backend), login form (frontend), auth context (frontend), tests (testing)."
thought: "Subtask decomposition: 1) User model โ expert-backend, 2) JWT API โ expert-backend, 3) Login form โ expert-frontend, 4) Auth context โ expert-frontend, 5) Tests โ expert-testing."
thought: "Execution strategy: Phase 1 - Launch expert-backend in parallel for user model + API. Phase 2 - expert-frontend for UI. Phase 3 - expert-testing for tests."
thought: "Final plan: Use the expert-backend subagent (parallel), then Use the expert-frontend subagent, then Use the expert-testing subagent."
Use --ultrathink for:
- Complex multi-domain tasks (backend + frontend + testing)
- Architecture decisions affecting multiple files
- Performance optimization requiring analysis
- Security review needs
- Refactoring with behavior preservation
๐ /moai loop - Autonomous Iterative Fixing
> /moai loop
AI autonomously diagnoses and fixes LSP errors, test failures, and coverage deficiencies. Parallel diagnosis executes LSP, AST-grep, Tests, and Coverage simultaneously, resolving issues 3-4x faster. Runs autonomously until completion marker is detected or max iterations reached.
Concept and Workflow
flowchart TB
Start([User Request<br/>/moai loop]) --> Parallel[Parallel Diagnosis]
Parallel --> LSP[LSP Diagnosis<br/>Type errors, not found]
Parallel --> AST[AST-grep<br/>Pattern check, security]
Parallel --> Tests[Test Execution<br/>Unit, integration]
Parallel --> Coverage[Coverage<br/>85% target]
LSP --> Collect[Issue Collection]
AST --> Collect
Tests --> Collect
Coverage --> Collect
Collect --> HasIssues{Has Issues?}
HasIssues -->|No| Done[<moai>DONE</moai><br/>Completion marker]
HasIssues -->|Yes| CreateTODO[TODO Creation<br/>Priority sorted]
CreateTODO --> Process[Sequential Processing]
Process --> Fix1[Level 1: Immediate fix<br/>Import sort, whitespace]
Process --> Fix2[Level 2: Safe fix<br/>Variable name, type]
Process --> Fix3[Level 3: Approval fix<br/>Logic change]
Fix1 --> Validate[Verification]
Fix2 --> Validate
Fix3 --> Validate
Validate --> ReCheck{Diagnose again?}
ReCheck -->|Yes| Parallel
ReCheck -->|No| MaxIter{Max iteration<br/>100 reached?}
MaxIter -->|No| Parallel
MaxIter -->|Yes| Snapshot[Snapshot saved<br/>Can resume later]
Done --> End([โ
Complete])
Snapshot --> End([โธ๏ธ Paused])
style Parallel fill:#e1f5fe
style Collect fill:#fff3e0
style Process fill:#f3e5f5
style Validate fill:#e8f5e9
style Done fill:#c8e6c9
style End fill:#4caf50,color:#fff
Parallel Diagnosis Details
Parallel diagnosis (3.75x faster):
flowchart TB
Start([Parallel diagnosis start]) --> Parallel
subgraph Parallel[Concurrent execution]
direction TB
LSP[LSP diagnosis]
AST[AST-grep inspection]
TESTS[Test execution]
COVERAGE[Coverage check]
end
LSP --> Collect[Issue integration and priority<br/>Level 1 โ 2 โ 3 order]
AST --> Collect
TESTS --> Collect
COVERAGE --> Collect
style Start fill:#e3f2fd
style Parallel fill:#f3f4f6
style LSP fill:#fff9c4
style AST fill:#ffccbc
style TESTS fill:#c8e6c9
style COVERAGE fill:#b2dfdb
style Collect fill:#e1bee7
๐ What is AST-grep?
"grep finds text, but AST-grep finds code structure."
Concept:
AST-grep is a structural code inspection tool. Unlike normal grep or regex that searches for text, AST-grep analyzes the Abstract Syntax Tree (AST) of code to inspect code structure and patterns.
Text search vs Structure search:
| Feature | grep/regex | AST-grep |
|---|---|---|
| Search target | Text strings | Code structure (AST) |
| Example | print("hello") |
print(__) |
| Meaning | Find "print" characters | Find print function call pattern |
| Space sensitive? | Yes (whitespace, indent matters) | No (structure only) |
| Variable distinguish | Hard (e.g., x=1, y=1 are different) |
Possible (all variable assignment patterns) |
How it works:
flowchart LR
Source[Source code<br/>def foo x:<br/> return x + 1] --> AST[AST analysis]
AST --> |transform| Tree[Abstract syntax tree<br/>Function<br/> Call<br/>]
Tree --> Pattern[Pattern matching]
Pattern --> Result1[โ Function definition]
Pattern --> Result2[โ Return statement]
Pattern --> Result3[โ Addition operation]
style Source fill:#e3f2fd
style AST fill:#fff3e0
style Tree fill:#f3e5f5
style Pattern fill:#e8f5e9
style Result1 fill:#c8e6c9
style Result2 fill:#c8e6c9
style Result3 fill:#c8e6c9
What AST-grep detects:
-
Security vulnerabilities
- SQL injection patterns:
execute(f"SELECT * FROM users WHERE id={user_input}") - Hardcoded passwords:
password = "123456" - Unsafe function usage:
eval(user_input)
- SQL injection patterns:
-
Code smells
- Duplicate code: Repetition of similar structures
- Long functions: Too much complexity
- Magic numbers:
if x == 42(meaningless numbers)
-
Anti-patterns
- Empty except blocks:
except: pass - Global variable modification
- Circular dependencies
- Empty except blocks:
-
Best practice violations
- Missing type hints
- Missing documentation
- Missing error handling
Example scenario:
# Example code where AST-grep finds problems
def process_user_input(user_input):
# โ ๏ธ Warning: eval usage (security vulnerability)
result = eval(user_input)
# โ ๏ธ Warning: empty except (anti-pattern)
try:
save_to_database(result)
except:
pass
# โ ๏ธ Warning: magic number (code smell)
if result > 42:
return True
Why is it important?
- Accuracy: Understands code meaning, so fewer false positives
- 40 language support: Works on Python, TypeScript, Go, Rust, Java, etc.
- Auto-fix possible: Not just finds patterns, but generates fix suggestions
- Security enhancement: Automatically detects security vulnerabilities like OWASP Top 10
Usage in MoAI-ADK:
In /moai loop and /moai fix commands, AST-grep operates as a core component of parallel diagnosis:
- LSP: Type errors, find definitions
- AST-grep: Structural patterns, security vulnerabilities โ This is our focus!
- Tests: Test failures
- Coverage: Coverage deficiency
These four run simultaneously to diagnose code quality 3.75x faster.
Detailed Process
Autonomous loop flow:
-
Parallel diagnosis (concurrent execution)
- LSP: Type errors, definitions not found, potential bugs
- AST-grep: Code pattern check, security vulnerabilities
- Tests: Unit tests, integration tests
- Coverage: 85% coverage target achievement
-
TODO creation (by priority)
- Level 1: Immediate fix (import sort, whitespace, formatting)
- Level 2: Safe fix (variable names, type addition)
- Level 3: Approval fix (logic change, API modification)
- Level 4: Manual needed (security, architecture)
-
Sequential fixing
- Process TODO items one by one
- Verify after each fix
- Re-diagnose on failure
-
Repeat or complete
<moai>DONE</moai>marker when all issues resolved- Save snapshot after max 100 iterations
When to use?
| Situation | Description | Example |
|---|---|---|
| Quality after implementation | Automatically improve quality after coding | Run /moai loop after feature implementation |
| Test failure fix | Automatically analyze and fix test failures | Run after test execution on failure |
| Coverage improvement | Automatically achieve 85% target | After writing new code |
| Refactoring | Continuously improve code quality | Periodic execution for maintenance |
Options:
--max N: Maximum iterations (default: 100)--auto: Enable auto-fix (Level 1-3)--sequential/--seq: Sequential diagnosis (for debugging) - parallel is default--errors: Fix errors only--coverage: Include coverage (100% target)--resume ID: Restore snapshot
Performance: Parallel diagnosis is now the default, executing LSP, AST-grep, Tests, and Coverage simultaneously (3.75x faster).
Example:
# Basic autonomous loop (parallel by default)
> /moai loop
# Sequential + auto-fix (for debugging)
> /moai loop --seq --auto
# Max 50 iterations
> /moai loop --max 50
# Restore snapshot
> /moai loop --resume latest
๐ง /moai fix - One-Shot Auto Fix
> /moai fix
Scans LSP errors and linting issues in parallel and fixes them at once. Level 1-2 fixes immediately, Level 3 fixes after user approval, Level 4 reports as requiring manual fix. Use --dry option to preview before applying actual fixes.
Concept and Workflow
flowchart
Start([User Request<br/>/moai fix]) --> Dry{--dry mode?}
Dry -->|Yes| ScanOnly[Scan only<br/>No fixes]
Dry -->|No| Scan[Parallel scan]
Scan --> LSP[LSP diagnosis<br/>Type, definition errors]
Scan --> AST[AST-grep<br/>Patterns, security]
Scan --> Linter[Linter<br/>Style, format]
LSP --> Collect[Issue collection]
AST --> Collect
Linter --> Collect
ScanOnly --> Report[Report output<br/>Expected fix content]
Collect --> Categorize[Level classification]
Categorize --> L1[Level 1<br/>Immediate fix]
Categorize --> L2[Level 2<br/>Safe fix]
Categorize --> L3[Level 3<br/>Approval needed]
Categorize --> L4[Level 4<br/>Manual needed]
L1 --> AutoFix1[Auto fix]
L2 --> AutoFix2[Auto fix+log]
L3 --> Approve{User approval?}
Approve -->|Yes| AutoFix3[Execute fix]
Approve -->|No| Skip[Skip]
L4 --> Manual[Report manual fix needed]
AutoFix1 --> Validate[Verification]
AutoFix2 --> Validate
AutoFix3 --> Validate
Skip --> Validate
Validate --> Results[Result summary]
Manual --> Results
Report --> End([โ
Complete])
Results --> End
style Scan fill:#e1f5fe
style Collect fill:#fff3e0
style AutoFix1 fill:#c8e6c9
style AutoFix2 fill:#c8e6c9
style AutoFix3 fill:#fff9c4
style Manual fill:#ffccbc
style End fill:#4caf50,color:#fff
Parallel Scan Details
Parallel scan (3.75x faster):
flowchart TB
Start([Parallel scan start]) --> Parallel
subgraph Parallel[Concurrent execution]
direction TB
LSP[LSP diagnosis]
AST[AST-grep inspection]
Linter[Linter inspection]
end
LSP --> Collect[Issue integration and level classification<br/>Level 1 โ 2 โ 3 โ 4]
AST --> Collect
Linter --> Collect
style Start fill:#e3f2fd
style Parallel fill:#f3f4f6
style LSP fill:#fff9c4
style AST fill:#ffccbc
style Linter fill:#c8e6c9
style Collect fill:#e1bee7
Detailed Process
Fix level processing:
| Level | Description | Risk | Approval | Auto | Example |
|---|---|---|---|---|---|
| 1 | Immediate fix | Low | Not needed | โ | import sorting, whitespace |
| 2 | Safe fix | Low | Log only | โ | variable names, type addition |
| 3 | Approval needed | Medium | Needed | โ ๏ธ | logic changes, API modification |
| 4 | Manual needed | High | Impossible | โ | security, architecture |
One-time execution process:
-
Parallel scan (concurrent execution)
- LSP: Type errors, definitions not found, serious bugs
- AST-grep: Code patterns, security vulnerabilities
- Linter: Style, formatting, naming
-
Issue collection and classification
- Classify all issues by level
- Priority: Level 1 โ 2 โ 3 โ 4
-
Batch fix (execute at once)
- Level 1-2: Auto-fix immediately
- Level 3: Fix after user approval
- Level 4: Report manual fix needed
-
Verification and results
- Run tests after fixes
- Report summary of changes
When to use?
| Situation | Description | Example |
|---|---|---|
| Clean up after coding | Clean up style, formatting all at once | Run /moai fix after coding |
| Pre-commit inspection | Resolve LSP errors, linting in advance | Run before git commit |
| Quick fix | Solve at once without repetitive fixes | When fixing simple issues |
| Preview confirmation | Check fix content before applying | Run /moai fix --dry |
/moai fix vs /moai loop Selection Guide
flowchart
Start([Code quality issue occurred]) --> Question{Need repetitive<br/>fixing?}
Question -->|Yes| Loop[๐ /moai loop<br/>Autonomous iterative fixing]
Question -->|No| Fix{Can solve<br/>at once?}
Fix -->|Yes| FixCmd[๐ง /moai fix<br/>One-shot auto fix]
Fix -->|No| Loop
Loop --> LoopDesc[Complex issues<br/>Multiple files affected<br/>Repeated test failures]
FixCmd --> FixDesc[Simple issues<br/>Style, format<br/>LSP errors]
LoopDesc --> When1[Usage timing:<br/>Quality after implementation]
FixDesc --> When2[Usage timing:<br/>Quick clean up before commit]
style Loop fill:#f3e5f5
style FixCmd fill:#e8f5e9
style LoopDesc fill:#fff3e0
style FixDesc fill:#e1f5fe
Fix levels:
| Level | Description | Approval | Example |
|---|---|---|---|
| 1 | Immediate fix | Not needed | import sorting, whitespace |
| 2 | Safe fix | Log only | variable names, type addition |
| 3 | Approval needed | Needed | logic changes, API modification |
| 4 | Manual needed | Impossible | security, architecture |
Options:
--dry: Preview only (no actual fixes)--sequential/--seq: Sequential scan (for debugging) - parallel is default--level N: Max fix level (default: 3)--errors: Fix errors only--security: Include security check--no-fmt: Skip formatting
Performance: Parallel scan is now the default, combining LSP, AST-grep, and Linter results simultaneously (3.75x faster).
Example:
# Basic fix (parallel by default)
> /moai fix
# Sequential scan (for debugging)
> /moai fix --seq
# Preview
> /moai fix --dry
# Specific files
> /moai fix src/auth.py
4. ๐ค All is Well - Agentic Autonomous Automation
The most powerful feature of MoAI-ADK: AI autonomously explores, plans, implements, and verifies until the completion marker is detected.
Core Concept
User: "Add authentication feature"
โ
AI: Explore โ Plan โ Implement โ Verify โ Repeat
โ
AI: All issues resolved
โ
AI: <moai>DONE</moai> โ Completion Marker
Three-Command Hierarchy
MoAI-ADK provides three levels of autonomous automation:
| Command | Scope | Iteration | Purpose |
|---|---|---|---|
/moai fix |
Code fixes only | 1 time | Single scan + auto-fix |
/moai loop |
Code fixes | Until marker/max | Autonomous iterative fixing |
/moai |
Full dev cycle | Until marker/max | Goal โ SPEC โ Implement โ Docs |
Command Chain Relationship
/moai (Full Automation)
โ
โโโ Phase 0: Parallel Exploration
โโโ Phase 1: SPEC Generation
โโโ Phase 2: Implementation โโโฌโโ /moai loop (Iterative)
โ โ โ
โ โ โโโ /moai fix (Single)
โโโ Phase 3: Documentation
Completion Markers
AI uses completion markers to signal task completion:
## Task Complete
All implementations done, tests passing, docs updated. <moai>DONE</moai>
Supported Markers:
<moai>DONE</moai>- Task complete<moai>COMPLETE</moai>- Full completion<moai:done />- XML format
Auto-Fix Levels
| Level | Description | Approval | Examples |
|---|---|---|---|
| 1 | Immediate fix | Not required | import sorting, whitespace |
| 2 | Safe fix | Log only | variable rename, type hints |
| 3 | Approval needed | Required | logic changes, API modifications |
| 4 | Manual required | Cannot auto | security, architecture |
Quick Start Examples
# Single scan and fix (parallel by default)
> /moai fix
# Autonomous loop until resolved
> /moai loop --max 50
# Full autonomous development (parallel by default)
> /moai "Add JWT authentication" --loop
Why "All is Well"?
The name reflects the philosophy: set the goal and trust the AI. MoAI-ADK's agentic automation handles the entire development cycle autonomously. When you see <moai>DONE</moai>, all is truly well.
5. MoAI Orchestrator and Sub-Agents
๐ฉ MoAI - Strategic Orchestrator
Role: Analyze user requests and delegate to appropriate specialized agents
Workflow:
- Understand: Request analysis and clarification
- Plan: Establish execution plan via Plan agent
- Execute: Delegate tasks to specialized agents (sequential/parallel)
- Integrate: Integrate results and report to user
๐ Multilingual Automatic Routing (NEW)
MoAI automatically recognizes 4 language requests and invokes the correct agent:
| Request Language | Example | Agent Invoked |
|---|---|---|
| English | "Design backend API" | expert-backend |
| Korean | "๋ฐฑ์๋ API ์ค๊ณํด์ค" | expert-backend |
| Japanese | "ใใใฏใจใณใAPIใ่จญ่จใใฆ" | expert-backend |
| Chinese | "่ฎพ่ฎกๅ็ซฏAPI" | expert-backend |
๐ง Tier 1: Domain Experts (9)
| Agent | Expertise | Usage Example |
|---|---|---|
| expert-backend | FastAPI, Django, DB design | API design, query optimization |
| expert-frontend | React, Vue, Next.js | UI components, state management |
| expert-stitch | Google Stitch, UI/UX design | AI-powered UI generation |
| expert-security | Security analysis, OWASP | Security audit, vulnerability analysis |
| expert-devops | Docker, K8s, CI/CD | Deployment automation, infrastructure |
| expert-debug | Bug analysis, performance | Problem diagnosis, bottleneck resolution |
| expert-performance | Profiling, optimization | Response time improvement |
| expert-refactoring | Code refactoring, AST-Grep | Large-scale code transformation |
| expert-testing | Test strategy, E2E | Test planning, coverage |
๐ฏ Tier 2: Workflow Managers (7)
| Agent | Role | Auto Invocation Timing |
|---|---|---|
| manager-spec | SPEC writing (EARS) | /moai plan |
| manager-ddd | DDD implementation execution | /moai run |
| manager-docs | Documentation auto generation | /moai sync |
| manager-quality | TRUST 5 verification | After implementation completion |
| manager-strategy | Execution strategy establishment | Complex planning |
| manager-project | Project initialization & settings | /moai project |
| manager-git | Git workflow | Branch/PR management |
๐๏ธ Tier 3: Claude Code Builder (4)
| Agent | Role | Usage Example |
|---|---|---|
| builder-agent | Create new agent | Organization specialist agent |
| builder-skill | Create new skill | Team-specific skill module |
| builder-command | Create new command | Custom workflow |
| builder-plugin | Create plugin | Distribution plugin |
๐ง Sequential Thinking MCP Support
All agents support --ultrathink flag for deep analysis using Sequential Thinking MCP:
Usage:
> /moai "Add JWT authentication" --ultrathink
Agent-Specific UltraThink Examples:
| Agent Type | UltraThink Deep Analysis Focus |
|---|---|
| expert-backend | API design patterns, database schema, query optimization |
| expert-frontend | Component architecture, state management, UI/UX design |
| expert-security | Threat analysis, vulnerability patterns, OWASP compliance |
| expert-devops | Deployment strategies, CI/CD pipelines, infrastructure |
| manager-ddd | Refactoring strategy, behavior preservation, legacy code |
| manager-spec | Requirements analysis, acceptance criteria, user stories |
When --ultrathink is appended to any agent invocation, the agent activates Sequential Thinking MCP to:
- Break down complex problems into manageable steps
- Analyze domain-specific patterns and best practices
- Map subtasks to appropriate execution strategies
- Generate optimal implementation plans
5. Ralph-Style LSP Integration Workflow (NEW v1.9.0)
LSP-Based Autonomous Development
MoAI-ADK implements Ralph-style autonomous workflow with LSP diagnostics integration. The system captures LSP state at workflow entry, monitors during execution, and automatically completes phases when quality thresholds are met.
Workflow Phases
flowchart TB
Start([SPEC-001]) --> Plan[Plan Phase]
Plan --> PlanLSP[LSP Baseline Capture]
PlanLSP --> PlanCheck{0 errors?}
PlanCheck -->|Yes| Run[Run Phase]
PlanCheck -->|No| PlanFix[Fix issues]
Run --> RunLSP[LSP State Monitoring]
RunLSP --> RunCheck{0 errors<br/>0 type errors<br/>Coverage >= 85%?}
RunCheck -->|Yes| Sync[Sync Phase]
RunCheck -->|No| RunFix[Autonomous Loop]
RunFix --> RunLSP
Sync --> SyncLSP[Final LSP Check]
SyncLSP --> SyncCheck{0 errors<br/><10 warnings?}
SyncCheck -->|Yes| Done[<moai>DONE</moai>]
SyncCheck -->|No| SyncFix[Fix and retry]
SyncFix --> SyncLSP
Done --> End([Complete])
style Plan fill:#fff3e0
style Run fill:#f3e5f5
style Sync fill:#e8f5e9
style Done fill:#c8e6c9
style End fill:#4caf50,color:#fff
Completion Markers
Plan Phase:
- SPEC document created
- LSP baseline recorded
- No blocking issues
Run Phase:
- 0 errors
- 0 type errors
- Coverage >= 85%
- Tests passing
Sync Phase:
- 0 errors
- < 10 warnings
- Documentation synchronized
Configuration
# .moai/config/sections/workflow.yaml
execution_mode:
autonomous:
user_approval_required: false
continuous_loop: true
completion_marker_based: true
lsp_feedback_integration: true
Loop Prevention
- Maximum 100 iterations
- No progress detection (5 iterations)
- Alternative strategy on stall
- Snapshot save for resume
6. Agent-Skills
๐ Skill Library Structure
๐๏ธ Foundation (6) โ Core philosophy, execution rules
๐ฏ Domain (4) โ Domain expertise
๐ป Language (16) โ 16 programming languages
๐ Platform (10) โ Cloud/BaaS integration
๐ Workflow (8) โ Automation workflows
๐ Library (3) โ Special libraries
๐ ๏ธ Tool (2) โ Development tools
๐ Docs (1) โ Documentation generation
๐ Formats (1) โ Data format handling
๐ฅ๏ธ Framework (1) โ Application frameworks
Frequently Used Skill Combinations
| Purpose | Skill Combination |
|---|---|
| Backend API | moai-lang-python + moai-domain-backend + moai-platform-supabase |
| Frontend UI | moai-lang-typescript + moai-domain-frontend + moai-library-shadcn |
| Documentation | moai-library-nextra + moai-workflow-docs + moai-library-mermaid |
| Testing | moai-lang-python + moai-workflow-testing + moai-foundation-quality |
Skill Usage
# Method 1: Direct call (Agent)
Skill("moai-lang-python")
# Method 2: MoAI auto selection (general user)
"FastAPI server ๋ง๋ค์ด์ค"
โ MoAI automatically selects moai-lang-python
7. Google Stitch MCP - AI-Powered UI/UX Design
Overview
Google Stitch is an AI-powered design tool that generates UI screens from text descriptions. MoAI-ADK automates design context extraction, screen generation, and code export through Stitch MCP integration.
Key Features
| Feature | Description |
|---|---|
generate_screen_from_text |
Generate UI screens from text descriptions |
extract_design_context |
Extract "Design DNA" from existing screens (colors, fonts, layout) |
fetch_screen_code |
Download generated screen HTML/CSS/JS code |
fetch_screen_image |
Download screen screenshots |
create_project / list_projects |
Manage Stitch projects |
Quick Start
1. Google Cloud Setup:
# Enable Stitch API
gcloud beta services mcp enable stitch.googleapis.com
# Authenticate
gcloud auth application-default login
# Set environment variable (.bashrc or .zshrc)
export GOOGLE_CLOUD_PROJECT="YOUR_PROJECT_ID"
2. MCP Configuration (.claude/.mcp.json):
{
"mcpServers": {
"stitch": {
"command": "npx",
"args": ["-y", "stitch-mcp"],
"env": {
"GOOGLE_CLOUD_PROJECT": "YOUR_PROJECT_ID"
}
}
}
}
Usage Example
Generate Login Screen:
> Create a login screen with email input, password input (show/hide toggle),
> login button, forgot password link, and social login (Google, Apple).
> Mobile: vertical stack. Desktop: 400px centered card.
Design Consistency Workflow:
extract_design_context: Extract design tokens from existing screengenerate_screen_from_text: Generate new screen with extracted contextfetch_screen_code: Export production-ready code
Prompt Writing Tips
| Item | Recommendation |
|---|---|
| Components | Specify required UI elements like buttons, inputs, cards |
| Layout | Specify single-column, grid, sidebar, etc. |
| Responsive | Describe mobile/desktop behavior |
| Style | Define colors, fonts, hover effects |
Note: Requesting one screen at a time with one or two modifications yields the best results.
Detailed Documentation
For complete prompt templates, error handling, and advanced patterns, see the skill documentation:
- Skill:
.claude/skills/moai-platform-stitch/SKILL.md - Agent:
expert-stitch(UI/UX design specialist agent)
7.1 Memory MCP - Persistent Storage Across Sessions
Overview
Memory MCP enables persistent storage across Claude Code sessions, allowing MoAI to remember user preferences, project context, and learned patterns.
Key Features
| Feature | Description |
|---|---|
| User Preferences | Remember conversation language, coding style, naming conventions |
| Project Context | Persist tech stack, architecture decisions, project conventions |
| Learned Patterns | Store frequently used libraries, common error resolutions |
| Session State | Track last worked SPEC, pending tasks across sessions |
Memory Categories
| Prefix | Category | Examples |
|---|---|---|
user_ |
User Preferences | user_language, user_coding_style |
project_ |
Project Context | project_tech_stack, project_architecture |
pattern_ |
Learned Patterns | pattern_preferred_libraries, pattern_error_resolutions |
session_ |
Session State | session_last_spec, session_pending_tasks |
Installation
Add Memory MCP to your Claude Code configuration:
// .claude/settings.local.json
{
"mcpServers": {
"memory": {
"command": "npx",
"args": ["-y", "@anthropic/memory-mcp-server"]
}
}
}
Usage Examples
Store User Preference:
"Remember that I prefer Korean for conversations"
โ MoAI stores: user_language = "ko"
Learn from Corrections:
"Use snake_case for Python variables"
โ MoAI stores: user_coding_style = "snake_case"
Retrieve Context:
"What was the last SPEC I was working on?"
โ MoAI retrieves: session_last_spec
Best Practices
- Use descriptive, categorized key names
- Keep values concise (under 1000 characters)
- Never store sensitive credentials
- Store preferences, not personal data
8. TRUST 5 Quality Principles
All MoAI-ADK projects follow the TRUST 5 quality framework.
๐ TRUST 5 = Test + Readable + Unified + Secured + Trackable
NEW v1.9.0: LSP Integration for Quality Monitoring
graph TD
T1["๐ด T: Tested<br/>โโโโโโโโ<br/>โข DDD with tests<br/>โข 85%+ coverage<br/>โข Behavior preserved<br/>โข LSP: 0 type errors"]
R["๐ R: Readable<br/>โโโโโโโโ<br/>โข Clear naming<br/>โข Code comments<br/>โข Linter compliance<br/>โข LSP: 0 lint errors"]
U["๐ U: Unified<br/>โโโโโโโโ<br/>โข Consistent style<br/>โข Standard patterns<br/>โข Error handling<br/>โข LSP: <10 warnings"]
S["๐ S: Secured<br/>โโโโโโโโ<br/>โข OWASP Top 10<br/>โข Vulnerability scan<br/>โข Encryption policy<br/>โข LSP: 0 security warnings"]
T2["๐ T: Trackable<br/>โโโโโโโโ<br/>โข Clear commits<br/>โข Issue tracking<br/>โข CHANGELOG<br/>โข LSP: State tracked"]
T1 --> R --> U --> S --> T2 --> Deploy["โ
Production Ready"]
LSP Integration with TRUST 5 (NEW v1.9.0)
| TRUST 5 Pillar | LSP Quality Indicators |
|---|---|
| Tested | Unit tests pass, LSP type errors = 0 |
| Readable | Linting clean, naming conventions followed |
| Unified | Warnings < threshold, consistent patterns |
| Secured | Security scan pass, no security warnings |
| Trackable | LSP state changes logged, diagnostics tracked |
T - Tested
Principle: All implementation is validated with tests
Verification:
- Test coverage >= 85%
- Characterization tests for existing code
- Behavior preservation verified
- Incremental improvements
R - Readable
Principle: Code must be clear and easy to understand
Verification:
- Clear variable names
- Comments on complex logic
- Pass code review
- Pass linter checks
U - Unified
Principle: Maintain consistent style across project
Verification:
- Follow project style guide
- Consistent naming conventions
- Unified error handling
- Standard document format
S - Secured
Principle: All code must pass security verification
Verification:
- OWASP Top 10 checks
- Dependency vulnerability scanning
- Encryption policy compliance
- Access control verification
T - Trackable
Principle: All changes must be clearly trackable
Verification:
- Clear commit messages
- Issue tracking (GitHub Issues)
- Maintain CHANGELOG
- Code review records
9. Automated Quality Checks
๐ AST-Grep Based Structural Inspection
AST-Grep analyzes code structure not text:
| Feature | Description | Example |
|---|---|---|
| Structural Search | AST pattern matching | Find unparameterized SQL queries |
| Security Scan | Auto vulnerability detection | SQL Injection, XSS, hardcoded secrets |
| Pattern Refactoring | Safe code transformation | Bulk variable rename, function extraction |
| Multi-language Support | 40+ languages | Python, TypeScript, Go, Rust... |
Auto Inspection Flow
Code writing
โ
[Hook] AST-Grep auto scan
โ
โ ๏ธ Immediate alert on vulnerability detection
โ
โ
Refactor to safe code
Detection Example:
โ ๏ธ AST-Grep: Potential SQL injection in src/auth.py:47
Pattern: execute(f"SELECT * FROM users WHERE id={user_id}")
Suggestion: execute("SELECT * FROM users WHERE id=%s", (user_id,))
๐ก๏ธ Security Guard - Command Protection
MoAI-ADK includes a Security Guard hook that protects against dangerous operations:
| Category | Protected Commands | Platform |
|---|---|---|
| Database Deletion | supabase db reset, neon database delete, pscale database delete |
All |
| SQL Dangerous | DROP DATABASE, DROP SCHEMA, TRUNCATE TABLE |
All |
| File Deletion | rm -rf /, rm -rf ~, rm -rf .git |
Unix |
| File Deletion | rd /s /q C:\, Remove-Item -Recurse -Force |
Windows |
| Git Dangerous | git push --force origin main, git branch -D main |
All |
| Cloud Infra | terraform destroy, az group delete, aws delete-* |
All |
| Docker Cleanup | docker system prune -a, docker volume prune, docker image prune -a |
All |
Protection Levels:
| Level | Action | Example |
|---|---|---|
| Deny | Blocked immediately | rm -rf /, DROP DATABASE, docker system prune -a |
| Ask | Requires user confirmation | git reset --hard, prisma migrate reset |
| Allow | Proceeds normally | Safe operations |
How it works:
User executes command
โ
[Hook] Security Guard scan
โ
โ ๏ธ Dangerous pattern detected โ Block or Ask
โ
โ
Safe to proceed
Note: The security guard protects both Unix (macOS/Linux) and Windows users with platform-specific command patterns.
Manual Execution: When you actually need to run these commands, execute them directly in your terminal:
# Docker cleanup (run manually when needed)
docker system prune -a # Remove all unused images, containers, networks
docker volume prune # Remove unused volumes (โ ๏ธ data loss risk)
docker image prune -a # Remove all unused images
# Database operations (run manually when needed)
supabase db reset # Reset local database
DROP DATABASE dbname; # SQL: Drop database
# File operations (run manually when needed)
rm -rf node_modules # Remove node_modules
10. ๐ Statusline Customization
MoAI-ADK provides a customizable statusline that displays real-time project information in Claude Code.
Default Statusline Layout
๐ค Opus 4.5 | ๐ฐ 152K/200K | ๐ฌ MoAI | ๐ MoAI-ADK | ๐ +0 M58 ?5 | ๐พ 57.7MB | ๐ main
Statusline Components
| Icon | Component | Description | Config Key |
|---|---|---|---|
| ๐ค | Model | Claude model (Opus, Sonnet, etc.) | model |
| ๐ฐ | Context | Context window usage (e.g., 77K/200K) | context_window |
| ๐ฌ | Style | Active output style (e.g., MoAI) | output_style |
| ๐ | Directory | Current project name | directory |
| ๐ | Git Status | Staged/Modified/Untracked files | git_status |
| ๐พ | Memory | Process memory usage | memory_usage |
| ๐ | Branch | Current Git branch | branch |
| ๐ | Version | Claude Code version (optional) | version |
Configuration
Edit .moai/config/statusline-config.yaml:
display:
model: true # ๐ค Claude model
context_window: true # ๐ฐ Context window
output_style: true # ๐ฌ Output style
directory: true # ๐ Project name
git_status: true # ๐ Git status
memory_usage: true # ๐พ Memory usage
branch: true # ๐ Git branch
version: 1.1.0 # ๐
Version (optional)
active_task: true # Active task
Memory Collector
When memory_usage is enabled, MoAI-ADK uses psutil to collect real-time memory usage:
- Process Memory: RSS (Resident Set Size) of the current Python process
- Caching: Performance optimization with 10-second TTL
- Cross-Platform: Supports macOS, Linux, Windows
- Graceful Degradation: Displays "N/A" when psutil is unavailable
Display Modes
| Mode | Max Length | Use Case |
|---|---|---|
compact |
80 chars | Standard terminal |
extended |
120 chars | Wide terminal |
minimal |
40 chars | Narrow terminal |
Set mode:
export MOAI_STATUSLINE_MODE=extended
11. ๐ณ Worktree Parallel Development
MoAI-ADK's core innovation: Worktree for complete isolation, unlimited parallel development
๐ก Why Worktree?
Problem: Changing LLMs with moai glm/moai cc applies to all open sessions. Changing models in the same session leads to authentication errors, making continuation difficult.
Solution: Git Worktree completely isolates each SPEC to maintain independent LLM settings
๐ฆ Worktree Workflow
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Terminal 1 (Claude Opus) - SPEC Design Only โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ $ cd my-project โ
โ $ claude โ
โ โ
โ > /moai plan "์ฌ์ฉ์ ์ธ์ฆ ์์คํ
" --worktree โ
โ โ
SPEC-AUTH-001 ์์ฑ ์๋ฃ โ
โ โ
Worktree ์์ฑ: ~/moai/worktrees/my-project/SPEC-AUTH-001 โ
โ โ
Branch: feature/SPEC-AUTH-001 โ
โ โ
โ > /moai plan "๊ฒฐ์ ์์คํ
" --worktree โ
โ โ
SPEC-PAY-002 ์์ฑ ์๋ฃ โ
โ โ
Worktree ์์ฑ: ~/moai/worktrees/my-project/SPEC-PAY-002 โ
โ โ
โ > /moai plan "๋์๋ณด๋ UI" --worktree โ
โ โ
SPEC-UI-003 ์์ฑ ์๋ฃ โ
โ โ
Worktree ์์ฑ: ~/moai/worktrees/my-project/SPEC-UI-003 โ
โ โ
โ ๐ก Opus๋ก ๋ชจ๋ SPEC ๊ณํ ์๋ฃ (์ธ์
์ ์ง ์ค...) โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Terminal 2 - SPEC-AUTH-001 Worktree (GLM 4.7) โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ $ moai-worktree go SPEC-AUTH-001 โ
โ # Or shortcut: moai-wt go SPEC-AUTH-001 โ
โ โ
โ ๐ Current location: ~/moai/worktrees/my-project/SPEC-AUTH-001 โ
โ ๐ Branch: feature/SPEC-AUTH-001 โ
โ โ
โ $ moai glm โ
โ โ
Switched to GLM backend โ
โ โ
โ $ claude โ
โ > /moai run SPEC-AUTH-001 โ
โ ๐ DDD Running... (Analyze โ Preserve โ Improve) โ
โ โ
๊ตฌํ ์๋ฃ! โ
โ โ
ํ
์คํธ ํต๊ณผ (Coverage: 92%) โ
โ โ
โ > /moai sync SPEC-AUTH-001 โ
โ โ
๋ฌธ์ ๋๊ธฐํ ์๋ฃ โ
โ โ
โ # After completion, merge โ
โ $ git checkout main โ
โ $ git merge feature/SPEC-AUTH-001 โ
โ $ moai-worktree clean --merged-only โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Terminal 3 - SPEC-PAY-002 Worktree (GLM 4.7) โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ $ moai-wt go SPEC-PAY-002 โ
โ $ moai glm โ
โ $ claude โ
โ โ
โ > /moai SPEC-PAY-002 โ
โ ๐ Plan โ Run โ Sync ์๋ ์คํ โ
โ โ
์๋ฃ! โ
โ โ
โ $ git checkout main && git merge feature/SPEC-PAY-002 โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Terminal 4 - SPEC-UI-003 Worktree (GLM 4.7) โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ $ moai-wt go SPEC-UI-003 โ
โ $ moai glm โ
โ $ claude โ
โ > /moai SPEC-UI-003 โ
โ โ
์๋ฃ! โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
๐ฏ Core Workflow
Phase 1: Plan with Claude 4.5 Opus (Terminal 1)
/moai plan "feature description" --worktree
- โ SPEC document generation
- โ Worktree auto creation
- โ Feature branch auto creation
Phase 2: Implement with GLM 4.7 (Terminals 2, 3, 4...)
moai-wt go SPEC-ID
moai glm
claude
> /moai run SPEC-ID
> /moai sync SPEC-ID
- โ Isolated work environment
- โ GLM cost efficiency
- โ Conflict-free parallel development
Phase 3: Merge and Cleanup
# Option 1: Complete in one step (Recommended)
moai-wt done SPEC-ID # checkout main โ merge โ cleanup
moai-wt done SPEC-ID --push # above + push to remote
# Option 2: Manual steps
git checkout main
git merge feature/SPEC-ID
moai-wt clean --merged-only
โจ Worktree Benefits
| Benefit | Description |
|---|---|
| Complete Isolation | Each SPEC has independent Git state, no file conflicts |
| LLM Independence | Separate LLM settings per Worktree |
| Unlimited Parallel | Unlimited SPEC parallel development without dependencies |
| Safe Merge | Only completed SPECs sequentially merge to main |
๐ Worktree Commands
| Command | Description | Usage Example |
|---|---|---|
moai-wt new SPEC-ID |
Create new Worktree | moai-wt new SPEC-AUTH-001 |
moai-wt go SPEC-ID |
Enter Worktree (open new shell) | moai-wt go SPEC-AUTH-001 |
moai-wt list |
List Worktrees | moai-wt list |
moai-wt done SPEC-ID |
Merge and cleanup (checkoutโmerge) | moai-wt done SPEC-AUTH-001 |
moai-wt remove SPEC-ID |
Remove Worktree | moai-wt remove SPEC-AUTH-001 |
moai-wt status |
Check Worktree status and registry | moai-wt status |
moai-wt sync [SPEC-ID] |
Synchronize Worktree | moai-wt sync --all |
moai-wt clean |
Clean merged Worktrees | moai-wt clean --merged-only |
moai-wt recover |
Recover registry from disk | moai-wt recover |
moai-wt config |
Check Worktree settings | moai-wt config root |
12. Understanding CLAUDE.md
The CLAUDE.md file generated in your project root after MoAI-ADK installation is MoAI's (AI Orchestrator) execution directive. This file defines how Claude Code behaves in your project.
What is CLAUDE.md?
CLAUDE.md is a project configuration file that Claude Code automatically reads at session start. In MoAI-ADK, this file defines the behavioral rules for the MoAI orchestrator.
๐ Project Root
โโโ CLAUDE.md โ MoAI execution directive (don't modify)
โโโ CLAUDE.local.md โ Personal custom directives (optional)
โโโ .claude/
โ โโโ settings.json โ Claude Code settings (overwritten on update)
โ โโโ settings.local.jsonโ Personal settings (optional, not overwritten)
โ โโโ agents/ โ Sub-agent definitions
โ โโโ commands/ โ Slash commands
โ โโโ skills/ โ Skill definitions
โโโ .moai/
โโโ config/ โ MoAI configuration
CLAUDE.md Core Structure
| Section | Description | Key Content |
|---|---|---|
| Core Identity | MoAI's role definition | Strategic orchestrator, HARD rules |
| Request Processing Pipeline | Request handling flow | Analyze โ Route โ Execute โ Report |
| Command Reference | Command classification | Type A (Workflow), Type B (Utility), Type C (Feedback) |
| Agent Catalog | Sub-agent listing | 8 Managers, 8 Experts, 4 Builders |
| SPEC-Based Workflow | SPEC-driven development | Plan โ Run โ Sync flow |
| Quality Gates | Quality validation rules | HARD/SOFT rules checklist |
| Configuration Reference | Settings reference | Language, output format rules |
Usage: Don't Modify It
Recommendation: Use
CLAUDE.mdas-is without modification.
Reasons:
- Automatically replaced with the latest version during MoAI-ADK updates
- Modifications may cause update conflicts
- Ensures consistent behavior across agents
# CLAUDE.md is automatically updated
moai update
Customization: Use CLAUDE.local.md
If you need additional directives, create a CLAUDE.local.md file.
# Create CLAUDE.local.md in project root
touch CLAUDE.local.md
CLAUDE.local.md Example:
# Project Local Directives
## Coding Style
- Type hints required for all functions
- Use Google-style docstrings
## Project-Specific Rules
- API responses always use snake_case
- Test files must have test\_ prefix
## Prohibited
- No console.log (use logger)
- No any type usage
Benefits:
- No conflicts with
CLAUDE.mdupdates - Project-specific customization
- Can add to
.gitignorefor personal settings
CLAUDE.md vs CLAUDE.local.md
| Aspect | CLAUDE.md | CLAUDE.local.md |
|---|---|---|
| Purpose | MoAI execution directives | Personal/project additional directives |
| Modification | Not recommended | Freely modifiable |
| Updates | Managed by MoAI | Managed by user |
| Git | Committed | Optional (.gitignore possible) |
| Priority | Base rules | Additional/override rules |
Settings Customization: Use settings.local.json
Since v1.8.12, .claude/settings.json is always overwritten during moai update. For personal customizations, create a settings.local.json file.
# Create settings.local.json in .claude/ directory
touch .claude/settings.local.json
settings.local.json Example:
{
"env": {
"CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC": "1",
"DISABLE_NON_ESSENTIAL_MODEL_CALLS": "1",
"MY_CUSTOM_VAR": "value"
},
"permissions": {
"allow": [
"Bash(docker:*)",
"Bash(kubectl:*)"
]
}
}
Benefits:
- No conflicts with
settings.jsonupdates - Personal environment variables and permissions
- Can add to
.gitignorefor private settings
settings.json vs settings.local.json
| Aspect | settings.json | settings.local.json |
|---|---|---|
| Purpose | MoAI default settings | Personal/project additional settings |
| Modification | Not recommended | Freely modifiable |
| Updates | Overwritten by MoAI | Managed by user |
| Git | Committed | Optional (.gitignore possible) |
| Priority | Base settings | Merged on top (higher priority) |
Core Rules (HARD Rules)
HARD rules defined in CLAUDE.md are always enforced:
- Language-Aware Responses: Respond in user's language
- Parallel Execution: Execute independent tasks in parallel
- No XML in User Responses: No XML tags in user-facing responses
These rules cannot be overridden even by CLAUDE.local.md.
13. MoAI Rank Introduction
A new dimension of agentic coding: Track your coding journey and compete with global developers!
Why MoAI Rank?
| Feature | Description |
|---|---|
| ๐ Token Tracking | Automatic AI usage tracking per session |
| ๐ Global Leaderboard | Daily/Weekly/Monthly/All-time rankings |
| ๐ญ Coding Style Analysis | Discover your unique development patterns |
| ๐ Dashboard | Visualized statistics and insights |
๐ CLI Commands
โฏ moai rank
Usage: moai rank [OPTIONS] COMMAND [ARGS]...
MoAI Rank - Token usage leaderboard.
Track your Claude Code token usage and compete on the leaderboard.
Visit https://rank.mo.ai.kr for the web dashboard.
Commands:
register Register with MoAI Rank via GitHub OAuth.
status Show your current rank and statistics.
exclude Exclude a project from session tracking.
include Re-include a previously excluded project.
logout Remove stored MoAI Rank credentials.
Step 1: GitHub OAuth Registration
โฏ moai rank login
โญโโโโโโโโโโโโโโโโโโโโโโโโโโโโ Registration โโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ
โ MoAI Rank Registration โ
โ โ
โ This will open your browser to authorize with GitHub. โ
โ After authorization, your API key will be stored securely. โ
โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ
Opening browser for GitHub authorization...
Waiting for authorization (timeout: 5 minutes)...
โญโโโโโโโโโโโโโโโโโโโโโโโโโ Registration Complete โโโโโโโโโโโโโโโโโโโโโโโฎ
โ Successfully registered as your-github-id โ
โ โ
โ API Key: moai_rank_a9011fac_c... โ
โ Stored in: ~/.moai/rank/credentials.json โ
โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ
โญโโโโโโโโโโโโโโโโโโโโโโโโโ Global Hook Installed โโโโโโโโโโโโโโโโโโโโโโโฎ
โ Session tracking hook installed globally. โ
โ โ
โ Your Claude Code sessions will be automatically tracked. โ
โ Hook location: ~/.claude/hooks/moai/session_end__rank_submit.py โ
โ โ
โ To exclude specific projects: โ
โ moai rank exclude /path/to/project โ
โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ
Step 2: Sync Session Data
Sync your existing Claude Code session data to MoAI Rank.
โฏ moai rank sync
Syncing 2577 session(s) to MoAI Rank
Phase 1: Parsing transcripts (parallel: 20 workers)
Parsing transcripts โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ 100% (2577/2577)
Phase 2: Submitting 1873 session(s) (batch mode)
Batch size: 100 | Batches: 19
Submitting batches โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ 100% (19/19)
Sync Complete
โ Submitted: 1169
โ Skipped: 704 (no usage or duplicate)
โ Failed: 0
Step 3: Check Your Rank
โฏ moai rank status
โญโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ MoAI Rank โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ
โ your-github-id โ
โ โ
โ ๐ Global Rank: #42 โ
โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ
โญโโโโโ Daily โโโโโโโฎ โญโโโโโ Weekly โโโโโโฎ โญโโโโ Monthly โโโโโโฎ โญโโโโ All Time โโโโโฎ
โ #12 โ โ #28 โ โ #42 โ โ #156 โ
โฐโโโโโโโโโโโโโโโโโโโฏ โฐโโโโโโโโโโโโโโโโโโโฏ โฐโโโโโโโโโโโโโโโโโโโฏ โฐโโโโโโโโโโโโโโโโโโโฏ
โญโโโโโโโโโโโโโโโโโโโโโโโโโโโ Token Usage โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ
โ 1,247,832 total tokens โ
โ โ
โ Input โโโโโโโโโโโโโโโโโโโโ 847,291 (68%) โ
โ Output โโโโโโโโโโโโโโโโโโโโ 400,541 (32%) โ
โ โ
โ Sessions: 47 โ
โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ
โ Hook: Installed | https://rank.mo.ai.kr
Step 3: Web Dashboard
On the dashboard:
- Token usage trends
- Tool usage statistics
- Model-specific usage analysis
- Weekly/monthly reports
๐ Details: Refer to modu-ai/moai-rank repository.
Step 4: Collected Metrics
| Metric | Description |
|---|---|
| Token Usage | Input/output tokens, cache tokens |
| Tool Usage | Read, Edit, Bash usage counts |
| Model Usage | Opus, Sonnet, Haiku breakdown |
| Code Metrics | Added/deleted lines, modified files |
| Session Info | Duration, turn count, timestamps |
๐ Privacy Protection
# Exclude current project
moai rank exclude
# Exclude specific path
moai rank exclude /path/to/private
# Wildcard pattern
moai rank exclude "*/confidential/*"
# List excluded
moai rank list-excluded
Guarantee: Collected data is numeric metrics only (code content, file paths not transmitted)
14. FAQ 5 Questions
Q1: Is SPEC Always Required?
| Condition | SPEC Required |
|---|---|
| 1-2 files modified | Optional (can skip) |
| 3-5 files modified | Recommended |
| 10+ files modified | Required |
| New feature addition | Recommended |
| Bug fix | Optional |
Q2: Is MCP Server Installation Required?
Required (2):
- Context7: For latest library documentation and Skill reference generation
- Sequential Thinking: For structured problem-solving and step-by-step reasoning in complex tasks
Recommended:
- Memory MCP: Persistent storage across sessions for user preferences, project context, and learned patterns
Optional:
- claude-in-chrome: Use Claude in browser and web automation testing
- Playwright: Web automation testing
- Figma: Design system
Q3: Does MoAI Rank Cost Money?
It's free. Only automatically collects session data.
Q4: Is GLM Configuration Required?
No. You can use Claude only. However, it's recommended for cost savings.
Q5: Can It Be Applied to Existing Projects?
Yes. moai init . preserves existing files.
15. Community & Support
๐ Participate
- Discord (Official): https://discord.gg/umywNygN
- GitHub: https://github.com/modu-ai/moai-adk
- Developer Blog: https://goos.kim
๐ Support
- Email: support@mo.ai.kr
- Documentation: https://adk.mo.ai.kr
15. Star History
16. License
Copyleft License (COPYLEFT-3.0) - LICENSE
17. ๐ Made with โค๏ธ by MoAI-ADK Team
Last Updated: 2026-01-28 Philosophy: SPEC-First DDD + Agent Orchestration + Hybrid LLM MoAI: MoAI means "Modu-ui AI" (AI for Everyone).
"Infinite Possibilism - AI for All"
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file moai_adk-1.14.5.tar.gz.
File metadata
- Download URL: moai_adk-1.14.5.tar.gz
- Upload date:
- Size: 24.6 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.28 {"installer":{"name":"uv","version":"0.9.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
48996f7378b4b457bc9b980f681a3760acb6736e78fca99e0a9a0177f4f35621
|
|
| MD5 |
c50a0ee27c2328f210196c89508719e1
|
|
| BLAKE2b-256 |
7d8066bf4feb73d97eeef0379d97f3a12d0ebc1a5c6462ef7ca31f92f36a9db5
|
File details
Details for the file moai_adk-1.14.5-py3-none-any.whl.
File metadata
- Download URL: moai_adk-1.14.5-py3-none-any.whl
- Upload date:
- Size: 2.8 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.28 {"installer":{"name":"uv","version":"0.9.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d9a5580ceda757bec9a783f280e0dc24fc55a9d1a59921a1d021ca89572c513f
|
|
| MD5 |
bafa8fdbb479e6f2723e83a7c559e214
|
|
| BLAKE2b-256 |
51daca29a72a7aaaccbdc0aa0d40a734041b30ad629456c7f3959b8ebb74a76e
|