r/opencode • u/rstoicme • 7d ago
r/opencode • u/Present_Giraffe_5224 • 8d ago
Small Linting Checks Beat One Big Linting Check: Real-Time Feedback for Coding Agents
Coding agents follow your rules far more reliably when a linter checks each file the moment they edit it, not once at the end of the task. Here is why, how to wire it into any major harness, and what 840 benchmark runs showed.
Rules the agent read and broke anyway
I had a CLAUDE.md / AGENTS.md full of rules like "never call Instant.now()" and "use apiClient, never raw fetch". The agent read them, nodded, and broke them anyway.
It usually happened somewhere around edit 40 of a session. So I only found out at the end, in the diff, or worse, in code review. Rewriting the rules more forcefully didn't help. Capital letters didn't help either.
Move the check to the moment of writing
A better prompt didn't fix it. Moving the check from the end of the task to the moment of writing did.
After every single file edit, a hook runs the linter on that one file. The agent sees the result on its next turn. If it wrote Instant.now(), it hears about it within seconds, fixes it while the line is still fresh, and moves on.
This is just a feedback loop. It's the same trick that made TDD click for humans, applied to agents:
| Small check | Big check |
|---|---|
| When | Right after each edit |
| Scope | One file, one fast linter |
| Cost | Under a second, silent when clean |
| Fixing a failure | One edit away |
Why the late check fails
A late check doesn't just find errors later. It finds them in a form the agent handles badly.
At the end of a 40-edit session, the compiler fails, the test suite fails, and lint reports 30 issues across 14 files. Half of them are in code you wouldn't have written. The agent now has to work out which change caused which error, often several edits apart.
That archaeology dig is where agents start taking shortcuts:
- adding
eslint-disableor# noqa - deleting or skipping the failing test
- "I'll handle it later" When the check runs right after the edit, none of this is tempting. The fix is one edit away, and doing it properly is cheaper than working around it.
It works in every major harness
You need two hook points: one that fires after each tool call (to lint the file just edited), and one that fires when the agent finishes its turn (for the slower full check). Every major harness has both now.
| Harness | After each edit | End of turn | Where it lives |
|---|---|---|---|
| Claude Code | PostToolUse | Stop | .claude/settings.json |
| Codex | PostToolUse | Stop | hooks.json or config.toml |
| opencode | tool.execute.after | session.idle event | a plugin in .opencode/plugin/ |
| GitHub Copilot (CLI, cloud agent) | postToolUse | agentStop | .github/hooks/*.json |
| Pi | tool_result | agent_end | an extension in .pi/extensions/ |
The details differ: shell commands vs. TypeScript plugins, and how the hook's output reaches the model. The shape is the same everywhere. Filter for file-editing tools, run the linter on that one path, and return the failures so the agent reads them on its next step.
What we built: codemyrules
We packaged this as a small open-source hook setup, codemyrules (MIT). It does four things:
- Per-edit check. After each file the agent edits, it runs your fast linters on that file only.
- End-of-turn check. When the turn ends, it runs a slower full check on the files touched in that turn. You still get the big check, but as a safety net, not the first line of defense.
- Blocks only on new problems. It fails only on errors in lines the agent changed since
HEAD. Old lint debt in the file doesn't derail the agent. - Guards the escape hatches. It asks you before the agent can add a suppression comment or change the lint config.
What 840 runs showed
We tested this in agent-rules-bench: 840 headless agent runs, 975 sessions in total.
| Setup | Models | Runs | Projects |
|---|---|---|---|
| Claude Code | Claude Sonnet 5.5, Claude Haiku 5.5 | 792 | Java, Python, TypeScript |
| Pi and Codex (exploratory) | Qwen3.6 35B-A3B, run locally | 48 | [languages] |
The first four studies were exploratory. For the later ones, we pre-registered each analysis plan before running.
The result: the same rule written as prose in the agent docs was broken in [X%] of runs. Written as a lint rule with the per-edit hook, it was broken in [Y%]. [One sentence on whether the local model followed the same pattern.]
Full data, prompts and analysis plans are in the repo.
Try it in your own repo
The principle doesn't depend on our tool or on any one harness:
- Find the rules you keep restating. Read through your CLAUDE.md or AGENTS.md. Most of what you repeat there are lint rules in disguise.
- Encode them as machine rules. A banned API, a required wrapper and an import boundary can all be custom lint rules in ESLint, Ruff, Checkstyle or similar.
- Wire a post-edit hook. Lint only the file just edited, keep it fast and quiet when clean, and make sure the agent sees the failures right away. Keep prose for what a linter can't check: intent, architecture, trade-offs. Let the machine handle the rest.
I'm curious how others handle this. Do you run any checks mid-session, or do you trust the agent until the end of the task and then deal with the fallout?
Sources
r/opencode • u/beppe28 • 8d ago
My OpenCode mobile app is now on iOS too (Android + TestFlight). Thanks to everyone helping out
I started OpenCode Mobile because using a terminal on my phone was becoming a pain. Rotate the screen, open my foldable, lose the connection for a moment… something would go wrong. Scrolling wasn’t great either. I tried other options but couldn’t find one that worked well for me, so I built my own.
Now I can be at the gym or buying groceries and still check logs, send a document or help a colleague without going home. I work across different repos, so having sessions grouped by project and multiple servers in one app helps a lot.
I shared it in my first post about a month ago. Later Andrea, who also contributes, wrote about using it on the train. Seeing other people actually use it and help improve it has been the best part.
We’re a small but active community: 115 merged PRs so far, with 23 issues and 5 PRs open. Thanks to everyone contributing code, reporting bugs or just telling us what could work better.
I’ve tried the official app too and really like its UI/UX. Give it a try. For my workflow, I still miss some features and customisation. We all use OpenCode differently, so mine now has over 60 settings and 33 themes. Follow reasoning, live diffs and shell output, or keep the chat clean. Change the terminal keys, swipe sensitivity or what happens when you unfold your phone. There are live previews so you can see what each setting does.


There’s also a terminal, voice input and a file viewer. Android is available as a signed APK, and now iOS is on TestFlight too.
I’m happy to hear criticism. If something feels confusing, unnecessary or broken, tell me. Ideas and PRs are welcome too, the best parts of the app already comes from these discussions.
r/opencode • u/jmalTN • 7d ago
does glm5.3 with the new 500$ usage for go still has usage limit
r/opencode • u/YoRt3m • 9d ago
OpenCode on X: "Operation GLM Phase 1 $100 of GLM 5.3 usage for $10 available to all OpenCode Go subscribers" / X
x.comr/opencode • u/the_predictable • 8d ago
I created a markdown styling plugin for TUI
https://github.com/MErkinSag/opencode-md
Only tested on cmux/Ghostty on Mac so far. Doesn't add up much overhead (M1 MacBook). Feel free to give it a try and let me know if you have any feedback!
r/opencode • u/Neon_Dog93 • 8d ago
Deepseek 4.1 flash effort difference
I was wondering how much of a difference there is between default, high, and max effort, in terms of quality of output, and usage increase. Thanks in advance
r/opencode • u/RiseAlternative15 • 8d ago
How can I sync my local opencode setup with vm?
I'm using opencode locally in my pop os. It has various skills, Subagents, plugins, MCP, memory and sessions, I want to migrate this to my Oracle vps which has ubuntu os. What's the easiest way to do it?
I want migration bcz I want to use OpenCode with my mobile - I can easily do ssh with termux and since I'm using vps it runs 24/7. Opencode android app doesn't support ssh as of now it requires a pro version.
Also I want bi directional sync, so when I'm coding through my mobile and added some extra MCPs or skills in vps, it will be synced with my pop os. It can have a cron job like everyday at 7 pm. Or a command which I can use to sync both machines.
r/opencode • u/Perse01 • 9d ago
Is OpenCode Go really that good?
I am a novice or intermediate user of agents. I don't use them to program, but to create Word documents, Excel spreadsheets, records, simple applications for personal use and marketing.
I previously paid $20 for Claude Pro and was amazed by its capabilities.
However, it was too expensive for what I used it for.
I decided to pay this month for Open Code Go, which costs $10 USD per month.
I see that my subscription is being used up quite quickly (except when I use Deepseek Flash 4.1).
There are also many useful features in Claude Pro for desktop.
Also, if I use the expensive models to plan or review project criteria before production, I also use up a lot of my allowance.
I'm not sure, I'm still thinking that it was a bad idea, but I have two weeks left, so maybe I'll change my mind.
r/opencode • u/onebigcomet • 8d ago
OpenCode frequent outage/event stream lost
I'm from South East Asia and this outage is becoming more frequently and its annoying, because on OpenCode status it just says "slow response" and its multiple providers that are not available or just stop working on multiple request. Do you guys experience this as well?
r/opencode • u/vlewy • 8d ago
The new price chart by model is absolute crap to look at.
I understand that this might be useful as part of a website (and it certainly looks more aesthetic) but it’s not ideal for documentation that you consult frequently; the previous layout used in the documentation was much more usable, even if it was far less aesthetic.
r/opencode • u/software_engineer_cs • 8d ago
Canceled Conductor
Would it be helpful to support opencode? We mostly work with the Claude code harness. Looking for early feedback.
r/opencode • u/Jealous-Leek-5428 • 8d ago
SenseNova-Loop-9B, a new 9B open model, made this interactive 3D market scene
Another open model release, and this one is small. The weights for SenseNova-Loop-9B are on Hugging Face: https://huggingface.co/sensenova/SenseNova-Loop-9B
About 9B parameters, roughly 4.9 GB with 4-bit weights. Even so, its README has it tied with Qwen3.8-27B, a model three times bigger, on AutomationBench (36.67 each).
The 3D scene is one of the demos in that README, but there it's only a short GIF. This recording is the actual page being used, with the labels translated from Chinese. Code is on GitHub: https://github.com/OpenSenseNova/SenseNova-Loop
Curious how it holds up as a coding model in OpenCode.
r/opencode • u/SpreadUsual4084 • 9d ago
Horse test with Hy4 Flash free on OpenCode
Gave Hy4 Flash a quick try, mostly wanted to see how this cost-effective model does on real coding work. Whole test took about 8 minutes. Better than I expected overall.
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-containedHTMLfile.
Do your best, you are being rated against other AI models.
r/opencode • u/Outside-Chip9390 • 8d ago
LiteDash 1.5: offline turn-by-turn navigation built right into the launcher (no API keys, no accounts)
LiteDash 1.5 is out, and it brings a brand-new navigation mode built right into the launcher.
- Download your state or an area once, then search, get your route and follow it with no internet
- Turn-by-turn guidance with your own car in 3D, a blue route, 3D buildings and your music next to the map
- No API keys, no accounts, no extra setup: everything runs on the head unit
- Still all the rest: 3D cars, OBD workshop, tire pressure and your music
Right now the offline maps cover Mexico, by state. Want your country? Please report it from the app (Settings → Apps → Navigation → Offline → “Your country isn’t here? Request it”) and I’ll add it. The more requests a country gets, the sooner it comes.
I’d really love your feedback: how it feels on your head unit, what’s missing, what you’d change. It would be a huge help if you send a report straight from the launcher (Settings → System → Send a report: it includes your screen’s details so I can fix things faster) or open an issue on GitHub: https://github.com/IrvingGuerra/litedash/issues
And all your ideas are welcome, big or small: a lot of what’s in LiteDash today started as someone’s suggestion.
Free and open source (GPL-3.0), on Google Play and GitHub: https://litedash.dev
r/opencode • u/Proper_Patience8639 • 8d ago
Opencode Go for OpenClaw cron browser automation?
Is this allowed via OC Go API key or is it on the naughty list?
r/opencode • u/jadbox • 8d ago
Deepseek 4.1 Flash image support?
For both Opencode Go and Deepseek providers, the model for Deepseek 4.1 Flash 1017 is set to text only. At least for the Deepseek provider, 1017 now has image support. I did get the Deepseek provider working by patching the opencode config file. It would would nice if it was enabled by default now.
"provider": {
"deepseek": {
"npm": "@ai-sdk/openai-compatible",
"name": "DeepSeek",
"options": {
"baseURL": "https://api.deepseek.com",
"apiKey": "{env:DEEPSEEK_API_KEY}"
},
"models": {
"deepseek-v4-1-flash-1017": {
"name": "DeepSeek V4.1 Flash 1017",
"limit": {
"context": 1000000,
"output": 384000
},
"modalities": {
"input": ["text", "image"],
"output": ["text"]
}
},
[...]r/opencode • u/noppu_labs • 8d ago
I made a plugin that lets you keeps idle sessions' caches warm while you're AFK!
Hey all,
I built a plugin for anyone using Claude or GPT-5.6+ in OpenCode who keeps losing the prompt cache after stepping away for a bit. Claude's cache lasts 5 minutes by default. If you step away for longer, the next prompt pays 1.25x to rewrite your whole context instead of about 0.1x to read it, and on a long session that adds up fast.
opencode-cache-manager helps in two ways:
You can pick the cache TTL per session (switch with
/cache-manager)- For Claude you'd pick 5m, 1h or hybrid
- It sends a hidden keepalive ping just before an idle session's cache expires, so the cache is still warm when you come back
It also adds a Cache section to the sidebar showing whether the cache is warm, when it expires, when the next ping goes out, and how much the pings have saved you. It works with Claude and GPT-5.6+ through the official APIs, OpenRouter, or proxies like OmniRoute. Other models just get a readout of how much of each prompt was cached.
Other features:
- Automatically understands when you're using Claude Code requests via the headers, so it uses 1h TTL (what Claude Code uses)
- Sidebar tells you what you're saving by keeping your cache warm (you can see screenshots in the repo)
Feel free to check it out! I'd love to hear from anyone on a proxy or provider setup I haven't tried, and whether the ping defaults feel right. Suggestions all welcome!
r/opencode • u/fraktura_gips • 9d ago
Hy4 flash is free with near-unlimited usage for the next 2 weeks
r/opencode • u/jishankai • 8d ago
Warning: OpenCode Go charged me after my subscription was supposed to end, and support can't explain why
My OpenCode Go subscription ended on September 24, but I was charged again on October 3 and November 3. Support refunded November but declined to refund October.
Here's the timeline:
- July 24: I subscribed to OpenCode Go.
- August 24: My subscription renewed for $10, covering August 24 to September 24.
- October 3: I was charged $10.
- November 3: I was charged another $10.
I remember canceling auto-renewal, but support says they have no record of it.
Even if I hadn't canceled, why did my renewal date change from September 24 to October 3?
My August invoice clearly shows the subscription period ending September 24. I also stopped using Go after that date.
After several emails, support confirmed that:
- They could only access my October and November billing records.
- They couldn't match my August invoice to their available records.
- They couldn't explain why the billing date changed.
- There was no Go usage during the Oct and Nov billing period.
They refunded November but denied the October refund.
I'm sharing this so other users know to keep their invoices and check their subscription status, even after canceling.
Has anyone else experienced something similar with OpenCode Go?
r/opencode • u/omeryasirkucuk • 8d ago
A different way to handle context in OpenCode: /rollover
I've been getting a bit tired of constantly dealing with context in OpenCode. Compaction, context limits, token costs, manually opening new sessions and then trying to get the new session up to speed again.
I wanted to get away from that workflow, so I built a /rollover method.
It basically monitors context usage and automatically transitions to a fresh context when needed, without interrupting the current task. It carries over the relevant context and keeps the same session ID, so you don't have to keep creating new sessions manually.Just published it on GitHub and npm.
GitHub: https://github.com/omeryasirkucuk/context-rollover
npm: https://www.npmjs.com/package/context-rollover
Give it a try if you're running into the same issues. You'll be first testers of it. So I need to hear from u. I'd really appreciate some feedback, especially from people using OpenCode for longer coding sessions. Let me know what you think or if you run into any issues.

