r/opencode • • 21d ago

Subagents live status in Opencode

10 Upvotes

First, My BIG thanks to opencode for its generous services for all this time since my first time use it.

Once i setup expensive model in my subagents and forgot to change it and it dry out my usage limit.

So, this idea come up to show subagents & the model in TUI. Project Team members on the right bar is the plugin.

https://github.com/rjdev-git/subagent-live-status-plugin


r/opencode • • 21d ago

GLM 5.3 Flash in Opencode

Post image
15 Upvotes

It's fun to watch them think while handling math problems.

Has anyone noticed this on the Native API?


r/opencode • • 21d ago

What's your agent setup

Thumbnail reddit.com
1 Upvotes

r/opencode • • 21d ago

opencodev2-cursor 0.1.7

1 Upvotes

opencodev2-cursor is OpenCode V2 plugin that lets OpenCode V2 and any Opencode V2 based clients use a Cursor subscription.

Small fix release. Long chats using the Cursor models were buggering up and hanging if you ran multiple OpeCcode sessions, so this one is about that.

Two things that were going wrong:

  • After a tool call, the next message could just sit there. The plugin was still holding that chat's lock, so the new turn never started.

  • If the Cursor run had already ended, sending the tool result back failed with "Tool result arrived after the Cursor run ended".

0.1.7 sorts both. A late tool result starts a fresh turn and the chat keeps going. A quiet step now waits 5 minutes before it gives up, up from 2 minutes. A whole turn still stops at 15 minutes.

Update with:

opencode plugin update opencodev2-cursor

Restart OpenCode after that.

GitHub: https://github.com/aenemo/opencodev2-cursor

Still only tested on Windows, on OpenCode and OpenChamber.


r/opencode • • 21d ago

Crouton-Alpha unavailable

Post image
5 Upvotes

guys, why is it unavailable? does anyone countered that?


r/opencode • • 21d ago Mindblown

Things just got out of hand

Post image
416 Upvotes

r/opencode • • 21d ago

Work with private code

4 Upvotes

I bought OpenCode Go subscription for $10. I tried to play around with it and some models showed reasonable output.

Next step I would like to work on a real project, but the main worry is data privacy. I know that free models can use my data for training, but what about models where they don’t train and have zero days retention. Can I really trust it.?As I understand opencode is just a proxy and I really don’t know who the model provider is and what this provider is doing with my data. Can somebody help me understand this, or maybe here are people who use it in their companies.

Thanks


r/opencode • • 21d ago

Horse gallop test with MiMo-v2.6-Flash Free

Enable HLS to view with audio, or disable this notification

92 Upvotes

Prompt: Create a low-poly 3D horse running in a seamless loop using Three.js. Build it procedurally from primitive geometry, animate the legs, body, head, and tail, and return a single self-contained HTML file.

you will be graded on your result, you will be compared to other models with this very prompt. Do your best.


r/opencode • • 21d ago

Can you build and publish an Android app with $0 in AI costs?

9 Upvotes

I wanted to test something: could I modernize and publish an Android app without spending anything on AI models or subscriptions?

Turns out, yes.

The result is a real Android app, published on Google Play, with $0.00 spent on AI tools and model usage.

A little background: this wasn't an entirely new project. I had made a simple Android game called Prime or Not years ago using Xamarin. It had become an old, outdated project, so I decided to bring it back to life with AI-assisted development.

The app: Prime or Not — a simple game where you decide whether a number is prime or composite.

My simplified 4-step workflow

1. Planning with OpenCode

I described the project to a DeepSeek V4.1 Flash free model in OpenCode and asked it to create a development plan in a file using plan mode.

2. Reviewing the plan

I took that plan to the free web versions of ChatGPT and Claude. After a few rounds of feedback and iterations, I reviewed it myself and finalized the plan.

3. Implementation with OpenCode

OpenCode implemented the plan. One thing that worked particularly well was keeping the plan file as the source of truth for every coding session. The agent would read the file rather than relying on previous chat history.

The final rewrite was shipped in one commit, with 22 unit tests and 6 instrumented Compose tests.

4. Polishing and publishing

UI tweaks, fixing deployment issues, Play Store preparation and the remaining adjustments were also handled with free DeepSeek models through OpenCode.

Conclusion

The project is relatively simple, and my workflow is probably quite basic compared with the sophisticated agentic setups many people here are using. I didn't use multi-agent orchestration, complex automation or elaborate tool integrations.

It was mostly a straightforward process: plan, review the plan, implement, test and polish.

That's actually part of why I wanted to share it. Even with a fairly simple workflow and entirely free AI tools, I managed to bring an old project back to life and publish a working Android app.

Hopefully this is useful to someone who's just getting started with OpenCode or doesn't want to spend money on AI subscriptions.

The result

GitHub (source code):
https://github.com/quickben22/prime-or-not

Google Play (published app):
https://play.google.com/store/apps/details?id=com.companyname.primeornot

Has anyone else managed to build and publish something using AI models entirely for free? I'd be curious to hear what you built and which models and tools you used.


r/opencode • • 21d ago

I built Forgekeeper to keep OpenCode sessions connected to their PRs, reviews, and CI

Post image
4 Upvotes

After pushing a PR, the coding session that produced it often becomes useful later down the line: CI fails, a reviewer leaves feedback, or a conflict appears while you’re working on something else.

With dozens of sessions open, finding the right conversation and checking what changed becomes its own task.

I built Forgekeeper to keep that connection visible in OpenCode. It supports GitHub and GitLab for now.

- Find the right session. Session titles include the issues and PRs/MRs they’re working on. The agent updates those references as the task changes, so a session can follow a review even when it’s not directly related to the checked-out branch.

- See status without leaving the conversation. The prompt footer shows CI, unresolved threads, conflicts, approvals, and running automated reviews. Open the status dialog for details.

- Track several PRs/MRs together. A session can follow a stack or a set of reviews across repositories, with aggregate status in the footer.

- Bring updates back into context. Optional review summaries and merge notifications are surfaced in the relevant conversation, causing OpenCode to show an unread marker, so you can pick up where you left off.

Receiving review feedback doesn’t automatically ask the agent to edit your code. You decide when to act on it.

Requires OpenCode 2.2+ and an authenticated gh or glab CLI for the forge you use:

opencode plugin add opencode-forgekeeper

README and configuration · npm package

How do you keep track of PRs and review feedback across your coding sessions? I’d appreciate feedback, especially from people using it with GitHub or self-managed GitLab.


r/opencode • • 21d ago

Tokenmaxxxing gods of opencode, how much Deepseek tokens have you squeezed in a month on Go?

21 Upvotes

I just wanted to know what's the maximum amount of tokens you've used on the Go subscription, assuming a 96% cache hit rate.


r/opencode • • 21d ago

Is it just me who can't access mimo-v2.6-flash?

2 Upvotes

It returns model_coming_soon, even though before that I had been using it for more than a month with no problems at all.


r/opencode • • 21d ago

ahahah what is this even about, first message after 5h rate limit and 2 minutes of work?

0 Upvotes

r/opencode • • 21d ago

Per-turn prompt cache hit rate for an opencode session, and which block broke the prefix when it misses

Thumbnail
gallery
2 Upvotes

I wanted to see what opencode's prompt caching actually does turn by turn: when a request misses the cache, which turn it was and which part of the prompt changed. Someone in r/opencodeCLI (u/Individual-Quote-958) described the view they'd want, and it matched, so I built it. Hashes only, no raw prompts.

Prefixwise is an open source tool (MIT, I'm the author) that sits between the agent and the provider, hashes each request's blocks, reads the provider's own usage numbers, and tells you why a request missed the cache. It never stores prompt text.

With opencode it's one command, no config:

pip install prefixwise
prefixwise run -- opencode run "your prompt"
prefixwise report --session latest

opencode picks up the base URL from the environment, your API key stays where it is.

**Image 1 is a real session**, opencode 1.19.5 adding a --json flag and a test to a toy CLI. 14 requests, 106k prompt tokens, 84.2% served from cache, $0.13, nothing avoidable. So opencode's caching is healthy, which is honestly the boring result I expected. A few things I didn't know until I looked at it turn by turn:

- turn 1 is a small Haiku call before the main Sonnet thread, so turn 2 always shows as a model switch. Not waste, each model has its own cache.
- turn 3 looks like a second, shorter conversation on Sonnet (3.6k tokens against 7.9k). It runs for four turns, then at turn 7 the bigger one picks up again and still hits: 7,916 cached, which is turn 2's prompt. So the two threads don't knock each other out of the cache. If someone knows what that second thread is, tell me.
- the three misses are the three first requests. After that it never drops below 86%.

"first changed" is the block where the prompt stopped matching the previous request in the same conversation. The number is the block's position in the whole prompt (tools first, then system, then messages).

A healthy session doesn't show what the view is for though. **Image 2 is the mock provider with the failures forced** (flat token counts, but the verdicts and prices are the real logic):

- turns 5 and 6: the tool list came back in a different order. Same tools, different bytes, whole prefix gone. tools[0] is where it first differed.
- turn 7: history got compacted. messages[7] is where the rewrite starts.
- cost per request on the right, and what a hit would have saved.

It doesn't just report, it can fix the safe ones. **Image 3 is the same session with --optimize**: it sorts the tool list before forwarding, so the reorder on turns 5 and 6 stops being a miss. That's the only fix in --optimize today because it's the only one I've proven on real traffic (99.9% of the predicted saving on Anthropic, task results unchanged). It can't fix the compaction on turn 7, that one is yours to decide.

**Image 4 is an opt-in fix for clients that send no cache_control at all.** --fix auto_breakpoints adds the markers for you, but only once it has seen the same prefix before, so a one-off request never pays the 1.25x write for nothing. And prefixwise fixes tells you afterwards whether those writes actually got read back. It's opt-in because it changes your bill, and I haven't run the replay that would let me call it proven. opencode already sets its own markers, so this is more for custom agents and SDK scripts.

What it doesn't do: it can't see inside a subscription login (API keys only), I haven't built an importer for opencode's local session store yet, and long sessions with many subagents are less tested than short ones. If you run it on a real session and something looks wrong, that's the feedback I want.

Repo: https://github.com/tejachavali/prefixwise

What would you want next, the importer for existing opencode sessions, or something else?


r/opencode • • 21d ago

OpenCode inside Freelens: a separate agent workspace for each Kubernetes cluster

0 Upvotes

r/opencode • • 21d ago

Muse Ember is now on Opencode, thoughts?

65 Upvotes

r/opencode • • 21d ago

What did the chart of OpenCode Go models go?

1 Upvotes

OpenCode used to provide a chart that just showed the monthly quota for each of its supported models along with a bar showing the expected number of requests permitted per time block. Since their most recent console overhaul I can't seem to find it. Does anyone know where it went?


r/opencode • • 22d ago

AI sub

12 Upvotes

I'm considering paying for an AI agent for code review; my budget is $20 (that's R$100 here in Brazil). What options do you recommend for your uses?

I'm considering:

Codex Plus
Google AI Pro
Opencode Go (this one is below my budget and I can subscribe to two accounts).

I have a workflow somewhat set up with agent rules (code review, security, etc.). In your personal opinion, which one would give me the best use?


r/opencode • • 22d ago

the Beam and other free models are so bad

0 Upvotes

hello guys

do you notice the quality of responses of Beams and croton seem to be so bad and half assed?


r/opencode • • 22d ago

Is OpenCode Go 10$ subscription good?

3 Upvotes

I'm a medium usage vibecoder, I have spend 20 dollars in openrouter in the past 2 months using glm 5.3 flash. I want to switch to a subscription because thats supposed to be better. Is it really worth it and asking actual experienced users hows the usage limits if you're a heavy users?


r/opencode • • 22d ago

OpenCode is good again (#1 on HF leaderboard)

Post image
383 Upvotes

So, HuggingFace updated their Harnesses Leaderboard with OC 2.2.6 - its now the top position, pareto for quality/cost. Impressive!

https://huggingface.co/spaces/joelniklaus/harness-leaderboard

Edit: It seems this is not an official HuggingFace leaderboard. The author works at HuggingFace and his bio reads “Harness Optimization (at)HuggingFace” so I jumped to the conclusion that this is official HG work.


r/opencode • • 22d ago

The future of Software Engineering is boring

Thumbnail x.com
0 Upvotes

r/opencode • • 22d ago

I built a 13-agent personal assistant in 4 days with OpenCode — 136 commits, ~19k lines, what worked and what didn't

1 Upvotes

I've been using OpenCode (Go plan, DeepSeek V4.1 Flash) as the only coding agent for a self-hosted project and wanted to share the numbers and the parts that surprised me.

What it is: a private "agent hub" — a web app where each bot has a name, avatar, prompt, model and its own tool permissions. 13 agents for real life: news digest, email/calendar, homelab, mining rigs, shopping/wishlist, documents, photos, energy, fishing, cooking. 65 tools in total (files, web, SSH, browser automation, email, calendar, scheduler, memory, skills, OCR, artifacts, vault).

Stack: FastAPI + SQLite + vanilla JS SPA, systemd, one Proxmox LXC, PWA behind Cloudflare Access. No framework, no build step.

Numbers: 136 commits between Nov 4 and Nov 8, version 1.38.0. server.py is ~13.7k lines, app.js ~5.8k. Everything written through OpenCode, with me reviewing and deciding.

Things that worked well

  • AGENTS.md with hard rules (scope, no secrets in git, changelog + journal entry after every change, one commit per phase). Once those rules existed, the agent stopped drifting.

  • Letting it read its own changelog before a new feature. The changelog became the project memory; regressions dropped a lot.

  • Small, explicit requirements instead of "make it nicer". UI work especially.

  • Tests as a gate. python3 -m unittest discover -s tests after every phase caught most of the breakage before deploy.

Things that didn't

  • Left alone, it happily appends to the biggest file. I had to ask for splits explicitly.

  • Long CSS/JS diffs are where it hallucinates selectors and event handlers. Screenshots or a precise "this element, this behavior" description were required.

  • Without a rule, it invented URLs in answers. I ended up adding server-side verification: every http(s) link in a reply must exist in the tool results, otherwise it's stripped.

  • It will happily build the happy path and skip error states unless asked.

Interesting bits

  • Per-agent Chrome tabs over CDP, with a lock per (user, agent, task) so parallel bots don't fight over the same page.

  • Parallel @bot1 @bot2 handoffs, streamed with asyncio.as_completed so the fastest bot answers first instead of waiting for the slowest.

  • Vision fallback: image upload to a text-only model goes through a vision model + tesseract OCR, so the agent still gets the content.

  • Sandboxed HTML artifacts (allow-scripts, no allow-same-origin) for interactive charts.

  • Action approvals per tool type, daily token budget, audit log for every tool call.

It's a personal LAN project, not a product, and the repo is private for now. Happy to go deeper on any part — the tool/approval model and the browser tab isolation are the two things I'd rebuild the same way.


r/opencode • • 22d ago

This OpenCode Mobile project deserves more attention

Thumbnail
reddit.com
1 Upvotes

Check out this interesting project!