Skip to content

AI tools · coding agent harness

Pi coding agent

Hacker Approved

A minimal coding agent harness that works with many models, uses fewer tokens and is easy to extend, though basics like subagents are missing and it has no sandboxing.

Summarized from 1796 comments.

A minimal coding agent harness that works with many models, uses fewer tokens and is easy to extend, though basics like subagents are missing and it has no sandboxing.

recommend
892
criticize
198
months recommended
12 of 13
median owned, 51 owners said
0.25 years

Why people love it

  • Minimal and highly customizable · 9

    It's a pleasure to work with, and so far it's been my experience that if pi doesn't behave the way I want, it's pretty easy to modify to suit my needs.

    Jul 2026 · comment

    Using pi with tons of custom extensions, that to be fair I developed since making the jump off of codex and claude about 12 weeks ago.

    Sep 2026 · comment

    plugins for executables suck compared to "just create a .ts file in this directory and edit/test it in a few seconds until satisfied"

    Oct 2026 · comment
  • Small prompt saves tokens · 6

    Claude code includes a large system prompt with every request while tool like pi does not. This could save tokens resulting in lower costs.

    Feb 2026 · comment

    It would be fairer to compare K3 using the same generic harness, such as a Pi setup with some sane extensions for token optimisation.

    Jul 2026 · comment

    Pi’s minimal system prompt avoids contradiction between what the harness writer thinks is best and what the user thinks is best.

    Sep 2026 · comment
  • Works well across many models · 6

    I switched to Pi and chinese open source models, and models that _I know_ are less capable than sonnet outperform my sonnet + claude code stack at work.

    Jun 2026 · comment

    Since models are being released every few weeks this is interesting to compare models without having to switch to a different harness.

    Feb 2026 · comment

    As models get better they will get better at using any harness, it comes down to how well the harness is actually engineered.

    May 2026 · comment
  • Easy to write extensions · 4

    It seems pretty well done: when I added permission requests to the `bash` tool, the "Are you sure y/N" requests started appearing just like they were native to Emacs.

    Feb 2026 · comment

    The most interesting thing for me is that I built an extension for Pi that has it recognize when it does not know how to do something

    Feb 2026 · comment

    plugins for executables suck compared to "just create a .ts file in this directory and edit/test it in a few seconds until satisfied"

    Oct 2026 · comment

What people warn about

  • Requires lots of tinkering · 3

    if you like spending your time tweaking and customizing the tool itself rather than doing the work, it will be the perfect match

    Nov 2026 · comment

    Meanwhile, you wasted those tokens and time that could have been spent building actual, useful software instead of hobby tinkering your harness.

    May 2026 · comment

    I don't want to spend 2 hours prompting, configuring and fixing features that I need which are standard in every other harness.

    Aug 2026 · comment
  • Missing built-in basic features · 3

    I don't want to spend 2 hours prompting, configuring and fixing features that I need which are standard in every other harness.

    Aug 2026 · comment

    having said that, i find it annoying and not empowering that basic things like subagents and web search aren't built in

    Oct 2026 · comment

    Pi doesn't have a UI like Claude Desktop. It also doesn't work with the Claude subscription, only API key and pricing.

    Aug 2026 · comment
  • No sandboxing or security · 2

    But pi doesn't have security. Pi is full yolo, it's on the user to run it in an environment that minimizes the blast radius

    Sep 2026 · comment

    it went out of the app directory it started in, and made code edits to a sibling directory in a different git project repo

    Aug 2026 · comment
  • Context overflow problems · 2

    struggling with local AI in Pi to even get small (500-1000 lines of code) programs written without overrunning a 220k context

    Jul 2026 · comment

    It choked at some point and stopped responding (probably a context overflow before pi-coding-agent could compact it).

    May 2026 · comment

What hackers pick instead

Every quote

The 40 most detailed of 1796 comments. Each links to the original.

  1. It seems pretty well done: when I added permission requests to the `bash` tool, the "Are you sure y/N" requests started appearing just like they were native to Emacs.

    Recommends · Feb 2026 · in “Pi – a minimal terminal coding harness”

  2. I switched to Pi and chinese open source models, and models that _I know_ are less capable than sonnet outperform my sonnet + claude code stack at work.

    Recommends · Jun 2026 · in “GLM-5.2 is the new leading open weights model on Artificial Analysis”

  3. It's a pleasure to work with, and so far it's been my experience that if pi doesn't behave the way I want, it's pretty easy to modify to suit my needs.

    Recommends · Jul 2026 · in “Anthropic's Method to Losing Goodwill in a Few Easy Steps”

  4. Claude code includes a large system prompt with every request while tool like pi does not. This could save tokens resulting in lower costs.

    Recommends · Feb 2026 · in “Pi – a minimal terminal coding harness”

  5. Since models are being released every few weeks this is interesting to compare models without having to switch to a different harness.

    Recommends · Feb 2026 · in “Pi – a minimal terminal coding harness”

  6. Using pi with tons of custom extensions, that to be fair I developed since making the jump off of codex and claude about 12 weeks ago.

    Recommends · Sep 2026 · in “Fable 5 – Median thinking declined in August”

  7. It would be fairer to compare K3 using the same generic harness, such as a Pi setup with some sane extensions for token optimisation.

    Recommends · Jul 2026 · in “Claude Opus 5”

  8. The most interesting thing for me is that I built an extension for Pi that has it recognize when it does not know how to do something

    Recommends · Feb 2026 · in “Kimi Claw”

  9. plugins for executables suck compared to "just create a .ts file in this directory and edit/test it in a few seconds until satisfied"

    Recommends · Oct 2026 · in “Pi 1.0”

  10. The minimalism comes from the user creating what they need instead of the maintainers trying to support everything for the users.

    Recommends · Oct 2026 · in “Pi 1.0”

  11. Pi’s minimal system prompt avoids contradiction between what the harness writer thinks is best and what the user thinks is best.

    Recommends · Sep 2026 · in “I-have-ADHD: A skill to stop coding agents from burying the answer”

  12. if you like spending your time tweaking and customizing the tool itself rather than doing the work, it will be the perfect match

    Mixed · Nov 2026 · in “Pi Is the Last Harness”

  13. reading somewhere that you get close to identical results as with the codex harness but for a significant hunk less token usage

    Recommends · Sep 2026 · in “Elevated errors for multiple models – Resolved”

  14. As models get better they will get better at using any harness, it comes down to how well the harness is actually engineered.

    Recommends · May 2026 · in “DeepSeek makes the V4 Pro price discount permanent”

  15. Pi's philosophy of being very light on features nut highly flexible for customization, clicked very well for the way I work.

    Recommends · Sep 2026 · in “You said no MCP”

  16. pi with Claude is as good as (even better! given the obvious care to context management in pi) as Claude Code with Claude.

    Recommends · Feb 2026 · in “Anthropic officially bans using subscription auth for third party use”

  17. It's fully open, fairly minimal, very extensible and (while getting very frequent updates) never has broken on me so far.

    Recommends · Mar 2026 · in “OpenCode – The open source AI coding agent”

  18. no difference in ability with a harness like pi agent compared to their native harnesses, pi was in fact cheaper per task

    Recommends · Sep 2026 · in “An empirical study of harness design for coding agents”

  19. Pi's goal is not to create a bloat builtin of tools most don't use but to allow the users to customize to fit their need

    Recommends · Jun 2026 · in “GLM 5.2 vs. Opus”

  20. It’s actually the only agent I could get Gemini 3 Flash and Pro to consistently use tools with without going into loops.

    Recommends · Jan 2026 · in “OpenClaw – Moltbot Renamed Again”

  21. Pi was a refreshing welcome to the OSS arena with thoughtful design to enable simplicity and ecosystem-based development

    Recommends · Oct 2026 · in “The Agent SDK”

  22. It’s exactly what you (I’m projecting) want out of Claude Code if you’re okay investing time into building your harness

    Recommends · Mar 2026 · in “Anthropic takes legal action against OpenCode”

  23. having said that, i find it annoying and not empowering that basic things like subagents and web search aren't built in

    Mixed · Oct 2026 · in “Pi 1.0”

  24. Pi doesn't have a UI like Claude Desktop. It also doesn't work with the Claude subscription, only API key and pricing.

    Mixed · Aug 2026 · in “What Is a Harness?”

  25. Meanwhile, you wasted those tokens and time that could have been spent building actual, useful software instead of hobby tinkering your harness.

    Criticizes · May 2026 · in “Building Pi with Pi”

  26. I don't want to spend 2 hours prompting, configuring and fixing features that I need which are standard in every other harness.

    Criticizes · Aug 2026 · in “Pi's Minimalism Is Its Advantage”

  27. struggling with local AI in Pi to even get small (500-1000 lines of code) programs written without overrunning a 220k context

    Criticizes · Jul 2026 · in “Kimi K3 is now live”

  28. But pi doesn't have security. Pi is full yolo, it's on the user to run it in an environment that minimizes the blast radius

    Criticizes · Sep 2026 · in “You said no MCP”

  29. it went out of the app directory it started in, and made code edits to a sibling directory in a different git project repo

    Criticizes · Aug 2026 · in “Pi's Minimalism Is Its Advantage”

  30. It choked at some point and stopped responding (probably a context overflow before pi-coding-agent could compact it).

    Criticizes · May 2026 · in “Usage-based pricing killing your vibe, here's how to roll your own local AI”

  31. Its really fantastic. I can't imagine why you'd go through the effort using Claude Code with other models when pi is a much better harness.

    Recommends · Apr 2026 · in “Reallocating $100/Month Claude Code Spend to Zed and OpenRouter”

  32. Pi has probably the best architecture and being written in Javascript it is well positioned to use the browser sandbox architecture

    Recommends · Feb 2026 · in “What I learned building an opinionated and minimal coding agent”

  33. I've run sessions in hax where it hit that cap multiple times and compressed the context down to 15% and continued with no problem.

    Recommends · Oct 2026 · in “Pi 1.0”

  34. harneses are simple loops, in theory should take very little memory even if written in python or typescript. See for e.g. pi agent

    Recommends · Aug 2026 · in “Show HN: Ante, a coding agent in a single binary that runs offline”

  35. Pi is a composition of libraries that can be used to build agents. That seems far more interesting than this “minimal” agent.

    Recommends · Aug 2026 · in “fx :Tiny, open, native coding agent.”

  36. What I like about pi is that, using proprietary harnesses to begin with, I already somewhat know what kind of features I use

    Recommends · Oct 2026 · in “Pi 1.0”

  37. I really noticed it when trying some of the openclaw clones which try to be smaller in binary size and end up not using pi.

    Recommends · Feb 2026 · in “OpenClaw, OpenAI and the Future”

  38. I'm using pi and cc locally in a docker container connected to a local llama.cpp so the whole agentic loop is 100% offline.

    Recommends · Apr 2026 · in “Claude Code Unpacked : A visual guide”

  39. The interaction and permissions harness is an order of magnitude better than Claude in my experience, just out of the box.

    Recommends · Jul 2026 · in “I Built a Telegram Client for Pi”

  40. I use pi and built a harness for just an llm that calls a bunch of tools. That got me 50% of the way and it would be fast.

    Recommends · Aug 2026 · in “AI Engineer Notebooks – free, framework-free RAG/agents/evals on Colab”

Counts from 1,795,640 Hacker News comments, Nov 2025 to Nov 2026. How we count · Report a mistake