跳到主要内容
    ↑↓ 选择↵ 打开esc 关闭
    中文English
    geck-dev

    Squad

    v0.1.1其他
    @geck-dev/opencode-squad

    OpenCode plugin that packages the Squad agent, tools, and hooks runtime.

    GitHub 星标

    0

    月装机量

    52

    近 7 天 9

    综合评分SCORE

    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"]
    }

    opencode 启动时会通过内嵌运行时自动加载 npm 依赖并缓存至本地目录,无需手动在全局环境执行安装。

    OpenCode plugin that packages the Squad agent and tool runtime.

    [!WARNING] Early alpha: opencode-squad is 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, and primary/orchestrator
    • hidden slash-command agents such as beta for /beta second-opinion reviews, with stable squad/* 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:

    1. global OpenCode config dir: $OPENCODE_CONFIG_DIR/squad.json or ~/.config/opencode/squad.json
    2. project config: <project>/.opencode/squad.json
    3. 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

    Development

    bun install
    bun run check
    

    Build the optional static manual into the ignored root manual/ directory:

    bun run manual:build