Skip to main content
Glama

AI Coding Orchestrator(aico V2)

プロダクション品質のローカルCLIアプリケーションで、特化型コーディングエージェントをオーケストレーションするために設計されています:

  • Codex CLI → 主任ソフトウェアアーキテクト、コア開発者、複雑な問題の解決者。

  • Antigravity / AGY CLI → 品質保証、レビュアー、リグレッションテスター、小規模修正エージェント。

  • 拡張エージェント → Claude、Gemini、ローカルLLM(Ollama / OpenAI互換エンドポイント経由)。

aico は、ステートマシン、ワークフロー遷移、Gitワークツリー分離、プロンプトテンプレート、並列テスト実行、ASTセキュリティスキャン、Human-in-the-Loop承認、MCPサーバー統合、包括的なレポートを管理します。


🏗️ アーキテクチャ

                    ┌────────────────────────┐
                    │      USER / CLI        │
                    │         (aico)         │
                    └───────────┬────────────┘
                                │
                        TASK RECEIVED
                                │
                    ┌───────────▼────────────┐
                    │  GIT & WORKTREE CHECK  │
                    │ Zero-Impact Isolation  │
                    └───────────┬────────────┘
                                │
                    ┌───────────▼────────────┐
                    │       CODEX CLI        │
                    │  • Architecture Design │
                    │  • Core Implementation │
                    │  • Complex Fixes       │
                    └───────────┬────────────┘
                                │
                    ┌───────────▼────────────┐
                    │        AGY CLI         │
                    │  • Review & Test Plan  │
                    │  • Parallel Validation │
                    │  • AST Security Audit  │
                    │  • Issue Classification│
                    └───────────┬────────────┘
                                │
                 ┌──────────────┴──────────────┐
                 │ Issue Classification Branch │
                 └──────────────┬──────────────┘
                                │
       ┌────────────────────────┼────────────────────────┐
       │                        │                        │
     PASS                   SMALL_FIX           COMPLEX / ARCH / BUG / SEC
       │                        │                        │
       ▼                        ▼                        ▼
PARALLEL VALIDATION          AGY FIX                 CODEX FIX
(Test, Lint, Type,           (Local)                 (Deep Fix)
 Build, Security)               │                        │
       │                        ▼                        ▼
       ▼                    AGY RETEST               AGY RETEST
     DONE                       │                        │
                                └─────────►◄─────────────┘

Related MCP server: worker-bridge

🚀 V2の機能と拡張

  1. 🌿 ゼロインパクトなGitワークツリー分離(--worktree / -w):

    • アクティブなエディタのファイルやステージされていない変更に触れることなく、分離されたGitワークツリー内で全エージェントアクションを実行します。

    • タスクが正常に完了すると、自動的に同期してマージします。

  2. ⚡ 並列品質・テストエンジン(aico test):

    • ユニットテスト、リンター(ruff/eslint)、型チェッカー(mypy/tsc)、ビルド、セキュリティ監査をワーカースレッドプールで並行実行します。

  3. 🛡️ 組み込みAST・静的セキュリティスキャナ(aico scan):

    • SQLインジェクションのリスク、コマンドインジェクション(shell=True)、ハードコードされたJWTシークレット、脆弱な暗号化(MD5/SHA1)、安全でない動的実行(eval/exec)をリアルタイムに検出します。

  4. 🔶 Human-In-The-Loop(HITL)モード(--interactive / -i):

    • アーキテクチャ変更やセキュリティ修正の前に、プロンプトへの直接ガイダンス注入を伴う対話型チェックポイント承認を実施します([A]pprove、[E]dit guidance、[R]eject、[Q]uit)。

  5. 🎯 きめ細かいマルチティアモデルルーティング:

    • フェーズごとに異なるモデルを設定できます(例:アーキテクチャには o3-mini / claude-3-7-sonnet、テストレビューには gemini-2.0-flash、小規模修正には gpt-4o-mini)。

  6. 🔌 Model Context Protocol(MCP)サーバー(aico mcp):

    • aico を標準のMCPサーバーとして実行し、Cursor、Antigravity IDE、Claude Desktop、その他のMCPクライアントとシームレスに統合できます。

  7. 🤖 拡張エージェントサポート:

    • Claude CLI、Gemini CLI、ローカルLLM(Ollama / OpenAI互換)用の組み込みアダプターを備えています。


📦 インストールとセットアップ

cd /var/www/html/ai-coding-orchestrator
pip install -e .

インストールの確認:

aico doctor

💻 CLIコマンドリファレンス

コマンド

説明

aico

対話型プロンプトセッションを起動

aico "task"

カレントディレクトリで直接タスクを実行

aico run "task"

明示的なタスク実行

aico run -w "task"

分離されたGitワークツリーで実行(ゼロインパクト)

aico run -i "task"

対話型Human-In-The-Loopチェックポイント付きで実行

aico test

テスト、リンター、型チェック、ビルド、セキュリティチェックを並列実行

aico scan

静的AST&正規表現によるセキュリティ脆弱性スキャンを実行

aico mcp

Model Context Protocol(MCP)JSON-RPC stdioサーバーを起動

aico resume

保存された .ai-orchestrator/state.json から中断したタスクを再開

aico status

現在のタスク状態、イテレーション、メトリクスを確認

aico logs

統合ログを表示(--agent codex、--agent agy)

aico stop

アクティブなタスクを中止してキャンセル

aico config show

現在の設定を表示

aico config set <key> <val>

設定キーを更新

aico doctor

Codex、AGY、Gitのヘルスチェックを実行


⚙️ 設定(~/.aico/config.yaml)

codex:
  command: "codex"
  timeout: 3600
  flags: ["exec", "--dangerously-bypass-approvals-and-sandbox"]
  model: null
  architecture_model: null
  implementation_model: null
  fix_model: null

agy:
  command: "agy"
  timeout: 1800
  flags: ["--print", "--dangerously-skip-permissions"]
  model: null
  review_model: null
  testing_model: null
  fix_model: null

workflow:
  max_iterations: 5
  max_codex_attempts: 5
  max_agy_attempts: 5
  auto_resume: false
  stop_on_environment_issue: true
  interactive: false
  require_approval_on_architecture: false
  require_approval_on_security: false

git:
  enabled: true
  create_branch: true
  branch_prefix: "ai-orchestrator"
  auto_stash_uncommitted: false
  use_worktree: false

testing:
  run_tests: true
  run_lint: true
  run_typecheck: true
  run_build: true
  run_security_scan: true
  parallel: true
  max_workers: 4

safety:
  protect_uncommitted_changes: true
  allow_destructive_git: false

📂 ワークスペース構成

.ai-orchestrator/
├── state.json           # Machine-readable task state and transition history
├── task.md              # Original user task
├── architecture.md      # Architecture design from Codex
├── final-report.md      # Comprehensive post-task markdown report
│
├── codex/
│   ├── prompt.md        # Prompt sent to Codex
│   ├── result.md        # Codex execution summary
│   └── issues.md        # Issues addressed
│
├── agy/
│   ├── prompt.md        # Prompt sent to AGY
│   ├── test-plan.md     # Test plan created by AGY
│   ├── result.md        # AGY validation results
│   ├── issues.md        # Issues detected
│   └── fixes.md         # Small fixes applied
│
├── logs/
│   ├── orchestrator.log # Workflow state transitions
│   ├── codex.log        # Raw stdout/stderr of Codex
│   └── agy.log          # Raw stdout/stderr of AGY
│
├── worktrees/           # Isolated git worktrees (when enabled)
└── checkpoints/         # Git snapshots before major stages

🧪 テストスイート

V1およびV2の全機能をカバーする完全なテストスイートを実行:

pytest -v

65件のユニットテストと統合テストが100%の成功率で合格します。

Related MCP Connectors

Related MCP Servers

  • A
    license
    A
    quality
    C
    maintenance
    Delegate coding tasks to external AI coding agents in isolated git worktrees with independent verification, enabling any MCP client to orchestrate multi-agent workflows.
    5
    MIT
  • A
    license
    B
    quality
    C
    maintenance
    Provides a Model Context Protocol interface for secure, multi-agent collaboration on Git repositories, offering isolated workspaces, change requests, reviews, and approval workflows with Git as the source of truth.
    32
    MIT