/ 目錄 / 演練場 / Wegent
● 社群 wecode-ai ⚡ 即開即用

Wegent

作者 wecode-ai · wecode-ai/Wegent

以 YAML 定義 agent 團隊——Wegent 執行它們、管理共享記憶,並在專家之間路由工作。

Wegent 將 agent 團隊視為宣告式產物:撰寫角色、交接和共享記憶的 YAML 規格;Wegent 提供執行時期。適合超出單一 agent 提示需求的情境。

為什麼要用

核心特性

即時演示

實際使用效果

就緒

安裝

選擇你的客戶端

~/Library/Application Support/Claude/claude_desktop_config.json  · Windows: %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。儲存後重啟應用。

~/.cursor/mcp.json · .cursor/mcp.json
{
  "mcpServers": {
    "wegent-skill": {
      "command": "git",
      "args": [
        "clone",
        "https://github.com/wecode-ai/Wegent"
      ],
      "_inferred": true
    }
  }
}

Cursor 使用與 Claude Desktop 相同的 mcpServers 格式。專案級設定優先於全域。

VS Code → Cline → MCP Servers → Edit
{
  "mcpServers": {
    "wegent-skill": {
      "command": "git",
      "args": [
        "clone",
        "https://github.com/wecode-ai/Wegent"
      ],
      "_inferred": true
    }
  }
}

點擊 Cline 側欄中的 MCP Servers 圖示,然後選 "Edit Configuration"。

~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "wegent-skill": {
      "command": "git",
      "args": [
        "clone",
        "https://github.com/wecode-ai/Wegent"
      ],
      "_inferred": true
    }
  }
}

格式與 Claude Desktop 相同。重啟 Windsurf 生效。

~/.continue/config.json
{
  "mcpServers": [
    {
      "name": "wegent-skill",
      "command": "git",
      "args": [
        "clone",
        "https://github.com/wecode-ai/Wegent"
      ]
    }
  ]
}

Continue 使用伺服器物件陣列,而非映射。

~/.config/zed/settings.json
{
  "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 移除。

使用場景

實戰用法: Wegent

建立專家團隊

👤 Claude Code 使用者 ⏱ ~15 min intermediate

何時使用: 單一 agent 不夠;你需要專家之間的交接。

步驟
  1. 規格
    撰寫 team.yml——角色 + 交接。✓ 已複製
    → 規格準備好
  2. 執行
    wegent run team.yml task.md。✓ 已複製
    → Agents 依序工作
  3. 檢查
    查看追蹤記錄。✓ 已複製
    → 有記錄的執行

結果: 無需自訂協調器程式碼的多 agent 執行。

組合

與其他 MCP 搭配,撬動十倍槓桿

wegent-skill + harness-skill

使用 Harness 設計團隊;Wegent 執行

結合 wegent-skill 與 harness-skill:Harness 設計團隊;Wegent 執行✓ 已複製

工具

此 MCP 暴露的能力

工具輸入參數何時呼叫成本
run / inspect (詳見文件) 兩種流程 1 次呼叫

成本與限制

運行它的成本

API 配額
依提供商而定
每次呼叫 Token 數
N 倍一般成本
費用
免費開源;LLM 費用自付
提示
為每個角色設定 token 預算上限

安全

權限、密鑰、影響範圍

憑證儲存: 金鑰存放在環境變數
資料出站: 已設定的提供商

故障排查

常見錯誤與修復

交接迴圈

為每個角色加入明確的退出條件

替代方案

Wegent 對比其他方案

替代方案何時用它替代權衡
手工協調單一團隊需求無宣告式規格

更多

資源

📖 閱讀 GitHub 上的官方 README

🐙 查看未解決的 issue

🔍 瀏覽全部 400+ MCP 伺服器和 Skills