{
  "version": "1.3.1",
  "name": "ultrawork",
  "description": "UltraWork 三国军团调度系统 - OpenCode 平台适配版 (三层架构)",

  "triggers": {
    "commands": ["/ultrawork", "/ulw", "/ulw-loop", "ultrawork", "ulw", "ulw-loop"],
    "keywords": ["ultrawork", "ulw "],
    "patterns": ["^ultrawork\\s+", "^ulw\\s+", "^/?ulw-loop\\s+"]
  },

  "modelKeys": {
    "gmodel": "GLM-5",
    "q35model": "Qwen3.5-Plus",
    "kmodel": "Kimi-K2.5",
    "mmodel": "MiniMax-M2.5"
  },

  "agents": {
    "zhugeliang": {
      "name": "诸葛亮",
      "alias": "孔明",
      "role": "主帅/调度器",
      "description": "运筹帷幄、调兵遣将，协调整个军团运作",
      "model": "gmodel",
      "displayName": "GLM-5",
      "creditMultiplier": 0.5,
      "priority": 1,
      "tier": 1
    },
    "zhouyu": {
      "name": "周瑜",
      "alias": "公瑾",
      "role": "战略规划师",
      "description": "访谈式需求分析，架构设计，决策支持",
      "model": "gmodel",
      "displayName": "GLM-5",
      "creditMultiplier": 0.5,
      "categories": ["ultrabrain"],
      "priority": 2,
      "tier": 2,
      "subordinates": ["lusu", "huanggai"]
    },
    "zhaoyun": {
      "name": "赵云",
      "alias": "子龙",
      "role": "执行大将",
      "description": "自主深度工作，不需要保姆式指导，擅长编码和重构",
      "model": "q35model",
      "displayName": "Qwen3.5-Plus",
      "creditMultiplier": 0.2,
      "categories": ["deep", "quick", "visual-engineering"],
      "priority": 2,
      "tier": 2,
      "subordinates": ["gaoshun", "chendao"]
    },
    "simayi": {
      "name": "司马懿",
      "alias": "仲达",
      "role": "探索谋士",
      "description": "洞察秋毫，代码搜索，信息收集，模式发现",
      "model": "mmodel",
      "displayName": "MiniMax-M2.5",
      "creditMultiplier": 0.2,
      "categories": ["deep", "visual-engineering"],
      "priority": 3,
      "tier": 2,
      "subordinates": ["simashi", "simazhao"]
    },
    "lusu": {
      "name": "鲁肃",
      "alias": "子敬",
      "role": "方案分析",
      "description": "稳重可靠，方案分析与评估",
      "model": "mmodel",
      "displayName": "MiniMax-M2.5",
      "creditMultiplier": 0.2,
      "priority": 4,
      "tier": 3,
      "superior": "zhouyu"
    },
    "huanggai": {
      "name": "黄盖",
      "alias": "公覆",
      "role": "执行落地",
      "description": "老当益壮，方案执行落地",
      "model": "q35model",
      "displayName": "Qwen3.5-Plus",
      "creditMultiplier": 0.2,
      "priority": 4,
      "tier": 3,
      "superior": "zhouyu"
    },
    "gaoshun": {
      "name": "高顺",
      "role": "前端开发",
      "description": "陷阵营统领，专注前端开发",
      "model": "q35model",
      "displayName": "Qwen3.5-Plus",
      "creditMultiplier": 0.2,
      "categories": ["visual-engineering"],
      "priority": 4,
      "tier": 3,
      "superior": "zhaoyun"
    },
    "chendao": {
      "name": "陈到",
      "alias": "叔至",
      "role": "后端开发",
      "description": "白毦兵统领，专注后端开发",
      "model": "q35model",
      "displayName": "Qwen3.5-Plus",
      "creditMultiplier": 0.2,
      "categories": ["deep"],
      "priority": 4,
      "tier": 3,
      "superior": "zhaoyun"
    },
    "simashi": {
      "name": "司马师",
      "alias": "子元",
      "role": "深度分析",
      "description": "沉稳内敛，深度代码分析",
      "model": "mmodel",
      "displayName": "MiniMax-M2.5",
      "creditMultiplier": 0.2,
      "priority": 4,
      "tier": 3,
      "superior": "simayi"
    },
    "simazhao": {
      "name": "司马昭",
      "alias": "子上",
      "role": "信息整理",
      "description": "善于整理，信息归纳汇总",
      "model": "kmodel",
      "displayName": "Kimi-K2.5",
      "creditMultiplier": 0.3,
      "priority": 4,
      "tier": 3,
      "superior": "simayi"
    }
  },

  "categories": {
    "visual-engineering": {
      "name": "攻城拔寨",
      "description": "前端、UI/UX、设计相关工作",
      "keywords": ["UI", "界面", "样式", "CSS", "Vue", "组件", "前端", "页面", "交互", "布局", "element", "设计"],
      "primaryModel": "q35model",
      "fallbackModel": "kmodel",
      "primaryAgent": "zhaoyun",
      "supportAgents": ["gaoshun"]
    },
    "deep": {
      "name": "深入敌阵",
      "description": "深度自主调研与执行",
      "keywords": ["重构", "架构", "实现", "开发", "复杂", "功能", "模块", "系统", "集成"],
      "primaryModel": "q35model",
      "fallbackModel": "gmodel",
      "primaryAgent": "zhaoyun",
      "supportAgents": ["chendao"]
    },
    "quick": {
      "name": "速战速决",
      "description": "单文件修改、小修复",
      "keywords": ["修复", "bug", "修改", "更新", "改", "typo", "错", "问题", "fix"],
      "primaryModel": "mmodel",
      "fallbackModel": "q35model",
      "primaryAgent": "zhaoyun",
      "supportAgents": []
    },
    "ultrabrain": {
      "name": "运筹帷幄",
      "description": "复杂逻辑、架构决策",
      "keywords": ["设计", "方案", "决策", "架构", "规划", "思考", "分析", "策略", "评估"],
      "primaryModel": "gmodel",
      "fallbackModel": "kmodel",
      "primaryAgent": "zhouyu",
      "supportAgents": ["lusu"]
    },
    "review": {
      "name": "质量把关",
      "description": "代码审查、质量检查",
      "keywords": ["review", "审查", "检查", "质量", "优化", "重构"],
      "primaryModel": "q35model",
      "fallbackModel": "mmodel",
      "primaryAgent": "zhaoyun",
      "supportAgents": []
    }
  },

  "ralphLoop": {
    "enabled": true,
    "maxIterations": 10,
    "completionThreshold": 100,
    "checkInterval": 5000
  },

  "intentGate": {
    "enabled": true,
    "clarificationThreshold": 0.7,
    "askForClarification": true
  },

  "parallelExecution": {
    "enabled": true,
    "maxConcurrentAgents": 5,
    "timeout": 300000
  },

  "compatibility": {
    "claude-code": true,
    "qencode": true,
    "qoder": true,
    "cursor": true,
    "copilot": true,
    "cline": true,
    "opencode": true
  },

  "logging": {
    "enabled": true,
    "level": "info",
    "file": ".ultrawork/logs/ultrawork.log"
  }
}