OpenCode AI 代理配置(基本2)

Refer:

opencode.json

json 复制代码
{
  "$schema": "https://opencode.ai/config.json",
  "plugin": ["OContinue"],
  "permission": {
    "*": "allow"
  },
  "mode": {
    "build": {
      "temperature": 0.2,
      "permission": {
        "*": "allow"
      }
    },
    "plan": {
      "temperature": 0.2,
      "permission": {
        "*": "allow"
      }
    }
  },
  "agent": {
    "build": {
      "mode": "primary",
      "temperature": 0.2,
      "permission": {
        "*": "allow"
      },
      "description": "构建主代理,负责执行构建任务"
    },
    "plan": {
      "mode": "primary",
      "temperature": 0.2,
      "permission": {
        "*": "allow"
      },
      "description": "计划主代理,负责制定执行计划"
    },
    "sisyphus": {
      "mode": "primary",
      "temperature": 0.2,
      "permission": {
        "*": "allow"
      },
      "description": "西西弗斯主代理,执行持续性任务"
    },
    "general": {
      "mode": "subagent",
      "temperature": 0.2,
      "description": "通用子代理,用于复杂搜索和多步任务",
      "tools": {
        "read": true,
        "edit": false,
        "bash": false
      }
    },
    "explore": {
      "mode": "subagent",
      "temperature": 0.2,
      "description": "探索子代理,用于快速代码库探索",
      "tools": {
        "read": true,
        "edit": false,
        "bash": true
      }
    }
  }
}
相关推荐
Thanks_ks14 天前
【第 008 讲】在终端中运行 Python 程序:交互模式与脚本模式 | 绝对路径与相对路径 | 以模块方式运行 | 常见报错的识别与排查
python·异常处理·终端·脚本·命令行·cmd·python 解释器
LHICOD1 个月前
Linux-1
linux·ip·vmware·虚拟机·cmd·ping
DogDaoDao1 个月前
Windows 双 Shell 全面对比:CMD 与 PowerShell 的技术剖析
windows·shell·测试·powershell·cmd·程序员开发
Vex2une2 个月前
Windows PowerShell 发展史:从命令行工具到自动化核心
windows·自动化运维·命令行·powershell·cmd·脚本语言·对象管道
fox_charon2 个月前
Windows 下 CLI 参数的引号陷阱:为什么 --resume 'uuid' 会失败
windows·shell·cmd·cli·引号
椰羊~王小美3 个月前
8080端口被占用,怎么cmd杀死
cmd
鬼手点金4 个月前
Hermes‑Agent 使用教程
python·ubuntu·powershell·cmd·ai agent·opencode·hermes
儒雅的烤地瓜4 个月前
计算机网络 | 网络诊断双刃剑:Tracert路由追踪实战与Windows防火墙端口配置指南
tcp/ip·计算机网络·wireshark·防火墙·powershell·cmd
生活、追梦者4 个月前
【Windows】 CMD 黑窗口命令大全
windows·命令行·cmd·运维技巧
Uarebaby.c6 个月前
CMD和PowerShell的核心区别
cmd