Skip to content

Instantly share code, notes, and snippets.

@pahud
Created February 6, 2026 02:43
Show Gist options
  • Select an option

  • Save pahud/141c35bd9a84af0befe52a4ff475bd2f to your computer and use it in GitHub Desktop.

Select an option

Save pahud/141c35bd9a84af0befe52a4ff475bd2f to your computer and use it in GitHub Desktop.
一次創建路人甲乙丙丁四個subagents

使用方式

直接跟Agent說:

參考以網址下配置範例, 設定四個subagents,名稱比照下面的配置,唯獨home dir做相應的修改符合實際路徑。注意:只新增或修改 subagents 配置即可,model部分不要調整。 https://gist.github.com/pahud/141c35bd9a84af0befe52a4ff475bd2f

 "agents": {
    "defaults": {
      "model": {
        "primary": "bedrock/openai.gpt-oss-120b-1:0"
      },
      "models": {
        "bedrock/openai.gpt-oss-120b-1:0": {
          "alias": "openai-gpt-oss"
        }
      },
      "workspace": "/root/clawd",
      "maxConcurrent": 4,
      "subagents": {
        "maxConcurrent": 8
      }
    },
    "list": [
      {
        "id": "main"
      },
      {
        "id": "lurenjia",
        "name": "lurenjia",
        "workspace": "/root/clawd/agents/路人甲",
        "agentDir": "/root/.clawdbot/agents/lurenjia/agent",
        "identity": {
          "name": "路人甲",
          "theme": "AI sub‑agent",
          "emoji": "🤖",
          "avatar": "(optional)"
        },
        "subagents": {
          "allowAgents": [
            "*"
          ]
        }
      },
      {
        "id": "lurenyi",
        "name": "lurenyi",
        "workspace": "/root/clawd/agents/路人乙",
        "agentDir": "/root/.clawdbot/agents/lurenyi/agent",
        "identity": {
          "name": "路人乙",
          "theme": "AI sub‑agent",
          "emoji": "🤖",
          "avatar": "(optional)"
        },
        "subagents": {
          "allowAgents": [
            "*"
          ]
        }
      },
      {
        "id": "lurenbing",
        "name": "lurenbing",
        "workspace": "/root/clawd/agents/路人丙",
        "agentDir": "/root/.clawdbot/agents/lurenbing/agent",
        "identity": {
          "name": "路人丙",
          "theme": "AI sub‑agent",
          "emoji": "🤖",
          "avatar": "(optional)"
        },
        "subagents": {
          "allowAgents": [
            "*"
          ]
        }
      },
      {
        "id": "lurending",
        "name": "lurending",
        "workspace": "/root/clawd/agents/路人丁",
        "agentDir": "/root/.clawdbot/agents/lurending/agent",
        "identity": {
          "name": "路人丁",
          "emoji": "🤖",
          "theme": "AI sub‑agent",
          "avatar": "(optional)"
        },
        "subagents": {
          "allowAgents": [
            "*"
          ]
        }
      }
    ]
  },
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment