Skip to main content

Multi-agent orchestration framework for Claude Code + Codex CLI + Gemini CLI

Project description

AI Orchestra

Claude Code用のマルチエージェントオーケストレーションシステム

構成

ai-orchestra/
├── packages/         # パッケージ(hooks・scripts・agents・skills・rules・config)— 詳細は packages/README.md
│   ├── core/              # 共通基盤ライブラリ + coding-principles / config-loading ルール
│   ├── agent-routing/     # 25 エージェント定義 + ルーティング hooks + orchestra-usage ルール
│   ├── cli-logging/       # Codex/Gemini CLI ログ記録 + checkpointing スキル
│   ├── codex-suggestions/ # Codex 相談提案 + codex-delegation ルール + codex-system スキル
│   ├── gemini-suggestions/# Gemini リサーチ提案 + gemini-delegation ルール + gemini-system スキル
│   ├── quality-gates/     # 品質ゲート + review/tdd/simplify/release-readiness (+ design-tracker)
│   ├── route-audit/       # ルーティング監査・KPIレポート
│   ├── issue-workflow/    # GitHub Issue 起票 + 計画→実装→テスト→レビューの開発フロー
│   ├── cocoindex/         # cocoindex MCP サーバーの自動プロビジョニング
│   └── tmux-monitor/      # tmux サブエージェント監視
├── scripts/          # 管理CLI
├── templates/        # テンプレート(エージェント・スキル・プロジェクト)
├── tests/            # Python 単体テスト
├── docs/             # ドキュメント(設計・マイグレーション等)
├── taskfiles/        # Task CLI 用タスク定義
└── Taskfile.yml      # メインタスクファイル

エージェント一覧

コア

  • planner - タスク分解・マイルストーン策定
  • researcher - リサーチ・ドキュメント解析

要件・仕様

  • requirements - 要件抽出・NFR整理
  • spec-writer - 仕様書生成

設計

  • architect - アーキテクチャ設計・技術選定
  • api-designer - API/IF設計
  • data-modeler - データモデリング・スキーマ設計
  • auth-designer - 認証認可設計

実装

  • frontend-dev - React/Next.js/TypeScript
  • backend-python-dev - Python API
  • backend-go-dev - Go API

AI/ML

  • ai-architect - AIアーキテクチャ・モデル選定
  • ai-dev - AI機能実装
  • prompt-engineer - プロンプト設計
  • rag-engineer - RAG実装

テスト・デバッグ

  • debugger - バグ原因分析
  • tester - テスト戦略・実装

レビュー(実装)

  • code-reviewer - コード品質
  • security-reviewer - セキュリティ
  • performance-reviewer - パフォーマンス

レビュー(設計・仕様)

  • spec-reviewer - 仕様整合性
  • architecture-reviewer - アーキテクチャ妥当性
  • ux-reviewer - UX・アクセシビリティ

ドキュメント

  • docs-writer - 技術文書・手順書

ユーティリティ

  • general-purpose - 汎用タスク・Codex/Gemini委譲

セットアップ

1. リポジトリをクローン

git clone https://github.com/yoshihiko555/ai-orchestra.git ~/ai-orchestra

2. セットアップ(推奨)

# チームメンバー向け: 最低限のパッケージを一括インストール
python3 ~/ai-orchestra/scripts/orchestra-manager.py setup essential --project /path/to/project

# 管理者・開発者向け: 全パッケージを一括インストール
python3 ~/ai-orchestra/scripts/orchestra-manager.py setup all --project /path/to/project

# 事前確認(dry-run)
python3 ~/ai-orchestra/scripts/orchestra-manager.py setup essential --project /path/to/project --dry-run

プリセットは presets.json で定義されています:

  • essential — core, route-audit, quality-gates
  • all — 全パッケージ

2b. 個別インストール

# 個別にパッケージをインストールする場合
python3 ~/ai-orchestra/scripts/orchestra-manager.py install core --project /path/to/project
python3 ~/ai-orchestra/scripts/orchestra-manager.py install tmux-monitor --project /path/to/project

orchestra-manager が内部で以下を実行:

  1. ~/.claude/settings.jsonenv.AI_ORCHESTRA_DIR を設定
  2. .claude/orchestra.json にパッケージ情報を記録
  3. .claude/settings.local.json に hooks を登録($AI_ORCHESTRA_DIR/packages/... 参照)
  4. sync-orchestra.py の SessionStart hook を登録(初回のみ)
  5. skills/agents/rules の初回同期を実行

セットアップ完了条件

以下をすべて満たしたらセットアップ完了です:

  • ~/.claude/settings.jsonenv.AI_ORCHESTRA_DIR が設定されている
  • .claude/settings.local.json に AI Orchestra の hooks が登録されている
  • .claude/orchestra.json が存在し、インストール済みパッケージが記録されている
  • Claude Code 次回起動時に SessionStart hook が走り .claude/ 配下へ差分同期される

3. 管理スクリプト

スクリプト 用途
orchestra-manager.py パッケージのインストール・管理
sync-orchestra.py SessionStart 時の自動同期
analyze-cli-usage.py Codex/Gemini の使用状況分析

3b. ログ仕様

  • 全ログの役割・参照先は docs/specs/logging.md を参照

4. パッケージ管理コマンド

# プリセットで一括セットアップ
python3 ~/ai-orchestra/scripts/orchestra-manager.py setup essential --project .
python3 ~/ai-orchestra/scripts/orchestra-manager.py setup all --project .

# パッケージ一覧
python3 ~/ai-orchestra/scripts/orchestra-manager.py list

# プロジェクトでの導入状況
python3 ~/ai-orchestra/scripts/orchestra-manager.py status --project .

# インストール / アンインストール
python3 ~/ai-orchestra/scripts/orchestra-manager.py install <package> --project .
python3 ~/ai-orchestra/scripts/orchestra-manager.py uninstall <package> --project .

# 一時的な有効化 / 無効化(hooks の登録/解除のみ)
python3 ~/ai-orchestra/scripts/orchestra-manager.py enable <package> --project .
python3 ~/ai-orchestra/scripts/orchestra-manager.py disable <package> --project .

# パッケージ内スクリプトの一覧表示
python3 ~/ai-orchestra/scripts/orchestra-manager.py scripts
python3 ~/ai-orchestra/scripts/orchestra-manager.py scripts --package route-audit

# パッケージ内スクリプトの実行(-- 以降はスクリプトにパススルー)
python3 ~/ai-orchestra/scripts/orchestra-manager.py run route-audit dashboard
python3 ~/ai-orchestra/scripts/orchestra-manager.py run route-audit log-viewer --project /path/to/project -- --last 10

# dry-run(変更内容を表示のみ)
python3 ~/ai-orchestra/scripts/orchestra-manager.py setup essential --project . --dry-run
python3 ~/ai-orchestra/scripts/orchestra-manager.py install <package> --project . --dry-run

更新フロー

変更内容 操作
Hook スクリプト修正 git pull のみ(即反映)
Skills/Agents/Rules 修正 git pull(次回 Claude Code 起動時に自動同期)
新フックイベント追加 git pull + install 再実行
CLI スクリプト修正 git pull のみ(即反映)

.claudeignore の管理

  • .claudeignore は AI Orchestra が自動生成するため直接編集しないでください
  • プロジェクト固有の除外パターンは .claudeignore.local に記載
  • SessionStart 時に ベース + .claudeignore.local がマージ生成されます

.gitignore の管理

  • orchestra-manager.py init 実行時に .gitignore へ AI Orchestra 用 block を追加/更新します
  • 対象: .claude/docs/, .claude/logs/, .claude/state/, .claude/checkpoints/, .claude/Plans.md

使い方

エージェントの呼び出し

Task(subagent_type="planner", prompt="このタスクを分解して")
Task(subagent_type="code-reviewer", prompt="このコードをレビューして")

スキル一覧

スキル 用途
/review コード・セキュリティ・設計レビュー(並列実行対応)
/startproject マルチエージェント協調で新規開発を開始
/codex-system cli-tools.yaml に基づく Codex 利用ガイド(config-driven)
/gemini-system Gemini CLI でのリサーチ・マルチモーダル処理
/checkpointing セッションコンテキストの保存・復元
/design-tracker 設計記録スキル(現運用は CLAUDE.md/Plans.md/ADR/docs を優先)
/plan 実装計画の策定
/simplify コードの簡素化
/tdd テスト駆動開発ワークフロー

レビュースキル

/review              # 全レビュアー並列実行
/review code         # コードレビューのみ
/review security     # セキュリティレビューのみ
/review impl         # 実装系レビュー
/review design       # 設計系レビュー

アーキテクチャ

Claude Code (Orchestrator)
    │
    ├── Codex CLI    # `cli-tools.yaml` の設定に応じて利用(役割は config-driven)
    ├── Gemini CLI   # `cli-tools.yaml` の設定に応じて利用(役割は config-driven)
    │
    ├── $AI_ORCHESTRA_DIR/packages/
    │   ├── core/               # 共通ユーティリティ
    │   ├── cli-logging/        # CLI 呼び出しログ
    │   ├── codex-suggestions/  # Codex 相談提案
    │   ├── gemini-suggestions/ # Gemini リサーチ提案
    │   ├── quality-gates/      # 品質ゲート
    │   ├── route-audit/        # ルーティング監査
    │   ├── issue-workflow/     # GitHub Issue 開発フロー
    │   ├── cocoindex/          # MCP サーバー自動プロビジョニング
    │   └── tmux-monitor/       # tmux リアルタイム監視
    │
    └── 25 Specialized Agents
        ├── Planning: planner, researcher, requirements
        ├── Design: architect, api-designer, data-modeler, auth-designer, spec-writer
        ├── Implementation: frontend-dev, backend-*-dev, ai-*, debugger, tester
        └── Review: code-reviewer, security-reviewer, performance-reviewer, ...

仕組み

  • Hooks: $AI_ORCHESTRA_DIR 環境変数で直接参照(シンボリックリンク不要)
  • Skills/Agents/Rules: SessionStart hook (sync-orchestra.py) で $AI_ORCHESTRA_DIR から .claude/ に差分コピー
  • CLI Scripts: $AI_ORCHESTRA_DIR/packages/{pkg}/scripts/ を直接実行

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

orchex-0.1.0.tar.gz (170.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

orchex-0.1.0-py3-none-any.whl (270.9 kB view details)

Uploaded Python 3

File details

Details for the file orchex-0.1.0.tar.gz.

File metadata

  • Download URL: orchex-0.1.0.tar.gz
  • Upload date:
  • Size: 170.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for orchex-0.1.0.tar.gz
Algorithm Hash digest
SHA256 d581e4e2aa4e4c5b0065392bd53582a2131b457ed88b6344121ed84c5b759088
MD5 2042796530e00e9e89b3aa6c15def29b
BLAKE2b-256 115f46826b044ab527ef15d5bf4ea19c34f64bf66f36626657118e44b8fa5b89

See more details on using hashes here.

Provenance

The following attestation bundles were made for orchex-0.1.0.tar.gz:

Publisher: publish.yml on yoshihiko555/ai-orchestra

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file orchex-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: orchex-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 270.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for orchex-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 03f8c3751e48b42becdbeac7b3c181399d119d6b38ba03529a7da73ea9709bea
MD5 8158d660d470f5a37b96ddacfceab48a
BLAKE2b-256 0f9053bb7c8495dd0f5f4649c811e02d9e73485d44689d1e6a2135906b5e1e8c

See more details on using hashes here.

Provenance

The following attestation bundles were made for orchex-0.1.0-py3-none-any.whl:

Publisher: publish.yml on yoshihiko555/ai-orchestra

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page