r/LocalLLaMA • • 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

134 comments sorted by

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.

3

u/Easy_Refrigerator280 7h ago

Openchamber looks super neat thanks for putting it on my radar!

2

u/JurandM2 7h ago

DSH eat way more tokens than pi and oc - based on full 114 question ToolEval benchmark I did.

2

u/Limp_Classroom_2645 7h ago

Pi has nice native dekstop client too: https://github.com/avatsaev/pi-studio

2

u/dumbo9 5h ago

Maybe it's just me - but any time I try dsh, qwen wastes umpteen turns asking 'Why did you delete /tmp?'.

1

u/rm-rf-rm 49m ago

Why no Pichamber?

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.

33

u/SorosAhaverom 7h ago

I spent 2 hours trying to modify the system prompt of OpenCode half a year ago. In the github issue with hundreds of reactions a guy found an obscure workaround that technically worked, but was brittle. It was a counterintuitive ENV var they added but never documented (one of many, as it turned out), so you had to fish it out of the codebase or the changelog.

If I wanted to be stuck with 20K token tax of unmodifyable system prompts I'd just use the AI lab harnesses. Immediately moved to Pi and never looked back.

8

u/Divniy 4h ago

It starts at approx 8k now afaik

2

u/Ylsid 46m ago

Undocumented environment variables? Tell me you're vibe coding without telling me

18

u/JurandM2 7h ago

I tested via ToolEval on my pc and OpenCode generated second smallest amount of token (but not by much ) - Pi was first. Grok was last with 6x amount compare to rest :] I would say, Pi and Open code are default and it is up to user if they want naked base or harness with some elements on it.

6

u/TheIncarnated 4h ago

I have 5 opencode agents in web-server mode with my own plugins sitting on my Mac Studio at home, each doing a specific context, so no mixing of context.

When I leaned into customizing OpenCode in more of a cowork fashion (web mode), I can't find any harness that compares. I'm really impressed with v2

6

u/rudidit09 7h ago

ah thank you, I'll check out open code again. while I like pi, it's nice to have a complete solution, and open code has mobile app too

3

u/inexorable_stratagem 7h ago

pi can be used from mobile phones and web browser remotely via Paseo

5

u/eli_pizza 7h ago

Or like a dozen other extensions. There isn’t much that pi + extension can’t do.

3

u/eli_pizza 7h ago

It’s also better for people who like to tinker. Which is a lot of the people interested in local.

-7

u/CommercialHour6660 6h ago

OpenCode is shit. They had to rebuild it cuz the first was vibe coded trash. The new one is still shit

2

u/Ylsid 45m ago

They downvoted him for speaking the truth

2

u/CommercialHour6660 40m ago

No idea why people here circle jerk OpenCode and other slop piles around here. 

If any of them looked at the code for these harnesses, they would stick to Pi and Codex. 

2

u/Ylsid 37m ago

I feel like people conflate the great value Opencode Go with the harness 

2

u/JurandM2 4h ago

I spend so many years on windows, that I got used to work with shit :]

Hopefully in the future (once you give OC one more try) it will be better experience for you. Are you using Pi or something else?

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

6

u/V0dros llama.cpp 5h ago edited 5h ago

Do you find Pi to be better than OpenCode (especially v2) ootb or are there plugins you can't live without?

Is there a concept of Pi "distributions"--opinionated sets of plugins and configs that make the experience better?

EDIT: Just came across OMP and LazyPi.

5

u/zxspectrun 5h ago

From my own specific experience:

Yes it is better because on PI you set it up the way you want and it has advantages, that means PI barely use prefill context, it is very efficient with any context limit.

At the beginning I thought I would spend more time setting it up but I was wrong.

I tried Open Claw first with 2 weeks setting it up, then OpenCode, then hermes, the last one being the worst of all, lost 2 months trying to get it the way I wanted.

And then switched to PI, installed the MCPs, plugins and extensions that I needed and set it up the way I need it and that is it

1

u/MrRoyce 1h ago

Please, if you have a few minutes, can you just write anything useful so I can start researching and digging into it more so I can look into setting it up for my single RTX 3090? I've been using Strata so far but I'd like to try other things and it's really hard to find something decent since there are so many options.

Like, any version of Pi or something that you can share, any MCP you can think of etc. Not expecting a full on report and detailed review, just something to get me started. Thank you in advance!

3

u/rm-rf-rm 54m ago

you dont need pi-mcp-adapter anymore, they natively support MCPs

1

u/zxspectrun 50m ago

Thanks!

2

u/Borkato 4h ago

You mean dumb for not doing it earlier? Lol

2

u/zxspectrun 4h ago

bajajaj yes, I am working on a project right now while replying quick

2

u/Familiar_Cap_6451 4h ago

Thanks for the link to pi-web - looks pretty nice!

1

u/HanzJWermhat 4h ago

Interesting I switched from Pi to Hermes and felt a lot better. Maybe the community or PI has improved in the past 3 months.

1

u/MmmmMorphine 33m ago

Oh man, that billion-context one looks really interesting. Exactly what I was looking for though!

Though the web ui options still all seem kinda barebones. Though maybe I just haven't gotten the hang of using a remote/headless home server...

Are pi and omp/lazypi plugins/extensions usually mutually compatible? I kind of would assume they are, since I thought the omp and variants were just pi with stuff pre-installed, but I've been unpleasantly surprised before

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.

26

u/owenwp 6h ago

Openclaw is pi, just with some automation and extra prompting.

6

u/CobbleBeans llama.cpp 4h ago

but other harnesses such as hermes can do what openclaw does much better and more reliably. last time i had cheeked openclaw had turned into a buggy vibe codded mess.

1

u/Familiar_Cap_6451 4h ago

Is this still the case or have later versions moved to codex given the alignment with OpenAI?

11

u/moody2shoes 8h ago

Same with model downloads. There needs to be a rolling window of time for top downloads per category

4

u/zxspectrun 5h ago

This one is the more needed topboard, I personally suffer a lot trying to get a good writing and creative model because people only recommend qwen and qwen but this models are garbage on this category

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.

2

u/Grandmaster_Caladrel 3h ago

My boss feels the same way and loves Oh My Pi for that reason. I prefer Pi, which is the root at the end of the day. Picking something built on top of Pi can still be better than picking a different harness.

1

u/rm-rf-rm 53m ago

1

u/Grandmaster_Caladrel 46m ago

Isn't this the post where people were making a big deal out of it "sending data to a third party" when it was using a search provider...for search? Not too much you can do if you're trying to search the Internet, the data has to go somewhere.

Happy to learn otherwise but it seemed like a lot of hooplah.

ETA: Reading again, the concern looks like it was a sponsor of OMP, so that's more sketchy, but realistically it has to be someone if not them.

1

u/rm-rf-rm 28m ago

yeah. For me the big tell/red flag was that a) they werent public/transparent about this b) they tried to hide it/dismiss it when pointed out. It clearly shows what their priorities are - hint: its not the users/product.

1

u/Waarheid 5h ago

I luckily have a cloud model subscription too, so a frontier model shapes my barebones Pi into exactly what I want, on demand. It's a lot easier to do that with Pi than with something already built up, but of course you want a nice big smart and fast model to do that for you.

1

u/nowherenoonenobody 6h ago

What do you need that it doesn't offer?

12

u/arcanemachined 6h ago

Not OP, but: Permissions, subagents, web search, etc.

There are some very basic features that it doesn't offer. I'm Pi-first and have made my own solutions to these, but using Pi either involves reinventing a lot of wheels, or hoping the extension you install meets an acceptable bar of quality.

7

u/nowherenoonenobody 6h ago

Fair enough. The sub agents extension is phenomenal though. FYI.

4

u/xsilas43 6h ago

As is every other harnesses.

3

u/nowherenoonenobody 6h ago

You'd think that but because its an extension it has more control.

  1. For what you have on the harness itself.
  2. Because extensions are developed individually they become more powerful and you don't have to wait for the whole project to be updated, they just update the extension.

This can also be a drawback, but so far it's been amazing.

-1

u/xsilas43 6h ago

DSH does the exact same thing. There may have been a time where what pi had was unique but its long passed.

1

u/HanzJWermhat 4h ago

Web search is really the biggest thing PI lacks for me. I hate having to switch back and forth to the browser

1

u/Melodic-Clue9555 2h ago

The official web search plugin and free tier of tinyfish work really well

1

u/rm-rf-rm 50m ago

official web search plugin

?? Link?

1

u/arcanemachined 1h ago

Can I share my web search extension with you? It works out of the box with DDG and allows you to add a Brave API key (up to 1000 queries per month on their free tier) for Brave search as well.

https://github.com/arcanemachine/pi-web-search

1

u/Sudden-Echo-8976 1h ago

pi-webaio

You just gotta install a plugin lol..

1

u/HanzJWermhat 1h ago

Oh yeah let me just sort through the 30,000 to find the handful of useful ones

1

u/nowherenoonenobody 44m ago

Or you could use ai?

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

2

u/my_name_isnt_clever 1h ago

What's the actual advantage of no JS harness? I dislike JS, but now it doesn't matter much beacause I never write a line of it, the LLM does. I'd prefer Rust personally, but that doesn't really work with a live-reload plugin system.

15

u/wgaca2 8h ago

Deepseek is what i prefer nowadays

10

u/brainExploded99 🥔 hardware 8h ago

DSH and Pi make the most sense imo since you can modify them easily

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/JurandM2 2h ago

by 10%, but then it is able to solve 10% more hard tasks. If I get package that I do not need tinker with and just do my stuff, I prefer that. (Screenshot from ToolEval benchmark - same model, full test, 3x (except grok that ate so many tokens and took so long, I just remove it right away after first benchmark run )

2

u/ProtectionFar4563 8h ago

Serious question: where can I read more?

I love the OC UI, but a reason like this could make me switch for sure.

4

u/dgibbons0 7h ago

Mario talks through it here, he was using OC before creating pi harness https://www.youtube.com/watch?v=RjfbvDXpFls

Some of that criticism might be different now since it's been a while but the concept of why and how he designed pi was compelling

1

u/d0pe-asaurus 7h ago

That was a nice video to watch

4

u/tyras_ 7h ago

You can just run a simple prompt on both. I tested it and for random prompts pi used less tokens on average. I find OpenCode cli a bit more smooth on the edges though.

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

3

u/BlackDragonBE 8h ago

Better than everything else? Why?

4

u/retardedGeek 8h ago

better than v1, I meant. And better for most people because it doesn't need much configuration

0

u/Frizzy-MacDrizzle 7h ago

OC crapped on the model and removed code. Thank you git.

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).

1

u/my_name_isnt_clever 1h ago

too much overhead for something I might need instead of only what I need

This pretty much sums up why I prefer Pi, the core agent foundation is handled by someone else, not my problem, it just works. But almost everything above that is custom build for the harness, by the harness. I have a couple third party extensions such as pi-vcc, but I mostly create my own so they work exactly how I want them too. Plus they don't change out from under me.

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/Sudden-Echo-8976 1h ago

Hahaha. This sub is a bunch of temporarily embarrassed RAM/VRAM billionaires.

1

u/philmarcracken 4h ago

I use local only~ i swear. and switch between pi and late cli.

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/my_name_isnt_clever 1h ago

Do you have anything at all to back up that connection?

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

7

u/TheRealJesus2 8h ago

May I ask why? 

I find it hella bloated but a lot of that bloat is for artifacts which are useful for lots of types of work. But I’m curious what about it makes you choose it over other options. 

PSA, Claude steals your Git email when you are not logged in. In case anyone reading this has privacy concerns using “closed source” harness. 

2

u/EitherMarch1255 7h ago

It seems to work better in my experience. My guess, if true, is that distillation is the primary reason. Think about it, Claude is trained to run with Claude code by Anthropic, so if they are distilling from that, it’s likely that comfort with Claude code is going to creep into the model they’re training. I didn’t know about the Git thing, but it doesn’t apply to me because I’m using a slightly customized decompiled version.

1

u/TheRealJesus2 6h ago

I understand your point and do believe the best harness is one built for the model you drive it with…that said…anthropic is bad at software dev and they make bad decisions around putting stuff in Claude code. Example: the instructions around not copying games is in your context all the time. They do this on everything hence why it’s 20k+ tokens to say hello. 

Using your own version is smart and I can get behind that. I was sick of them breaking their tools overnight every few weeks and haven’t touched Claude code in 4+ months now. 

1

u/selicos 5h ago

How does this do linking only to local models and with no subscription or keys back to cloud, Claude or otherwise? Last time I downloaded Claude I had to sign in or subscribe, I think, with no direct way to use it outside that paid system.

1

u/EitherMarch1255 5h ago

There is, and you're clanker can easily make it work. I use a decompiled version, but that isn't really necessary. It works great BTW.

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!

1

u/Xonzo 5h ago

BeOS…. I haven’t heard that name in a long time lol. I still remember using it.

0

u/Borilentz 5h ago

Yeah, I remember BeOS 4 was a thing and reviewed in c't Magazine in '98. A few years earlier OS/2 Warp was heavily marketed. Technically there have always been better alternatives for Windows.

1

u/Waarheid 5h ago

I thought I would install a loonix partition when AI got my PC, but with wsl I really don't feel a need. Of course maybe I would get better speeds and community discussions would be more relevant to me if I was on linux, but also... I can have a frontier model help me with my exact set up on Windows. I don't like Windows and have been on Linux for 15 years, but it's a shared machine primarily for gaming.

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. 

2

u/SIMMORSAL 8h ago

Why the down votes? Can someone explain?

2

u/CommercialHour6660 6h ago

This sub is filled with vibing regards IMO

1

u/my_name_isnt_clever 1h ago

I don't care if it's open source, I'm not using "Open"AI's software.

2

u/jeff_coleman 7h ago

You can use bubblewrap with pi.