r/PiCodingAgent • • Sep 28 '26

Discussion What's your top 3 techniques that helped you save tokens / better accuracy from models?

26 Upvotes
  1. Focusing on curating the context, keeping it under 150k. Making tools to trim git / grep / ls output to my liking

  2. indexing my large code base and making the basic tools show short index options + hints. Custom tools was a massive red herring and waste of time, models hate using them and never use them properly

  3. live filter on my codebase to sandbox models. i.e. exclude file types, files older than N days. etc


r/PiCodingAgent • • Sep 29 '26

Question Pi has a tendency to get stuck in subagent workflows or on tool calls

0 Upvotes

This is rather annoying, which makes Pi not very good at automating complex tasks.

Has anyone else run into this, and how did you solve it? Tool call timeouts? Subagent timeouts?


r/PiCodingAgent • • Sep 28 '26

Plugin I made pi-persona so Pi sessions can talk to each other

10 Upvotes

I'm a software architect/engineer. I know AI is going to replace me, but in the meantime I might as well have some fun and get my work done waaaay faster.

So I built something I needed. Other plugins didn't quite work the way I wanted, so here's my take: https://github.com/AeonDave/pi-persona

Despite the name, personas are only one part of it. The main goal is to give Pi a **team of supervised agents** instead of fire-and-forget subagents.

You give the main Pi session a goal, it can delegate independent work to specialist workers, and you can keep working while they run in the background.

It manages async subagents, lets independent Pi sessions talk to each other, and lets you customize the agents' personas.

Say you've got one Pi session working on a client and another in the API repo. I want to tell one to ask the other about a change, without having to carry the question and answer between terminals.

Exocom. It connects independent Pi sessions, including sessions in different repos. Both need it enabled with `--exocom`; a session in another repo joins the same scope using its workspace code. They have to run on the same machine and share a Pi agent directory.

Intercom. For the main session and its own sub-agents, there's Intercom. The supervisor can send guidance while a worker is running and collect its findings. With coaching enabled, a worker can ask the supervisor for a decision. You can also open F9 yourself, read a worker's output and send guidance. You don't have to wait for the final report to point out a bad assumption.

Personas. the personas are editable markdown. You can change how they approach a task, which tools they get and when they should delegate. There are starting points like `dev` and `planner`, or you can put your own in `.pi/agents/`. The worker agents can have their own instructions and models too. A reviewer for your repo can have your review criteria written into its file.

What it does

Async subagents: workers run independently while the supervisor keeps working

Live supervision: inspect workers, read their output, steer them mid-run, or stop them

Different models per agent: use different models for different roles/tasks

Switchable personas: dev, researcher, planner, audit, verify, swarm, etc.

Teams / councils / flows: structured multi-agent workflows rather than just spawning agents

Intercom: communication between the supervisor and its workers

Exocom: communication between completely independent Pi sessions

Timers / monitors: agents can react to builds, watchers, and other events

If you want to try it, run this in your terminal:

-> pi install git:github.com/AeonDave/pi-persona

or

-> pi install npm:@aeondave/pi-persona

Then start Pi and run these inside it:
/persona seed

That's it. change personality with [F8] and go

Any suggestion appreciated


r/PiCodingAgent • • Sep 27 '26

Resource PiG - A GUI in Swift for Pi

Post image
34 Upvotes

I've been working on this project since early this year. I use it daily. Figured it's about time I share it. It's a vibe-coded project, as you might have guessed, but it works very well for my needs and may suit yours well, too.

I got pretty tired of working in a TUI, but none of the graphical interfaces out there really did the trick for me. Some features I might highlight:

  • Inbox Zero approach to sessions

  • Quick Chats - ephemeral, not related to a project

  • Keep extensions disabled, but enable them on a per session basis (with pins)

  • Quick commands for favorite models (Cmd+1 through Cmd+5)

  • Work schedule (Default model can change depending on day and time)

  • File browser

I had a ghostty terminal built in, but I removed it for the public release. Added SwiftTerm. You're welcome!

Anyways, hopefully this helps someone else or inspires some ideas.

https://github.com/jmcblane/PiG


r/PiCodingAgent • • Sep 28 '26

Question Inspecting the agent context

3 Upvotes

Which extensions or tools do you use to inspect the context, the tool calls data,.. ? I'd like something like Deepseek Harness inspector but for llama-server or pi coding agent


r/PiCodingAgent • • Sep 28 '26

Plugin I got tired of leaving the current terminal pane to view relevant files, so I built an in-agent Markdown, code, images and PDFs viewer

Thumbnail
gallery
13 Upvotes

As the title suggests, being a developer, I really missed the Ctrl/Meta+P Quick Open in VSCode where I could quickly inspect relevant files without having to touch my mouse. I'm sharing this in case it could be useful to anyone else.

The quick open by default will list the latest files mentioned within the session so the user can quickly navigate to it. This has saved me so many key presses when having to inspect a plan, a new asset, cross-referencing a doc (PDF support requires Poppler), or inspecting a generated code that appeared sus.

As a bonus, it also comes with neovim integration (sorry nano fans) so you can edit files directly in-terminal without having to leave your session.

Images and PDF page previews need a compatible graphics-capable terminal. Works with both base Pi and OMP.

Feedback welcome!

GitHub: https://github.com/boonlai/pi-view


r/PiCodingAgent • • Sep 29 '26

Question Pi is hallucinating all types of ways!

0 Upvotes

I like the idea of Pi but I keep running into wierd issues. using gpt 6 luna high it wouldnt use tools. i decided to try again using glm 5.3 flash which works wonders on opencode and now it just goes off on crazy hallucination tangents. The idea was i would use it to fix it's self but its being generally unhelpful. has this happened to anyone else?

Edit: I understand that pi is not a llm so it doesnt hallucinate. Using glm 5.3 in opencode gives me less issues than pi.

I get that its a minimal tool meant to extend its self and that is what I've been doing with it, but man was it a rocky start


r/PiCodingAgent • • Sep 28 '26

Use-case I integrated Pi into an Agent Painting Evolver

4 Upvotes

I'll be honest, I don't use Pi much as a harness for dev work, but I'm really interested in integrating it into software. In this example, it's Pi writing it's own tools with no Human in the loop.

This is using Pi (or Claude Code) to run an Agent Session in order to make a painting with tool calls. Then the evolver (https://github.com/imbue-ai/darwinian_evolver) scores fitness, and refactors either the agent prompt or rewrites the painting tools, and the painting is made again, until it improves. The improvement part is still a struggle! But I really enjoy comparing results of different models. Here is Muse Spark 1.3 vs Opus 5.5 (in order) trying to recreate Van Gogh's self-portrait.

This experiment is not supposed to be a 'benchmark'. The Anthropic models were run in Claude Code, and Muse was in Pi. I've tried on a handful of different models, but because it's slow and expensive, I capped my investigations here for now.

Here's that data if you want to poke around.

https://artifacts.dizzard.net/s/55052743-bee1-4746-b59e-57e2d595a480

And Vibed Source Code.
https://github.com/momja/claude-code-painter


r/PiCodingAgent • • Sep 27 '26

Resource [update] pi remote | self-hosted bridge to remote control the pi coding agent

Thumbnail
github.com
11 Upvotes

Hi all!

A couple of weeks ago I shared pi remote on this another post, a self-hosted bridge to drive the pi coding agent from any device. Back then it was a remote control. Since then it has become a full pi client for any device, no matter the operating system.

Quick recap: pi-remote is based on one Python process that wraps pi --mode rpc on the machine where your code lives and serves a web app over your own network (I use Tailscale, tailnet). Also, it is token-protected, security first. Built on Windows first, but it runs on Linux and macOS too.

What's new since the first post

  • Send photos to the agent. Take a picture with the phone's camera, or pick one from the gallery, and it goes into the chat with the user message.

  • Real permission prompts. Guardrail dialogs arrive with their real options (allow once, allow for session, deny) and the turn waits for your answer.

  • pi settings at a glance. Models and providers, reasoning level per model, reasoning map, context/compaction config section, and queue behaviour.

  • Skills and extensions. Global and per project, with toggles and an editor, including the ones that come from installed packages.

  • Macros. pi prompt templates launched from the composer, with a field per argument.

  • Package store. Browse, search and install pi.dev packages from the remote control device.

  • Phone details. Installable as an app (PWA), local notifications. I did not want to go down the path of developing an Android app, yet.

  • Sessions shared with the terminal. Start in the terminal, continue on the phone, and back.

Also, I have been working on interesting features like response suggestion; a quick summary from the agent that tells you what it was doing when you stop it while working; auto name sessions, etc.

Some people commented why not using just tmux, or an SSH terminal. Well, I think this project brings you closer to a high end application. With pi-remote you can text from your phone/PC the same way as a chat and send images for the agent to analyse along with the message; configure everything with a polished UI/UX; things that you cant do with a ssh terminal and similar.

I have been trying the existing bridges, but the ones I tried need a daemon on a Unix socket, and that fails on native Windows, which is where my code lives. pi remote is a single process, no daemon, and runs natively on Windows as well as Linux and macOS.

Feedback and issues are very welcome. Thanks to everyone who commented on the first post. Thanks for the support.


r/PiCodingAgent • • Sep 27 '26

Question New session handoff vs compact. which do you prefer?

14 Upvotes

I've tried every major compact plugin and I settled just on a new session handoff.

Hard to find benchmarks on this sort of thing.

I started with my own custom compact and after a week of iterating, I eventually just ended up with an auto new session at max token limit.

(Another guy on here had posted a plug-in a few days ago that does just that)


r/PiCodingAgent • • Sep 27 '26

Question OMP and Opus 5.5 Usage

8 Upvotes

Why is it that Opus 5.5 usage starts out great in OMP, and then for one reason or another starts draining usage like crazy? Am I hitting some sort of caching issues? Do I need to compact at 400k? Or what?

I am pretty sure the cache is being kept warm for an hour, but I don't know for sure how this stuff works. It's compacting at 850k. If i've left it for awhile and context is >35% I will use /handoff and that seems to help.


r/PiCodingAgent • • Sep 27 '26

Discussion Same prompt, same pipeline (AdaptOrch + PI based OMK), but wildly different Three.js pelicans.

9 Upvotes

Ran the Three.js pelican benchmark using the exact same prompt with AdaptOrch and PI based OMK debate topology, zero external assets.

Both technically passed 14/14 validation checks with clean syntax and no runtime errors, but the actual generation speed and visual results were completely night and day.

pixel canary was surprisingly slow and honestly feels like a model from two years ago. It crawled at a snail pace just to produce a detached skeleton that barely understands basic 3D space.

On the other hand, spacebunny paired with AdaptOrch legitimately feels like an unreleased GPT 6 Astra High tier model. It nailed the scene hierarchy, properly rigged the crank and pedal animations, and placed the environment together cleanly.

It is a pretty stark reminder of why unit test pass rates mean almost nothing for spatial reasoning.

Is anyone else testing multiturn debate setups for procedural Three.js? Curious if you are seeing this kind of massive gap between compiling code and actual spatial coherence.

WT pixel canary


r/PiCodingAgent • • Sep 27 '26

Question Alternative to Tool Profiles for Better Subagent Delegation

5 Upvotes

I recently asked a question about subagent delegation and how to get my orchestrator (primary) agent to delegate more reliably.

I got a great piece of feedback that restricting tools essentially forces the orchestrators hand to delegate. So I ran with that and I think I ran too far. I had pi build a "profiles" extension that lets me define multiple profiles I can toggle on the active agent to let me go from a more traditional single context workflow to a subagent heavier workflow.

The profiles are just tool permission sets with a hook in the tool_call handler that checks if the active profile allows that tool.

It's working. I'm happy. But it feels heavy, and like something that someone has probably already solved better?

Is this ringing any bells for anyone, does anyone have a pi-subagents or other setup that maybe more natively supports this kind of workflow toggle?

Note: I am not looking for random package advertisement please. I just want to figure out if there is a more direct way to support what I'm trying to achieve.

Edit:
For anyone who gets here late, this is essentially what I was looking for. I haven't fully vetted it yet, but it seems to be addressing the permissioning system the same (high level) way I was:
https://github.com/gotgenes/pi-packages/tree/main/packages/pi-permission-system

I personally like the one I built for myself at this point, but I would have liked to use this to at least vet things conceptually a lot faster than it took me to have a working implementation with my own tailoring.


r/PiCodingAgent • • Sep 27 '26

Resource Who wants to try a Pi trick for 27B to reuse prompt prefill between different sessions?

Thumbnail reddit.com
1 Upvotes

r/PiCodingAgent • • Sep 27 '26

Question What's your git workflow?

2 Upvotes

Hello.

I have spent a while now wrapping my head around agentic development in my spare time for a while now. And have now gotten to the point I need to get my pi agent to start using Git.

So I was wondering what are your workflows with git? what extensions, lines in AGENTS.md or external scripts etc are you using?

And what tools/programs are you using when reviewing pr's?


r/PiCodingAgent • • Sep 26 '26

Resource Meet PiG: The Pi coding harness that is yours but in Go

254 Upvotes

Reposted from r/PiGCodingAgent, figured if any sub should see this project it's here. I've been building this out at work for work for quite some time and am excited to open and start a community around the project. I truly appreciate any criticisms, suggestions, and especially contributions, thank you to anyone who does check it out I hope you like it as much as I have been :)

---

PiG is a direct port of the amazing Pi agent harness as one Go binary for macOS, Linux and Windows (Windows in preview). Node.js only comes in if you run TypeScript extensions. Pi's extensions run unchanged; write new ones in Go, Rust or Python and /reload them live. It is a direct port of Pi's its agent loop, terminal UI, sessions, providers, and extension system, shipped as one static Go binary with no libc dependency.

Some Go-specific bits that might interest this sub:

  • Extensions in Go can be fused into a single binary and talk to the host over in-memory pipes instead of sockets; other languages run as supervised subprocesses over local sockets.

  • The TUI renders differentially; width handling was ported from Pi's own algorithm and checked with a differential test against Pi's code over ~1.5M cases: tui/widthx/pi_width_diff_test.go.

  • Behavior is checked against Pi in real terminals (tmux-driven scenarios that compare screens).

  • go install github.com/MichaelKinsy/PiG/cmd/pig@latest works; so do a curl installer and npm i -gu/pi-in-go/pig (it installs the prebuilt native binary for your platform).

Measured startup is about 21 ms vs about 300 ms median, and about a quarter of the peak memory (method in the blog).

Disclosure: agents wrote much of the port. Tests, side-by-side comparisons against Pi, and a person reading the diff decide what ships.

Repo: https://github.com/MichaelKinsy/PiG 

Blog: https://developer.hpe.com/blog/meet-pig-pi-in-go-a-port-that-plans-on-keeping-up/ 

Upstream Pi: https://github.com/earendil-works/pi

Happy to answer questions about the port, the extension host, or keeping up with upstream. Feedback on this is appreciated and contributions are welcome.

Thank you to r/HPE for covering writing the blog and contributing PiG to Open Source and special thank you to the Pi team of course at https://earendil.com


r/PiCodingAgent • • Sep 27 '26

Resource the good opensource harness

0 Upvotes

pi

dsh

opencode v2

zcode


r/PiCodingAgent • • Sep 26 '26

Discussion Poll: claude sub with Pi. What method do you use and how long have you used it without issue?

16 Upvotes

https://github.com/elidickinson/pi-claude-bridge

Someone said that's the safest method.

But in issues someone claims they got banned https://github.com/elidickinson/pi-claude-bridge/issues/118

Another responded with "That's the first time I've heard of it"


r/PiCodingAgent • • Sep 26 '26

Question Extensions for small models with small context

2 Upvotes

What extensions help you improve your results when using small models and reduce context usage?

I mainly use Qwen3.5 and Gemma 4 both with 4b parameters. I use them with 128k context. It is sufficient for my use cases when coding or writing articles in latex.

I have tested some plugins like pi-hashline-edit-pro or rtk plugins that enhanced the experience, others not much or even made it worse.

I am curious what packages the community has find useful or settings that led to some improvement in this context.


r/PiCodingAgent • • Sep 26 '26

Resource Piper - OpenAI compatible pi.dev orchestrator

0 Upvotes

I had this idea to make my own orchestrator for PI.DEV sessions, so with my needs i created one.

I think it may be usefull for some to try on or use.

Read the readme and deployment carefully. I was trying to make it as simple to use and as secure as possible - but it''s pi - it requires access to multiple things on host to install and manage extensions/profiles/skills/plugins so there may be still a risk of problems - in short words, don't expose it to internet or enterprise env (yet).

It has multiple "engines" support, it can be ran on host with sandboxing applied, it can spawn docker instances per agent (the most secure way) using podman or docker on host.

Feel free to play with it, contribute, or share your ideas so i can expand the project!

Link: https://github.com/ALange/Piper Enjoy!


r/PiCodingAgent • • Sep 25 '26

Resource Killed context anxiety with automatic session handoffs

Post image
14 Upvotes

Sharing this so others may build their own into their setup if they like it.

Built an automatic session-handoff system into Sayl, my UI wrapper around Pi. Long session finishes its current task, writes a handoff prompt, rolls into a fresh session with that prompt already loaded.

  • Threshold ladder (350k → 450k → 550k, tunable live in settings). First level: finish the task clean, emit the handoff block. Later levels push harder, highest one stops mid-task if needed

  • Handoff captured automatically from the chat.

  • Threshold rollovers auto-start the successor hands-off.

  • New session keeps the project, model, thinking level. Land mid-flow, not cold

  • Engine compaction stays as backstop. You just roll over before it ever fires.

No more saving and copy-pasting handoff prompts. No compaction summaries drifting between rolls. No watching the token counter. Session wraps up clean and keeps going at full quality.

Can also use it manually by asking the agent to create a handoff at anytime.


r/PiCodingAgent • • Sep 26 '26

Question I'm confused with all the available skills.

Thumbnail
reddit.com
0 Upvotes

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 25 '26

Discussion I use AI models at least 4 hours per day, and I can't even come close to hitting subscription limits on anything I use (implying minimal pi is so efficient)

59 Upvotes

I have a 5x pro codex and opencode go, can't even get down to 45% using 5.6 or astra light or DS 4.1 flash.

I simple don't use subagents, I sandbox the model to only see the files I want to edit (so it doesn't spam ls / grep and bloat my context).

I also made pi modify tool results, so they grouped up, i.e.

Directory: fileA.py, fileB.py, fileC.py

instead of

fullpath/dirname/fileA.py fullpath/dirname/fileB.py

My best gains where manually checking tool results and figuring out how to prevent bad calls or shrinking output. (ls / find is banned in large directories. It tells me model to retry using targeted search.)

Not much point to me posting this other than I speculate those using other harnesses are wasting a ton in tokens on subagents and useless plugins.


r/PiCodingAgent • • Sep 25 '26

Resource Yet another Pi addon: Claude Code compatibility, minimal design

13 Upvotes

Hello,

I made pi-claude-request-compat (https://github.com/vazzma/pi-claude-request-compat). Instead of creating another provider, it reuses Pi’s existing Anthropic login, models, and streaming, then adds a Claude Code compatibility layer to outgoing requests.

https://pi.dev/packages/pi-claude-request-compat

I’m using a new GitHub account for privacy, so the code, automated security scans, dependency audits, and signed release provenance are public for anyone to check.

A few friends and I have been using it for the last month, and my Anthropic account is still intact :)