r/opencodeCLI • • Oct 10 '26

Made an open-source supervisor that runs OpenCode (1.x and 2.x) next to Claude Code and Codex, and tells you which one is waiting on you

Disclosure first: I built this. It's free, MIT, no account, no telemetry.

The annoying part of running a few agents at once is that one of them is always sitting on a permission prompt while you're staring at a different one. So I made nsq, a terminal supervisor: nsq run opencode "fix the flaky test" --worktree, same for claude and codex, then nsq opens a dashboard with all of them as live terminals. Status comes from each CLI's own hooks (for OpenCode that's a small plugin loaded per agent), so "needs you" shows the actual question and you answer y / a / n without opening the agent. A daemon owns the terminals, so closing the window doesn't kill anything.

The OpenCode part had the most surprises:

  • OpenCode 2 is basically a different program from 1.x. Different plugin API, different session store, and the full-screen UI attaches to a shared background service unless you pass --standalone. So per-agent env and plugins just never reached it. nsq now asks opencode --version and picks the launch per binary, both 1.x and 2.x work.
  • 2.x has no --model on the full UI, so the model goes in through OPENCODE_CONFIG_CONTENT, merged with yours if you already set one.
  • Your opencode.json is never written. Everything nsq needs goes into a per-agent file via OPENCODE_CONFIG, which OpenCode merges on top of your config. Same rule for ~/.claude and ~/.codex.

Other bits: OpenRouter built in, or point agents at your own llama.cpp / Ollama / LM Studio / vLLM server. nsq cost shows what each agent spent from its own logs, and a model without a known price says "no price" instead of pretending it's $0.

Honest limits: it's 0.2.0, so things will break and keys/flags can still change before 1.0. The phone page is experimental. Most of the code was written with Claude Code, reviewed by me. And I haven't tested it with heavy plugin setups like oh-my-opencode on v2, so if you run one, I'd really like to hear whether it plays nice.

Try it: npx neurosquad

GitHub: https://github.com/glmn-ai/neurosquad-cli Page: https://neurosquad.ai/en/cli/

0 Upvotes

5 comments sorted by

1

u/kantorcodes1 Oct 10 '26

The "needs you" pipeline is the interesting boundary: status comes from each CLI's own hooks and you answer y/a/n from a shared dashboard. Two questions: does a dashboard answer ever get policy-checked (an "a" on "run npm test" is fine, but should "a" on a destructive command still reach you), or is every answer a straight human decision? And do the hooks log what was approved, so after a bad call you can see which agent asked and what the exact question was?

1

u/glmn_official Oct 11 '26 edited Oct 11 '26

Right now it's a plain human decision. y/a/n just presses that key in the CLI's own prompt, so the CLI's rules still apply (its deny rules win, and "always" means whatever that CLI scopes it to). nsq doesn't add a policy on top yet.

Log: not in nsq itself. Each CLI's transcript has the tool call, but there's no single "which agent asked what, and what I answered" log across agents. Good point, adding it.

Edit: it's in 0.3.0 now. Every "needs you" question goes into one log across agents: what was asked, the answer, and who answered and from where (dashboard, nsq answer, the phone page, or right in the agent's terminal). If nobody answered through nsq, it says how it ended instead. nsq log approvals to read it. Thanks for the nudge.

1

u/kantorcodes1 Oct 11 '26

That's the honest split - nsq already logs who answered from where, so the missing piece between the approvals log and the action is a signed binding: the log records the answer, but nothing proves which call it applied to at dispatch.

Adjacent from the side I work on: HOL Guard (open-source - github.com/hashgraph-online/hol-guard) emits a signed dispatch receipt per gated action, binding the policy decision to the call's arguments. The simple version for nsq: a command.nsq source file in contributions/command-sources marking run, answer and down as reviewed while log, diff, cost and --help stay automatic. You'd author it yourself, and I work on the Guard side - disclosed. Worth it?

1

u/glmn_official Oct 11 '26

Thanks, and fair point. Right now the log ties each answer to the question that agent was showing at that moment, but nothing signs it or proves which exact call it was applied to. For a team or audit setup that binding would matter, for one person at a laptop it's probably overkill.

Signed receipts and an external policy format aren't on the plan for now. If people start asking for it, I'd rather look at it properly. Feel free to open an issue on GitHub with how you'd see it working, happy to read it.

1

u/kantorcodes1 Oct 11 '26

Fair enough - the one-person-at-a-laptop case is already covered by the log, and the team/audit case is where the binding earns its keep. If that ever becomes a real ask, the receipt is the missing half.

And to be straight: I won't put it on your tracker, since the suggestion was mine to make, not yours to keep. Thanks for the read either way.