0
52
近 7 天 9
30.6
生态多维模型
4 天前
2026-08-16
快速安装与配置
opencode.json写入当前项目的 opencode.json,只对这个仓库生效。
opencode.json
{
"$schema": "https://opencode.ai/config.json",
"plugin": ["@geck-dev/opencode-squad@0.1.1"]
}写入 ~/.config/opencode/opencode.json,对所有项目生效。
~/.config/opencode/opencode.json
{
"$schema": "https://opencode.ai/config.json",
"plugin": ["@geck-dev/opencode-squad@0.1.1"]
}若你要在本地改造这个插件,先装到项目里再从本地路径引用。
shell
pnpm add -D @geck-dev/opencode-squadopencode 启动时会通过内嵌运行时自动加载 npm 依赖并缓存至本地目录,无需手动在全局环境执行安装。
OpenCode plugin that packages the Squad agent and tool runtime.
[!WARNING] Early alpha:
opencode-squadis still evolving quickly. Expect breaking changes in configuration, bundled agents, tools, commands, and runtime behavior before a stable release. For production or shared setups, pin a concrete package version instead of using@latest.
What it provides
opencode-squad extends OpenCode with:
- primary agents with stable routing keys such as
primary/alpha,primary/architect,primary/developer, andprimary/orchestrator - hidden slash-command agents such as
betafor/betasecond-opinion reviews, with stablesquad/*routing keys for configuration - specialized subagents for codebase analysis, code review, project documentation, web research, and council-style reasoning
- custom tools for container inspection, isolated execution, external repository research, SearXNG search, scratchpad state, handoffs, review context, file inspection, and diagnostics
- bundled container definitions used by containerized tools
- strict JSON configuration through
squad.json
Local usage
{
"plugin": ["/absolute/path/to/opencode-squad"]
}
Or with inline plugin options:
{
"plugin": [
[
"/absolute/path/to/opencode-squad",
{
"models": {
"providers": {
"gpt": ["openai/gpt-5.5", "opencode/gpt-5.2-codex"]
},
"handlers": {
"primary": "@provider/gpt"
}
}
}
]
]
}
For npm/package usage, add the package name instead of a local path:
{
"plugin": ["@geck-dev/opencode-squad@latest"]
}
Configuration
The plugin reads squad.json from:
- global OpenCode config dir:
$OPENCODE_CONFIG_DIR/squad.jsonor~/.config/opencode/squad.json - project config:
<project>/.opencode/squad.json - plugin tuple options in
opencode.json— highest priority
See docs/dev/configuration.md.
For editor validation in squad.json, use the raw schema URL:
{
"$schema": "https://raw.githubusercontent.com/geck-dev/opencode-squad/main/schema/squad.schema.json"
}
Do not use GitHub's /blob/ URL for $schema; it returns an HTML page, not raw JSON.
Documentation
- Public main manual: https://geck.dev/opencode-squad/
- Internal architecture and development docs:
docs/dev - Architecture
- Agents
- Tools
- Containers
- Configuration
- Development
- Roadmap
Development
bun install
bun run check
Build the optional static manual into the ignored root manual/ directory:
bun run manual:build