r/opencodeCLI • • 33m ago

Having a second agent review the plan before OpenCode writes any code

1 Upvotes

When an agent builds straight from a prompt, the misunderstandings show up late, as a diff that touches files nobody meant to change or skips a case that seemed obvious. By then the fix is a debugging session.

Splitting the work into a plan step and a build step works much better. The agent first asks what done means, reads the relevant code and writes a plan: the files it will touch, the steps, what is out of scope, and the checks that prove each point. Before I approve it, a different installed agent reads that plan cold and lists what is missing or risky, so the gaps get answered while they are still cheap.

After approval the build runs test first in small slices. Agents that did not write the code then check the result against every agreed point and record evidence, and I approve the finished change before a pull request opens. Nothing gets merged or pushed without my yes.

I built QualityLayer around this loop, and it runs natively in OpenCode. I'm the developer: https://github.com/maxritter/qualitylayer


r/opencodeCLI • • 3h ago

I built a persistent /btw history for the OpenCode TUI

1 Upvotes

The built-in /btw is one-shot: close the dialog and the answer is gone.

I built a small OpenCode V2 TUI plugin that keeps the same /btw flow and adds a persistent history:

  • every /btw question stays in the session sidebar, with status and duration
  • click a row to reopen the answer
  • /btws filters the session history
  • history survives TUI restarts and multiple windows

No OpenCode core changes.

Repo + demo + install: https://github.com/susususutie/btw

OpenCode V2 only. Feedback welcome.


r/opencodeCLI • • 12h ago

My favourite pass time while I wait for my opencode cli agents to finish

Thumbnail
gallery
7 Upvotes

Meet Munder Difflin. It's an open source app that runs your opencode agents like a tiny office.

Each agent is a real opencode terminal, and each one gets its own desk, so you can see who's coding, who's reviewing and who's stuck.

What it does:

Runs multiple opencode agents in parallel, each in its own isolated git worktree

Shows the whole thing as a live Office-style floor view

Has Michael, your own clone, who plans the work and routes it to the right agent

Talk mode, so you can boss the office around with your voice

Slack and webhook triggers, plus remote control

Works with 10 CLI agents, not just opencode

The office view is deterministic, so it burns zero tokens. It's driven by what the agents are actually doing, not random animations.

How I built it:

I built it for myself while working on my own startup, because I needed a clone of my own workflow. It started as a weekend project and now runs a big chunk of my day to day.

Free, MIT licensed, and it runs on Mac, Windows and Linux. It uses your existing subscription, so there's no extra setup.

GitHub: https://github.com/chaitanyagiri/munder-difflin

Would love feedback from anyone running multi-agent setups. What's the most annoying part of managing your agents right now?


r/opencodeCLI • • 13h ago

open code go (10 usd per month) vs claude pro (20 per month usd)?

Thumbnail reddit.com
1 Upvotes

r/opencodeCLI • • 14h ago

Opencode Autonomously

Thumbnail reddit.com
1 Upvotes

r/opencodeCLI • • 16h ago

Factory.ai alternative

0 Upvotes

Our team trialled Factory for a month and like the Droids for small refactors and test coverage, but the contract was a lot to commit to before we knew which models were worth paying for on which kind of work.

That's why I'm looking at alternatives where we keep more control over the model side. One we're testing is Orq's software factory, which only runs on the models we approve and logs what each task delivered and what it cost, so we can put a cheaper model on the boring tickets and see if it holds up. It's early access and nowhere near as polished as Factory yet, so for now it's a side-by-side on the same tickets for a couple of weeks before anyone signs anything


r/opencodeCLI • • 18h ago

OpenCode Mobile (community) just hit 100 GitHub stars, here's what it can do now 🎉

6 Upvotes

r/opencodeCLI • • 18h ago

OpenCode Mobile (community) just hit 100 GitHub stars, here's what it can do now 🎉

35 Upvotes

GitHub: https://github.com/beppe2880/opencode-mobile · Android APK: https://github.com/beppe2880/opencode-mobile/releases/latest · iOS TestFlight: https://testflight.apple.com/join/Z7wVBAn3

About a month ago I posted here that I'd built an Android app to follow my OpenCode sessions from my phone. This week it passed 100 stars on GitHub, and honestly I didn't expect that. Thank you all! 🙏

The video is a real session:

  • Home screen widget: running and recent sessions, one tap to jump in
  • Live edits: diffs stream in while the agent writes them
  • Images the agent reads show up in the chat, tap to open them full screen
  • /btw: ask a side question while the agent keeps working
  • Answer the agent's questions right from your phone
  • Wide tables you can scroll sideways
  • Full diff view of every change in the session
  • Built-in terminal with full colors
  • Fork, compact, undo and more from the chat menu
  • 33 OpenCode themes, the same ones as the TUI

It connects directly to your own opencode serve, with nothing in between. Pair it with the QR code from opencode pair and use it on your LAN or over a VPN like Tailscale.

A few numbers since launch:

  • 102 stars, 11 forks
  • ~900 Android APK downloads
  • 100+ iOS testers on TestFlight
  • 137 merged PRs

Thank you

Get it

It's free and open source (Kotlin Multiplatform + Compose Multiplatform). It's an independent project, not affiliated with the OpenCode team. Version 0.19 is almost out with Markdown/JSON export and bulk actions in the session list.

What would you like to see next? Bug reports and ideas are very welcome.


r/opencodeCLI • • 18h ago

Which AI model would you recommend for building Web3 automation bots?

Post image
0 Upvotes

I've been experimenting with OpenCode TUI and trying to build some automation tools for Web3.

Some of the things I'm working on include:

  • NFT minting bots
  • NFT game bots that can handle multiple accounts
  • NFT whitelist registration bots

I've been using free models so far, mainly to experiment and see what they can handle.

I'm curious which models you guys would recommend for these kinds of tasks. Would you go with something like Hy4 Flash, DeepSeek V4.1 Flash, Nemotron 3.5 Lightning, or something else?

I'm not necessarily looking for the most powerful model, just something reliable that can understand prompts, follow instructions, and handle these kinds of automation tasks without too much trouble.


r/opencodeCLI • • 22h ago

Kimi Phase 1

Post image
151 Upvotes

@opencode:

Gimme Kimi Phase 1

$60 of Kimi K3.1 Pro usage for $10

available to all OpenCode Go subscribers

@thdxr (dax):

we moved all of our current kimi traffic on to our own GPUs

and it's serving more efficiently than any other provider

and no you dummies it's not quantized, you can test it yourself


r/opencodeCLI • • 22h ago

Anyone running OpenCode fully on a local model? Which one actually handles the tool calls?

4 Upvotes

I've been on OpenCode with the DeepSeek API for a couple of months and it's been great, but I'd like the long loops (test, fix, test again) to stop costing money every run.

I've got a Mac mini M4 Pro with 48GB that sits idle most of the day, so that's what it would run on.

Not trying to replace the API model for the big refactors. Just the grind work where it calls tools 40 times in a row.

If you run OpenCode against a local model, which model, which quant, what's serving it, and do the tool calls actually hold up or does it fall apart after a few turns?


r/opencodeCLI • • 1d ago

Native multi-profile support in OpenCode 2 (separate subscriptions & MCPs)?

3 Upvotes

Does anyone know if native multi-profile support (like a `--profile` flag) is planned or already possible in OpenCode 2?

I want to maintain completely separate setups, work vs. personal where each profile has:

* Its own authenticated subscriptions / providers (`auth.json`)

* Its own set of enabled MCP servers (`opencode.jsonc`)


r/opencodeCLI • • 1d ago

Added OpenCode support to Aetheris Microbrains — sub-ms pre-flight safety gate for your agent

3 Upvotes

Hey OpenCode folks — I just added native OpenCode support to Aetheris Microbrains.

It sits in front of tool execution and checks edits/shell commands locally in <1 ms before anything runs. For OpenCode, it installs as .opencode/plugins/aetheris-microbrains.js and works with --host opencode.

What it gives you:

  • Catches syntax errors in edits before they waste recovery turns
  • Blocks destructive commands (rm -rf /, dd, curl | sh) and secret leakage
  • Protects .opencode/, opencode.json(c), .env, .ssh/, etc.
  • Scrubs secrets from tool outputs
  • Saves ~37k input tokens / ~$0.11 per 26-step session in benchmarks
  • ~0.5 ms median overhead per check

Repo: https://github.com/drtikov/microbrainsforagents

Install:

pip install -e .
aetheris install opencode --workspace . --self-test

Happy to hear feedback or integration ideas.Title: Added OpenCode support to Aetheris Microbrains — sub-ms pre-flight safety gate for your agentBody:Hey OpenCode folks — I just added native OpenCode support to Aetheris Microbrains.It sits in front of tool execution and checks edits/shell commands locally in <1 ms before anything runs. For OpenCode, it installs as .opencode/plugins/aetheris-microbrains.js and works with --host opencode.What it gives you:Catches syntax errors in edits before they waste recovery turns
Blocks destructive commands (rm -rf /, dd, curl | sh) and secret leakage
Protects .opencode/, opencode.json(c), .env, .ssh/, etc.
Scrubs secrets from tool outputs
Saves ~37k input tokens / ~$0.11 per 26-step session in benchmarks
~0.5 ms median overhead per checkRepo: https://github.com/drtikov/microbrainsforagentsInstall:pip install -e .
aetheris install opencode --workspace . --self-testHappy to hear feedback or integration ideas.


r/opencodeCLI • • 1d ago

I run OpenCode unattended as a background PR worker, sandboxed with no Git credentials. Open-sourced the setup.

1 Upvotes

r/opencodeCLI • • 1d ago

Is opencode going to remove ZDR on MiniMax models in light of the leak news?

16 Upvotes

https://www.minimax.io/blog/update-on-url-access-in-forwarded-api-requests-20261124

MiniMax were caught accessing data from canary prompts, accessing websites and scraping repos.

My question to OpenCode as a provider of MiniMax M3 and M3.1 you list on their website that they have 0 days data retention which is obviously not true based on their statement.

They should be classified as Not ZDR and users should be made aware of this.


r/opencodeCLI • • 1d ago

Revival of opencode-usage with OpenCode v1 & v2 support (opencode-usage-v2)

Thumbnail reddit.com
5 Upvotes

r/opencodeCLI • • 1d ago

I built a desktop app that shows OpenCode sessions as live chats next to Claude Code and Codex (Windows and Linux, open source)

Thumbnail
gallery
2 Upvotes

I use OpenCode most days, but also Claude Code and Codex depending on the task, and I kept losing track of which terminal was waiting on me. So I built JoeBro Desktop, a native app for Windows and Linux (there is a Mac version too) that lists every running session as a chat in a sidebar.

When OpenCode asks a question or needs a permission approved, the options show up inline in the chat and you click one or type your own answer. Same for the other agents.

Other bits: local models (Ollama, LM Studio) and your own API keys work as agents with tools, one memory is shared by every agent over MCP, and Night Shift runs coding tasks overnight in separate git worktrees with diffs to review in the morning. It never pushes.

Free, GPL-3.0, no account, no telemetry. The backend runs on your machine and needs Python. Builds are unsigned for now, so Windows SmartScreen will warn.

Repo: https://github.com/joexk1/JoeBro-Desktop

Tell me what is missing for the way you use OpenCode.


r/opencodeCLI • • 1d ago

CLI is displaying gibberish text in WSL2

1 Upvotes

CLI is displaying gibberish text in WSL2, if I exit it /exit and then launch again it works. It's Opencode v2.4.1


r/opencodeCLI • • 1d ago

OpenCode flags for openAI usage limits but I got plenty left for the week & Codex works fine

6 Upvotes

As the title says, I was using OpenCode normally until I got blocked due to usage limits when I still had more than 80% of the weekly quota remaining. This got even stranger when I tested Codex and it worked fine…

I have already checked Settings->Usage->Connected App Limits and I got everything up to 100%

Has anyone had similar issues?

Thanks in advance to the replies!


r/opencodeCLI • • 2d ago

Is the change "Background Subagents by Default" since v2.3.0 good?

18 Upvotes

Since version 2.3.0, OpenCode now runs background agents by default. As far as I know, there is no option to disable this, so this seems to be enforced.

I tried this new setup but it seems to me that it is just adding extra turns with no real value. For example, say you have an orchestrator and that orchestrator calls four different Explorer agents.

With the old way of having those sub-agents working on the foreground, the orchestrator would wait for the four different explore agents to return, it would check their outputs and then it would produce its own output having taken into account all of them.

Now what happens is that it dispatches the four sub-agents and then returns.
When the first sub-agents comes back, it checks its output and says ok, let's wait for the other three to come back.
Then the second one comes back, checks its output and says, ok, let's wait for the other two to come back.
Then the 3rd one comes, checks its output and says, let's wait for the last one to come back.
And when the 4th one comes back, it then outputs a final.

From what I understand, each time that a subagent comes back and our orchestrator checks its output, that is a request that sends the entire context to the API servers. Sure it is most probably cached, but it is still billed. Isn't that way of working very inefficient? Am I missing something?

EDIT: It looks like there is an active issue about this on GH
https://github.com/anomalyco/opencode/issues/64073


r/opencodeCLI • • 2d ago

Best thinking model to pair with deeepseek flash in Go

17 Upvotes

As the title say. which model can act like a cheap "opus" available in opencode, i can use as for high thinking tasks.

Candidate: GLM 5.3, Argon, Mimo v2.6 Pro?
Kimi k3.1 will probably nuke your usage


r/opencodeCLI • • 2d ago

I measured where coding-agent tokens actually go, then built a skill that cuts the bill by up to 43% (open source, benchmarked)

1 Upvotes

I wanted to know whether "make the agent write terse code" actually saves money, so I measured it instead of guessing.

Setup: 4 small codebases (Python, TypeScript, Rust, C), 23 feature tasks, each with hidden functional and security tests (path traversal, authz, SQL injection, overflow, XSS). The specs never mention security. Three arms: no skill, Ponytail (the strongest public alternative I found), and my skill. Claude Opus, 3 runs per cell, 36 runs. Cost comes from per-call billed usage in the transcripts, not estimates.

First finding: code verbosity barely matters. Every model call re-reads the whole context, so the bill is driven by how many calls the agent makes. One extra call costs about 6% of a run. The cost splits into prefix re-reads 39%, context growth 28%, output 27%, thinking 6%. Making code terser on its own caps out under 10%.

So the skill's first rule is fewer calls: batch independent tool calls, read targeted line ranges once, edit each file once, run tests once at the end. Then less output: no comments, no narration, minimal diffs. It never drops validation, auth checks, escaping or bounds checks.

Results, billed cost vs no skill:
Python 0.57x (Ponytail 0.98x)
Rust 0.69x (Ponytail 0.91x)
C 0.71x (Ponytail 1.08x)
TypeScript 0.97x (Ponytail 1.06x)
All four 0.70x (Ponytail 1.00x)

Model calls per run went from 12.2 to 7.4. Security tests: 513/516 in all three arms. Functional: 499 vs 498 out of 510; the one difference is a spec-ambiguous check that only one baseline run passed.

Caveats: one harness (Claude Code), small purpose-built fixtures, 3 runs per cell. TypeScript barely moved because its baseline was already lean. Each prompt held several tasks, so batching across tasks helped; single-task sessions will save less. Not every platform's install route is verified live yet.

It's a ~500-token skill, packaged for Claude Code, Codex, Gemini CLI and Antigravity, plus rule files for Cursor, Windsurf, Cline, Copilot, Kiro and AGENTS.md. The benchmark harness, raw billed data and the cost equation are in the repo, so you can rerun it or poke holes in the method:

https://github.com/nagisanzenin/nonhuman

Happy to hear where the methodology is weak.


r/opencodeCLI • • 2d ago

Intentando ejecutar OpenCode en Linux Mint con un Intel Core 2 Duo P8400: compilación Node.js, problemas con Worker y archivos faltantes en la TUI

Post image
0 Upvotes

r/opencodeCLI • • 2d ago

Tried "code mode" and I can't currently recommend it

Thumbnail
github.com
20 Upvotes

https://github.com/anomalyco/opencode/blob/dev/packages/codemode/README.md

Been trying out the code mode on a couple different projects.

I used Gemini Hydrogen and also Deepseek Flash 1017.

I found it to be really inconsistent. It seemed like subagents would report that they were done/finished before they were. And that shell tasks were also not being reported incorrectly.

Not sure what other people are experiencing but it doesn't seem ready.

Happy to be wrong. But did anyone else try this and have issues?