建立專家團隊
何時使用: 單一 agent 不夠;你需要專家之間的交接。
步驟
-
規格撰寫 team.yml——角色 + 交接。✓ 已複製→ 規格準備好
-
執行wegent run team.yml task.md。✓ 已複製→ Agents 依序工作
-
檢查查看追蹤記錄。✓ 已複製→ 有記錄的執行
結果: 無需自訂協調器程式碼的多 agent 執行。
作者 wecode-ai · wecode-ai/Wegent
以 YAML 定義 agent 團隊——Wegent 執行它們、管理共享記憶,並在專家之間路由工作。
Wegent 將 agent 團隊視為宣告式產物:撰寫角色、交接和共享記憶的 YAML 規格;Wegent 提供執行時期。適合超出單一 agent 提示需求的情境。
%APPDATA%\Claude\claude_desktop_config.json{
"mcpServers": {
"wegent-skill": {
"command": "git",
"args": [
"clone",
"https://github.com/wecode-ai/Wegent"
],
"_inferred": true
}
}
}
開啟 Claude Desktop → Settings → Developer → Edit Config。儲存後重啟應用。
{
"mcpServers": {
"wegent-skill": {
"command": "git",
"args": [
"clone",
"https://github.com/wecode-ai/Wegent"
],
"_inferred": true
}
}
}
Cursor 使用與 Claude Desktop 相同的 mcpServers 格式。專案級設定優先於全域。
{
"mcpServers": {
"wegent-skill": {
"command": "git",
"args": [
"clone",
"https://github.com/wecode-ai/Wegent"
],
"_inferred": true
}
}
}
點擊 Cline 側欄中的 MCP Servers 圖示,然後選 "Edit Configuration"。
{
"mcpServers": {
"wegent-skill": {
"command": "git",
"args": [
"clone",
"https://github.com/wecode-ai/Wegent"
],
"_inferred": true
}
}
}
格式與 Claude Desktop 相同。重啟 Windsurf 生效。
{
"mcpServers": [
{
"name": "wegent-skill",
"command": "git",
"args": [
"clone",
"https://github.com/wecode-ai/Wegent"
]
}
]
}
Continue 使用伺服器物件陣列,而非映射。
{
"context_servers": {
"wegent-skill": {
"command": {
"path": "git",
"args": [
"clone",
"https://github.com/wecode-ai/Wegent"
]
}
}
}
}
加入 context_servers。Zed 儲存後熱重載。
claude mcp add wegent-skill -- git clone https://github.com/wecode-ai/Wegent
一行命令搞定。用 claude mcp list 驗證,claude mcp remove 移除。
何時使用: 單一 agent 不夠;你需要專家之間的交接。
結果: 無需自訂協調器程式碼的多 agent 執行。
使用 Harness 設計團隊;Wegent 執行
| 工具 | 輸入參數 | 何時呼叫 | 成本 |
|---|---|---|---|
| run / inspect | (詳見文件) | 兩種流程 | 1 次呼叫 |
交接迴圈為每個角色加入明確的退出條件
| 替代方案 | 何時用它替代 | 權衡 |
|---|---|---|
| 手工協調 | 單一團隊需求 | 無宣告式規格 |