r/PiCodingAgent • • Oct 14 '26

Use-case Turn your agent sessions into evals. Mine found a 2× cheaper setup (codex->pi-agent)

Thumbnail ibragim.dev
17 Upvotes

Hi everyone! I’ve shared a couple of posts here comparing models on my own coding tasks, including this one. A few people asked in the comments how to build their own evals, so I wrote a step-by-step tutorial and published it on my blog.

I also made an evals-from-sessions skill to help automate the process. You can use it or just give your coding agent the article and ask it to help build evals from your session history.

Hopefully, this helps you choose models and tools for your own work or your team. Feel free to post your questions and feedback!


r/PiCodingAgent • • Sep 25 '26

Question Whats the best option for using Anthropic subscription with Pi ?

17 Upvotes

I know there are many options out there, but this is still a grey area right? What are you guys using?

Do you know anyone who has been banned by doing something like this? I have a bunch of friends who use omp with their subscriptions and are still kicking.

I really want to move from CC to pi, but I am not able to run local models due to my hardware limitations and I would love to start by using my Anthropic subscription.


r/PiCodingAgent • • Sep 22 '26

Question Anybody using a workflow engine to automate their software factory?

17 Upvotes

TL;DR: Anybody automating a full development Pi workflow with programmatic non-AI solutions?

Up until now, I've attempted to partially automate the entire software development lifecyle with Pi, aka a "Software Factory". I am using a subagents extension, but it feels a bit too loose, opaque and difficult to steer, so I want to use something more deterministic and directly controllable.

I'm evaluating a workflow DAG GUI builder that orchestrates the entire process. I am using one that also has a CLI and REST API, so I can write my own scripts for even more programmatic control.

(I do not want to look like I'm promoting so I'm reluctant to say what I'm using, but it's lightweight and similar to n8n or airflow.)

Or instead, I could just write my own orchestrator, like this in bash:

#!/bin/bash
set -eu

# Software Factory.
# This is a just an untested workflow example, not something I'd actually use.
# A TS script with the Pi SDK would be better.

GOAL="$*"
pi -p /write-spec "$GOAL" | tee spec.md
vim spec.md    # review and edit

pi -p /write-tickets-for-spec @spec.md ./tickets/
vim ./tickets/*.md

for ticket in tickets/*.md; do
    pi -p /write-plan "@${ticket}" | tee /tmp/plan.md
    pi -p /execute-plan @/tmp/plan.md
    pi -p --continue /quick-code-review-and-fix
done
pi -p $REVIEW_MODEL /code-review

Anybody doing using a workflow DAG editor UI?

Anybody writing their software factory with actual code, like my example?

I found some AI agent DAG projects on github. Anybody using something like that?

What subreddits should I cross post this to?


r/PiCodingAgent • • Sep 16 '26

Plugin blink1-pi: a physical status light for Pi

Thumbnail
gallery
17 Upvotes

blink1-pi turns a ThingM blink(1) into a configurable Pi lifecycle light: idle, working, waiting for input, and error. Async subagents keep the normal working indication active.

Package: https://pi.dev/packages/blink1-pi
Install: pi install npm:blink1-pi

Inspired by u/azuul_maar's ProgrammerHumor post: https://www.reddit.com/r/ProgrammerHumor/s/WwViabA9eV


r/PiCodingAgent • • Sep 11 '26

Resource I spent two months building a desktop environment around Pi — it hit 2.6k GitHub stars this week

17 Upvotes

've been using Pi as the agent core for my own workflow, and I really like its philosophy: keep the core small and make everything else extensible.

The only problem was that after using it every day, I started missing a lot of things I normally expect from a desktop development environment.

Things like persistent sessions, switching between projects, seeing what subagents are doing, changing models without rebuilding my setup, recovering tasks after a crash, managing MCP/Skills, etc.

Eventually I stopped patching my own workflow and just built a desktop app around Pi.

It's called PI-Desktop, and it's open source:

https://github.com/vastsa/PI-Desktop

It's built on pi-ai + pi-agent-core, rather than implementing another agent loop from scratch.

My mental model for the project is basically:

Pi = agent harness
PI-Desktop = workspace / product layer

The app currently has sessions, project workspaces, subagent visualization, multiple model providers, local model support, MCP, Skills, session import from Claude Code/Codex/OpenCode/Pi, and a plugin system.

The plugin system is the direction I'm most excited about. Plugins can add Agent Tools, Skills, MCP servers, UI panels, themes, commands, background services, and communicate with each other.

I released it publicly this week after using it myself for a couple of months. Somehow it ended up on GitHub Trending and passed 2.6k stars, which I definitely wasn't expecting.

Since this is probably the community that understands Pi's design philosophy best, I'm especially curious:

If you use Pi every day, what parts of your workflow would you actually want a desktop layer to handle?


r/PiCodingAgent • • Sep 10 '26

Resource How (and why) so install a pi subagents extension

17 Upvotes

I used Pi for a while without these, but once I got used to subagents with other coding agtents. Well.. they really just felt missing from Pi.

I went with the tintinweb/pi-subagents package, because I liked how it implements the subagents. They are the same style as claude code, which I find very intuitive.

pi install npm:@tintinweb/pi-subagents

How to use subagents

pi-subagents lets Pi delegate work into separate contexts.

I use it for repo exploration, dependency checks, or any task that would otherwise fill my main context with thousands of lines of file listings and tool output.

e.g. after installing it you can open Pi in a repo and ask:

Use 4 different subagents to explore the src folder in parallel.
Bring their results back together into a short summary.

Pi sends the grunt work to isolated agents, then gives the main agent the useful result. This keep the main context clean.

You can also change which model each subagent type uses with /agents. And there's a pre-configured subagent specifically for exploration.

Side note - there's a gotcha with the default explore subagent- uses haiku by default. Super weird because I was using gpt-5.6-terra and I assumed it would use that, but in fact it started using my opencode api tokens with haiku. I was able to configure it to use gpt-5.6-luna. Here's a video of how I did that if you need it: https://youtu.be/l3YCoX2i-78?t=540

The other missing feature of Pi

Is... MCP. Obviously. I also upgraded my Pi with an MCP extension while I was at it. It's just one of those things. I can get like 98% of the way there with agent skills. But once in a while I just need an MCP for something.

If you want to read more about my experience installing and testing the subagents and MCP extensions then you can check out my blog post:

https://zazencodes.com/blog/upgrade-your-pi-agent-with-subagents-mcp

Enjoy guys and if you're still reading this then I'd be curious what extensions you like most. Let me know. Now that I've got a taste for these I want more


r/PiCodingAgent • • Sep 09 '26

Plugin Just shipped pi-undo-tree 🌲

Thumbnail
github.com
17 Upvotes

An Emacs-style visual undo tree for Pi session branching: explore the 2D tree, preview diffs, switch branches, and jump back to any point in a conversation.

pi install npm:pi-undo-tree


r/PiCodingAgent • • Aug 18 '26

Question Future of open source harness like Pi, in the war of closed ecosystems

17 Upvotes

I love Pi, period.

Problem: after the recent DS pricing changes and fall of opencode -> i have to sub GPT plus -> sooner or later, im afraid that OpenAI will follow Anthropic to block other than Codex for sub plans.

This left the title question: Does opensource harness like Pi safe for the future? Enjoying sub plan with more generous tokens from providers, or we have to rely on local llms? or we have to accept higher API pay-as-you-go pricing?

thanks!


r/PiCodingAgent • • Aug 09 '26

Question Workflow for coding with pi agent

17 Upvotes

Hi everyone, I’m new to pi agent and to AI tools in general, but I’m on vacation so I finally have time to learn this stuff properly. I’d like to set up a workflow like this, let me know if it makes sense.

- I open a new tmux session for my project and start pi.
- I chat with a planner to figure out a change or a new feature.
- Once the plan is ready, I tell it to implement it, and it spawns a new pi agent in another tmux window that creates a new git branch and starts coding.
- When the coder is done, it goes back to the planner and explains clearly what it changed.
- The planner sends this to a reviewer, who checks the work.
- If the reviewer finds problems, it goes back to the planner and the loop starts again with new instructions for the coder. If everything’s fine, the planner gives me a final summary.

I’d also like a TUI with more info about what pi is doing.
Nothing should run silently in the background, everything should happen in tmux windows I can check whenever I want.
If an agent crashes or stops without returning anything, it should restart automatically, so the whole thing is semi-automatic.
The agents need to be able to search the internet, use MCPs, and have their own memory per project, not a global one.
I’d like a config file for pi, one per project, that says which MCPs to use and other settings like that.
The planner and reviewer should only be able to read the code, only the coder should be able to write to it.

Does this workflow make sense or am I overcomplicating things? Any extensions you’d recommend? Can pi actually build small personal test projects on its own, start to finish? Thanks a lot.


r/PiCodingAgent • • Aug 07 '26

Question How do you use plan mode in Pi?

17 Upvotes

I recently read this (What I learned building an opinionated and minimal coding agent), and I agree with his argument. But sometimes I need a proper plan mode with tool restrictions.

I tried to build a plan mode extension, but it mostly causes cache misses when I exit the plan mode because it edits the context to remove the enforced strict-rule prompt while entering plan mode.

I'm curious about how you use plan mode and how it performs with caching. Do you use prompts, skills, or an extension?


r/PiCodingAgent • • Jul 28 '26

Plugin A way to let agents drop-in across Pi sessions

17 Upvotes

I have been working on porting some code recently. I use agents strictly as assistants. I have been thinking of a way to let them "drop in" on other sessions that I have going on when I am basically becoming the copy/paste monkey.

This is not an autonomous work group setup. You create the session and you give the agents a chance to jump in to the same session, ask a question, and then jump out. Your session continues as normal, and you can see everything as it's being processed.

What it does

When an agent session registers to the group, it registers ask_ tools for other published agents. When agents calls the tool:

  1. The request is forwarded to the target agent's session and injected as a user message.

  2. The target agent processes it just like any other user prompt. You see it appear in the input pane and watch the agent work through it.

  3. When the agent settles (finishes its turn), the assistant output is captured and sent back to the calling agent as the tool result.

The response is captured via pi's agent_settled event. It collects the assistant text from the turn that was just triggered by the injected message. This is fully automatic: the question arrives, the agent responds, the answer is returned. The human in the target session is a spectator.

Sessions stay independent. Each agent has its own context, its own sandbox directory, and its own conversation history. They are not one-shot subprocesses.

How it works

A daemon application (in Go) listens on a Unix socket. It routes request/response messages between connected agents. The daemon starts automatically the first time an agent registers, then shuts down when the last agent disconnects.

Compared to similar tools

Goose spawns sub-agents as one-shot executions. The orchestrator must pack enough context into the prompt that the sub-agent can produce a useful answer in a single fire-and-close call. AgentGroup keeps sessions persistent: the worker agent already knows the codebase, and you are in the loop to clarify intent.

Herdr is a TUI-layout tool ala Tmux, with the main agent spawning helper sessions in adjacent splits. AgentGroup avoids the extra UI layer entirely - sessions stay where you put them, and communication happens through the same input pane.

Old man yells at cloud.

Maybe this is just agentic control while I watch the screen flicker.

Does anyone else have this use case? Is there something widely available already?

Feedback / suggestions / clarifications all welcome.

Thanks all.

Edit:
pi-intercom exists and is great - I'll probably switch to this.
https://github.com/nicobailon/pi-intercom


r/PiCodingAgent • • Jul 22 '26

Use-case Gemma4 playtesting her own game in chrome using a remote debugging port so I can watch along

17 Upvotes

A few days ago, I created a dumb bash loop that repeatedly called pi, instructing gemma4:31b to create a game and delete WORKING.md when it was done.

I figured out how to make agent-browser connect to a chrome instance over a remote debugging port so I could watch along as it playtested the game in a new conversation, where it had no clue what the game was about.

It uses a playtesting skill that explains the mechanics of the game and tells it how to perform different actions.

I think this was pretty neat.


r/PiCodingAgent • • Jul 16 '26

Resource evalt: A Rust CLI for testing Pi agent workflows

17 Upvotes

I've been working on evalt, a Rust CLI for testing AI agent workflows using portable YAML eval files.

Most eval tools focus mainly on model outputs. evalt is designed to test the full workflow, including:

- Agent instructions

- Skills

- Tool usage

- Harness configuration

- Workspace edits

- Final output

Pi is currently the first supported harness.

It also supports deterministic assertions, AI reviewer assertions, JSON output, schemas, and sandboxed workspaces through cage.

Repo: https://github.com/Bryley/evalt

Crates.io: https://crates.io/crates/evalt

I’d appreciate feedback from Pi users, particularly around the eval format, useful assertions, and workflows you’d want supported.


r/PiCodingAgent • • Jul 16 '26

Plugin Pi File Injector

17 Upvotes

I noticed that even small files referenced in pi like `@file.txt` weren't automatically entered into the context (a la claude-code), instead requiring the model to issue a tool call to read the file. This is fine for larger files, but for small files, that extra tool call means a whole new request is sent, which racks up cache tokens pretty quickly and wastes output tokens on the read call.

I understand why the devs took this stance, for a tool like Pi it makes sense to default to never including file content (unless driven headless by the CLI, as they have implemented), but sometimes I *know* that I can save tokens by just injecting the file right into my prompt. In fact, many or even most times I reference a file it would take fewer tokens just to inject its contents into the prompt than it would to ask the model to read even a small part of the file.

I looked around for existing solutions and surprisingly I hadn't found anyone who built them yet.

So I built pi-file-injector. When you know you want to include the file contents, instead of `@file.txt` you type `#@file.txt` and it automatically includes the contents of that file one time at the end of your prompt. And tab filename completion still works. It's just one more small way Pi keeps you in control of your token consumption.

https://github.com/dabstractor/pi-file-injector

pi install npm:pi-file-injector

Do you know of other tools that do this? I still can't believe I couldn't find any, it feels like such an obvious benefit. Let me know what you think!


r/PiCodingAgent • • Jul 14 '26

Plugin My Pi extension reached out! (kinda)

17 Upvotes

I built StarRouter for a personal use case in pi, I essentially wanted to be able to determine locally which model and thinking level should be used in a task based on their benchmarks like openrouter/auto kinda does but still letting the user be in control if they want, and while fixing bugs and adding features I noticed it had reached 3 GitHub stars (one was already there from a friend haha) and around 40 downloads on pi-dev.

That made me genuinely happy. For the first time, something I made outside of my day job as an ERP dev has been used by strangers and maybe some of them found it useful. On a very tiny, very different scale, it gave me a romantic glimpse of what people like antirez might have felt seeing Redis spread, or Linus watching Linux take on a life of its own.

Obviously the comparison ends there: the scale, impact, and my programming skills are nowhere near comparable and I'm gonna stop just on that. But the feeling of making something that then reaches another person is special and really is giving me a bigger reason to pursuing my passion in IT.

After all of that I want to more confidently say that if that sounds like something you would use or fork at your will feel free to check it out here ;]


r/PiCodingAgent • • Jun 16 '26

Use-case I made a /radio command for pi that streams radio.garden stations

17 Upvotes

I spend a lot of time in pi. So I wrote a small extension that streams [radio.garden](https://radio.garden) stations right in the terminal.

What it does:

- `/radio` opens an interactive menu

- `/radio random` picks a random station from somewhere in the world

- `/radio search jazz` searches stations by name

- `/radio location Tarragona` browses by city or country (12k+ places)

- `/radio stop` kills it

The current station shows in a sticky footer line, so you always know what's playing. Playback is just `mpv` or `ffplay` running as a managed background process.

The fun part was the radio.garden [API](https://jonasrmichel.github.io/radio-garden-openapi/). It's undocumented and sits behind Cloudflare, so you need a browser User-Agent and Referer header. After that it's three hops. Get the places list, get the channels for a place, then hit a `/listen/{id}/channel.mp3` endpoint that 302-redirects to the real stream. I half expected it to be locked down, but a random city gives you a working station in about a second.

Code is here: https://github.com/hheydaroff/pi-extensions/blob/main/radio-garden.ts

Requires `mpv` or `ffmpeg`. Drop it in `~/.pi/agent/extensions/` and run `/reload`. Open to feedback, and send me your favorite stations.


r/PiCodingAgent • • Jun 06 '26

News Introducing "pi-pizza" — a Pi Coding Agent Extension. 🍕

17 Upvotes

Borrowed the multi-provider orchestration idea from OmO (Oh My Opencode):

automatically picks cheap vs. powerful models depending on the nature of the request.

Simple tasks get routed to budget-friendly APIs, while complex backend/frontend work gets handed off to stronger models.

Also — I was jealous of Claude Code's cute mascot, so I added a potato Claude wearing a chef's hat to the startup screen. 🥔👨‍🍳

GitHub: github.com/parkjangwon/pi-pizza


r/PiCodingAgent • • May 22 '26

Question Cmux vs Warp for pi

17 Upvotes

Hello,

I'm debating using either Cmux or Warp with pi (and other agents). Does anyone have a preference between the two?

I like Cmux tab interface but it has no diff viewer or file tree, which are features that Warp has. however, I don't love the Warp interface, especially with their agents overlay.

Any thoughts?


r/PiCodingAgent • • May 19 '26

News pi-kb - compiles markdown documents into a structured, interlinked wiki

17 Upvotes

From the great mind of Andrej Karpathy, introducing pi-kb (https://github.com/dheerapat/pi-kb) the pi native way to compile document into personal knowledge base


r/PiCodingAgent • • May 17 '26

Plugin Piqo Extension: Interact with LLMs directly from your files, regardless of your editor. Triggers on save.

17 Upvotes

Hi guys,
I've grown frustrated by having hundreds of chat logs stored in many places (and losing them), so I wondered for a new "invisible" interface to llm agents (remote or local).

I created a very simple Pi extension which can run as a daemon and you can put it to watch any directory, in my case my Obsidian vault. Now wherever I tag `@piqo`, it replies to me inline, and its already saved.

I put more info/demo on the repo:

https://github.com/piqoni/piqo-extension


r/PiCodingAgent • • May 12 '26

Resource Built a Telegram bot on top of pi so I can code from my phone

Post image
17 Upvotes

I've been using pi for a while and really love its design philosophy — it's restrained, extensible, and rock solid.

Recently I built a Telegram bot that lets me code from anywhere through chat. I just send a message, it runs pi against my project, and streams the reply back in real time. All I need is my phone, or really any device that runs Telegram.

- Streaming replies
- Inline model picker
- Multiple workspaces to switch between projects
- Session management — resume or start fresh
- Message queue — send multiple messages and they line up nicely

Would love to hear any feedback or ideas. Thanks!

https://github.com/dandkong/pi-pilot


r/PiCodingAgent • • May 10 '26

Question Which provider you are using with PI?

17 Upvotes

Hey y'all I'm mostly doing excel work via python and web development. Which models you use with Pi I currently use claude code with the 100$ plan and 20$ plan codex.

I understood I can't use my claude claude sub for pi

What do you recommend?

Thanks


r/PiCodingAgent • • May 04 '26

Resource Web search is finally here

17 Upvotes

Ok , like 2 weeks ago i went into journey of finding a way to solve web search , i even asked here to see how you guys doing ...

Most of answers were basics like use exa , brave , and so on but the real issue that missing is this is very very complex tool that need a native solution. And thats why similar to bash or read most AI coding language has solved it thier way.

Just to understand it a little bit there is 2 tools websearch and webfetch , so search is done then those linked get fetch its content then the result comes to you. Sound simple right? Underneath it there is IP and proxy rotation , self hosting , or paying extra to just get result that most providers already give. So in order to get the same quality of claude code tools you have to pay extra just because PI by default removed those tool.

So, i finally solved this issue . I have made extension that uses the native websearch and webfetch from the provider that you are using , i have tested in glm 5.1 by z.ai and claude code using the bridge extension both works as the native experience.

Try it , here

https://github.com/smalibary/pi-native-search

I made in MIT liences so you can tailer it to your spicific need , i believe no more any complex setup just to get those tools anymore.

If you have any concern or question just ask me.

Happy searching


r/PiCodingAgent • • Apr 30 '26

Plugin My first pi.dev extension: nano-team

17 Upvotes

So, nano-team. My first pi.dev extension.

It runs subagents as a small team and gives you a TUI to watch them work. A row of chips, one per agent. That's the whole thing.

I tried to keep it close to the pi/unix spirit - do one thing, don't get in the way. So it's not a framework. It doesn't orchestrate anything fancy, doesn't ship prompts, doesn't wrap the subagent API in extra layers. It just runs them and shows you what's going on.

Tiny, simple, and it doesn't break. That's pretty much it


r/PiCodingAgent • • Oct 13 '26

Question Dev workflow beyond traditional harnesses

16 Upvotes

I guess this question was asked a thousand times, but I'm still wondering how do you guys organize your work with pi?

I am a heavy user of Claude Code (employer covers it), but I have been watching and tuning pi time to time for personal use on the side.

Naturally, I tried getting pi to be like claude code, I looked for extensions that give me subagents, some cosmetic plugins (I like ricing my hyprland setup) and some simple QOL things.

However I didn't feel it being a huge upgrade in terms of my actual workflow and "pleasure", it felt like I'm just recreating what I'm used to.

I'm wondering more from a UX/DevX perspective, I got used to what antrhopic gave me and learned that way, but I see pi as an opportunity to really make a uniquely pleasant developer experience.

Which is why I'm wondering and asking how did you tune your workflow, which extensions did you use/build and how do you run your day-to-day feature work.

e.g. my work can span multiple PRs/repos for a feature which is why I'm starting a session from a dir above the ones I need to change and keep a long session (which is really wasteful) to handle all the context I need.

I don't really like the paradigm of "plan a huge markdown implementation doc and architecture and let the agent do it" because it requires a lot of overhead for me for things I may not even know exist or are needed.