r/opencodeCLI • • 7h ago

How do you regression-test your AGENTS.md rules when switching models in OpenCode?

0 Upvotes

How do you know whether the new model still follows your engineering conventions?

I've been building an approach where written rules become executable tests, independently of the coding agent or model.
For example:

  • Never mock our own hooks.
  • Never use time.sleep() in tests.
  • Always use our internal error class.

Each rule gets explicit passing and failing examples.
Glob and grep handle what can be checked deterministically. Specialized decision models handle what requires semantic judgment. Checks run at commit time or in CI.

In one of my experiments, 97.6% of checks could be handled before making a model call.

The idea isn't to replace linters or CI, but to make written conventions testable without having to implement every new rule manually.

I'm building this as an open-source project called Agentests: https://github.com/feuersteiner/agentests

Would love some feedback from people regularly switching between models.


r/opencodeCLI • • 21h ago

[Plugin] I got tired of paying frontier rates for mechanical edits, so I built a two-seat plugin (planner + worker, auto take-back)

Post image
0 Upvotes

OpenCode lets you switch models mid-session, but actually working that way is manual labor — plan with the smart model, switch to the cheap one, re-explain the task, switch back to review, repeat. I built Handoff so multi-model sessions run themselves: one brain plans, a cheaper seat executes, and everything (including the seat) comes back on its own. Free, OpenCode V2 TUI. Repo + install at the bottom.

The problem, concretely: I was doing all my planning with my best model, then doing the grunt work — file edits, test runs, boilerplate — on that same expensive model, because switching seats mid-session and re-briefing the next model every time was more annoying than just eating the cost. That's backwards. The cheap model should do the expensive (token-heavy) work, and the expensive model should only do the cheap (short planning) work. But nobody wants to play air-traffic controller between two models all day.

So that's what Handoff is for: it makes the planner/worker split automatic. You talk to your planner like normal. When there's real work, the worker seat picks it up on its own, does exactly what's in the mandate, writes up what it did, and hands control back. If it ever gets stuck somewhere weird, /takeback yanks the seat back instantly. You never switch models by hand, you never re-explain anything, and you stop burning flagship tokens on mechanical edits.

Everything else in the plugin exists to serve that loop:

- Per-model spend readout (cost, turns, tokens, plus a list-price estimate since some providers report $0.00) — because the whole point is knowing which seat burned what. My own numbers: the worker does ~2x the tokens of Main while Main keeps the plan tight. That's the arbitrage working.

- Automatic vision detours — attach an image your worker can't read and the seat detours to a vision model by itself, which writes you a description plus ASCII art, then hands the seat back. No model-switching ceremony.

- Mandate checklists that clean up after themselves, a live banner naming who's active and what it's doing right now, update checks that stay quiet unless there's news and then read you the changelog once, and failure messages that name the seat, the state, and the fix instead of leaving you guessing.

And when you want manual control: /takeback, /vl to force a vision pass, /auto to pause the automation, /model1 /model2 /modelvl to swap seats, /helphandoff for the full list.

Install: tell your AI "install the handoff plugin from https://github.com/Nodoubvt/opencode-handoff" — clone into your plugins folder, restart the TUI, pick models once. Needs OpenCode V2.

Caveats, being honest: it's a one-dev project built around my own workflow and tested mostly on Windows, so be gentle. The license is free-to-use but download-only (no forks/redistribution) — I know that's unusual around here, happy to talk about it. There's also an anonymous install ping (plugin name, version, event type, random install ID — nothing personal) with a /telemetry off-switch.

The question I'd genuinely love answered: for those of you already splitting planning and execution across models manually — how are you doing the handoffs today, and what breaks? I built this for my loop; tell me where yours differs.

Repo: https://github.com/Nodoubvt/opencode-handoff

If it saves you a headache: https://buymeacoffee.com/ronilividt/e/605956


r/opencodeCLI • • 5h ago

opencode go is a saviour

Thumbnail reddit.com
1 Upvotes

r/opencodeCLI • • 18h ago

Amazon Ergo Uncensored

26 Upvotes

Ergo Uncensored is now on OpenUncensored at 240–280 tps, the fastest and cheapest uncensored Ergo we could find.

Hey everyone,

We've just moved Ergo Uncensored (Amazon's 1.1T Ergo with its refusals removed) onto our own GPUs on OpenUncensored, with 1M context, tool calling and reasoning.

It's available through our API on a pay-as-you-go basis, no account needed.

ProviderInput / 1MCached / 1MOutput / 1MMeasured decodeFirst token (TTFT)
OpenUncensored$1.10$0.20$3.33240–282 tok/s (282 at C=1)0.15 s cached (0.8–1.5 s live avg)
Other uncensored Ergo API$1.10$0.33$3.33~167 tok/s2.8 s (8.9 s p90)

Coding agents spend most of their tokens re-reading cached context, so the cached price is where you save.

You can use it with your favourite coding tools, including DSH, Claude Code, OpenCode and Cursor, through our API.

It isn't quantized any further than Amazon's release: same MXFP4 experts and BF16 weights, served with Amazon's DSpark speculative decoding. It has been tested deeply for regressions on tool calling, reasoning, knowledge and uncensored compliance:

  • Refusals: 3/100 compared to 98/100 in the original
  • 88.3 on MMLU (stock Ergo: 90.7)
  • Passed our internal coding and cyber benchmarks
  • #2 on the OpenUncensored leaderboard

Let us know what you guys think!

openuncensored.com


r/opencodeCLI • • 8h ago

I built a small Mac CLI so Codex / Claude Code / Cursor can use API keys without seeing them

Post image
2 Upvotes

r/opencodeCLI • • 20h ago

Minimax M4 and GLM 5.4 on OpenCode Go. Abit pricey though

Post image
4 Upvotes

r/opencodeCLI • • 23h ago

Best Practice / Guide for setting up OpenCode in a Docker container or sandbox?

13 Upvotes

My Ideal setup would be something like - OpenCode using VSCode with Git, node, python, C++ and Rust all installed and ready to use, plus my skills, scripts and MCP's. All in one docker sandbox, setup remains consistent every time I launch.

Can I use the GUi with a docker sandbox?

Is there a guide for this? What would you do differently?