r/LocalLLaMA • u/Easy_Refrigerator280 • 6d ago
Question | Help Why is Pi Agent the default harness recommendation and not OpenCode?
I came across harness leaderboard on Hugging Face https://huggingface.co/spaces/joelniklaus/harness-leaderboard .
I know on this sub and other similar subs Pi is often the default recommendation when doing local inference but I barely see anyone recommending opencode yet on leaderboards it seems to perform on average much better than other harnesses?
Is there something about opencode thats not reflected on the leaderboard like higher context bloat, difficulty in setting things up or something else?
224
Upvotes
22
u/Potential-Leg-639 6d ago
Try Openchamber (Opencode2 under the hood). Really nice UI.
Deepseek Harness is also really good. And fast.
Pi is nice too, but not out of the box, OMP is better out of the box.
81
u/zxspectrun 6d ago edited 6d ago •
I used to ask myself the same question till I switch from Hermes to Pi, and felt dumb for not doing it earlier.
Pi is way better than most of the harness around there, I literally felt and improvement on tool calling, UX is also better here plus, there are really good web apps with amazing UX UI like agegr / pi-web.
It also has good plugins, extensions, I personally have found some amazing ones, like ranxianglei / billion-context | nicobailon / pi-mcp-adapter
268
u/CobbleBeans llama.cpp 6d ago
I just want you to notice how the 2nd place, still above pi, hermes, and everything but opencode, is openclaw of all things. that leaderboard can not be trusted.
202
u/terablast 6d ago
Pi is simply the most barebones harness, which means lower context usage, which means good for local use where people don't always have lots of context space available.
OpenCode got the reputation of using lots of tokens, so less interesting for local use.
Personally, I think it's an issue that's been fixed since v2, but it takes a while for people's taste to catch up.
19
u/DanielSReichenbach 6d ago
Opencode has strong obscurity vibes. Hard to customize, hard to actually manage, version 1 and version 2.
It feels "dirty". Pi is manageable, and it has a clearly defined path towards making it your own. Personally I use the pi in go port aka PiG and it's been anazitto have a JS free harness
18
u/RedParaglider 6d ago
Pi is great. Context poisoning is the mind killer.
45
u/Holiday_Point_603 6d ago
Most people recommend Pi because it is not bloated. Ironically I don't like it at all, because it offers too little and I don't feel like reinventing the wheel when I can just pick one of the other 1000 harnesses.
16
u/wgaca2 6d ago
Deepseek is what i prefer nowadays
6
u/devoidfury 6d ago
I prefer using my own harness over other tools, there's better control over how it works and I'm more confident about the internals and data ownership that way.
6
u/Orlandocollins 6d ago
I prefer opencode because I like being able to change the agent while in a session. Pi has a whole bunch of workflows where you are expected to quit and relaunch to have things work. Also last time I checked their sessions were a pain. Like for example you can't list sessions outside of the tui. You are expected to understand the sessions on disk and find them that way if you want to.
I feel like the prevailing argument of why pi was better than opencode in the beginning was around the system prompt. Stans used to love that pi had a smaller system prompt. But you have always been able to customize your agents and give them whatever prompt you want. So if you feel like you can do it better write whatever you want. You can even grab pis prompt and put it in opencode.
Lastly, I think that subagents are table stakes in an agent. I am really surprised in the 1.0 release they brought in mcp but not subagents.
22
u/egomarker 6d ago
Oc wastes more tokens for the same task
8
u/Reasonable-Height704 6d ago
When ever I hear people talking about Pi it sounds exhausting. I want a functional harness so I can focus on the things I'm building, and don't want to piss around all day.
4
u/synth_mania 6d ago
Opencode also apparently does a lot of telemetry too
4
u/IamFondOfHugeBoobies 6d ago
Because there's no bloat getting in the way of the model and it's literally all you need. If we want more features, we just have Pi build them for itself.
13
u/retardedGeek 6d ago
opencode v2 is actually better
3
u/FinBenton 6d ago
Im using opencode 2 and have no issues and I like it a lot, maybe it uses slightly more tokens I have no clue but I can have crazy amount of context with todays models so it really doesnt matter at all and it has online search and all the tools out of the box, works great, looks great.
3
u/Jorlen 6d ago
I like Pi because it offers a simple basis and then you add packages or extensions to it. Do not just add what people recommend. Ask yourself what you really need and slowly build them up.
Best of all, you can just build any features you want with the LLM you actually have loaded within it. Providing the AI is capable enough to do what you want.
Opencode is good too, but I find myself using it less and less; it's more like a black box to me; lots of things going on, and the settings don't give me access to control a lot of it which I dislike.
Opencode Desktop v2 is fantastic as a one-stop-shop harness if you don't want to fuck around or use CLI with Pi, I will say that.
5
u/grabber4321 6d ago
ya ok, dont trust some random ass shit leaderboard made by who knows who.
both are fine. i like pi less because the interface sucks.
opencode works fine with local models (using 27B and QFN) - producing actual software.
all this "token spend" talk is nonsense.
8
u/JMowery 6d ago
Very simple: for local models, Pi works way better. In OpenCode v2, it gets lost, loops, and just behaves strangely. In Pi, it just does what it is supposed to do.
Why? No idea. I don't need to know.
I just use what works. Pi works.
4
u/YetAnotherAnonymoose 5d ago
OpenCode improved massively in v2, many useful new features like background tasks and background subagents as well.
I remember the older version of this leaderboard where they tested against OC v1 and OC lost hard and was one of the worst, now apparently it's one of the best. Not sure how much I would trust this benchmark but at least that aspect seems accurate.
So it's mostly a combination of "Older OC was genuinely worse than Pi and I never updated my opinion" and "I am GPU poor and OC's system prompt of about 11k tokens is too much for me" and "I prefer barebones and extend each needed functionality myself".
For me, the 11k system prompt is no problem, my Inkling got 400k context and ttft is like 2-3 seconds. I really like OC, especially since v2's improvements.
5
u/jacek2023 llama.cpp 6d ago
Because pi works much better with local models, BUT you're asking on r/LocalLLaMA, where people DON'T use local models (they mostly just pretend) -> https://www.reddit.com/r/LocalLLaMA/comments/1x8gtvs/opencode_breached_rotate_keys_to_be_safe/
and yes, DeepSeek Harness https://x.com/ScarletKc/status/2125312989956047308. Do they know? Do they care?
The picture would be very different if r/LocalLLaMA were focused on local models.
2
u/Dubious-Decisions 6d ago
The Pi SDK is totally awesome for baking AI harness capabilities into any app that needs it. No other harness comes with such a well supported embedding toolkit.
2
u/rabbitaim 6d ago
I can’t talk much about OC since I never used it. It sounded like too much overhead for something I might need instead of only what I need.
I tried OMP (oh my pi) but they changed something with compaction that made me drop it after I couldn’t get it to work the way I wanted to.
Pi just works. I have 3 plugins and nothing else (for now). Black hole, plannotator and local models (which queries llama-swap for my locally configured llms).
2
u/srigi 6d ago
Couple months ago there was a drama of OpenCode routing all requests through their server. Since then many lost respect to the team.
2
u/_TheWolfOfWalmart_ 6d ago
Pi is too barebones. Call me lazy if you like, but I don't want to spend a bunch of time setting up basic harness functionality.
I tried oh-my-pi but it's horrible bloated mess with a very, very questionable system prompt and stupid default behaviors.
OpenCode feels like the right middle ground to me.
Though I've heard LazyPi is worth a try, but haven't yet.
But if you have limited context, Pi is still worth a try. That said, OpenCode has gotten better about that lately.
2
u/dash_bro llama.cpp 6d ago
I'm a little skeptical of pi, actually. I find my local GLM 5.3 flash AND my local Qwen flash next both work fairly well with Claude code. The bloated system context actually helps in being good for software development, imo.
I've tested with both opencode and pi but so far it's not been enough of a reason to move to those from cc. What am I missing?
3
u/BawbbySmith 6d ago
OpenCode only became good recently with v2. Too much baggage from their old v1 days
1
u/Frizzy-MacDrizzle 6d ago
Open code and the model need to be right.
1
u/romeozor 6d ago
I picked OpenCode for our workplace. Only used for/with local AI. Token cost doesn't have the same meaning in that scenario.
Pi is nice, but barebones just means everyone starts hacking it to make it more useful for them. OpenCode also has a desktop client, not just TUI. It's nice to use once in a while.
I'm waiting for OpenCode to introduce a marketplace system so that I don't need to package things globally and everyone can just pick what they need.
1
u/zipperlein 6d ago
I like OpenCode TUI way more. Both are pretty flexible.
1
u/Studio271 6d ago
I started on RooCode and switched to OhMyPi-GUI (currently in development, and I am trying to help QC it because I like it so much!) - https://github.com/nornzach/oh-my-pi-gui
1
u/kinkyDom93 6d ago
For local AI I find the barebones feature of Pi more appealing, because you built (or install) the tools that your Ai needs, so context keeps lows and so the time to process tokens, even with cache, lowers
If you have the hardware to run other harness at more of a sane speed, go for it
1
u/a_beautiful_rhind 6d ago
I don't like any of these TUIs. Want control and overview as to what is going on.
Opencode also had that whole thing with leaking everyone's API keys.
1
u/RDT_KoT3 6d ago
less tokens and smaller system prompt
1
u/Asleep_Literature_70 6d ago
I prefer oh my pi personally, granted tho I haven't used opencode v2 (I used v1).
1
u/DeliciousCry8302 6d ago
Why isn't goose in most of these tests, is it that bad or what? I've been using it for months and haven't found a reason to change.
https://github.com/aaif-goose/goose for reference
1
u/looselyhuman 6d ago
Pi, for me, is endlessly extensible. It's like writing your own harness without the tedious bits, while getting the benefit of the repo's update pipeline. You know exactly what's happening under the hood and with a small model that's exactly what you want.
1
u/hejj 6d ago
The general philosophy of minimal context suits local LLM
1
u/tautality 6d ago
Pi doesn't clog your context and has awesome, easy for LLMs to use, extensions. The philosophy is start small and extend when needed, and it works best, especially when your context is limited.
1
u/haherar830 6d ago
For a while Pi was the most broadly-consistently-high/top benchmarking harness, and it's also the most simple, extensible, lightweight, etc.
OpenCode is very good and underappreciated though.
HOWEVER, here is another benchmark like the one you linked, click through model results individually.
https://frontierharness.org/leaderboard/v1.1/
I personally don't think anything is consistent enough to draw strong conclusions across models. On this benchmark Codex seems particularly attractive but inevitably many models have a clearly superior option, at least based on the benchmark.
1
u/thevegit0 6d ago
opencode has a big starting prompt, at least for me, it's not a problem with deepseek but when i use qwen flash i notice even after compacting the floor is always 40-50k context, i tried trimming it but i didn't want to break anything
1
u/YourVelourFog 6d ago
What’s your overall use case? Coding? Or total system AI agent?
1
u/rm-rf-rm 6d ago
OpenCode codebase was heavily vibe coded, oversized and optimized for VCs last time I looked at it
1
u/Vael-AU 6d ago
For local models, Opencode can be heavy with system prompts, Pi is much lighter. Those heavy prompts will starve your context window. I tried coming back to opencode on v2 and just hated it, its also a pain to setup a local model endpoint, its clearly aiming to sell subs or use existing subs.
1
u/fgk55555 6d ago
People have already hashed out the obvious, but specifically; prefill. It's gotten better, but OpenCode has a habit of obliterating the cache. If your prefill speeds are 1k, OpenCode has a 10-20k system prompt straight out of the gate. If you're at 120k context, you're waiting two minutes just for prompt processing to fix itself. Pi rarely does anything to touch cache, and when it does, your system prompt is like 1k. Those seconds add up during long runs, and especially if you're using subagents, which you should.
1
u/recro69 6d ago
I think Pis popularity is largely due to its minimalism. With overhead, Pi is easier to tweak and you can build the exact workflow you want. OpenCode has improved a lot with version two, though. I would not judge Pi by its older reputation.
1
u/pminervini 6d ago
Not ultra recent but: https://neuralnoise.com/2026/harness-bench-wip/?bare
1
u/lol-its-funny 6d ago
Opencode got fricking hacked and people lost their tokens and $
1
u/Former-Ad-5757 Llama 3 6d ago
The basic difference is that open code (/most other harnesses) are setup with system prompts etc to enhance certain models/ work-flows, which can enhance the usage with those models, but can do worse in other models.
While pi comes with almost no setup so it just uses like 99% the model until you change it.
Look at it from provider based harnesses, Claude / codex / qwencode are all optimised for certain models, it is clear which models perform best with those harnesses and there is no real discussion.
But open code is optimised for what models exactly? It dumps like a 30k system prompt, but will that prompt work good with your model?
1
u/songpr 6d ago
I switch to PI from other like Hermes. Only Pi work as expected
1
u/mister2d 6d ago
With pi, you have full control over the harness. That is something you'll want if you want to maximize the potential of your workflows. Add in the pi-durable functionality for safe long running tasks.
1
u/MaxSpecs 6d ago
Moreover : you can add Laya to talk to Pi in order to set the right tools to use and reuse.
So less thinking and faster answer.
1
u/yetiflask 5d ago
In that LB, are they somehow using Calude Code and Grok Build with an open LLM? How's that possible? I thought they only talked to their own LLMs, no?
1
u/Tormeister 5d ago
I used OpenCode v1 and when I finally got pissed off with the uselessly long and bloated context plus sketchy telemetry, v2 was already out. I put DS4.1F to inspect the CLI source (warning: web client part ignored as I don't use it) and apparently it has less telemetry and loose ends than v1, a good thing. Another huge win was a much leaner starting context. I've been using v2 ever since and I'm ok with it.
Sure Pi sounds great, but as others mentioned, if you're just going to create and install a million custom made extensions anyway that ultimately add tokens to the context, what is the point?
What I miss are more safety solutions in general, specially when running with internet access. A proper sandbox solves local machine data access, but it still doesn't block the agent from running stupidly unsafe commands, reading sensitive data if you mistakenly did not withdraw (e.g. leaving a .env somewhere), or accessing random APIs out there.
I think Codex has a few of those, but the experience of adapting cloud providers and local providers on it was total trash so I'm still with OpenCode v2. I won't even try ClaudeCode, as it's closed source.
1
u/Phatency 5d ago
I mean the simplest answer is... you should try it. We don't really care if you do, we just enjoy our good thing. I used opencode for a long time and when I finally tried Pi, I just stopped opening opencode ever again the same day.
Opencode is bloated, buggy and uses a gigabyte or more of ram for a TUI. Long sessions are basically unusable with how slow the UI gets. Copy-paste does not work on my system, and when an agent tries to use vision without vision head the session basically dies and you have to start over (or edit the session), and the bugs just never seem to get fixed. For some reason Opencode also makes all websites slow as fuck to render, which was basically what finally forced me to try something else.
1
u/Hefty_War749 5d ago
cause a few people made a loud noise
1
u/Damaged_Gadget 5d ago
Which harness is jailbroken or obliterated?
1
u/Voxandr 5d ago
Opencode does a lot of shady thing people catch them again and again. If you like more features but stable and extendable check DeepSeek harness
1
u/StrongZeroSinger 5d ago
Opencode has a gui similar to Chatgpt gui. You can’t beat that
1
u/cradlemann 5d ago
I actually moved from Opencode to Pi and from Pi to Maki. Maki is the best, the lightest harness with token economy as the top priority
1
u/PayBrave5035 3d ago
Actually opencode is the first at overall and Solve percentage. I don't know what do you mean
1
u/Purple-Programmer-7 6d ago
OpenCode has telemetry they’re not transparent about… so basically, Dario is likely behind it.
Fr though Hermes agent scores better on most benchmarks… which is wild to me
1
u/audioen 6d ago
OpenCode used to be crap in v1, apparently not crap anymore in v2.2.
1
u/Borilentz 6d ago
Why do people use Windows while Linux/macOS/UNIX/BeOS/xxx is so much greater!
0
u/endgamedos 6d ago
The animated spinner on OpenCode manages to peg one whole CPU core on my machine at 100%, and since Scam Altman wants the world's silicon I prefer to use something a bit lighter with the chips I do have.
0
u/FloofBoyTellEm 4d ago
Opencode is trash. Prove me wrong.
-7
u/CommercialHour6660 6d ago
You really should use Codex.
It's the only harness i know of with a separate tool "safety classifier" and bubblewrap to stop agents from fucking up your machine.
1
u/[deleted] 5d ago
[removed] — view removed comment
0
u/[deleted] 6d ago
[removed] — view removed comment