AIDA (Agent Integration & Development Architecture) - Multi-agent orchestration framework for Claude Code.
English | 日本語 | 简体中文 | 繁體中文 | Русский | فارسی | العربية
- Overview
- Requirements
- Installation
- Update
- Uninstall
- Usage Guide
- Command Reference
- Quality Gates
- Configuration
- Troubleshooting
- Contributing
- License
AIDA enables multi-agent orchestration for software development projects using Claude Code's Task tool to spawn subagents. It automates the entire development lifecycle from requirements to implementation with TDD (Test-Driven Development) enforcement.
- Multi-Agent Orchestration: Automatically spawns and coordinates multiple Claude agents
- 5-Phase Workflow: Structured development from requirements to implementation
- 19 Quality Gates: Automated validation of code quality, tests, and coverage
- TDD Enforcement: Red-Green-Refactor cycle with evidence tracking
- Stack Support: Go + React + Docker (default), with extensibility for other stacks
| Tool | Version | Purpose |
|---|---|---|
| Claude Code | Latest | Core CLI |
| bash | 4.0+ | Script execution |
| git | 2.0+ | Version control |
| jq | 1.6+ | JSON processing |
| Tool | Version | Purpose |
|---|---|---|
| grepai | Latest | Semantic search (80% token reduction) |
| fzf | Latest | Interactive file selection |
| jj (Jujutsu) | Latest | Environment isolation |
| go | 1.21+ | Backend development |
| node | 18+ | Frontend development |
| docker | 24+ | Container builds |
# Ubuntu/Debian
sudo apt install jq fzf git
# macOS
brew install jq fzf git
# Install grepai (recommended for semantic search)
go install github.com/yoanbernabeu/grepai@latest
# Install jj (optional - for environment isolation)
cargo install jj-clicurl -sSL https://raw.githubusercontent.com/clearclown/claude-code-aida/main/scripts/install.sh | bash# Clone repository
git clone https://github.com/clearclown/claude-code-aida.git ~/.claude-code-aida
# Run install script
cd ~/.claude-code-aida
./scripts/install.sh# Clone to custom location
git clone https://github.com/clearclown/claude-code-aida.git /path/to/aida
# Install from that location
cd /path/to/aida
./scripts/install.sh# Check installation
./scripts/verify-installation.sh
# Restart Claude Code
claude
# Test command availability
/aida:statusIf /aida shows "Unknown skill", restart Claude Code and try again.
~/.claude-code-aida/ # AIDA source files
~/.claude/commands/
aida.md # Main /aida command
aida/
init.md # /aida:init
start.md # /aida:start
status.md # /aida:status
work.md # /aida:work
pipeline.md # /aida:pipeline
enhance.md # /aida:enhance
analyze.md # /aida:analyze
maintain.md # /aida:maintain
import.md # /aida:import
resume.md # /aida:resume
fix.md # /aida:fix
# Navigate to AIDA directory
cd ~/.claude-code-aida
# Pull latest changes and reinstall
git pull origin main
./scripts/install.sh# One-line update
cd ~/.claude-code-aida && git pull origin main && ./scripts/install.shcd ~/.claude-code-aida
git fetch --tags
git checkout v1.2.0 # Replace with desired version
./scripts/install.shcd ~/.claude-code-aida
git fetch origin
git checkout develop # or feature/new-feature
git pull
./scripts/install.sh# Check version/status
./scripts/verify-installation.sh
# Restart Claude Code after update
# Then test:
/aida:status# Remove command files
rm -f ~/.claude/commands/aida.md
rm -rf ~/.claude/commands/aida/
# Remove AIDA source directory
rm -rf ~/.claude-code-aida
# Optional: Remove project data (only do this if you don't need the data)
# rm -rf ~/.aida # Global AIDA data# Only remove command files (keeps source for reinstall)
rm -f ~/.claude/commands/aida.md
rm -rf ~/.claude/commands/aida/# Remove AIDA data from a specific project
cd /path/to/project
rm -rf .aida/# Check commands are removed
ls ~/.claude/commands/aida* 2>/dev/null || echo "Commands removed"
# Check source directory
ls ~/.claude-code-aida 2>/dev/null || echo "Source removed"# Create project directory
mkdir my-project && cd my-project
# Start Claude Code
claude
# Generate project with full pipeline
/aida "Create a blog platform with user authentication"# Initialize workspace
/aida:init
# Start specification phase
/aida:start "Create a Twitter clone"
# Check current status
/aida:status
# Continue work
/aida:work# Navigate to existing project
cd /path/to/existing-project
claude
# Analyze and enhance
/aida:enhance . "Add user profile feature"# Import from GitHub
/aida:import https://github.com/user/repo
# Import from local path
/aida:import /path/to/project/aida:resume/aida:fix# Run all gates
./scripts/quality-gates.sh my-project
# Skip Docker gates
./scripts/quality-gates.sh my-project --skip-docker
# Skip frontend gates
./scripts/quality-gates.sh my-project --skip-frontend
# Verbose output
./scripts/quality-gates.sh my-project --verbose/aida:analyze /path/to/project# Update dependencies
/aida:maintain /path/to/project --update-deps
# Security audit
/aida:maintain /path/to/project --security-audit| Command | Description | Usage |
|---|---|---|
/aida "<description>" |
Full pipeline execution | /aida "Create a todo app" |
/aida:init |
Initialize .aida/ directory |
/aida:init |
/aida:start "<desc>" |
Start specification phase | /aida:start "Blog platform" |
/aida:work |
Continue current phase | /aida:work |
/aida:status |
Show session status | /aida:status |
/aida:pipeline |
Alias for /aida |
/aida:pipeline "Chat app" |
| Command | Description | Usage |
|---|---|---|
/aida:enhance |
Enhance existing project | /aida:enhance . "Add feature" |
/aida:analyze |
Analyze project structure | /aida:analyze /path/to/project |
/aida:maintain |
Maintenance tasks | /aida:maintain . --update-deps |
/aida:import |
Import external project | /aida:import https://github.com/... |
/aida:resume |
Resume last session | /aida:resume |
/aida:fix |
Fix quality gate failures | /aida:fix |
# Verify installation
./scripts/verify-installation.sh
# Run quality gates
./scripts/quality-gates.sh <project>
# Analyze project
./scripts/analyze-project.sh /path/to/project
# Parse requirements document
./scripts/parse-requirements.sh docs/requirements.md
# Setup jj for environment isolation
./scripts/setup-jj.sh
# Semantic search (requires grepai)
./scripts/semantic-search.sh "authentication logic"
# Interactive file picker (requires fzf)
./scripts/file-picker.sh code ./srcAIDA enforces quality through 19 automated gates:
| Gate | Check | Command |
|---|---|---|
| 1 | Backend Build | go build ./... |
| 2 | Backend Tests | go test ./... |
| 3 | Frontend Build | npm run build |
| 4 | Frontend Tests | npm test -- --run |
| 5 | Docker Build | docker compose build |
| 6 | Docker Run | docker compose up -d |
| 7 | Health Check | curl localhost:8080/health |
| Gate | Check | Threshold |
|---|---|---|
| 8 | API Coverage | 3+ handlers |
| 9 | Frontend Coverage | 3+ pages |
| 10 | Integration | CORS, Docker links |
| 11 | Backend Test Count | 80+ tests |
| 12 | Frontend Test Count | 100+ tests |
| 13 | Empty Array Pattern | Go nil checks |
| 14 | Backend Coverage | 75%+ |
| 15 | E2E Config | Playwright setup |
| 16 | Design Quality | shadcn/ui |
| 17 | Frontend Coverage | 70%+ |
| 18 | E2E Test Count | 20+ tests |
| 19 | E2E Execution | Playwright pass |
| Gate | Check | Requirement |
|---|---|---|
| 20 | TDD Evidence | 10+ TDD cycles recorded |
.aida/ # AIDA management directory
state/
session.json # Session state
coordinator.json # Agent coordination
specs/ # Generated specifications
artifacts/ # Intermediate work
tdd-evidence/ # TDD cycle records
fix-plans/ # Generated fix plans
search-cache/ # Semantic search cache
results/ # Completion reports
./ # Generated project
backend/ # Go backend
frontend/ # React frontend
docker-compose.yml # Container config
# Project directory override
export CLAUDE_PROJECT_DIR=/path/to/project
# Agent scaling configuration
export MAX_AGENTS=4
export MIN_AGENTS=1
# Token limit configuration
export AIDA_TOKEN_LIMIT=100000Edit scripts/quality-gates.sh:
# Change test count requirements
MIN_BACKEND_TESTS=50 # Default: 80
MIN_FRONTEND_TESTS=70 # Default: 100
# Change coverage requirements
MIN_BACKEND_COVERAGE=60 # Default: 75
MIN_FRONTEND_COVERAGE=60 # Default: 70# Skip Docker gates (no Docker installed)
./scripts/quality-gates.sh project --skip-docker
# Skip frontend gates (backend-only project)
./scripts/quality-gates.sh project --skip-frontendCommands not installed:
cd ~/.claude-code-aida
./scripts/install.sh
# Restart Claude Code# Check which gate failed
./scripts/quality-gates.sh project --verbose
# Skip Docker if unavailable
./scripts/quality-gates.sh project --skip-docker
# Generate fix plan
./scripts/generate-fix-plan.sh project# Check session state
cat .aida/state/session.json | jq .
# Reset session
rm .aida/state/session.json
/aida:init# Install grepai
go install github.com/yoanbernabeu/grepai@latest
# Add to PATH
export PATH=$PATH:$(go env GOPATH)/bin# Install fzf
sudo apt install fzf # Ubuntu/Debian
brew install fzf # macOS# Full installation verification
./scripts/verify-installation.sh
# Check AIDA logs
ls -la .aida/logs/
# Check agent status
./scripts/agent-coordinator.sh status
# Check resource usage
./scripts/resource-monitor.sh statusContributions welcome! Areas of focus:
- Python/FastAPI stack support
- Node.js/Express stack support
- Rust/Axum stack support
- Configurable quality thresholds
- Better session recovery
- Improved project analysis
- More test coverage
# Clone for development
git clone https://github.com/clearclown/claude-code-aida.git
cd claude-code-aida
# Run tests
./tests/run-all-tests.sh
# Lint prompts
./scripts/prompt-lint.sh agents/
# Check installation
./scripts/verify-installation.shCurrently tested scripts (20 test suites):
test-agent-coordinator.shtest-agent-scaler.shtest-analyze-project.shtest-common.shtest-enhancement-queue.shtest-file-picker.shtest-generate-fix-plan.shtest-install.shtest-jj-worktree.shtest-parse-requirements.shtest-prompt-lint.shtest-quality-gates.shtest-ralph-gate.shtest-resource-monitor.shtest-semantic-search.shtest-setup-jj.shtest-task-seeker.shtest-tdd-logger.shtest-validate-completion.shtest-verify-installation.sh
MIT
| Project | Author | Role |
|---|---|---|
| zoltraak | @dai-motoki | Requirements Generation |
| cc-sdd | @gotalab | Specification-Driven Development |
| claude-code-harness | @Chachamaru127 | TDD Framework |
| orchestrobot (aida-cli) | @kent8192 | Multi-Agent Orchestration |
| Project | License |
|---|---|
| Claude Code | Anthropic |
| Podman | Apache 2.0 |