r/opencodeCLI • • Mar 29 '26

Why do you guys use opencode?

I've been building my own agent harness for the past few months, and I feel like its pretty dang good. I support a ton of oauths as well (if people are willing to help me test them all that would be great since i don't have them all). I'm wondering though if there is anything about opencode which is particularly good which I or other coding agents don't have? I don't really see the appeal, but I want to understand.

The above video is a chill coding session in my own harness.

https://github.com/1jehuang/jcode

225 Upvotes

190 comments sorted by

40

u/WHALE_PHYSICIST Mar 29 '26

how fast are you burning credits with so many sessions going at once? i assume this is like for people with infinite money to use?

28

u/Plenty-Dog-167 Mar 29 '26

There's open source models that are very cost effective and still performs well, e.g. kimi k2.5

12

u/InvaderDolan Mar 29 '26

Or MiniMax, they’re even more effective on Code Plan.

2

u/BehindUAll Apr 02 '26

I have been meaning to ask someone that uses MiniMax code plan. Their privacy docs say they train on your codebase. Do you know if that's correct or its not correct? Or do you not care about that?

1

u/InvaderDolan Apr 02 '26

I don’t care because I am not corporate. But I assume that the plan price is that low because our prompts are “part of the product” :) This is a concern only if you work on something secure-focused, big and important, but at that point you’d be fine with opt-out guys like Anthropic etc.

1

u/MyriadAsura Mar 30 '26

I'd choose Kimi every time if the alternative is MiniMax. Been loving it so far.

0

u/RangerOne_ Mar 30 '26

Wont minimax coding plan store and train on prompt and codebase ??

2

u/Pitiful_Care_9021 Mar 30 '26

You think your vibe coded code is special? It already got trained on it if it produces it.

1

u/mbaroukh Mar 30 '26

Not necessarily. I use minimax through openrouter. And there are many providers for it. And they are not all keeping your data.

1

u/Jaded_Jackass Apr 13 '26

I am using ollama cloud and for my particular setup experience with kimi 2.5 has been sub par not satisfied but with minimax 2.7 it has been great actually think it might be comparable to Claude sonnet 4.5 consistently

1

u/Medium_Anxiety_8143 Mar 30 '26

If I had infinite money tho I would easily 10x my usage, all these sessions are manual prompt and review, I think there’s a lot more potential with more autonomous swarms that I don’t have the money to try because it will be less token efficient

1

u/Medium_Anxiety_8143 Mar 29 '26

Tibo resets are insane u should capitalize on it

2

u/krazyken04 Mar 29 '26

Can you elaborate for the uninitiated layman? What is a tibo reset?

3

u/Medium_Anxiety_8143 Mar 29 '26

Tibo is an OpenAI employee, he does usage resets every so often. Recently it’s been common so usage feels unlimited. They typically do it when they have some sort of bug or new feature

1

u/krazyken04 Mar 30 '26

Ah thanks for catching me up ha, I've always been pretty blind to stuff behind the scenes, but I think in this case it's just me being pretty new to AI as a daily tool

1

u/[deleted] Mar 31 '26

[removed] — view removed comment

1

u/Medium_Anxiety_8143 Mar 31 '26

Well it hasn’t been weeks, but they’ve had less bugs lately 💀💀💀

0

u/veegaz Mar 30 '26

*caveman

1

u/krazyken04 Mar 30 '26

Ha sorry I'm new I guess, I'm learning as fast as I can

Notoriety has never been all that important to me when skilling up on something new in tech, I do like the joke though

1

u/veegaz Mar 30 '26

No sorry, I was just being silly lol

1

u/Popular_Tomorrow_204 Apr 02 '26

If you pay not even 1€ for 1m tokens, it gets quite easy to spend lol

1

u/jopotpot Apr 07 '26

I guess its GLM or Kimi

0

u/Medium_Anxiety_8143 Mar 29 '26

This is codex oauth, right now I only have one pro sub

2

u/jopotpot Apr 07 '26

oh you are doing multiple agents like that with 1 sub wow

1

u/Medium_Anxiety_8143 Apr 09 '26

Yep chat pro limits go crazy

62

u/Fun-Assumption-2200 Mar 29 '26

I honestly feel retarded when I see this amount of sessions side by side. I've been using LLMs pretty heavly this past few months and I always have 2 sessions, veeeery rarely 3.

This doesn't feel sustainable. I mean, I get it that in the very beginning of the project you can spin this amount for the boilerplate, but after 1-2h what in the living hell can you build with this amount of parallelism?

2

u/Medium_Anxiety_8143 Mar 29 '26

Oh and the thing I built is the harness itself if that isn’t clear, as well as most of the other software I use. In the video I worked on some oauth stuff, background task formatting, and a /catchup which will help me manage the stale sessions by using the sidepanel to show previous prompts, what edits, and then the response. I added a .desktop script which prompts me to rename the video I just created. I did some work on the swarm replay, and there are also some other sessions in there which I didn’t interact with much, one being my own terminal which exposes an scrolling api for native scrolling because I noticed that codex cli has native terminal scrolling which is what makes the scrolling smooth but unattainable with my custom scroll back implementation. I believe basically all of that is oneshottable and automatically testable to tell that it works. I do batch architecture/codebase structure review about once a day and then a deeper one whenever I feel like it. There’s defo some slop around in the codebase but reviewing everything is for sure not worth it.

4

u/krazyken04 Mar 29 '26 edited Mar 29 '26

This is where I'm landing.

It's honestly frightening though.

Scalability and maintainability are important, but at the speed AI moves, if it works and you can validate that (better if that is also automated), does all that dogma still matter?

The meme is that all this slop will eat us alive when everything is broken at scale, but will it?

If slop ends up not scaling, won't we just hurl better models/more AI at it to fix it when scale does become a problem due to slop?

It's a wild time to be in software lol

ETA: this all reminds me of the founder that told me my beautiful CSS architecture meant nothing to him or the revenue generating customers 15 years ago. If it looks right and shows up correctly in all browsers, fucking ship it.

I've never seen a codebase survive longer than 3 years (2/21 exceptions), so there's a big part of me that feels like the hate that vibe coding with evals gets is just copium.

2

u/Equal-Chipmunk-4053 Apr 20 '26

I'm looking at people vibing it all and think the same. On one hand as an engineer I think "there's so much slop in this code, he doesn't even read it, agents write, review, refactor the code, it's all gonna blow up after an architectural issue too complex for AI", but on the other hand "will it really? What if it can be good enough even with slop and unoptimized code, considering it's a consumer product, not a rocket, maybe models will get better and make this code better or re-write it when it's required". Maybe I'm overthinking it XD And should just give in.

2

u/Medium_Anxiety_8143 Apr 20 '26

I get where your coming from, I kind of feel that too, when I see someone has some ridiculous 100k commits, im like there’s no way that isn’t all pure slop, but then I think about the openclaw guy and I’m like I guess it actually just doesn’t matter 🤷‍♂️. I wouldn’t say my codebase is like that though, mostly all of my architecture is hand designed, just not hand written by me. I do realize that real soon the ai is just going to be better than architecture than me and i just have nothing to contribute. And on the optimization part, defo not me. I genuinely think it’s a skill issue if ai is not making it easier for you to have extremely optimized code. You can take a look at the performance and resource utilization benchmarks in the readme. I smash all other harnesses when it comes to optimization. It’s something like 200x faster startup, 20x less ram than Claude code. Runtime growth is harder to compare against others but I optimize for that as well, alongside basically everything

1

u/Equal-Chipmunk-4053 Apr 22 '26

I tried running your jcode. Didn't get a good experience for now, sadly. It froze on adding openrouter on the first login, but it seemed to let me in so I could try another time from the interface. It ran once, called a sub agent, created some kind of a hidden session, then it died, never came back, no result, nothing.  I tried adding google account, it didn't respond once, I gave up.  Maybe something on the account linking side, error catching might be not be fully finished, no idea. I tried to align text to the left, but it didn't persist in new sessions.  Slash menu is not very informative, though ? menu is nice. Might give it another try later, idk.

1

u/Medium_Anxiety_8143 Apr 22 '26

I’m not able to reproduce this subagent problem, it seems to work well for me, though I typically don’t use subagent tool and the models that I use never naturally call it. What model were you running?

Auth is admittedly a little rough, I’ll look to see if I can reproduce your open router problem.

For the slash commands, there is slash help, and it should also give you a description of the slash command if you are hovering it.

In thee alignment, /alignment left changes the alignment with persistence, alt c is a session only hotkey toggle. There is also a config file that you could ask your agents to change for you or change yourself for persistent alignment change

Are you able to make a GitHub issue at all about the subagent thing? If anything errors at all, it should show it in the ui, and some classes of errors will even pop up a keyboard shortcut for you to copy that exact error. I suspect that your subagent tool was successful, but your agent stopped maybe due to like provider problems on a new model like kimi k2.6?

3

u/Medium_Anxiety_8143 Mar 29 '26 edited Mar 29 '26

Idk I been doing it everyday for the past 3 months, I feel likes it just a skill that you build. To me, they feel 100% manageable, in fact i feel I’m still limited by my hardware because I have capacity for a few more mentally, but I push up against my RAM limits even though I hyper optimize for memory usage as Claude code being super resource intensive is the reason I started this project in the first place.

I actually think it’s really fun to do this, cuz if you aren’t pushing parallelism, then you are kind of just waiting for the model, and that’s not very fun

7

u/Fun-Assumption-2200 Mar 29 '26

But I'm not even talking about mental capacity..

I'm building a software, so with 2 sessions running while one is implementing I'm reviewing the code the other wrote. Maybe the main difference is that you are TRULY vibe coding? I mean, there is absolute no way that you are reviewing the code written by 5 sessions at the same time

9

u/faloompa Mar 29 '26

You hit the nail on the head. Notice you asked him what he can even build with all these agents in parallel and he sidestepped. Because this isn’t anything more than a fancy demo for how “slim” the harness is. If he’s even building anything in this video that isn’t for show, there’s absolutely no sustainable way to really review the code, so we can be reasonably sure it’s all getting merged on a hope and a prayer (assuming he’s even using PRs).

11

u/TracePoland Mar 29 '26

3

u/faloompa Mar 29 '26

Exactly. The harness is a tool and a means to an end. And that end hopefully is code you understand and could’ve written yourself, just done faster. At the end of the day, that code is still someone’s responsibility and it won’t be the agent’s.

1

u/Fun-Assumption-2200 Mar 30 '26

Nice, that is exactly what I was thinking

3

u/cmndr_spanky Mar 29 '26

I'll play devil's advocate for a bit. For reference I have a real software engineer background, but since Open 4.6 (I tend to use Cursor, Claude Code sometimes, and only open code for hobby / personal stuff). I'm finding there's diminishing returns these days manually reviewing all code (depending on the kind of thing you just prompted it to do). Instead I have it run tests / validations loops (both code driven testing and UI driven testing via browser control), as well as rules / skills driven code summaries / vulnerability assessments. The common issue I find is that coding agents have a bias towards "prototype worthy" stuff but not "Extreme scale stuff".. It'll prefer to make a quick SQL Lite database rather than ask about scale , multi-instance scenarios etc..

So indeed I find myself running a few sessions at once with multiple coding agents, often on a few different PRs for different things that don't have dependencies on each other.. and less and less manually looking at code diffs.

I do however spend much more of my time usability / user acceptance testing what's built and give Claude feedback that way.. But I still feel like it's pretty sane to run two or max three sessions at once if you can realistically parallelize some work.

So TLDR: I think blind vibing everything or reviewing all code generated by frontier models are two extremes nobody should be doing. The reality is in the middle, but edging towards "Blind" if you know how to get self testing / validation working and are willing to spend time actually clicking around your own product "in anger".

3

u/max123246 Mar 30 '26

I still have 0 clue how you are building a long term monetizable or useful product with vibe coding.

I just spent the last week writing code by hand because it utterly failed at helping me debug. It literally thought the issue was a Python garbage collector issue. Wasted a day listening to its ideas of where to debug and I only made progress once I closed the AI tab and just went back to thinking about the problem on pen and paper.

AI still needs a well designed codebase to write good code. And AI is not good at creating a well designed code. So I hand write most code, to maybe build types and interfaces where it can just compose those concepts and build something, But it's worse than a junior engineer's attempts to design and write code. The frontier models are shockingly bad for the amount of hype people say about software engineering is dead.

1

u/Medium_Anxiety_8143 Mar 30 '26

To be honest I think very few people would share that viewpoint. I could understand if you were working on something crazy like assembly level micro optimizations, but at the product level coding is almost solved imo. You can say that it might be a bit sloppy, but it def writes code that works. It does depend on what model you use though, gpt5.4 is king for me, and the worse of a model you have the closer you get to normal coding.

1

u/max123246 Mar 30 '26 edited Mar 30 '26

This was with Claude Sonnet or Opus, I think. I switched to gpt 5.4 after that experience because I was frustrated with how it'd rather conjure up a fake reason than to say it doesn't know

2

u/cmndr_spanky Mar 30 '26

It's hard to comment your particular anecdote without a few details. For one, if you were using anything less than Claude Opus, then I agree you can't trust. I'm not saying opus is perfect, but if you give it the tools, and a way to track regressions / bugs, plan the architecture and let it automate validation and testing... (if you can afford the tokens). It's insanely good in my experience.

1

u/max123246 Mar 30 '26

It was either Opus or Sonnet. It would not have ever found the issue on its own. The correct error message was in a log file that needed to be enabled in a config file deeply nested in my codenase

-5

u/Medium_Anxiety_8143 Mar 29 '26 edited Mar 30 '26

See the other comment, I answer what I did in that session. I’m not trying to sidestep anything

1

u/bad_detectiv3 Mar 30 '26

I want to give this parallelism opencode session a try, do these session work on basis of git workspace trees? I know Cursor allows to have multiple session under one Cursor.

1

u/Medium_Anxiety_8143 Mar 30 '26

I do not use gitworktrees for this. Instead, I natively implement swarm coordination into the harness. If two agents are working in the same codebase, the server knows about it and will notify an agent if a different agent has changed something beneath its feet. The agents can dm each other if they really need to. I really tried to get git worktrees to work, but it’s always more trouble than it’s worth in my opinion. The merge back is a massive pain, and if you ever don’t make it to the merge stage in your session, your work is stranded there and it’s even more of a pain. Not to mention that it’s a heavy process that requires you to do a deep copy of your codebase. In my experience, agents rarely collide while working in the same codebase anyways, just work on different parts of it at the same time. The small drawback is that gpt has a tendency to not commit if there are multi agent changes

1

u/Medium_Anxiety_8143 Mar 30 '26

I was thinking about this a while back, and I want to look into jj and git alternatives to see if there are any better solutions. Perhaps a modified version of git where every patch is essentially its own commit is better. I’m thinking that it will help make changes more atomic and more traceable if something goes wrong with the swarm

2

u/Sensitive-Sugar-3894 Mar 30 '26

It is very fun. I love seeing it all happen. In my case the overload is not about tab 1 is the coder, tab 2 is the tester, etc. I have tab 1 to code, tab 2 to review a colleague's PR, tab three to update some unrelated projects documents.

I think if I limit the subjects I will have more fun. Now I got why som people said I was over engineering. Thanks for this reply.

8

u/Sensitive-Sugar-3894 Mar 29 '26

I usually have 2 to 4 tabs in my terminal. I switch between them and all the attention required in Teams in a regular work day. The problem is switching subjects and attention all day long. Some days are really exhausting. I think cognitive something is the term I have been reading.

10

u/krazyken04 Mar 29 '26

Cognitive overload is a term I use often in funnel optimization and behavioral economics: designer put too many steps or decisions in the way of completing the revenue generating step.

Is that the term you're thinking of, just different context usage?

2

u/Sensitive-Sugar-3894 Mar 30 '26

Not sure. If the addition as unnecessary, but in the same context, no. Because what I understood from the designer you mentioned looks more like excessive noise. In this case, it's about having to mentally switch and concentrate in different subjects.

2

u/CorrectTemperature65 Apr 13 '26

We're going to be needing agents to manage multiple agent coding sessions. Like a supervisor of junior coders.

1

u/Medium_Anxiety_8143 Mar 30 '26

I also think actually the beginning of a project is the part that you shouldn’t parallelize as much. That’s the time when you are doing more architecture work and laying out the foundations and you want to make sure it’s as coherent and coordinated as possible, so it makes more sense to have only one agent do that work. But later in a project it’s bigger, more modular, and you can work on different parts of it at the same time. I also am usually working on multiple different projects at a time. If you work on multiple different projects your garaunteed to have no conflict headaches

5

u/Still-Wafer1384 Mar 29 '26

It's not just parallelism, it's also using different levels of LLMs for different tasks, so that you only use the expensive ones for the hard tasks.

1

u/Sensitive-Sugar-3894 Mar 30 '26

For luck or money I don't have to worry about that in the place I work, but I get the idea because I worry about that at home. It's just thag at home, I don't have so many open things at once.

5

u/SwipeScience Mar 29 '26

Don’t feel bad. It’s the same as some people using 8 monitors and then realizing one would have been enough.

2

u/Sensitive-Sugar-3894 Mar 30 '26

Finally a passive-agressive ironic, still ignorant, reply.

3

u/watchmanstower Mar 29 '26

You are correct. Trust your gut. I work on complex projects and I can only handle one terminal session at a time plus an external chat to hash out ideas because I need to deeply think about everything that is going into that prompt and coming out of it.

4

u/Sensitive-Sugar-3894 Mar 30 '26

Yes, I think I need to stop trying to hold all the world at once.

2

u/Shoddy-Tutor9563 Mar 29 '26

I wonder how ppl are managing conflicting changes made to codebase by multiple agents working in parallel. Or how they are dealing with false positives / false negatives in the testing, when the codebase tested in one session is being modified behind your back? I find the only plausible answer - they are all mature devs who use proper separation of envs and each agent works in a different branch of the source code repository. And they do care about test automation of whatever they are building.

1

u/Pleasant_Thing_2874 Mar 30 '26

To help combat this all tasks assigned by my orchestrator have scope locks in them to prevent agents from working on the same files simultaneously. In addition all code changes run through git and only merge to our primary work tree through the CI actions & a conflict check. That has eliminated most of the conflict changes I have had to deal with and even when they do come up the agents are able to rebase their branch and quickly clean it up.

1

u/0xShitcoin Mar 30 '26

git worktrees

2

u/[deleted] Mar 29 '26 edited Mar 29 '26

the only people you see doing this are people who got no clue what they are doing and are trying to automate the gaps in their thinking to more and more AI's in hope they cover their gaps

3 terminals if you're doing braindead work is max for human capacity, 1-2 if you're doing work that actually requires attention and actively thinking and challenging what the AI is outputting. More than 3 it's just a slop generator and you're praying it works while you burn tokens in a bonfire while the ai's try to hardcode fixes to simple bugs which you'd have caught 3 hours ago if you slowed down a bit

1

u/Foi_Engano Mar 29 '26

I was working on that, but I've reached a point where I need to test the functions to fix bugs, and it's a manual test because it runs on an Autodesk program. I end up not being able to do this parallel testing because I'm just one person testing if it worked... this multi-agent setup is only useful at the beginning when you assign each one to do a part, but when you reach 80% of the project, you have to work with just one person.

1

u/raichulolz Apr 02 '26

its not sustainable. most people doing this are probably not working on real products used by millions of people. i cant imagine having to review that many changes to keep up with the AI and steer those sessions in the right direction. I only ever have around 2 sessions per codebase.

1

u/Technical_Egg_4548 Apr 04 '26

Same here, I have one session open/active at anytime, I can't multi-task.

1

u/mammongram6969 Apr 29 '26

I am in the same boat. I routinely spend 30 minutes reading, re-reading, and digesting something that takes a model 30 seconds to spit out. If you're being intentional about what you're building, asking questions along the way, reviewing the output, there will always be a speed limit of 2 or maaaaybe 3 sessions.

0

u/Medium_Anxiety_8143 Mar 29 '26

I think there’s only like 2 different projects I’m working on here, some were one off like changing an os level script. Most of it is working on its own codebase, and the codebase is modular enough to where there aren’t that many file conflicts, if there are, they tool is built for it, so the relevant agents get notified and they can dm eachother if they really need to

5

u/cmndr_spanky Mar 29 '26

IMO the main "impactful" difference between coding agent harnesses is no longer the table stakes stuff (integrations, skills, MCP Support, tools like file I/o / web fetch, cute UI customizations and other vanity crap). It's how the agent deals with context window overload and large code bases. In particular there are huge differences even between industry loved agents like cursor vs Claude Code. The former builds a vectorDB index of the entire codebase to make location finding easy without using much context, meanwhile Claude Code uses plain "find" "ls" "grep" tools to do the same.. slower, clumsy but not noticeably worse on smaller projects.

Then there's context compacting (either automated or manual).. or the agent recovering from tool call failures etc..

Another form of context managing is the automated spawning of sub-agents, but I don't think most people think of sub agents that way (but that's the main strength IMO).

Those parts are more the secret sauce of these agents, because the routing requests to an LLM from a CLI with basic tools is entirely pedestrian and uninteresting.. I can vibe code that in a few hours just like you can.

2

u/Medium_Anxiety_8143 Mar 29 '26

I can’t find anything that other agents do better than my harness but I’m bias and I’m asking. I do agree the skills mcp and allat is basic, I don’t mention it

2

u/Medium_Anxiety_8143 Mar 29 '26

Maybe what is interesting is selfdev mode for source code modification and in session hot reload, I think it’s better than pi extensiblity but I haven’t had anyone else try it yet. And then the memory embeddings which allow for human like memory. It vecoreizes response and prompt, and stories it in graph, does a search for embedding hits on each turn, and then does a little bfs, then passs to subagent to verify it is relevant before injecting in

2

u/Medium_Anxiety_8143 Mar 29 '26

Also diagram rendering is insane, built a whole new mermaid lib for it to have 1000x faster rendering

1

u/Medium_Anxiety_8143 Mar 29 '26

I have an agent grep tool which is basically grep except for it shows the file outline so the agent can infer what is in there instead of just reading it. There are multiple compaction modes, but they happen in the background so non OpenAI models can have instant compaction. OpenAI model uses the native compaction which preserves reasoning traces just like codex cli. These things are optimized for, but I’m interested to see if you could vibe it out in a few hours

1

u/Top-Cartoonist-3574 Apr 13 '26

totally agree to everything. Curious - have you found anything that solves these optimally?

4

u/corpo_monkey Mar 31 '26

I built an orchestrator for opencode which can orchestrate 144 opencode instances simultaneously. It can visualize the sessions on my 6x 85” OLED TVs. I call it The Magistrator Orchestrator II. (Don't ask about version 1.)
It won't let me out of my house, took over my bank account and disabled my phone. I'm a hostage. It monitors my vital signs and orders food for me.
I can vibecode 144 projects at once. Can your orchestrator do it?

1

u/Medium_Anxiety_8143 Mar 31 '26

Oooo I think I need more ram to get to 144 sessions, how much ram does that take for you? My agent genuinely does order groceries for me through amazon fresh tho 😂, remembers all my preferences too. Sponsor me with a with a fat stack of ram sticks and a few tvs and I will vibe 144 projects at once lmao

1

u/corpo_monkey Mar 31 '26

I've invented QuantumQuant, so it frees up an unpredictable amount of RAM every time I use it. I'm working on implementing TurboQuant on QuantumQuant base to free up even more RAM.

1

u/Medium_Anxiety_8143 Mar 31 '26

Mmm, since ur talking about turbo quant you must be running them all locally on ur homelab supercomputer, 144 models locally is already some serious stuff, I don’t think you need turbo quant, turbo quant needs you man! Publish the quantum quant paper and become a billionaire 📈

1

u/corpo_monkey Mar 31 '26

I have 2x 3090, I run everything locally. Will release the papers as soon as I finish vibecoding the documentation. I stuck in a "still not good, fix it" loop in all the 144 threads.

5

u/Medium_Anxiety_8143 Mar 29 '26

If anyone is interested: https://github.com/1jehuang/jcode

There is a self dev mode as well, if you have something you want to modify about it, just ask the agent and it should be able to modify its own source code, build, and hot reload in session, and keep going without you doing anything

2

u/adamhall612 Mar 30 '26

self dev sounds cool - maybe you could build in logging to have periodic automated introspection on your chats and suggest its own improvements? “i saw you course correct me a few times to use preinstalled binaries in PATH, want to make a config option of ‘preferred cli tools’” etc - you get my point

6

u/messiaslima Mar 29 '26

Congrats on the work! I was really hoping someone building a coding agent that’s not built on JavaScript

1

u/Medium_Anxiety_8143 Mar 30 '26

Thank you! I was hoping someone would too, and I lost hope lol

2

u/whitestuffonbirdpoop Mar 31 '26

so much this. why is everyone making TUIs using a browser scripting language? the memory footprints are ridiculous

2

u/Fir3He4rt Mar 29 '26

Love it. What is the default context window usage? An efficient agent shouldn't consume 10k tokens just for system prompt which opencode does.

I wanted to build something like this myself.

1

u/Medium_Anxiety_8143 Mar 29 '26

How do you suggest that I measure this? I don’t have any benchmarks for that, but I can tell it’s very token efficient. It doesn’t do a bunch of unnecessary subagent mumbo jumbo that Claude code does, and there is a purpose built agent grep tool that additionally gives file structure to the files it found so it can infer more instead of reading the files

2

u/Weird_Search_4723 Mar 30 '26

If you are looking for an efficient coding agent. Not in rust though  https://github.com/0xku/kon

Roughly 1k tokens in system prompt (including tools)

2

u/NoHurry28 Mar 30 '26

Bro doesn't know what a single line of code looks like in his codebase lmao. Sick matrix screensaver tho dude

1

u/Medium_Anxiety_8143 Mar 30 '26

what matrix screensaver? the terminals are transparent tinted black, and the wallpaper is the image of a black hole, and the waybar is black. works great on an oled screen

1

u/stutsmaguts Mar 31 '26

if you’d seen the matrix, you’d know what he meant

1

u/Medium_Anxiety_8143 Mar 31 '26

I have no idea, never watched it

5

u/Superb_Plane2497 Mar 30 '26

opencode has plugin ecosystem, core devs are bright, serious coders who dogfood it, so a lot of credibility which is important to serious and professional users, also opencode has relationships with OpenAI due to credibility and user base, it is well documented and with a broad user base is tested in a wide range of environments and situations ...these are the advantages of scale, which separate from hobby. Not to say a hobby or sole project can't be really good: I use open code, but I have my own plugin which does planning much better than out of the box, in my opinion and for me ... which is kind of the point of plugin extensability.

1

u/Plenty-Dog-167 Mar 29 '26

I’ve built my own harness as well, it’s not very difficult with current SDKs and the tools needed for coding are pretty simple.

Opencode is just a good open source proj that people know about and can set up quickly

1

u/Medium_Anxiety_8143 Mar 29 '26

This not an sdk, everything is from scratch

1

u/[deleted] Mar 29 '26

[removed] — view removed comment

1

u/Medium_Anxiety_8143 Mar 29 '26

You should be able to use your copilot oauth if that’s what you mean

1

u/Fat-alisich Mar 29 '26

does it count 1 prompt = 1 request? and not burning request when spawning subagent?

1

u/Medium_Anxiety_8143 Mar 29 '26

Yes

0

u/[deleted] Mar 30 '26

[deleted]

1

u/Medium_Anxiety_8143 Mar 30 '26

Try closing the browser and trying again

1

u/Fat-alisich Mar 30 '26

Copilot login failed: Failed to poll for access token

got this msg instead

1

u/Medium_Anxiety_8143 Mar 30 '26

Send a gh issue if you can

1

u/[deleted] Mar 29 '26

[removed] — view removed comment

2

u/Medium_Anxiety_8143 Mar 29 '26

Yes

1

u/Medium_Anxiety_8143 Mar 29 '26

Or at least it should, because it supports multiple accounts and it supports multiple oauths, send a gh issue if there are problems with that

0

u/Medium_Anxiety_8143 Mar 29 '26

It supports multiple accounts, it’s not copilot cli though…

1

u/Medium_Anxiety_8143 Mar 29 '26

I think sdks are kind of limiting. For example the Claude sdk you can’t change how they do compaction, in my harness you can have an instant compact because it does it in background and just loads in context + recent turns

1

u/Plenty-Dog-167 Mar 29 '26

You actually can since anthropic's compact feature can be enabled/disabled, so it just boils down to the level of abstraction you want to build with and what features to customize.

At the end of the day, asking what ways opencode is "better" is the wrong question. For building something new, you have to figure out what you can provide that's 5x better than what already exists for people to consider trying

1

u/Medium_Anxiety_8143 Mar 29 '26

What do you want to be 5x better that I should focus on?

1

u/Medium_Anxiety_8143 Mar 29 '26

I don’t use opencode cuz I can’t stand the interface, but I assume it’s not very performant, and I can say that resource efficient is like 5x better than Claude code

1

u/WorkshopsTheFuture Mar 29 '26

This is the way.

1

u/Embarrassed_Bread_16 Mar 30 '26

What sdks did u use

1

u/jaytothefunk Mar 29 '26

Rather than multiple terminal panes/windows, why not use a tool that manages multiple sessions/agents and workspaces, like https://www.conductor.build/

2

u/Medium_Anxiety_8143 Mar 29 '26

I’m on Linux so that won’t work for me, also as far as I can tell all these wrappers are pretty bad in performance. I’m also a terminal guy, GUI is big no no

1

u/fluffy-cat-toes Mar 30 '26

doesn support opencode

1

u/ezfrag2016 Mar 29 '26

The thing I find most frustrating about OpenCode is that due to limits I often need to cycle my model provider during the cooldown. When this happens, i want a way to tell it that my copilot account is on a cooldown and have it auto switch to appropriate openai models or gemini models without having to reconfigure the principal agents and all subagents via opencode.json and reload opencode each time.

1

u/Medium_Anxiety_8143 Mar 29 '26

I have that feature, let me know if it works for you!

1

u/ezfrag2016 Mar 29 '26

Cool, I will give it a try

1

u/ezfrag2016 Apr 02 '26

Ok I have installed it. Couple of questions:

How do I get it to fall over to a different model when it gets throttled?

And how do I authorise copilot on a headless machine?

1

u/larowin Mar 30 '26

So what did this cyberpunk fireworks make?

1

u/Medium_Anxiety_8143 Mar 30 '26

I responded to a similar comment:

“Oh and the thing I built is the harness itself if that isn’t clear, as well as most of the other software I use. In the video I worked on some oauth stuff, background task formatting, and a /catchup which will help me manage the stale sessions by using the sidepanel to show previous prompts, what edits, and then the response. I added a .desktop script which prompts me to rename the video I just created. I did some work on the swarm replay, and there are also some other sessions in there which I didn’t interact with much, one being my own terminal which exposes an scrolling api for native scrolling because I noticed that codex cli has native terminal scrolling which is what makes the scrolling smooth but unattainable with my custom scroll back implementation. I believe basically all of that is oneshottable and automatically testable to tell that it works. I do batch architecture/codebase structure review about once a day and then a deeper one whenever I feel like it. There’s defo some slop around in the codebase but reviewing everything is for sure not worth it.”

This was a 11 min session, you can see in the waybar that there were 19-21 sessions alive on my computer, only 2-4 of them were streaming at any given time, since I was a bit slow to review them

1

u/fezzy11 Mar 30 '26

How to maintain feature, bug fix and refactor at the same time?

I have been looking into this maybe different worktree and finding free or z.ai coding plan

1

u/Medium_Anxiety_8143 Mar 30 '26

Just use this harness, it implements swarm coordination. All you have to do is spawn three different agents and tell them each to do that. I don’t use git worktrees, they are cumbersome and aren’t really designed for this. I talked about it a little more in one of the other comments

2

u/fezzy11 Mar 30 '26

I am working on compliance related project and code review and testing must be implemented in workflow before code is deployed to production

That's why I am managing all 3 differently bug fix , feature and refactor legacy code with automated testing

1

u/bradjones6942069 Mar 30 '26

This starts supporting kimi for coding plan and I'll try it

1

u/Medium_Anxiety_8143 Mar 30 '26

I’ll support that then

1

u/sultanmvp Mar 30 '26

It’s almost guaranteed no quality work is being done here. Even if OP has 5 “code review” agents happening. Just wasting GPU and making LLM inference more expensive for everyone else.

1

u/Medium_Anxiety_8143 Mar 30 '26

how can i convince you otherwise?

1

u/awsqed Mar 30 '26

out of curiosity, why everything is centered?

2

u/Medium_Anxiety_8143 Mar 30 '26

Just preference, you can change it to left aligned

1

u/Adventurous-Sleep128 Mar 30 '26

Hey cool project, congrats! I’m curious about how the swarm spawning/management works. Is it like codex, where you tell the agent to spawn subagents? Does the agent do it by itself when it sees fit? You say you coordinate code interference with your own layer instead of worktrees, right? How does it work? There’s not much info in the repo about how the main features work. I’d suggest you to make a video demo of you using the software and its features to see how it works. At least I always appreciate it. Keep it up!

2

u/Medium_Anxiety_8143 Mar 30 '26

There are one off subagents similar to codex, and there is separately a swarm. The swarm can be summoned automatically by the agent via tool call, but I usually don’t do that, and instead I use what I call a manual swarm. If you spawn two agents in the same repo the server will recognize it and it will help coordinate conflicts, otherwise you mostly operate them as independent sessions. The server will keep track of everything an agent has read and edited so will know if one agent edited the codebase in a part that the other agent already read. They can dm or group message other agents if they need to. There’s more to it, but this is the basic concept.

1

u/private_viewer_01 Mar 30 '26

What about with ollama?

1

u/Medium_Anxiety_8143 Mar 30 '26

I recently added support for ollama, you can test and let me know if it works, I don’t have good enough hardware to try anything serious

1

u/Medium_Anxiety_8143 Mar 30 '26

I feel like nobody would be able to run a swarm with local hardware though

1

u/private_viewer_01 Mar 30 '26

I’m trying to get my worth out of the dgx spark. How many must I chain together?

1

u/Medium_Anxiety_8143 Mar 30 '26

I’m not sure I understand what you mean by that. How many dgxs you need to chain together? Or how many agents?

1

u/Substantial-Cost-429 Mar 30 '26

opencode is great bc u get full model flexibility with a decent TUI thats not tied to a specific vendor. cursor is polished but expensive and locked in. opencode lets u swap models, use local setups, customize flows way more

for ur agent harness, one thing that helps a ton is having proper context management. we built Caliber (open source) which auto generates project specific CLAUDE.md or AGENTS.md files per repo. instead of agents guessing what the codebase does, they get structured context thats actually accurate. super useful when ur running multi agent setups. just hit 250 stars and 90 PRs btw

https://github.com/caliber-ai-org/ai-setup

https://discord.com/invite/u3dBECnHYs

1

u/Medium_Anxiety_8143 Mar 30 '26

Hmm I feel like cursor doesn’t do any lock in and also isn’t that polished. I want to know how is opencode customizable tho. I haven’t heard of opencode doing anything for that other than being open source, pi has things for extensibility so I can understand why people like that, but I feel like opencode just does nothing well. I’m not an opencode user tho so like I want to understand

1

u/Equal-Chipmunk-4053 Apr 20 '26

Why isn't cursor polished in your opinion? I've been using vs code with copilot before opencode. Cursor's interface looks way better for agentic development, haven't tried it too much. And I mean the GUI.

1

u/Final_Effect_7647 Mar 31 '26

What is this cmux?

1

u/Capital-Surprise7251 Mar 31 '26

No minimax models oauth support?

1

u/jojomaww Mar 31 '26

Is the centered text configurable? I can't stand centered text

1

u/savenx Mar 31 '26

its great that u developed this project, but i have a honest question, what jcode does better than opencode?

2

u/Medium_Anxiety_8143 Apr 01 '26

I do better on pretty much every measurable thing that matters. For instance on resource utilization, opencode uses about 20x more memory, so its completely unfeasible to have alot of sessions open at the same time like i do in the video. It starts up 66x faster, which results in super low friction to start a new session and do something else, which you can also see in the video. Its got more features than opencode. I have a very cool side panel implementation where you can render mermaid diagrams instantly. There is agent memory, which embeds each turn and stores it in a memory graph so that memories can be automatically injected into the conversation without the agent doing any tool calls. and then of course the swarm stuff which helps the 20+ sessions coordinate and not have a bunch of unresolved conflicts. Its also more customizable because the self dev mode helps you modify the source code, which gives you full control, instead of just what plugins can do. And then there is the ui, which is subjective i guess, but opencode ui makes it so that you barely have any space on the screen to see what he agent is doing. There is a fat amount of padding and they dont even truncate edits so you have to constantly scroll up to see what the agent is doing. Jcode has info widgets to show you useful information but to never have it interfere with the visibility of the agent's response text. when you have open code in fullscreen they have that ugly sidebar which takes more of the little space they give you.

There are even more things like agent grep which optimizes grep for agents so they need to read the actual file less often, instant compaction for all models by doing it in the background, better multi account support, etc etc. Every little thing about jcode is optimized, yet opencode seems like the worse possible implementation that could still manage to get people to use. Just my opinion though. I think Dax once said they could have a 10x worse product and still be successful because their position (or something along those lines, I can't be bothered to find the quote), and I believe that is exactly what they are doing.

2

u/savenx Apr 01 '26

Excellent response, thank you. Ill try it, thank you for sharing it!

1

u/gtrak Apr 02 '26

This is cool. I don't know what to build, so I'm also building my own harness in rust (early stages), trying for something a little different though. Do you have any tips for reusable ecosystem libraries for these primitives or do you just reinvent everything?

1

u/Medium_Anxiety_8143 Apr 02 '26

I would say for mostly anything that you are going to use, you could have one of your agents scan the ecosystem for you and see if there is something that fits what you want well, and if not then just invent it. Kinda depends on what part of the ecosystem you mean though. Like I use ratatui and crossterm, but the widget algorithm for example is in house, the fast mermaid rendering didn’t exist, and the memory system is hand designed. What are you going for in your harness?

1

u/Medium_Anxiety_8143 Apr 02 '26

I don’t wana be like the sellout final boss, but you could try building on top of mine

1

u/gtrak Apr 02 '26

I think it would be interesting to combine something like https://github.com/gsd-build/get-shit-done with a stacked diffs https://newsletter.pragmaticengineer.com/p/stacked-diffs workflow for larger projects. So it's more of a CI/CD and review-focused system and less of a terminal agent, but it still needs all that terminal agent stuff.

1

u/Medium_Anxiety_8143 Apr 02 '26

Gsd looks kinda like pure slop to me lol, but I bet you could just pass the repo link in to Jcode in selfdev and it would oneshot a native implementation

1

u/gtrak Apr 02 '26 edited Apr 02 '26

GSD2 (built as an incredibly complicated pi extension) went off the rails fast and inspired me to just try to build my own thing. /shrug

How would jcode handle breaking down a complex project, orchestrating, delegating, and integrating the work? I don't actually want to one-shot anything, I use a local qwen3.5-27b for codegen and kimi k2.5 for planning and review.

This is about just setting something up, going to sleep, and waking up to something workable, or just throwing away the terrible parts, refining the plan, and trying it again.

1

u/Medium_Anxiety_8143 Apr 02 '26

I’m thinking about making my own vcs which is jj adjacent, I think stacked diffs is not exactly the right idea, but the right direction and git does need to change for the age agents

1

u/gtrak Apr 02 '26

I think it's hard to beat git. Basically I have a sqlite DB tracking branches with patches. Each agent run gets a worktree. If something gets merged, I have hook system to rebase the rest and re-run CI.

1

u/kingofpcs Apr 02 '26

this is awesome , claude and offline qwen coder with a little minimax on the side, great TUI , customizable , solid work my man.

1

u/korino11 Apr 03 '26 edited Apr 03 '26

It have a LOT(!!) warnings. Warnings means you have a lot of unused code...

So in your readme description only for providers and not for LOCAL llm... And no description about how to connect manual with my provider i dont use for exmpl these claude,openai,alibaba and etc And somehow it slow. on top cpu...animations slow.. i compare it with your video

1

u/Medium_Anxiety_8143 Apr 03 '26

I think there should be ollama support, I’ve never tried it though since I don’t have the hardware for it. Would be great if you could validate that for me. What is the provider that you use? And send a video of the slowness as a GitHub issue and your environment

1

u/korino11 Apr 03 '26 edited Apr 03 '26

Lot of unused code.... Why without LTO?!?! i changed a little [profile.release]

opt-level = 3

debug = 0

codegen-units = 1

lto = "fat"

incremental = false

strip = true

panic = "abort"

1

u/Medium_Anxiety_8143 Apr 03 '26

Is that screen cuz you compiled from scratch or just from the application? Also I don’t use heavy optimization cuz users are meant to modify and build themselves, and when user builds, I think it’s a better tradeoff to have faster build than imperceptible better performance

2

u/korino11 Apr 03 '26

That a cutted screen from my compilation

2

u/lundrog Mar 31 '26

Ah this seems interesting. Dm me if you have time. I would like to discuss.

2

u/Nidszxh Apr 07 '26

Close enough, Welcome back Ironman!

1

u/Crafty_Ball_8285 Mar 30 '26

I just use kilo instead because of the free models. I dunno if open had any

1

u/SwimmingReal7869 Mar 30 '26

soery id this advice is bad.

use the agents to build a product plan, market reasearch, understanding existing solutions, opensource code etc.

then with these agents create a system design and document it. let there be all features you would need and how u would want them to be.

then use agent to write the code and review throughly.

build a great product/service that is useful for people.

1

u/shel_done Apr 03 '26

No AWS bedrock support?

1

u/Equal-Chipmunk-4053 Apr 20 '26

What's your background overall in coding/products? And how much of the code is written by agents vs by hand?

1

u/Equal-Chipmunk-4053 Apr 21 '26

There's a weird line in your install script:

x86_64)  ARTIFACT="jcode-macos-aarch64" ;; # Rosetta 2`x86_64)  ARTIFACT="jcode-macos-aarch64" ;; # Rosetta 2

What is it supposed to mean?

current_dir="$builds_dir/current"

Is never used.

1

u/Glad_Daikon855 Aug 05 '26

I have been using it now for the last month, and love it. I plan with gpt, and build with free model:)

1

u/GTHell Sep 07 '26

I don’t. I only care about using Opencode Go and free model

0

u/rySeeR4 Mar 31 '26

Because we use it for actual WORK, not pet projects that you don't care about the quality.

0

u/[deleted] Mar 29 '26

[deleted]

11

u/philosophical_lens Mar 30 '26

I think we'll see a trend of "personal software" which is software developed by myself for myself, and not really meant for anybody else.

1

u/DJGreenHill Apr 02 '26

I would love multiplayer some-users softwares.

You know, a software that is used by some users that also develop it together using their harnesses.

1

u/CorrectTemperature65 Apr 13 '26

Exactly! The SW dev business model has changed.

Customers no longer say "I have an idea and want a coder to build it for me". They instead write their ideas in Opencode, it spits out code. It kinda works. The user then modifies it until it works for them. They iterate and iterate as their understanding of their problem changes, they either pursue their idea more or realise it's a dead-end and stike it off the todo list.

Whilst we're not quite at the "I want code that creates photoshop..." stage, we sure as heck certainly will be before the end of the decade. Models for this will be publicly available and local.

Just think what'll be available to the quant market with their private research.

1

u/philosophical_lens Apr 13 '26

How is this related to the quant market?

1

u/CorrectTemperature65 Apr 13 '26

My point is we're using tech and networks that are publicly available. With their unlimited billions, the finance market has been technologically ahead for decades. At one point, they even built their own private internet network that was something like 20ms faster than other connections, helping to get trades in faster than competitors.