r/opencode • • 3d ago

opencode-squad: forget switching agents for your coding tasks. Adds consensus-based reviews

My expensive primary model was burning tokens on file reads and small edits. I've been struggled with switching agents. I've been struggled to instruct agent to follow the Deming Cycle and review the results with the new model from different provider and with clear context.

So build now delegates:

  • Grunt + drill per model roster you build. The grunt edits and runs commands; the drill is a read-only reviewer that stays read-only even under allow.*. Max 3 rounds, then it comes back to you.
  • Right model, right prompt. The lead (sarge) picks the model that fits the task, keeps hard work off weak models, and goes up to a stronger one when the task is beyond its own. It writes each brief for the model in the way, the model understand better, and rewrites it when it switches models. It don't write silly "go to the file and put this code into lines" to the Opus.
  • Every reply opens with SELF: or DELEGATE: . Override with "do it yourself" or "delegate this".
  • Red team. Say "red team this" and the same question goes to several models in parallel; the lead merges their findings into one report: where they agree, where they don't.
  • Rate-limit guard. A subagent stuck in retries is stopped, and the lead picks another model.
  • Your rules. Per-model/provider notes ("no secrets here") and billing per provider; the lead treats your notes as hard rules.

    Setup: add @/gfn-cis/opencode-squad to plugins, then say "draft the squad".

    Limits: OpenCode 2 only; whether the lead follows the protocol depends on the model; quota warnings are Anthropic-only among the providers I checked.

https://github.com/GFN-CIS/opencode-squad. Feedback from people running several providers is very welcome.

0 Upvotes

2 comments sorted by

1

u/hernandez-andres73 1d ago

How is the drill kept read-only when `allow.*` is enabled: separate tool permissions, filesystem isolation, or another enforcement layer?

1

u/Full_Appearance_225 1d ago

Agents are created dynamically via hooks, so permissions are enforced there.