Hacker News new | ask | show | jobs
by colinmarc 70 days ago
Pi is a coding agent harness, like Claude Code, but significantly better and more elegant. Here is a good post describing it: https://lucumr.pocoo.org/2026/1/31/pi/

I switched a few months ago and have not looked back. Unfortunately Anthropic blocked access from Claude Subscription users today, but that's a different story.

7 comments

I've been using oh-my-pi, for the simple (and possibly naive/stubborn) reason that it doesn't try to get me to install it as global npm dependency in /usr.

I am not a web developer, I don't need npm and I don't want it clobbering my /usr (which is immutable on many modern distro's anyway). Doesn't exactly inspire confidence in the project to me.

oh-my-pi's installer installs a bun bundled binary in my users .local folder. That's much more user-friendly.

You can get npm to install into `~/.local`.

Put this into `~/.npmrc`:

```

prefix = ~/.local

```

Bam, `npm install -g` contstrained to your `~/.local`

They're friendly for the user audience that doesn't care about these things. The location is a minor issue compared to many of the capabilities they come with. For the slightly more tech savvy, they should really be running these harnesses in a contained environment with net cap dropped, for instance.
You can add that via an extension: https://github.com/carderne/pi-sandbox

The price of flexibility is, pi is not opinionated about adding sandboxing out-of-the-box, it gives you options on how you want to do it. You either do it with linux containers, with a dedicated VM, or just bubblewrap. It is nice that it gives you a way to hook into it in a very easy way though.

I use mise to install it in a manageadble way (and basically everything else on my computer).
pnpm installs to ~/.local as well
I switched about a month ago, looked back once for about 10 minutes and decided I'm officially done w CC. I didn't realize what a dull knife CC is until I tried a really sharp one, and that's Pi.
Can you elaborate? I want a maximalist setup. I like that CC and Codex are maximalist. If I install Pi, I am going to end up using oh-my-pi and installing a trillion plugins to get a Claude Code-like experience (or better/more feature-heavy). Is there any point in me even trying Pi, or should I just stick with Claude Code?
> I want a maximalist setup.

> Is there any point in me even trying Pi, or should I just stick with Claude Code?

I'd say stick with Claude Code. I'm a minimalist and hate everything about Claude Code!

Sorry I'm late but stick with CC. I introduced a coworker to Pi and spent most of the morning feeling like I should apologize for it not doing this or that out of the box.
Makes sense
> significantly better and more elegant.

Can you please give us concrete reasons that make Pi better than Claude Code for you? And what model are you using for it since Claude is not available.

> Can you please give us concrete reasons that make Pi better than Claude Code for you?

I'm not the person you're replying to, but I value good architecture and elegance for aesthetic and maintainability reasons, the MIT license for future-proofness.

Claude Code has been steadily getting worse, it's a steaming pile of vibe-coded bloat and I don't foresee good future for the CC agent. Why would I use it?

There are many people who choose their tools using more criteria than just "how good is the immediate output now".

I don't know much about the factors that determine why one AI coding harness is better than others. Is it system prompts? Or just personal preference in terms of the UX and there isn't actually a better output between using CC or Pi?

So what makes Pi better than CC? Is it better than OpenCode?

My experience with harnesses is entirely about UX, personally. You could just use an LLM directly and pipe its output directly into your source files, but that would produce terrible results in practice. Harnesses / agents are just better versions of “curl https://llm.com > source.{py/js/cpp/etc}”, imo

Long term I’m bullish on an open source harness “winning” the foot race, in a similar way that Linux “won” over Windows and MacOS (that is, debatably)

There's a recentish YouTube talk when he introduces the concept and contrasts against those.

My (oversimplified) summary: it's like vim versus an IDE. Good for tinkerers and obsessives who like small, sharp and customisable tools.

> vim versus an IDE is exactly how I describe it to some of my coworkers who are old enough to have used vim.
CC is a steaming pile of vibe-coded bloat. If that rocks your boat, go knock yourself out.

Is it better than OpenCode? It's certainly much smaller and doesn't have a client-server architecture - already that is a big win.

You mention the client-server architecture of opencode. Is that a local server or is it calling home to opencode servers?

One of the ideas I like about opencode is the ability to prompt and such from a web browser. So I'm curious if that is the client-server architecture you are talking about, or if it's something else.

For reference, I used replit for some vibe-ish coding for a little bit and really liked that I could easily prompt and view output on my phone when hanging out away from my computer. Or while waiting at the airport for example.

(RIP OG replit by the way. They've pretty much completely pivoted from a REPL to AI, which is pretty hilarious to me given the company name xD)

> One of the ideas I like about opencode is the ability to prompt and such from a web browser. So I'm curious if that is the client-server architecture you are talking about, or if it's something else.

Yes, this is what I meant. And yes it's ok that you like this about opencode :)

> For reference, I used replit for some vibe-ish coding for a little bit and really liked that I could easily prompt and view output on my phone when hanging out away from my computer. Or while waiting at the airport for example.

I use Google Jules and also appreciate being able to nudge it forward when not at the computer. In general I often appreciate when things run on other people's machines. However, if I'm to run a thing on my machines, it better be minimalist!

OpenCode is pretty terrible imo. Not very privacy minded.
I've been considering playing around with opencode. Can you expand on what you mean by this?
The harness or the tool is ok but all the defaults as part of the paid pieces of the tool have really bad privacy decisions. So they offer Zen as a pay as you use credit system with access to the models they think work best with the harness. Their own stealth model in it along with a number of the leading new models are always-on sharing data for training purposes. They don’t make this immediately obvious either you have to click through links on their website to see the breakdown.

I am not usually super privacy minded but if you already made it nonobvious this is happening I don’t really trust the underlying tool.

https://opencode.ai/docs/zen/#privacy

Above is the link. The front page says your privacy is important and says they don’t do training on your data except for the following exceptions which links to this page. Then even their own model is training on your data except there is no opt out. So if you pay for zen and you select one of these models in the tool you have no clue it’s auto training on your data.

Gotcha, thanks. That is a bit sus
Which model are you using it with? I imagine it's bring your own model?
To what extent do you feel the harness contributes relative to the model?

To put another way, how much inferior can the model be with a superior harness to achieve a similar result?

Pi doesn't claim to get better results. It is conceptually simpler, smaller, and more transparent to the end user than most harnesses. It's as much about the things it doesn't do as about what it can do.
Significantly! See this recent post „Compare harnesses not models: Blitzy vs GPT-5.4 on SWE-Bench Pro” https://quesma.com/blog/verifying-blitzy-swe-bench-pro/
Now which is the best alternative?