r/opencodeCLI

Why is compaction still a default in opencode? Also why did they remove todowrite?

For the first item, I am just curious since compaction is lossy. I ended up adapting a custom plugin where an agent autonomously checkpoints at a major milestone completion, writes to a memory and also updates a todo list which survives context clearing, then clears the context, then loads the external memory file directly instead of wasting time and tokens compacting the entire conversation. I don't have any extensive testing, but this seems to work just as well if not better than regular compaction and I don't have to waste time having my local LLM (or external cloud LLM) load the entire conversation and summarize. Anthropic and others also seem to recommend against using compaction. So why is opencode providing users an inferior context management experience? Why is this not an option that can be changed in opencode? Are there some drawbacks I am not aware of? To me it seems to give all the benefits of compaction without wasting time and tokens. Other annoying thing is that the opencode team seems to have removed todowrite in v2 for some arbitrary reason saying it was useless. To be honest I still found it useful to know what the agent is actually doing and is a good system to keep track of work for both myself and the agent. I am debating to just move to Pi since any issues or PRs just die and are never addressed by the opencode developers, and the migration from V1 to V2 was incredibly painful. I had to rewrite all of my plugins :/.

reddit.com
u/polypancake — 4 days ago
▲ 0 r/opencodeCLI+1 crossposts

I built agent synchronization system for all harnesses

I built cli application that syncs your Claude Code skills, agents, commands, hooks, MCP servers and claude.md, agents.md, codex.md, xxxxx.md files between computers, end-to-end encrypted.

Not just claude code. It can work with other popular harnesses like opencode, codex, antigravity and more. It will sync data across harnesses automatically

Its FREE TO USE, FOREVER.
Plans are just helps me to keep this system online.

Website: https://skillpouch.net
Source codes: https://github.com/skillpouch

u/Character_Stand_2847 — 3 days ago

I built a bridge that lets OpenCode use your logged-in ChatGPT, Claude, Gemini or DeepSeek tab (no API key)

Hey all. I pay for a few chat subscriptions I barely use and I have no API budget, so I built NOAPI?: a small local bridge plus a browser extension that lets OpenCode talk to the AI sites you already have open.

How it works: OpenCode sends the prompt to a local OpenAI compatible server, the extension types it into the chat tab, waits for the answer and sends it back. Tool calls work too (bash, edit, write...). The bridge teaches the site's model a tiny TOOL_CALL format and turns its replies into real tool calls. You also get a live "Thinking" status in OpenCode while it works.

Supports ChatGPT, Claude, Gemini, DeepSeek, Perplexity, Grok and Mistral. Plain Node.js, zero dependencies, local only (127.0.0.1), MIT.

Honest limits: it drives a real web page, so it is slower than an API and can break when a site changes its layout (the fixes are small, PRs welcome). Tool use depends on the model following the format. It may also go against a site's terms, so use your own account and decide for yourself. Tested websites: deepseek, Gemini, chatgpt

Repo: https://github.com/cribest7890/NOAPI I'd love to hear what breaks for you.

u/Ok_Inflation474 — 3 days ago

How is opencode v2 going for you guys ? (my experience in description)

While I am using opencode exclusively on my office as well as personal machines, and it has been largely working great. But little issues here and there keep breaking that experience.

I am personally facing new troubles everyday, and strongly thinking of moving to pi or maintaining a personal fork.

Listing few recent issues that I consider significant:

  1. No sandboxing in v1 as well as v2.

    It moves the sandboxing effort to user, and when I have to work from multiple machines, it becomes very hectic to setup sandboxing there. Also, sandboxing outside the process brings it's own hurdles.

    Moreover, a good PR was raised but closed as stale by a bot. This is trend for many issues/PRs there.

  2. Unable to setup local plugin

    I hope I am doing something silly here, but trying to add local plugin is being a headache. `opencode plugin add ...` gives error on absolute as well as file: urls. The code suggests it only accepts the git & registry urls. Even adding directly to config doesn't work.

  3. broken model support

    Recently, I found that the opus/sonnet 5.5 models weren't working through our gateway. Noticed that a PR exists to support this, the issue is related to adaptive thinking & blockBinding, but it is just left unattended.

  4. subagent bugs

    I recently launched opencode v2 on a Arm SBC for a quick debugging. Thought of using free model and noticed that the opencode subagents are treated as non-opencode model calls. That is, when launching subagent of a free agent without logging in an account, it thinks the request is coming from non opencode app and blocks it. Even worse, the entire session is polluted and even undoing the message doesn't fix that.

Similarly, there are many small things related to usage, RAM usage, port conflict on multi user machines, etc.

I know the maintainers are putting a lot of effort as visible from the commits going into v2. As such, this post is to document my experience and know what is the experience of others ?

u/avinthakur080 — 12 days ago

OpenCode v2 finally has a status line, and it's fully customizable

Hey folks,

For a long time I was jealous of Pi, Claude Code, and even dsh-tui users. They get these nice status lines showing what's going on in a session, and I looked for something like that for OpenCode v2 for ages but never found one that I can truly customize to my liking. So I made my own.

This status line plugin shows context window usage (with a bar that changes color as it fills up), cache usage, streaming speed, running shell count, and uncommitted changes in your repo, all in one line. There's also a /tps command that opens a dialog with the detailed numbers behind it.

The best part is how customizable it is:

  • Put it anywhere. Bottom, sidebar, top, whatever. It can even live in more than one spot at the same time.
  • Each spot can show its own segments, so you can decouple the info instead of cramming everything into one row.
  • Pick what shows. Order, palettes (catppuccin, dracula, gruvbox, tokyo night, more), gauge width, padding.
  • Responsive. On narrow windows segments wrap to the next row, and in a sidebar they stack one per row.
  • Works great on small screens too, so it pairs nicely with Orca Mobile and Heeler (the mobile client for Herdr) if you check on sessions from your phone.

Install:

opencode plugin add @rashidrazak/opencode-status-line

Then restart OpenCode. If you prefer, you can add it to your cli.json by hand instead (not opencode.json, since it's a CLI plugin).

I also hide OpenCode's default footer so the status line is the only footer. To do that, disable the built-in prompt footer plugin in cli.json:

"plugins": [
  "@rashidrazak/opencode-status-line",
  "-opencode.prompt.footer"
]

Links:

Note: This plugin is only compatible with OpenCode v2. Full docs are in the repo. Let me know what you think about it.

u/biborn — 14 days ago
▲ 0 r/opencodeCLI+1 crossposts

The new Fledge alpha

Guys just wanted to ask, how is the new model Fledge alpha doing compared to other free models , if anybody has used it and have any opinions on it tell me about it

reddit.com
u/Cac_Cat — 12 days ago
▲ 0 r/opencodeCLI+1 crossposts

Should I use the OpenCode desktop, or fork it?

I have honestly been quite out of the loop with the newest LLMs and what new trends for the past year (I know it's bad 😅), I've only been using Antigravity's IDE which is included from their Student campaign (but it's very limited). But very recently, I want to upgrade my harness and use a more proper configuration for my ever-increasing workload and needs.

I came across OpenCode after doing a bit of research, where I was originally considering to use Claude Code, but thought OpenCode had a more flexible approach and maybe even more configuration/personalization(?). I would love to try it first, and potentially look at what models I'd invest in afterwards.

As someone whose main work involves bug fixing and adding features to company projects, and I recently want to start creating personal projects, which approach would be better for me? I am not that hardcore where I need to configure every little settings and add a bunch of plug-ins for my environment, but it's an option I would also love to have if I were to make it more suited for myself. Any other suggestions or maybe even recommendations based on your personal setups would be appreciated as well!

(P.S. Sorry if any of the terminologies are incorrect hahah!)

reddit.com
u/Thin_Life_7899 — 12 days ago

did big pickle get lobotomized?

between yesterday and today, i suspect big pickle got pointed to a different model.

I can no longer see the thought process, and I also noticed a significant change in behavior, both in thinking times as well as the generated answers. specially in coding, this is really noticeable.

the new big pickle model is severely worse than the previous one. it's basically un-usable for agentic coding in my experience.

reddit.com
u/TrainingTheory552 — 11 days ago

opencode: spacebunny freetier retired ?

Hello
did the spacebunny (aka kimi3) trial just retired ?
it complains about spacebunny only allowing usage from opencode CLI & GUI

u/ProgressRegular9457 — 12 days ago
▲ 3 r/opencodeCLI+1 crossposts

Kimi K3 through NVIDIA Build API just outputs !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! after scanning my codebase

I have used the OpenCode platform and connected it to the NVIDIA Build API, additionally, for analysis and repair of code errors, I am using Kimi K3 to scan my code base and fix errors.

The strange thing is, it starts scanning my project for a while, as if it were analyzing my code base, and then, instead of explaining, suggesting or fixing any errors it finds, it simply outputs

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

without any further explanation or suggested or implemented fixes. Has anyone else encountered this problem with Kimi K3 + NVIDIA Build API + OpenCode?

https://preview.redd.it/w9hbot26f9th1.png?width=1542&format=png&auto=webp&s=83b6794c4f8c5545a044d5a05b82d9a1fe2fee02

reddit.com
u/JrTamilan — 12 days ago

At what point is a faster inference API noticeable in a coding agent?

I’ve been testing a few inference providers for coding agents and I’m trying to figure out how much the speed difference actually matters in practice. With normal chat I don’t care much once the response is reasonably quick. Coding agents are different though. The agent might make a bunch of calls while it reads files, makes edits, runs tests and then goes back for another pass, so even small delays can start adding up.

Has anyone compared the same coding model across different providers while keeping the harness and task the same? I’m trying to figure out whether faster inference actually makes the whole agent run noticeably quicker, or if you hit a point where the tools, tests or harness become the bottleneck.

reddit.com
u/RollRogersRoll — 13 days ago

Fledge Alpha FREE is now listed on Opencode Zen (limited country availability? 😟)

Is it available in your country? What's your early impressions?

u/afanasenka — 12 days ago
▲ 7 r/opencodeCLI+1 crossposts

A simple autocontinue plugin for OpenCode 2

There used to be many auto-continue plugins for OpenCode v1, but I could not find one that was specifically designed for v2. So, I made it for myself.

It has one job: if the model you're using drops the ball and takes a nap in the middle of your work session, my plugin detects the condition and gives it a nudge, so you don't have to nanny long running sessions with unreliable models.

It is designed to be simple to deploy and configure yet flexible at the same time, and you can get it directly from my repository. MIT license.

Enjoy 😄

https://github.com/AntaniTechnologies/opencode2-autocontinue

u/Drift_SpinningKids — 12 days ago

Facing Api issue on opencode CLI , desktop (both in pc and termux )

I installed Ubuntu in my second phone using termux using proot distro, after that I installed opencode cli in it and this error started coming in most of the free models.

{Error : : Error from provider (Console): OpenCode's free tier can only be used from within OpenCode}

After this is use this command 'opencode console login' and pair with the code and after doing this I am facing this issue {Error: Invalid API key.}

I am facing this same issue on my pc also , I tried cli and desktop both

Can anyone help me ?

u/siryadav4601 — 12 days ago

I made a plugin so OpenCode questions don't wait forever

I run OpenCode while I'm away from my desk, and a couple of times I came back to find it had been waiting on a question the whole time. I still want a chance to answer when I'm around, just not an unlimited wait.

I made a small V2 plugin that gives the built-in question tool a five-minute timeout. You can change the delay with timeoutMs. Answer in time and everything behaves normally. Otherwise the question closes, and the agent gets a clear "no answer" result so it can continue where it's safe to do so. It doesn't answer on your behalf or approve anything. Permission prompts are separate and untouched.

One odd thing I ran into while building it: my first wrapper made the question options disappear from the TUI. The released version fixes that, and I tested the choices and timeout flow on V2.0.18. I haven't tested other versions yet.

GitHub: https://github.com/balakumardev/opencode-question-timeout

Install: opencode plugin add 'github:balakumardev/opencode-question-timeout#v0.1.0'

If you've had runs stuck on questions, I'd be curious what timeout you would use.

u/spideyy_nerd — 13 days ago