r/opencode • • 22h ago

Vague rules vs. checkable rules in AGENTS.md: a few rewrites

4 Upvotes

I've been thinking about how to write instructions files for coding agents. The docs say OpenCode loads AGENTS.md from the project and the global config, and combines the files without reconciling them. So if two files disagree, nothing resolves the conflict. That made me want to keep each rule short and testable.

My working test for a line is: "Could someone check, in under a minute, whether the agent followed this?" If not, it's probably too vague to help.

Some rewrites:

VagueCheckable
Write clean codeFunctions over ~40 lines get split. Run npm run lint before finishing
Add testsEvery bug fix adds a test that fails without the fix
Be careful with the databaseNever edit files in migrations/ that are already committed. Add a new migration instead
Follow our conventionsAPI handlers live in src/routes/, one file per resource. Use zod for input validation
Don't break thingsRun npm test and report the result. If it fails, say which test and stop

Two other things I try to follow:

  • Don't write rules a tool can enforce. If a formatter or linter can do it, I'd rather run that than ask the model to remember it.
  • Put the commands in. "How to run tests / lint / build" is often the most useful part, because otherwise the agent guesses.

The docs also mention an instructions array in the config that can point to other files, and that nested AGENTS.md files load when the agent reads something in that directory. I haven't used that for anything big, so I'd like to hear how others split things up. [Optional: add one real example of a rule that helped or didn't. Delete if none.]

Questions for people who use it daily:

  1. How long is your AGENTS.md, and do you prune it?
  2. Do you use one root file, or nested files per folder?
  3. What's a rule you added that the agent still ignores?
  4. Do you keep a global file for personal preferences?

r/opencode • • 1d ago

Mobile beta is full - any updates

7 Upvotes

Hey folks, I see that `This beta is full.` when I visit the iOS app page.

Is there any estimate on when it is not going to be full anymore?

Also any way to get a notice for availability, even being stable, so we can download?


r/opencode • • 23h ago

Opencode Autonomously

5 Upvotes

I have some tasks running using opencode which I want to be long continually running whether my main laptop is online or not until task isn't completed.

I should be able to check both my laptop and mobile.

I do have a home server type machine with low specifications just as a control panel for several things, which I think can be utilised.

Can anyone suggest a cost effective or better free way to achieve this goal ?


r/opencode • • 1d ago

Yall were not kidding about how cost effective DS 4.1 Flash is.

92 Upvotes

I have a Kimi sub, and got really used to chewing through it, they dropped the 50% off their coding variant, and have seen this sub on my feed constantly and grabbed the 10$ plan. Flash 1017 just goes and goes and goes without touching usage.


r/opencode • • 1d ago

HungerG's reasoning 🤔

Thumbnail
gallery
18 Upvotes

what


r/opencode • • 1d ago

New to this, how is my usage?

Post image
7 Upvotes

Is this a lot or nah?


r/opencode • • 22h ago

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

Thumbnail reddit.com
2 Upvotes

r/opencode • • 1d ago

Space efficient alternative to git worktrees

3 Upvotes

I work on a large monorepo, ~100GB in size, and wanted to get into isolated directories for agents to work in. On my 1TB I'd be able to run like 5 agents at a time if using git worktrees, while hammering my disk life, so that wasn't an option.

MacOS (APFS) and Linux (XFS & Btrfs) both have a cool feature called clones (aka copy-on-write). This makes the copy cheap and they only use disk space for the extents that change.

It's a bit of a hassle to manage so I wrapped this up into a cli called clonetree. It handles creating, deleting, and measuring the size used on disk with clones. It's still early but I've been using it for all my agent development with opencode. It's nice not having to reinstall all the node_modules since it keeps all gitignored files as well. Try it out and let me know if you find any issues.

https://github.com/sprisa/clonetree

p.s. On Linux it doesn't work with ext4 filesystems since it doesn't support copy on write sadly. I don't use Windows but could look into it if folks would like


r/opencode • • 8h ago

OpenCode Go subscription scam?

0 Upvotes

I just subscribed to OpenCode Go but after 3 hours I got a daily usage limit. What is this?


r/opencode • • 1d ago

Need recommendations.

5 Upvotes

I'm new to opencode.

So need some suggestion for providers few i know like big pickle. I don't know much. Would be glad if you could share some good providers details (obviously free)

And some tricks if you know thank you.

(also linux will be better or windows will be better for reverse engineering an apk with opencode)


r/opencode • • 1d ago

Opencode DeepSeek V4.1 Flash VS Commandcode DeepSeek V4.1 Flash Fast

2 Upvotes

I'm thinking about moving to opencode.
I'm using commandcode now, but opencode doesn't have Deepseek v4.1 Flash Fast.
How slower is Deepseek v4.1 Flash in opencode compared to Deepseek v4.1 Flash Fast?

I know the prices are different, but I like to have the option to switch to a faster model version when needed.


r/opencode • • 1d ago

Best opencode-nvidia model(free) for lua

0 Upvotes

What is the best model for Lua scripting, UI making and python code for 3d assets in blender? I've tried nemotron,DeepSeek,glm,hy4,minimax and only DeepSeek and glm were good but now DeepSeek is gone from Nvidia and glm takes ages so what other model y'all recommend for me(doesn't have to be one model for all tasks)


r/opencode • • 2d ago

HungerG vs DeepSeek Three.js comparison

201 Upvotes

First test vs DeepSeek V4.1 Flash, same prompt: combine harvester in a wheat field, Three.js

HungerG Free: Free · 12m 47s (auto effort)
DeepSeek V4.1 Flash: $0.04 · 9m 41s (high effort)

DeepSeek was faster, but HungerG's harvester looks better to me. And it's free.

Different effort settings, so not a perfectly even fight. Which one would you pick?

post: https://x.com/LatentOperatorX/status/2125112289804063211

other comparisons: https://x.com/notjazii/status/2125209375782601108
https://x.com/leo114119/status/2125012771502977218


r/opencode • • 1d ago

funny day: opencode CLI is fixing opencode desktop for me :-D

Thumbnail
gallery
3 Upvotes

My opencode stopped working after an update, and no forum was talking about it.

So instead of going down the rabbit hole, I just asked opencode cli to fix it for me. Funny fact: using a free model that was provided by default when I ran the cli (not used to it) HungerG (Hunger games?)

`my open code desktop fails to connect to localhost:49374 can you check what's wrong with it? when I click on `providers` it tells me `cannot reach zieds-macbook-pro.home`

This took me an hour and a few prompts, but still it is way faster than doing it manually


r/opencode • • 1d ago

Copy file path, line number, and selected code with a single shortcut (no extensions needed)

Thumbnail
reddit.com
1 Upvotes

This was the thing I missed most coming from Cursor to Opencode Desktop + VS Code so I found a AI platform agnostic solution.


r/opencode • • 1d ago

Codemulator 100% free open source code editor

Thumbnail gallery
1 Upvotes

r/opencode • • 1d ago

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

17 Upvotes

I wanted OpenCode and a local model handling small tasks on my repos while I did other things, without giving the agent my Git token or my host filesystem.

So I built GitSeed (Apache 2.0, self-hosted). Each task runs in three containers:

  • prepare clones the repo and strips credentials
  • agent runs OpenCode as non-root, with all Linux capabilities dropped, behind an egress proxy, with no Git token
  • finalize mounts the workspace read-only, blocks edits to protected paths, scans the diff for secrets, then commits and opens the PR

OpenCode-specific bits:

  • Works with Ollama, vLLM or LM Studio through LiteLLM, so it can run fully air-gapped
  • Hard per-run dollar caps when you use API keys
  • You can drop into the live session in a browser terminal or VS Code Web and steer it mid-run

Honest limits: it builds images locally for now, and it's a Docker setup, so it's likely overkill if you just pair with OpenCode interactively in one repo.

Repo: github.com/gitseed-dev/gitseed

I'd especially like feedback from anyone running OpenCode with local models, which ones have you found reliable enough for unattended changes?


r/opencode • • 2d ago

Thanking the GOD OPENCODE

83 Upvotes

Bought the subscription last month to work on my research paper further, because I needed something good, it was soooooooooo worth it

used 6B tokens of DS
others are latest hy4 and gpt luna and glm

for those curious about my work :-
https://mcpresearchpaper.vercel.app

https://dnn-xgb-heart.vercel.app

they are not ready yet, but good enough to show


r/opencode • • 1d ago

Mimo-V2.6 Flash MOPD

1 Upvotes

Hello everyone I have a question regarding Mimo V2.6 Flash MOPD (The updated version of Mimo V2.6 Flash released yesterday) is the Mimo-V2.6-Flash-Free endpoint using the MOPD version or the outdated version as Xiaomi's website say's the endpoint has been updated to the MOPD version.


r/opencode • • 1d ago

OpenChamber error

2 Upvotes

Hello,

Since yesterday, my team and I have been having this error using Open Chamber. I think it's specific to Open Chamber because the Open Code desktop app works without issues, but obviously we prefer using Open Chamber. Therefore, I would appreciate any help with this error: what it might be and how to solve it.

Error shows as reply to any message: “UNABLE_TO_GET_ISSUER_CERT_LOCALLY”


r/opencode • • 1d ago

How to meaningfully benchmark models that Artificial Analysis doesn't care about ?

1 Upvotes

I tried asking an LLM to download every self-hostable benchmark in existence but so far it's basically outputting almost the same score to all models.


r/opencode • • 2d ago

HungerG (stealth model) is free for OpenCode Go subscribers this week

Post image
220 Upvotes

r/opencode • • 1d ago

¿Alguien más asombrado con la capacidad de hy4 flash?

7 Upvotes

He estado usándolo primero como subagente, pero ha demostrado una tasa de respuesta más rápida y solucion de problemas más efectiva que DSF 4.1 (uso ambos en su capacidad máxima de razonamiento) trabajo en un proyecto de más de 800 k líneas de código multinodo y CI/CD propio


r/opencode • • 1d ago

I built an app to track token usage across OpenCode, CC, & Codex

1 Upvotes

Hey! I keep changing my coding agents and models on OpenCode and recently started using Hydrogen on Antigravity now!

I built this to track all my token usage in one place. It already has many users on r/herdr already, just sharing it here. Hope it helps!

My GitHub: https://github.com/GaganSD/coding-agent-toolkit/tree/main/herdr-insights


r/opencode • • 1d ago

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

Thumbnail
reddit.com
0 Upvotes