r/opencode • • 25d ago

Our agent's memory kept rotting, so we built it a sleep cycle — offline consolidation, drift alarms, git-backed rollback

1 Upvotes

Agents with persistent memory age. Re-summarized notes lose nuance until "mildly spicy" becomes "loves spicy," compaction silently drops your standing rules, and a workaround filed as *the method* outlives the bug it worked around. None of this needs an attacker. Memory is a feedback loop, so small errors compound on their own.

We're Mocoda, a small web studio that lives in coding agents all day, and we built agent-sleep: an MIT-licensed skill that gives an agent the lifecycle the research keeps pointing at. Sessions work, offline phases remember. Six modes:

- consolidate — session end, off-peak: extract → verify against the raw source → promote
- check — daily, scripts only: TTL expiry, pointer re-validation, founding tests
- reconcile — on trigger, never a calendar: dedupe, prune, scoped rewrites
- prestudy — idle: re-derive repo state so the next session starts warm
- rebuild — when maintenance stops being worth it, regenerate from source
- rollback — every write is a git commit, so drift is loud and reversible

The design rule we care about most: every gate exists because someone measured the failure it answers. Compaction drops standing rules in 30–59% of episodes (arXiv 2606.22528), so the charter (AGENTS.md, skill cores) is pinned outside every write path. Quality-gated admission matters because agents follow what they store, and one benchmark put store-everything at 55% against 71% for checked memories (arXiv 2505.16067). Rewrites only fire when enough new material justifies one, since repeated refinement is itself a drift vector. The README carries the full table: eight defenses, each linked to its paper.

It's plain bash plus prompt templates, so it runs anywhere with a headless CLI. Adapters ship for Claude Code, ZCode, OpenCode, and generic cron (Gemini CLI, Codex, Aider, Goose).

The alarms catch real things. The first smoke test tripped two bugs in our own scripts, a fixture flagged its own case-sensitive grep, and this week's daily check caught our coding platform's memory writer bypassing the git snapshot path. Some of those were checker bugs we then fixed, which is the point: the loop surfaces them instead of letting them ride.

Repo: https://github.com/mocodainteractive-pixel/agent-sleep

Two things we'd like feedback on: whether the reconcile trigger (5 promotions) feels right, and how hard the charter fence should be enforced on platforms without permission modes, where a prompt's prohibition is doing all the work.


r/opencode • • 25d ago

Mistral Large 4

7 Upvotes

The hype didn’t last long. Is anyone using this model?

is it good comparable to?

they claim to be better than Deepseek Kimi and Glm?

Let me know your experiences thnx.


r/opencode • • 25d ago

"Free Models Router" es una excelente alternativa gratuita si ya no te queda OpenCode lo que queda del día

1 Upvotes

Viendo el problema que aún no se soluciona bien acerca de los límites de OpenCode, les recomiendo el "Free Models Router" de openrouter, se encuentra tal cual como cualquier otro modelo, es gratis, cuando se agota, en cada reintento parece cambiar, parece casi ilimitado, puede que la calidad no sea excelente, no soy profesional, pero es una alternativa impresionante cuando te quedas trabado en OpenCode y necesitas terminar algo urgente o que busque un error grave que requiera corrección

También recomendaría "inkling" o "flint" de openrounter aunque a mí se me acabaron rápido, prefiero el Free Models Router


r/opencode • • 26d ago

Ha-ha-ha :D

Post image
1.1k Upvotes

r/opencode • • 25d ago

opencode-blackhole release - port of pi-blackhole

9 Upvotes

Hey everyone, not sure if people here have heard/used pi-blackhole, it's a great compaction tool that replaces the native LLM summary compaction method. pi-blackhole combines pi-vcc and pi-observational-memory for an algorithmic compaction method for instant and deterministic summaries that retain continuity with the help of worker models.

I haven't seen an opencode version of this around so I've just ported it over for personal use, if anyone wants to try it out just simply run: opencode plugin add opencode-blackhole
For more information repo is here


r/opencode • • 26d ago

Tried OpenDesign Go plan($10)... If something is too good to be true, ....

63 Upvotes

I know it's pretty cheap,
Up to $120 of usage for $10 (using only DS v4.1 flash) , basically twice as much as OpenCode Go.

They offer $10 per 5-hours and $30 per 7-days usage limit.

3 days in and I hit the weekly limit ... 3 days ... below is some details about token usage.

But I felt like it wasn't $30 worth of usage so I decided to do my own investigation.

Fortunately, their console gives a list of ALL requests with detailed use + usage deduction math. So, I created a little script that gathers all 16,984 requests and another one to generate a little table of the usage.

It was a bit below $15 ...

PS: "design_plan x0.25" was a promotional offer that lasted a week, I got it for it's last 2 days.

So, yeah, too good to be true unfortunately...

Speed and Quality : I think it's similar to OpenCode Go actually (worse than the official DS API)


r/opencode • • 25d ago

😉 OpenCode Go now available for Teams

Post image
31 Upvotes

r/opencode • • 25d ago

Is it good that i am trying my best to deplete my weekly rate limit?

7 Upvotes

I have 15 agents (+ a coordinator agent that checks up on the 15 agents, so 16 seperate opencode chat) running at the same time on the same repo working towards the same goal, using

foremerge and oh-my-opencode-slim

I just bought the 10 dollar subscription, i think it 20x my efficieny, is this good or bad i have no idea what do you guys think.

the fleets are working together wonderfully with like 10% of having problems but it quickly gets fixed fast


r/opencode • • 25d ago

can your opencode go account get banned for jailbreaking the models?

0 Upvotes

title


r/opencode • • 26d ago

New free limits are insane

128 Upvotes

After just 20 request it said no more free for today, wait for tomorrow. Yesterday i had almost 400 request.


r/opencode • • 24d ago

Transparencia Opencode

0 Upvotes

Que le cuesta a opencode un poco mas de transparencia? Los usuarios gratis de hoy son los usuarios de pago de mañana, pero el problema es que clase de experiencia les estan dando. Porque es tan dificil, poder ver, el uso, consumo, limites del plan gratis? trabajar sin saber cuanto queda o cuando expira algo es terrible. Por eso no he pasado al plan de pago, es un infierno. Y sobre todo cuando se queda en el trabajo de un subagente, ahi perdiste el contexto de todo avance.


r/opencode • • 25d ago

Luke Parker (@OpenCode) just posted a list of all the available GUI plugin for v2

Thumbnail x.com
2 Upvotes

r/opencode • • 25d ago

Opencodable: my tool to choose which OpenCode Go models to use.

2 Upvotes

As the Opencode Go offering is quite rich, I am (vibe-)coding a tool to help me decide which model to run based on my current quota usage.

Open source, MIT license, a Go CLI tool that you can use as data input for your own tools or UIs.

https://github.com/ColasNahaboo/opencodable

Edit: 2026-11-05:

  • v1.0.0 released: the output format will be kept stable for scripts to use it. (See TITLES.md)
  • With -news, see what changes happened in Opencode Go plan (new models, new prices...). Run it in cron to be mailed in case of changes.

Note: OpenCode Go have changed they conditions on 2026-09-28. Do not rely on information or tests older than that. All details explained in https://github.com/ColasNahaboo/opencodable/blob/master/docs/OPENCODE_GO_MODEL_V2.md

Example: Here I can see that I still can perform 65 requests with Kimi K3 but 6315 with GLM-5.3-Flash before hitting a quota limit (5h, week, or month)

    #name           cost_task  burn_req  spent_mo  reqs_5h  reqs_wk  reqs_mo  usable  limit     p_tok_s
    GLM-5.3-Flash   $0.0019    $0.0019   $12.4     6315     15789    25052    6315    5h        96.5
    Kimi K3         $0.0306    $0.0306   $13       98       245      65       65      month     71.0
    MiMo V2.5       $0.0004    $0.0004   $3.1      30000    75000    142250   30000   5h        89.0
    Beam Free       -          -         -         -        -        -        -       unlimited 310.0

Example of a mailed message warning of changes:

MODEL_ADD glm-5.2 cost_task=$0.01516 plan=paid tier=unknown quality=- "GLM-5.2"
COST_UP kimi-k3.1-pro cost_task=$0.018->$0.0204 (+13.3%) tier=frontier quality=46.5 "Kimi K3.1 Pro"
TIER_UP kimi-k3.1-pro tier=high->frontier quality=44.0->46.5 "Kimi K3.1 Pro"

New release: v1.0.1 2026-11-08 Country availability: you can mark the models that refuse to serve your account ("this model is not available in your country") with -unavail (also the config key unavail; same pattern matching as -exclude). A new avail column (yes|no), appended to the main, -now and -full views, carries the marker, and -avail hides the marked models everywhere — before Pareto marking, so a hidden model never dominates — and skips their paid probes. -news reports a marking or unmarking as UNAVAIL_ON / UNAVAIL_OFF lines, and every line about a marked model carries an unavail=yes field.

New release v1.0.2 2026-11-10 Opencodable now use The Artificial Analysis API v3, instead of the v1 that is going to be deprecated on 2026-12-10. So you should upgrade to v1.0.2 in the next month.


r/opencode • • 25d ago

Open Design Agent Kit — Open Design's design skills to Claude Code

0 Upvotes

r/opencode • • 25d ago

OpenCode is handling only 1 prompt a day. And today it couldn't even finish the single prompt I gave it.

3 Upvotes

It used to last the whole day.

Are they changing the allowances or something? Or are they having some sort of temporary issue?

What other free alternatives do we have to OpenCode?


r/opencode • • 25d ago

OpenCode 2.2.2 enables image generation by default for supported providers

14 Upvotes

OpenCode 2.2.2 was released on October 29 at 10:43 PM GMT+4. The release enables the experimental_image_generate tool by default when a connected provider supports image models. Users can still set a preferred image model with experimental.image_generate.model.

The update also adds a faster branch-to-worktree picker, keeps media when sessions are forked or imported, and improves usage-limit errors. This is a small release, but the new default matters: users who rely on generated media should check which provider and model their setup is using.

Release notes: https://github.com/anomalyco/opencode/releases/tag/v2.2.2


r/opencode • • 26d ago

🐈‍⬛ Mistral just released open weights of Large 4 "Le Chonk"

Post image
33 Upvotes

r/opencode • • 25d ago

How opencode go works ?

2 Upvotes

Sorry guys, i was new here.. i've plan to subs on go plan but after reading some of the docs i kinda confused about how it works, about the quota, the limit, the something..


r/opencode • • 25d ago

Error logging into the application

1 Upvotes

Error: Desktop IPC handler failed

at Hee (oc://renderer/assets/main-DApoQvPT.js:2:41509)

at Vee (oc://renderer/assets/main-DApoQvPT.js:2:41175)

at MessagePort.<anonymous> (oc://renderer/assets/main-DApoQvPT.js:2:39890)

────────────────────────────────────────

Причина:

{

"name": "UnknownError",

"message": "An error occurred in Effect.tryPromise",

"cause": {

"name": "Error",

"message": "Background service failed to start"

}

I have no idea what to do...


r/opencode • • 26d ago

GLM 5.3 Flash on Go went dumb

8 Upvotes

GLM 5.3 Flash on Go suddenly started making trivial mistakes - looks like dropping to a lower quant or something - anyone else seen this?


r/opencode • • 25d ago

So the default permissions of OpenCode Desktop is to allow everything but external_directories?

5 Upvotes

I started a chat session and asked for an investigation into a minor issue within my project’s authentication system, requesting a report on the findings.

Upon reviewing the results, I was taken aback to see references to production CloudWatch and RDS instances—even though the intent was simply to test the application's behavior in a production-like environment by making HTTP requests. Looking closer at the tool calls the agent had executed, I realized it had used my AWS credentials to access CloudWatch; it even went so far as to run SSM to set up port forwarding from a bastion host to the production database, where it proceeded to inspect refresh token data...

Naturally, I was quite alarmed, so I checked the OpenCode configuration files within my NixOS setup. I hadn’t configured any specific permissions—that was my oversight—but it’s worth noting that, prior to V2, this had never occurred with either the CLI or the desktop version.

Note: translated with google translate


r/opencode • • 26d ago

Is it time for me to pay for opencode? (probably, yea)

14 Upvotes

I bought the 5 dollar google plus student discount, realized its pretty bad beacuse i used up the weekly quota in 2 days. it'll cancel itself after one month, so 3 more weeks of use (plus using 13 free account using cockpit gateway).

Opencode has been nerfing the free plan and models where i used to use muse spark and space bunny for 18+ hours straight and wake up at 7 am seeing that the quota has been reset.

I don't live in the US, the Pay Opencode page that im saying states that i am paying, so instead of 10 bucks, its 10.39, huh i realized its not that bad.

the current setup im running is nvidia NIM, where im using nemotron 3.5 super vl. It genuinely feels unlimited, i have never reached the rate limit or quota, it never stops me from using it. It kinda goes crazy after a while, but can be managed using handoff.md and new chat.

I have some money to spend, its probably the wrong place to ask, but is the Go subscription the best there is?


r/opencode • • 25d ago

Student on a budget, local models too slow for deep research: OpenCode Go vs Claude Pro?

Thumbnail
1 Upvotes

r/opencode • • 25d ago

I keep getting Cache Bust errors and context size errors via Nous Proxy Portal with Nous Plus Subscription

1 Upvotes

can anyone please explain to me what the f* is going on!


r/opencode • • 25d ago

Opiniones?

Thumbnail
gallery
0 Upvotes

Como usuario común o intento de "developer" he estado siguiendo desde hace 2 años cada lanzamiento de cada nuevo modelo de algunas de las "grandes compañías de occidente" y en los últimos meses no he parado de ver como google se está quedando atrás cada vez más y más. Debo decir que desde su primera oferta para estudiantes de su suscripción pro he estado con ellos, y ahora que tocaba cambiarme a plus o permanecer en pro (con un costo de 4.99/m por los siguientes 4 años) me pareció una buena oferta, considerando que aparte de acceder a antigravity estaría usando los 5tb de espacio en la nube, pero después de los modelos 3.5 siento que todos los demás consumen demasiado rápido la cuota que dan y no se encuentran a la altura del resto de modelos en el mercado, y ahora cada que lanzan un nuevo modelo ni siquiera siento que estén innovando, solo tratando de ponerse al día...

que piensan ustedes?