ルーティング
ルーティング判断フロー
リクエスト受信
│
▼ Phase 1: タスク分類
│ routing_rules.yaml のパターンでマッチング
│ classification_priority の順序でチェック
│
▼ Phase 2: プロバイダー選択
│ providers.yaml で enabled 確認
│ フォールバックチェーン適用
│
▼ Phase 3: 予算チェック
│ budget_tracker.yaml の消費率確認
│ 閾値に応じたダウングレード
│
▼ Phase 4: スキル選択
│ registry.yaml から active スキルを検索
│
▼ 実行タスク分類ルール
| タスク種別 | パターン(日本語) | パターン(英語) |
|---|---|---|
| reasoning | 考えて, 分析して, 設計して | think, analyze, design |
| coding | コードを, 実装して, バグを | code, implement, fix |
| image_generation | 画像を, イラストを | image, illustration |
| video_generation | 動画を, ビデオを | video, animation |
| text_summarize | 要約して, まとめて | summarize, summary |
| text_translate | 翻訳して, 英語に | translate |
| documentation | ドキュメントを, 設計書を | document, spec |
| communication | Slackに, 送って | slack, send |
| search | 調べて, 検索して | search, find |
| git_operations | コミットして, PRを | commit, pull request |
| deployment | デプロイして, 公開して | deploy, publish |
| weekly_report | 週報を, Weekly Report | weekly report |
プロバイダールーティング
Phase 1(現在)
全タスクが Claude にルーティングされる。
Phase 3 以降
| タスク | プライマリ | フォールバック |
|---|---|---|
| 画像生成 | Gemini (NanoBanana) | Claude(プロンプト作成のみ) |
| 動画生成 | Gemini (Veo 3.1) | Remotion |
Phase 4 以降
| タスク | プライマリ | フォールバック |
|---|---|---|
| 翻訳 | ローカルLLM | Claude |
| 要約 | ローカルLLM | Claude |
| 簡単QA | ローカルLLM | Claude |
予算管理
| 消費率 | アクション |
|---|---|
| < 80% | 通常ルーティング |
| 80-95% | 軽量テキストタスクをローカルLLMに |
| 95-100% | 全非クリティカルをローカルLLMに、警告表示 |
| > 100% | クリティカルタスクのみ処理、残りはキュー保留 |