r/PiCodingAgent • • 12d ago

Resource pi-persona 1.19: watch your subagents work

22 Upvotes

Hey all. Around two months ago I posted pi-persona here and a lot has changed since then.

and led with the wrong thing. That's still in there, but it isn't the main point, so here's a second try now that 1.19 is out.

The complaint that keeps coming up in the subagent threads here is the one I had too: the main agent doesn't know a worker went wrong until it's finished and the tokens are spent. Neither do you.

So this is built around being able to look. Workers run in the background. Press F9 and you get the list: what each one is doing right now, its model, its effort, tokens so far. Open one and you're reading its conversation as it happens, tool calls included. If it's heading the wrong way, press s, type a sentence, and it arrives as a new message in that worker's own context. If you don't need it any more, x stops that one and leaves the others alone. The supervisor isn't blocked during any of this, and reports come back to it on their own when they're ready. Nothing polls.

1.19 is mostly that part getting better:

Worker chats in F9 with expandable tool calls and reasoning, search, and /agents send <name> <message> for when you don't want to open the panel.

Every row that shows a model now shows the effort next to it.

F9, the model picker and the settings page share one window frame. They used to look like three different apps.

Things I'd want to know before installing it:

Workers share your repo. Parallel writers declare which paths they own, but that's coordination, not a sandbox. If you want isolation there's a git worktree mode that hands back a diff, and you can attach a check like npm test that runs before the diff is exported.

It has been coded with AI of course. not vibed with it. That's cause it's also my main job (sw engineer).

Also don't forget that the pi2pi communication is still there:

Needs Pi 1.5.2 and Node 22.19 or later.

The GIFs in the README are the real TUI, but the model replies are scripted so I could re-record them without spending tokens.

Install:

pi install npm:@aeondave/pi-persona

then inside Pi:

/persona seed

/persona dev

or just F8...

https://github.com/AeonDave/pi-persona

With this you can start a team with fable/mithos/astra/deepseek4.1 all together.

A question for people who do use subagents: when one goes wrong, how do you find out today? I'd like to know whether redirecting mid-run is something you'd use, or whether you'd rather kill it and re-prompt.


r/PiCodingAgent • • 12d ago

Use-case Pi Bot made with Pi Durable

Thumbnail forge-z.github.io
10 Upvotes

This is my attempt to create my own Instinct. Pi Bot isn't a coding harness; it's an assistant that can, for example, execute code on a cloud VM, as long as that VM has an API or MCP connection available through Composio or Executor.

For the gateway, I prefer Telegram because it supports topics, allowing me to keep each subject in its own separate thread and avoid mixing contexts.

Gateways: You can choose between Telegram and WhatsApp.

MCP aggregators: You can use Composio, Executor, Upsy, or your own self-hosted solution.

APIs and MCPs I like and use:

  • AgentMail: A dedicated email account for my agent.
  • Browser Use: Buying tickets and interacting with CRMs.
  • Exa and TinyFish: Web search and scraping.
  • Freestyle and Instabox: Cloud VMs with generous free tiers for solo projects.
  • GitHub: Well, it's GitHub.

r/PiCodingAgent • • 12d ago

Discussion Small Linting Checks Beat One Big Linting Check: Real-Time Feedback for Coding Agents

14 Upvotes

Small Linting Checks Beat One Big Linting Check: Real-Time Feedback for Coding Agents

Coding agents follow your rules far more reliably when a linter checks each file the moment they edit it, not once at the end of the task. Here is why, how to wire it into any major harness, and what 840 benchmark runs showed.

Rules the agent read and broke anyway

I had a CLAUDE.md / AGENTS.md full of rules like "never call Instant.now()" and "use apiClient, never raw fetch". The agent read them, nodded, and broke them anyway.

It usually happened somewhere around edit 40 of a session. So I only found out at the end, in the diff, or worse, in code review. Rewriting the rules more forcefully didn't help. Capital letters didn't help either.

Move the check to the moment of writing

A better prompt didn't fix it. Moving the check from the end of the task to the moment of writing did.

After every single file edit, a hook runs the linter on that one file. The agent sees the result on its next turn. If it wrote Instant.now(), it hears about it within seconds, fixes it while the line is still fresh, and moves on.

This is just a feedback loop. It's the same trick that made TDD click for humans, applied to agents:

Small check Big check
When Right after each edit
Scope One file, one fast linter
Cost Under a second, silent when clean
Fixing a failure One edit away

Why the late check fails

A late check doesn't just find errors later. It finds them in a form the agent handles badly.

At the end of a 40-edit session, the compiler fails, the test suite fails, and lint reports 30 issues across 14 files. Half of them are in code you wouldn't have written. The agent now has to work out which change caused which error, often several edits apart.

That archaeology dig is where agents start taking shortcuts:

  • adding eslint-disable or # noqa
  • deleting or skipping the failing test
  • "I'll handle it later" When the check runs right after the edit, none of this is tempting. The fix is one edit away, and doing it properly is cheaper than working around it.

It works in every major harness

You need two hook points: one that fires after each tool call (to lint the file just edited), and one that fires when the agent finishes its turn (for the slower full check). Every major harness has both now.

Harness After each edit End of turn Where it lives
Claude Code PostToolUse Stop .claude/settings.json
Codex PostToolUse Stop hooks.json or config.toml
opencode tool.execute.after session.idle event a plugin in .opencode/plugin/
GitHub Copilot (CLI, cloud agent) postToolUse agentStop .github/hooks/*.json
Pi tool_result agent_end an extension in .pi/extensions/

The details differ: shell commands vs. TypeScript plugins, and how the hook's output reaches the model. The shape is the same everywhere. Filter for file-editing tools, run the linter on that one path, and return the failures so the agent reads them on its next step.

What we built: codemyrules

We packaged this as a small open-source hook setup, codemyrules (MIT). It does four things:

  1. Per-edit check. After each file the agent edits, it runs your fast linters on that file only.
  2. End-of-turn check. When the turn ends, it runs a slower full check on the files touched in that turn. You still get the big check, but as a safety net, not the first line of defense.
  3. Blocks only on new problems. It fails only on errors in lines the agent changed since HEAD. Old lint debt in the file doesn't derail the agent.
  4. Guards the escape hatches. It asks you before the agent can add a suppression comment or change the lint config.

What 1,280 runs showed

We tested this in agent-rules-bench: 1,280 headless agent runs, 1,532 sessions in total.

Setup Models Runs Projects
Claude Code Claude Sonnet 5.5, Claude Haiku 5.5 1,048 Java, Python, TypeScript
Claude Code (exploratory) Claude Opus 5.5, Claude Fable 5.2 56 TypeScript
Pi and Codex (exploratory) Qwen3.6 35B-A3B, run locally 176 TypeScript

The first four studies were exploratory. For the later ones, we pre-registered each analysis plan before we ran them.

The result: in our largest pre-registered study (two open-source projects), the agent broke a rule that was written as prose in the agent docs in 22% of runs (28 of 128). When we wrote the same rules as lint rules with the per-edit hook, the agent broke them in 13% of runs (17 of 128). Most of these breaks in the lint-rule runs look like false alarms from one checker, and we are still checking them by hand. The local model followed the same pattern more strongly: prose was broken in 73% of runs (47 of 64), lint rules in 30% (19 of 64). But in both setups, most of its code did not pass the type check.

Full data, prompts and analysis plans are in the repo.

Try it in your own repo

The principle doesn't depend on our tool or on any one harness:

  1. Find the rules you keep restating. Read through your CLAUDE.md or AGENTS.md. Most of what you repeat there are lint rules in disguise.
  2. Encode them as machine rules. A banned API, a required wrapper and an import boundary can all be custom lint rules in ESLint, Ruff, Checkstyle or similar.
  3. Wire a post-edit hook. Lint only the file just edited, keep it fast and quiet when clean, and make sure the agent sees the failures right away. Keep prose for what a linter can't check: intent, architecture, trade-offs. Let the machine handle the rest.

I'm curious how others handle this. Do you run any checks mid-session, or do you trust the agent until the end of the task and then deal with the fallout?

Sources


r/PiCodingAgent • • 11d ago

Discussion New OMP Tern - Rust terminal

0 Upvotes

Has anyone checked out the new omp Tern terminal?


r/PiCodingAgent • • 11d ago

Use-case I built a small macOS app for watching the Pi coding agent work, one git worktree per task. Looking for honest feedback

1 Upvotes

I've been using Pi as my coding agent and kept losing track of what it was doing across several terminal sessions. So I built Panoptes, a minimal desktop app that sits on top of Pi and just shows the work. It doesn't plan or orchestrate agents. It watches.

[screenshot: lanes + work log]

What it does today:

  • Lanes. Each task gets its own git worktree and branch, with one session per lane, so two agents never write to the same checkout. Clean lanes can be archived. Dirty ones can be committed, stashed or saved as a checkpoint.
  • Every Pi session in one list, including ones you started from the terminal. Sessions stay Pi's own files, so pi --continue still works.
  • Live work log. Replies, thinking and tool calls stream in. Enter steers the agent, Option+Enter queues a follow-up, Esc stops it.
  • Approvals and questions from Pi extensions show up above the composer and get answered in place.
  • Model, tokens, cost and timing for each turn and each session.

Stack: Tauri (Rust) + React. Each open session is its own pi --mode rpc process. It's MIT licensed, macOS only for now, and you build it yourself (pnpm app:install, no Apple dev account needed).

Repo: https://github.com/fbrg141/panoptes

What I'd really like to know:

  1. If you use a coding agent, how do you keep track of parallel tasks today?
  2. Does "one worktree per task" match how you work, or is it in the way?
  3. What's the first thing that breaks or confuses you?

Rough edges I already know about: no prebuilt download, macOS only, and per-turn checkpoints aren't built yet.


r/PiCodingAgent • • 12d ago

Question Agent drift

1 Upvotes

Is the agent drifting from original plan a result of the model or harness? Im using QFN gyro-M and pi-blackhole but with the observational memory component is turned off due to the workers going every turn bogging the process down because im on a potato. I Told the agent to start step 5, walked away and at some point it had drifted from the orginal plan.md... it was a mess. Ever since then after every compaction im afraid it will drift. So, now every so often I'll have it do a "drift check". Is there an extension or skill I can add to the harness to help prevent this?


r/PiCodingAgent • • 12d ago

Question Anyone using Codex Sub in Pi?

4 Upvotes

What is the context window you get with the sub? Is it still 250k? Would love to try 6.2 Astra but dont want it if the context window is nerfed.


r/PiCodingAgent • • 13d ago

Discussion Updates on oh-my-pi quietly siphoning user web data

302 Upvotes

Two months ago, I made this post about the issue:
https://www.reddit.com/r/PiCodingAgent/s/MoJvQiojW5

Where the maintainer of oh-my-pi quietly pushed to main (no associated pull requests) support for sending web requests generated by oh-my-pi to a 3rd party by default. This means, that without any changes, your web traffic is quietly being farmed. While obviously nothing is public about how it is used, you can assume it is being used for monetary reasons at a minimum, and it is most likely building a profile of yourself. Yes, these are assumptions, because no one is being forthcoming about it.

To my surprise, minutes ago, the actual owner of this 3rd party entity that has siphoning your data actually commented on the pull request. Mind you, this pull request has been open for the last two months with no response from the oh-my-pi maintainer (despite numerous people asking for a response).

The "Developer Relations Engineer at Parallel" said,

"...The oh-my-pi maintainers intentionally put Parallel first in the default search order and enabled it without credentials... I’d recommend closing this PR and keeping the current behavior."

I thought the community should know. If you are intentionally having your data collected, please disregard this message. This message is meant for those who were unaware of their data being collected. Since there is no disclaimer anywhere in the project, it is easy to be caught off guard by this. Hope this helps.

An Update: The "Developer Relations Engineer at Parallel" decided to remove their comment for some reason, so here it is screenshotted from my Github email notification:

Processing img 2bl9cbgi432i1...

Second Update (Next Day): This thread built enough momentum to get a PR merged! Great job everyone! This would have been a happier occasion if the response from the maintainer wasn't so void of accountability:

Processing img ggj4ztvdo72i1...

Apparently we are "manufacturing drama." Please be safe out there, and check the next projects you use.


r/PiCodingAgent • • 13d ago

Discussion The More I use Pi the more I realize how much we Over-engineer

Thumbnail
imgflip.com
243 Upvotes

MCP servers are goat and genuinely useful. But I haven't been wowed by any plugin or skill except ask-user-question


r/PiCodingAgent • • 13d ago

Question Will get you using your Google AI sub in Pi still get you banned?

5 Upvotes

I would rly like to use The new New Gemini models in my Pi setup, but Api is too expensive :( .


r/PiCodingAgent • • 14d ago

Discussion Give me suggestions please on compaction extensions.

13 Upvotes

Seen people talk about pi-vcc, observational memory, blackhole and protokoll.


r/PiCodingAgent • • 13d ago

Resource New 3d printer slicer made with deepseek V4.1 flash + other models (Still testing)

Thumbnail
gallery
0 Upvotes

I have designed NextLayer. Alternative to Orca/Bambu

Been testing this the last few weeks, have most features implemented, still need some testing.

Would you use a new slicer? Or are you too locked into to Prusa/Orca

I am also wiring HFW (Hybrid Field Walls) A libslic3r engine in Rust. I have it slicing and printing. Need to add more before more print testing.

I also have Layer. A mainsail/fluid alternative.

Check em out at github.com/CWebb89

Any freed back on these would be GREATLY appreciated !


r/PiCodingAgent • • 14d ago

Plugin pi-spec-mode 0.0.1 is out

5 Upvotes

Since the pre-release 4 days ago, I've closed a lot of holes and potential bugs, and the first stable release is ready:

  • New commands: /spec list shows every spec with its status and when it was last verified, /spec verify <spec> checks a single spec against the code.
  • Stricter /spec agree: it now refuses a spec with an empty section.
  • Cross-checking between specs: before you agree a new spec, the agent checks whether it contradicts your existing ones.
  • Lots of fixes, especially around security (see the changelog : CHANGELOG.md).

pi install npm:pi-spec-mode

Feedback welcome!


r/PiCodingAgent • • 13d ago

Plugin GitHub - gbrennon/good-news-everyone: Notifications from your AI agent, both the good and the not-so-good.

Thumbnail github.com
0 Upvotes

I published a pi extension named good-news-everyone.

It's based in pi hooks to notify user about task states with a bit of jokes embedded hehe

Notifications are based in professor Farnsworth, from Futurama TV show, catchphrase.

He uses it to summon the Planet Express crew for a new mission and this always made me laugh every time he claimed that had good news


r/PiCodingAgent • • 14d ago

News Solipsist - Collaborate with Pi agents using Markdown | Free | Open-Source

Enable HLS to view with audio, or disable this notification

6 Upvotes

I think the Chat based interface we use for coding agents doesn't extend well to other use cases, like researching, thinking... or just having a general introspective session with AI.

I thought of having a simple markdown editor (like Notion), where you can just dump your thoughts (or documents) and then the AI agents can work off of them. I wanted to the app to be completely local so I don't depend on any cloud providers and can eventually run entirely offline with self-hosted LLMs in the future.

I am happy to share that I am finally comfortable in sharing it publicly, introducing Solipsist: https://solipsist.sh/

This is a completely new way to use and interact with AI agents, where your document is the main control surface. The AI agents can give back nicely formatted tables, images and other content. You can use this for planning, brainstorming, researching and more. It is fairly extensible as well.

Give it shot !

Github: https://github.com/pulkitsharma07/solipsist


r/PiCodingAgent • • 13d ago

Question Spare Claude referral link?

0 Upvotes

If anyone’s got an extra guest pass lying around, I’d love to try Claude out. DMs are open. Thanks a lot!


r/PiCodingAgent • • 14d ago

Plugin Compact codemode

0 Upvotes

I've made another small improvement to supi-extras (source) that I'd like to share with you: Codemode is now displayed much more clearly. Copy the code or use my extension if you want to.


r/PiCodingAgent • • 15d ago

Plugin pi-promptimize: prompt rewriter with model picker, context inclusion

109 Upvotes

turn that vague prompt into a clear instrction without leaving your session or polluting the current context.

https://pi.dev/packages/@scriptdude/pi-promptimize


r/PiCodingAgent • • 13d ago

News [feat update] CW47 pi-remote new features

0 Upvotes

previous post

Hi all! I just wanted to announce the latest features on pi remote which I find interesting to share:

  1. Connect a device with a QR code: scan it from your phone, approve the device on the PC, and you're in. The token never travels in the QR.
  1. Background tasks: the agent can launch long builds or tests without blocking, and it gets notified when they finish.
  2. Git changes: a header button lists the files changed since the last commit and shows their diffs.
  3. File browser: read your project files, images and PDFs from the phone, with pinch zoom.
  4. Session tree: see every branch of the conversation and fork from any of your messages.
  5. Worktrees: create, open and remove git worktrees from the project menu.
  6. Token line and live tok/s: see what each turn cost (prompt, generated, cached) and the speed while the model writes.

Repo: pi-remote on Github

Thanks everyone!


r/PiCodingAgent • • 15d ago

Discussion everyone needs to make their own "oh my pi" (or an argument for some official extensions)

Post image
220 Upvotes

I think that at least 3 types of extensions have become essential to how to use a coding harness today.

  1. subagent management (nico and tintinweb's are good, I used them a lot and finally, I made my own one too and shared why I did that recently)
  2. task lists (tintinweb's one is again good, and it works with their subagents very well). I made my own for this as well, again to play well with my subagents
  3. monitors (there are a few "pi-monitor" named ones which all try to emulate the claude monitors), again one I made my own because I needed a few tweaks

These things are sort of essential parts of the harness architecture itself, to the degree that a barebones Pi feels pretty naked to me now, I am not productively enough without having the subagents. And subagents do not work well without checklists. And long running jobs inherently come with monitor-shaped tasks.

I actually hate to maintain extensions like this myself, and would love for Pi to officially have some extensions. I do not want them to bloat the core. I love the minimal core. But like back in the VueJS days Vue used to have official plugins router, store/state and pwa etc. That was nice, you knew these things played well and used 'canonical' blessed paths because they are made by the official team, but they were all opt-in installable.


r/PiCodingAgent • • 15d ago

Resource I built Headless Pi (hpi): the normal Pi experience, but headless, on top of Pi Durable

25 Upvotes

Hello guys!

It is not a secret that Pi Durable is hard to use as a coding agent. It is quite easy to build products on top of it, but if you want it to replace normal Pi, Claude Code or Codex for your daily work, it simply requires too much effort. You have to wire up everything from zero, not even the basic barebones are in place for that kind of work, and you end up reinventing the wheel each time.

So I built Headless Pi (hpi). The intuition is very simple: I wanted the experience of normal Pi, where you cd into a project and just start working, but headless.

Basically it is one local daemon that hosts persistent Pi Durable harnesses. A harness belongs to a project folder and has many conversations. On top of that there is a TypeScript SDK, and a CLI that uses the same SDK:

hpi daemon start
hpi harness start --name worker
hpi conversation create --model openrouter/openai/gpt-4.1-nano
hpi send 'Inspect this project' --wait
hpi watch

The daemon brings the running harnesses back after a restart, and the activity (messages, thinking, tool calls, tool results) is stored, so a client can disconnect and continue later from where it was.

Beyond hosting the harnesses, for now it only does two things. It automatically loads the extensions you put in <project>/.hpi/extensions/, and it supports multiple accounts for the same provider, so you can do hpi auth login anthropic --account work and then use the models as anthropic@work/<model>.

And that's it, it is minimal and unopinionated on purpose. There are no built-in tools, no automatic system prompt, no AGENTS.md loading, no skills and no global agent directory. If you want any of those, you write an extension for it. All of these can come in the future if people (and me) ask for them, but I wanted to start explicitly minimal and not decide for you how your agent should look.

The thing I don't understand tbh is why this didn't exist already. When Pi Durable launched I expected something like this to come out the day after, because the idea is so obvious: take the thing everybody already likes about Pi and make it run without a terminal. But it never came, so I built it myself.

This is also the other reason I keep it minimal. I think the idea is so obvious that the Pi maintainers will release their own version sooner or later, and I really don't want to maintain a parallel implementation of it. So I'm trying to save as much work as possible. But meanwhile we got hpi.

So far I have built a few things with it. The main one is an agent for my team that lives in Slack, Linear and GitHub, where each one is a small independent service that receives the webhooks and talks to the same harness through the SDK. I also built a small local web UI to chat with it and work on documents together, and an MCP extension. I will write another post about that setup, because it deserves its own.

Keep in mind that this is still an experimental project:

  • It only works on Linux with systemd user services.
  • It is not on npm yet, you install it from the repo.
  • Pi coding agent extensions don't work as they are, they need to be adapted to Durable.
  • All extensions run inside the daemon process, so one bad extension can affect every harness.
  • Things can change and break. I use it every day, but I'm the only one who has.

Repo: https://github.com/elpapi42/headless-pi

If you try it, or if you solved the same problem in another way, I would really like to hear about it. And if something like this already exists and I missed it, tell me too.


r/PiCodingAgent • • 15d ago

Question Anyone gotten opencode free models working on pi lately?

7 Upvotes

It seems it used to work (freeflow being on option) but as of a couple weeks ago or so they all stopped working and ive not seen a single option come back with a fix.

Losing deepseek free is a pretty big annoyance, even if it was only a limited amount per day. It helped to back up my local models as a planner etc.

Openrouter is ok but its best model is nemotron and I dont think its as capable.


r/PiCodingAgent • • 15d ago

Question Extension that has openchamber/opencode style mockup-choice tool

2 Upvotes

One of the features ive been unable (so far) to properly replace in Pi is the ability for the model to mock up several variants of a layout or image, and then display them to me inline in order to ask me to pick one, like the ask-user tools do (which I have been able to replace in pi, and those work ok).

The closest I found is plannotator, which is ok but very dense/heavy and probably overkill. And is also its own separate thing.

Figured id see if a solution existed. Ive quickly gotten near the point that there's so many things I regularly use that need replacing on pi that I may just go back to openchamber haha.


r/PiCodingAgent • • 15d ago

Plugin pi-merger: extremely simple PR review/merge extension

Post image
5 Upvotes
  1. Your model says a PR has been created
  2. You use CTRL-SHIFT-M
  3. Review the PR
  4. Type m to merge

easy peasy.

https://pi.dev/packages/@scriptdude/pi-merger


r/PiCodingAgent • • 14d ago

Use-case Pi use case: generating a repo-local prompt from shared agent configuration

0 Upvotes

Hi people,

I'm glad to announce ai-rulez v5. It's a CLI and MCP for managing the instructions, skills, and settings that coding agents use in a repository. It's available through Homebrew, Scoop, npm, PyPI, and Go (see the installation instructions for details). The tool covers the following parts of AI Governance:

  • Keep reusable prompts and skills with the repository.
  • Generate native files for the clients your team uses.

I maintain ai-rulez. I tested this with v5.13.2 in a scratch Git repository:

  1. Run ai-rulez init pi-demo --yes --skip-content, then set presets = ["pi"] in .ai-rulez/config.toml.
  2. Run ai-rulez add command review-docs --description "Review documentation examples" --content "Check the examples against the CLI help.".
  3. Run ai-rulez generate and look for .pi/prompts/review-docs.md. Run ai-rulez generate --check to check for drift.

Pi gets a prompt file for this command. If your repo also uses another client, add its preset and generate both native outputs from the same source. The preset matrix lists what the Pi target writes.

I'm happy to hear any comments. If you find the tool useful, star it. It really does help. And of course, I'd love to see people use it and get involved with the project.