logoalt Hacker News

Pi – A minimal terminal coding harness

562 pointsby kristianpaulyesterday at 9:53 PM281 commentsview on HN

Comments

CGamesPlaytoday at 3:28 AM

To me, the most interesting thing about Pi and the "claw" phenomenon is what it means for open source. It's becoming passé to ask for feature requests and even to submit PRs to open source repos. Instead of extensions you install, you download a skill file that tells a coding agent how to add a feature. The software stops being an artifact and starts being a living tool that isn't the same as anyone else's copy. I'm curious to see what tooling will emerge for collaborating with this new paradigm.

show 5 replies
rcarmoyesterday at 10:40 PM

My current fave harness. I've been using it to great effect, since it is self-extensible, and added support for it to https://github.com/rcarmo/vibes because it is so much faster than ACP.

show 4 replies
tmustiertoday at 12:38 AM

I haven’t met a single person who has tried pi for a few days and not made it their daily driver. Once you taste the freedom of being able to set up your tool exactly how you like, there’s really no going back.

and you can build cool stuff on top of it too!

show 2 replies
twstedtoday at 8:44 PM

I do not understand some of the comments here: openclaw uses pi.

It seems stange also that even Steinberger in his interviews is not giving pi the proper attribution.

solarkrafttoday at 11:08 AM

I happen to be somewhat familiar with OpenCode and am considering using it as a personal AI workspace (some chat & agentic behavior, not worrying about initiative behavior just yet, I’d try to DIY memory with local files and access to my notes) because it seems to have a decent ecosystem.

Pi appears to have a smaller, less “pre-made” ecosystem, but with more flexibility, enthusiasm and extensibility.

Is this correct? Should I look towards Pi over OpenCode? What are the UI options?

show 3 replies
chriswarbotoday at 1:21 AM

I've been using pi via the pi-coding-agent Emacs package, which uses its RPC mode to populate a pair of Markdown buffers (one for input, one for chat), which I find much nicer than the awful TUIs used by harnesses like gemini-cli (Emacs works perfectly well as a TUI too!).

The extensibility is really nice. It was easy to get it using my preferred issue tracker; and I've recently overridden the built-in `read` and `write` commands to use Emacs buffers instead. I'd like to override `edit` next, but haven't figured out an approach that would play to the strengths of LLMs (i.e. not matching exact text) and Emacs (maybe using tree-sitter queries for matches?). I also gave it a general-purpose `emacs_eval`, which it has used to browse documentation with EWW.

show 1 reply
reacharavindhtoday at 8:01 AM

I began with pi, and have been using oh-my-pi the last two weeks.

https://github.com/can1357/oh-my-pi

More of a batteries included version of pi.

show 2 replies
himata4113yesterday at 10:47 PM

Preconfigured PI: https://github.com/can1357/oh-my-pi

show 6 replies
_pdp_today at 11:53 AM

I still don't get why would you want to use a terminal app to code when you can do all of this through IDE extension which does the same except it is better integrated.

You can open a grid of windows inside vscode too and it comes back up exactly as it was on reload.

show 4 replies
mccoybyesterday at 11:26 PM

Pi has made all the right design choices. Shout out to Mario (and Armin the OG stan) — great taste shows itself.

show 1 reply
rahimnathwaniyesterday at 11:31 PM

Hugging Face now provides instructions for using local models in Pi:

https://x.com/victormustar/status/2026380984866710002

burembatoday at 6:23 AM

I spent 3 months adopting Codex and Claude Code SDKs only to realize they're just vendor lock-in and brittle. They're intended to be used as CLI so it's not programmable enough as a library. After digging into OpenClaw codebase, I can safely say that the most of its success comes from the underlying harness, pi agent.

pi plugins support adding hooks at every stage, from tool calls to compaction and let you customize the TUI UI as well. I use it for my multi-tenant Openclaw alternative https://github.com/lobu-ai/lobu

If you're building an agent, please don't use proprietary SDKs from model providers. Just stick to ai-sdk or pi agent.

show 4 replies
nacozarinatoday at 8:15 PM

too many things named ‘pi’, kmn

show 1 reply
jmorganyesterday at 10:33 PM

I've been using Pi day to day recently for simple, smaller tasks. It's a great harness for use with smaller parameter size models given the system prompt is quite a bit shorter vs Claude or Codex (and it uses a nice small set of tools by default).

show 1 reply
ge96yesterday at 10:55 PM

Is that an official term "coding harness"

Wondering if you wanted a similar interface (though a GUI not just CLI) where it's not for coding what would you call that?

Same idea cycle through models, ask question, drag-drop images, etc...

show 2 replies
arjieyesterday at 10:31 PM

Has anyone used an open coding agent in headless mode? I have a system cobbled together with exceptions going to a centralized system where I can then have each one pulled out and `claude -p`'d but I'd rather just integrate an open coding agent into the loop because it's less janky and then I'll have it try to fix the problem and propose a PR for me to review. If anyone else has used pi.dev or opencode or aider in this mode (completely non-interactive until the PR) I'd be curious to hear.

EDIT: Thank you to both responders. I'll just try the two options out then.

show 5 replies
cardernetoday at 11:16 AM

The people pushing oh-my-pi seem to have missed the point of pi... Downloading 200k+ lines of additional code seems completely against the philosophy of building up your harness, letting your agent self-improve, relying on code that you control.

If you want bags of features, rather clone oh-my-pi somewhere, and get your agent to bring in bits of it a time, checking, reviewing, customising as you go.

show 1 reply
infrusetyesterday at 10:46 PM

Note there is a fork oh-my-pi: https://github.com/can1357/oh-my-pi of https://blog.can.ac/2026/02/12/the-harness-problem/ fame. I use it as a daily driver but I also love pi.

elyasetoday at 12:22 AM

there is also pz a drop-in replacement for pi rewritten in Zig. 1.7MB static binary, 3ms startup, 1.4MB RAM idle. Find more at:

https://github.com/elyase/awesome-personal-ai-assistants?tab...

show 2 replies
gtirlonitoday at 1:43 AM

What's a coding harness? Claude Code is a "harness" and not a TUI?

show 2 replies
ianlpatersontoday at 4:04 AM

Coming from OpenClaw, it's pretty amazing how fast pi is, particularly paired with Qwen3 that dropped today. It's a magical time.

show 2 replies
mr_o47today at 9:49 AM

I recently discovered this via a YouTube video a few days ago

I really like the customization aspect of it and you can build tools on fly and even switch model mid session

There’s another project here called oh my pi has anyone here tried it

mongrelionyesterday at 11:24 PM

Pi ships with powerful defaults but skips features like sub-agents and plan mode

Does anyone have an idea as to why this would be a feature? don't you want to have a discussion with your agent to iron out the details before moving onto the implementation (build) phase?

In any case, looks cool :)

EDIT 1: Formatting EDIT 2: Thanks everyone for your input. I was not aware of the extensibility model that pi had in mind or that you can also iterate your plan on a PLAN.md file. Very interesting approach. I'll have a look and give it a go.

show 4 replies
thepaschtoday at 9:11 AM

Stop advertising pi, people. It _somehow_ continued to fly somewhat under the radar after that whole OpenClaw nonsense. Don’t make Anthropic’s sic their bloodhounds on them like they did on OpenCode.

show 2 replies
muratsuyesterday at 11:53 PM

I’m working with a friend to build an ui around Pi to make it more user friendly for people who prefer to work with a gui (ala conductor). You can check out the repo: https://github.com/philipp-spiess/modern

show 1 reply
fred_tandemaiyesterday at 11:14 PM

Anyone managed to run pi in a completely sandboxed environment? It can only access the cwd and subdirectories

show 4 replies
type4today at 1:34 AM

What are people using to cost efficiently use this? I was using a Google Ultra sub which gave enough but that’s gone now.

ChatGPT $20/month is alright but I got locked out for a day after a couple hours. Considering the GitHub pro plus plan.

show 4 replies
ramozyesterday at 11:23 PM

The way you’re able to extend the harness through extension/hook architecture is really cool.

Eg some form of comprehensive planning/spec workflow is best modeled as an extension vs natively built in. And the extension still ends up feeling “native” in use

sheeruntoday at 10:35 AM

This domain must have costed $$$$

show 1 reply
isagawa-cotoday at 1:13 AM

Interesting approach to planning via extensions. I took a similar direction with enforcement. A governance loop that hooks into the agent's tool calls and blocks execution until protocol is followed. Every 10 actions (configurable), the agent re-centers. No permission popups, but the agent literally can't skip steps.

Open source: https://github.com/isagawa-co/isagawa-kernel

moonlion_ethtoday at 2:27 AM

ive been using pi for about a week as daily driver and so far im happy with it. I really like the modular concept and also that its rather minimal

bankombinatortoday at 3:03 PM

Mario mentioned in hackernews.

20022026today at 3:36 AM

Anyone tried pi with 5.3-codex vs codex cli?

show 1 reply
suralindyesterday at 11:39 PM

I’ve been testing it for a few days on pretty much clean install (no customizations/extensions) and it’s ok. Not sure if I like it yet.

alabhyajindaltoday at 12:08 PM

I am also going to now implement an existing project and invent a different name for it. Look out for Waterfox, a minimal web consumer.

squeeferstoday at 4:20 PM

minimal indeed. why are we regressing back to terminals now? ive seen this in the rust world mainly

show 2 replies
lukasbyesterday at 11:35 PM

But I can't use my Codex plan with it, right? I have to use an API key?

show 2 replies
rglovertoday at 2:33 AM

Excited to give this a try, looks really well done.

qazplm17today at 2:23 AM

Pi treats you like an adult and shows whatever the fuck LLM is doing rather than actively hiding shit from the user. And just for that, once you tasted the freedom and transparency, there’s no way to go back to CC.

show 2 replies
TacticalCodertoday at 3:45 AM

Naming skills though...

mobrienvtoday at 2:30 AM

Another batteries included pi setup. Built a lightweight mobile webui to run it on termux and code on my phone.

https://github.com/mikeyobrien/rho

raffkedetoday at 10:16 AM

it even runs inside a browser I'll publish my browserpi if someone is interested I did not dare to add a pull request with my slop but i would love to show the fork and create a pull request if there is broader interest

fnord77today at 3:21 AM

I mean using the captive agents is much cheaper than supplying your api key to a 3rd party agent.

agentwyzyesterday at 11:38 PM

[dead]

prakashrjyesterday at 11:13 PM

[dead]

TZubiritoday at 2:35 AM

Wtf is that example gif?

The prompt shown is

"Who's your daddy and what does he do?"

Is this a joke or tech? Is the author a dev or a clown?

show 2 replies
cyanydeezyesterday at 10:27 PM

The backing to OpenClaw/MoltBot whatever they're calling themselves. Why is it insecure, well, Pi tells you >No permission popups.

Anyway, even if you give your agent permission, there's no secure way to know whether what they're asking to is what they'll actually do, etc.

show 2 replies
cermicelliyesterday at 10:30 PM

Just how expensive was that domain?

show 2 replies

🔗 View 1 more comment