平行嘗試多種方法
何時使用: 你不確定哪種方法有效;希望 N 個 agent 各自探索。
步驟
-
產生以相同的任務說明啟動 N 個 session。✓ 已複製→ 每個 agent 建立分支
-
比較比對輸出差異。✓ 已複製→ 最佳方法識別
-
合併取用最佳部分。✓ 已複製→ 最終程式碼
結果: 以 N 倍 token 成本換取更好的方案選擇。
作者 stablyai · stablyai/orca
在同一個儲存庫上平行執行多個程式碼 agent,並進行合併協調——適合單一 agent 不夠用的情境。
Orca 將多 agent 工作流程打包為 IDE/執行環境。你可以在各自的分支上產生平行 Claude session,然後協調合併或選取最佳輸出。
%APPDATA%\Claude\claude_desktop_config.json{
"mcpServers": {
"stably-orca-skill": {
"command": "git",
"args": [
"clone",
"https://github.com/stablyai/orca"
],
"_inferred": true
}
}
}
開啟 Claude Desktop → Settings → Developer → Edit Config。儲存後重啟應用。
{
"mcpServers": {
"stably-orca-skill": {
"command": "git",
"args": [
"clone",
"https://github.com/stablyai/orca"
],
"_inferred": true
}
}
}
Cursor 使用與 Claude Desktop 相同的 mcpServers 格式。專案級設定優先於全域。
{
"mcpServers": {
"stably-orca-skill": {
"command": "git",
"args": [
"clone",
"https://github.com/stablyai/orca"
],
"_inferred": true
}
}
}
點擊 Cline 側欄中的 MCP Servers 圖示,然後選 "Edit Configuration"。
{
"mcpServers": {
"stably-orca-skill": {
"command": "git",
"args": [
"clone",
"https://github.com/stablyai/orca"
],
"_inferred": true
}
}
}
格式與 Claude Desktop 相同。重啟 Windsurf 生效。
{
"mcpServers": [
{
"name": "stably-orca-skill",
"command": "git",
"args": [
"clone",
"https://github.com/stablyai/orca"
]
}
]
}
Continue 使用伺服器物件陣列,而非映射。
{
"context_servers": {
"stably-orca-skill": {
"command": {
"path": "git",
"args": [
"clone",
"https://github.com/stablyai/orca"
]
}
}
}
}
加入 context_servers。Zed 儲存後熱重載。
claude mcp add stably-orca-skill -- git clone https://github.com/stablyai/orca
一行命令搞定。用 claude mcp list 驗證,claude mcp remove 移除。
何時使用: 你不確定哪種方法有效;希望 N 個 agent 各自探索。
結果: 以 N 倍 token 成本換取更好的方案選擇。
Octopus 選擇計畫;Orca 平行執行
| 工具 | 輸入參數 | 何時呼叫 | 成本 |
|---|---|---|---|
| spawn / diff / merge | (詳見文件) | 三種流程 | 1 次呼叫 |
合併衝突session 應盡量針對不重疊的路徑
| 替代方案 | 何時用它替代 | 權衡 |
|---|---|---|
| manaflow-ai/cmux | 你需要終端機 UI | 無合併協調 |