r/LocalLLaMA • u/Easy_Refrigerator280 • 8h 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?
86
Upvotes
16
u/Potential-Leg-639 8h 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.
122
u/terablast 8h 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.
31
u/zxspectrun 5h ago edited 4h 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
149
u/CobbleBeans llama.cpp 8h 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.
12
u/RedParaglider 7h ago
Pi is great. Context poisoning is the mind killer.
18
u/Holiday_Point_603 7h 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.
7
u/DanielSReichenbach 3h 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
15
u/wgaca2 8h ago
Deepseek is what i prefer nowadays
5
u/grabber4321 7h 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.
22
u/egomarker 8h ago
Oc wastes more tokens for the same task
4
u/devoidfury 6h 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.
3
u/synth_mania 7h ago
Opencode also apparently does a lot of telemetry too
3
u/IamFondOfHugeBoobies 6h 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.
3
u/BawbbySmith 5h ago
OpenCode only became good recently with v2. Too much baggage from their old v1 days
3
u/Reasonable-Height704 3h 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.
7
u/retardedGeek 8h ago
opencode v2 is actually better
7
u/JMowery 7h 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.
2
u/rabbitaim 4h 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 4h 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/Orlandocollins 3h 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.
2
u/Jorlen 51m 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.
4
u/jacek2023 llama.cpp 6h 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/Purple-Programmer-7 5h 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/Frizzy-MacDrizzle 7h ago
Open code and the model need to be right.
1
u/romeozor 7h 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/FinBenton 7h 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.
1
u/zipperlein 7h ago
I like OpenCode TUI way more. Both are pretty flexible.
1
u/Studio271 7h 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 6h 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 6h 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 6h ago
less tokens and smaller system prompt
1
u/Asleep_Literature_70 6h ago
I prefer oh my pi personally, granted tho I haven't used opencode v2 (I used v1).
1
u/DeliciousCry8302 5h 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 5h 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/Dubious-Decisions 4h 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.
1
u/hejj 3h ago
The general philosophy of minimal context suits local LLM
1
u/tautality 3h 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 3h 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 2h 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 1h ago
What’s your overall use case? Coding? Or total system AI agent?
1
u/rm-rf-rm 55m ago
OpenCode codebase was heavily vibe coded, oversized and optimized for VCs last time I looked at it
1
u/EitherMarch1255 8h ago
I use Claude
1
u/audioen 7h ago
OpenCode used to be crap in v1, apparently not crap anymore in v2.2.
1
u/Borilentz 6h ago
Why do people use Windows while Linux/macOS/UNIX/BeOS/xxx is so much greater!
0
u/endgamedos 3h 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.
-6
u/CommercialHour6660 8h 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.