r/PiCodingAgent • u/SOC_FreeDiver • Sep 03 '26
Question an update for pi-subagent extension is available!
Who is in charge of this extension? It seems to be updated twice a day. How about some change control?
r/PiCodingAgent • u/SOC_FreeDiver • Sep 03 '26
Who is in charge of this extension? It seems to be updated twice a day. How about some change control?
r/PiCodingAgent • u/LectureWorried5761 • Sep 03 '26
Enable HLS to view with audio, or disable this notification
r/PiCodingAgent • u/Nexmean • Sep 03 '26
The Pi agent has a minimalist design, but its plugin composition model is, to put it mildly, terrible. Now that a truly extensible coding agent with a minimal core has appeared, is there any reason left to use the Pi?
r/PiCodingAgent • u/ZioRob2410 • Sep 02 '26
..to build an OSINT.
Not for the project, who is plenty of similar out there, but just to catch if this model in Q6 quantization is able to build a complex project like this, totally alone, using Gauntlet Loop technics.
Here the prompt i'm using https://github.com/robertxxiv/llm-benchmarking-prompts/blob/main/intelligence-platform-agent-prompt.md
I will post the results when (and if) the goal is reached
r/PiCodingAgent • u/rndanime • Sep 02 '26
If I'm going to try Pi I won't be tinkering with Pi plugins for every project but build something universal
Will I get anything by moving to Pi? Yes, there won't be "USE AS MUCH TESTS AS YOU CAN AND COMPARE EVERYTHING BYTE FOR BYTE" prompt like Codex seems to have but there won't be proprietary Codex features and I probably will install many plugins to make Pi more Codex-like. So it's probably gonna be as bloated as Codex (or other harnesses) but at least Codex's bloat is made by paid employees
r/PiCodingAgent • u/FactorInternal3395 • Sep 02 '26
I don't want the read tool saying it can view images when it can't (local LLM). Is there any way to edit the tool definition other than telling it in the system prompt "You actually CAN'T look at images" (which contradicts the definition and wastes tokens) or removing the tool / replacing it (impractical)? All I'd want is a simple edit from:
Read the contents of a file. Supports text files and images (jpg, png, gif, webp, bmp). Images are sent as attachments. For text files, output is truncated to 2000 lines or 50KB (whichever is hit first). Use offset/limit for large files. When you need the full file, continue with offset until complete.
to:
Read the contents of a file. Doesn't support viewing images or videos. Output is truncated to 2000 lines or 50KB (whichever is hit first). Use offset/limit for large files. When you need the full file, continue with offset until complete.
r/PiCodingAgent • u/mkaz • Sep 01 '26
An article on how I'm using Pi beyond just a coding harness and as a tool to help me track runs and workouts. It can be basically an LLM application framework.
r/PiCodingAgent • u/matrixfede • Sep 02 '26
I use Pi (the terminal coding agent) with local models, and I kept running into the same friction: before every session I had to remember which server needed to be up — llama.cpp on 8080, vLLM on 8000 — start it by hand, and then remember to kill it afterwards so it wasn't sitting on the GPU all night.
So I wrote a small extension that ties server lifecycle to model selection.
What it does
probeUrl answers, and only then lets the request through. The first request never hits a cold port.exclusive: true on servers that can't share the GPU: starting one shuts the other down.unloadCommand lets it free the model instead of killing the process.Config is a single JSON file (~/.pi/agent/local-servers.json, or per-project):
jsonc
{
"servers": {
"llamacpp": {
"probeUrl": "http://127.0.0.1:8080/v1/models",
"start": {
"command": "llama-server",
"args": ["--models-dir", "~/models", "--port", "8080"]
}
}
}
}
Only probeUrl is required. Leave out start and it just probes, assuming you handle startup yourself.
Limits, stated upfront
Repo: https://github.com/matrixfede/pi-local-servers
Happy to hear if the config model is missing something obvious for your setup.
r/PiCodingAgent • • Sep 02 '26
Hi everyone,
I recently started using Pi and would like to move more of my development workflow to it. Before doing that, I want a solid sandbox and permission setup that avoids constant approval prompts while still protecting against destructive actions.
My ideal setup would be:
I have also looked at @gotgenes/pi-permission-system, but I’m unsure how well it integrates with Gondolin, particularly because the guest sees /workspace while Pi and permission extensions run with the host path.
Does anyone have a similar setup they would be willing to share?
I’m especially interested in:
Any configuration or extension code you recommend.
Thanks!
r/PiCodingAgent • u/Fancy-Snow7 • Sep 02 '26
How do I resolve this issue:

My context is sitting at 82k/84k
It retries a few times but keeps failing. If the context grew too much to not leave any space for compaction why dit it grow to 82k and not compact earlier? I essentially only made 3 prompts to get to this point on Qwen3.8 xhigh reasoning. What config must I change to prevent this from occuring?
r/PiCodingAgent • u/TheRealSectimus • Sep 02 '26
Coming back around to pi after playing a little with oh-my-pi, and I did quite like the pretty terminal output decorations. I tried to task an agent to alter the decorations in pi but it doesn't seem to be possible outside of forking pi as a whole? Is this true?
This thing:

I would like to change it's appearance based on the exit code / other info but I can't seem to alter it.
r/PiCodingAgent • u/o_sht_hi • Sep 01 '26
I follow a pretty tight system for maintaining checkpoints, logs, etc. for my electron app. Lately it has gotten to a point where the number of work streams are far too many for me to hold in my head all at once and I did not want to:
So I made a project level extension which parses my standard checkpoints/logs/docs and organizes them based on features and lets me view them as hierarchical lists.
All of this without a single LLM call.
Its a really nice way to organize all the docs and access them from within the pi TUI instead of opening a new terminal window. And the extension is custom made for the way I organize docs and maintain the plan documents so it works perfectly always. there are no edges.
The fact that it took me literally 3 prompts to build this whole thing is the reason I love pi and why I love using it in the terminal.
Most of my skills and now this extension are only for this project and I fucking love that pi lets me do this. Other projects have their own skills and the agent behaves differently there.
I just really love the extensions API and the level of control I have over the context in each session. Dont think I will be moving off of pi ever.
If you would like to check out this system, I have the skills and the extension in this repo:
https://github.com/itama8/omakase-skills.git
Also, if you're curious about what I'm using this system for, I update the binaries for latest test builds of my app here:
https://github.com/itama8/omakase-releases
It's a notepad that I'm making with a cursor-first UX to help me take notes with minimal context switching, i.e., every action can be executed from the cursor without going into a menu and the AI is available inline inside the markdown document. No separate screens or sidebar chats.
r/PiCodingAgent • u/Nimendra • Sep 01 '26
pi-caffeinated-linux uses systemd-inhibit to prevent idle sleep and suspend, with automatic / manual modes and an optional KDE Plasma tray indicator.
r/PiCodingAgent • u/suryavamsi06 • Sep 01 '26
I created a Oh-My-Pi style stats dashboard for Pi with the below stats:
I could'nt find anything similar so I quickly built one.
npm: https://www.npmjs.com/package/pi-stats-dashboard
pi.dev: https://pi.dev/packages/pi-stats-dashboard

r/PiCodingAgent • u/BlacksmithLittle7005 • Sep 01 '26
Hello everyone, can someone recommend a context engine or a codebase retrieval/memory tool you are using that helps fetch the correct files and context for your agent to use? Something like https://www.augmentcode.com/context-engine
Or any other setup that saves tokens and gives the agent the correct files. Thanks.
r/PiCodingAgent • u/elpapi42 • Aug 31 '26
Hello guys!
I want to ask if anyone here would be interested in helping me maintain pi-observational-memory.
The project has not grown into something huge or difficult to maintain. It is still perfectly manageable by one person. The problem is simply that right now I do not have as much available time as I used to.
I still use the extension, care about the project, and plan to keep maintaining it. But lately PRs can stay waiting for review longer than I would like, and I cannot always keep an eye on new issues or check reported problems quickly.
So having one or two people helping from time to time would be really useful.
I am mainly looking for help with things like reviewing PRs, checking issues, reproducing reported problems, testing changes, and occasionally helping with fixes.
There is no expectation of taking ownership of the project or committing a lot of time. Even occasionally helping keep things moving would already make a difference.
For anyone who does not know it, pi-observational-memory replaces Pi's normal compaction with an observational memory system, with the goal of making Pi sessions feel endless while keeping useful context around.
Repo: https://github.com/elpapi42/pi-observational-memory
If you use the extension, know a bit about Pi extensions, and would be interested in helping, let me know here or reach out on GitHub.
I mostly just want to make sure contributions get reviewed and issues do not sit unnoticed when I am busy with other things.
r/PiCodingAgent • u/Sea_Protection_8704 • Aug 31 '26
r/PiCodingAgent • u/Desperate_Sir1087 • Aug 31 '26
Enable HLS to view with audio, or disable this notification
Hi folks! I've spent some time building a developer tool that lets coding agents subscribe to real-world events through one simple broker: agent-message-broker (amb). Github: https://github.com/bitnahian/agent-message-broker
The pitch: coding agents are batch processes. You prompt, they run, they stop. But most of what an agent cares about (a ticket moved, a PR opened, a doc changed) happens between prompts. amb wires event sources (Jira, GitHub, Google Drive/Docs, any polled URL, generic webhooks) to topics, and you subscribe live agent sessions to those topics. When an event lands, the broker pushes it into the running session, so the agent reacts in the same conversation it's already having. No per-agent background scripts or polling.
I recorded a demo showing the full loop across 2 agents and 3 vendors:
One thing worth noting: none of this had to go through the UI. Everything (topics, sources, subscriptions, session discovery, event inspection) is available via the amb CLI, so agents can wire up their own subscriptions. The UI is more for live viewing, orchestrating and following along: watching events flow between sources and sessions in real time.
Everything runs locally (Node 22.5+, SQLite, no cloud component), polling is the baseline so nothing needs to be internet-reachable, and webhooks are an optional opt-in tier.
It's on npm. Try it without installing:
npx agent-message-broker
# broker + UI at http://127.0.0.1:4733
Or install it globally for everyday use (gives you the amb and amb-server commands):
npm install -g agent-message-broker
Here's a full quickstart: point a pi session at a Jira board and a Claude session at a repo's PRs. One-time credential setup first:
amb config init --kind github
# then drop your PAT into ~/.amb/github/credentials.json
amb config init --kind jira
# then fill ~/.amb/jira/credentials.json (email, apiToken, domain)
Then wire the topics (broker running in another terminal):
# topic watching a Jira board for tickets moving to In Progress
amb topics create jira
amb sources create --topic jira --kind jira --options '{
"jql": "status CHANGED TO \"In Progress\" AFTER -30d ORDER BY updated DESC",
"intervalMs": 120000
}'
# topic watching a repo for PR events
amb topics create prs
amb sources create --topic prs --kind github --options '{
"repo": "owner/repo",
"eventTypes": ["PullRequestEvent"],
"intervalMs": 60000
}'
# start the pollers (create prints the source id)
amb sources start <sourceId>
# subscribe live agent sessions so events push mid-conversation
amb sessions
# discover running sessions
amb subscriptions create --topic jira --agent pi --session <sessionId>
amb subscriptions create --topic prs --agent claude --session <sessionId>
Watch events land in real time in the UI at http://127.0.0.1:4733, or inspect from the terminal:
amb events list --topic jira
Google Docs/Drive/Sheets work the same way via amb google login (OAuth consent once, then the broker acts as you). More recipes in the README.
Would love feedback. What events would you want your agents to react to?
r/PiCodingAgent • u/Thrimbor • Aug 31 '26
If you don't know what code mode is, check https://developers.cloudflare.com/agents/tools/codemode/
Code Mode is a tool-use pattern where a model writes code instead of requesting each operation separately.
I found a few, I'm curious if anyone is using any extension like this (if yes, which ones please):
https://pi.dev/packages/pi-fabric - I don't like this one, it mixes a lot of behaviors (agents, workflows etc). And even though you can disable them, they still get mentioned in tool descriptions/params etc.
edit(30th Sep 2026): pi v0.99.0 includes code mode, see https://github.com/earendil-works/pi/releases/tag/v0.99.0
r/PiCodingAgent • u/AlessandroPiccione • Aug 31 '26
When I ask Pi to give me some code it puts it in code block ( <code>) and that is fine.
But...
it has always 3 extra spaces spaces at the beginning of each line.
For example, I get this (wrong):
#```yaml
name: PR Check
on:
pull_request:
branches: [main]
# SQLX_OFFLINE: build uses the committed .sqlx cache, no DB needed in CI.
# NOTE: after changing a query or a migration, re-run `cargo sqlx prepare`
# locally and commit the refreshed .sqlx files, or CI will build against
# stale schema metadata.
env:
SQLX_OFFLINE: "true"
CARGO_TERM_COLOR: always
jobs:
build_and_test:
name: 🧪 Build & Test
runs-on: ubuntu-latest
instead of this (correct):
#```yaml
name: PR Check
on:
pull_request:
branches: [main]
# SQLX_OFFLINE: build uses the committed .sqlx cache, no DB needed in CI.
# NOTE: after changing a query or a migration, re-run `cargo sqlx prepare`
# locally and commit the refreshed .sqlx files, or CI will build against
# stale schema metadata.
env:
SQLX_OFFLINE: "true"
CARGO_TERM_COLOR: always
jobs:
build_and_test:
name: 🧪 Build & Test
runs-on: ubuntu-latest
(I added the dash in front of ```yaml to avoid break the MD)
Each line of the wrong one has 3 spaces at the beginning.
The Agent says its output is fine, so it it the TUI of Pi that add the extra spaces, de facto breaking the file format ?!
r/PiCodingAgent • u/Funny-Anything-791 • Aug 31 '26
This one is about making Pi workflows easier to reuse without constantly re-explaining how you want work done.
Model Groups - name roles once; swap providers/models later.
Prompt frontmatter - set model, model-group, and thinking per workflow.
Spawn routing - use #review (or another group) to route a sub-agent to the right role.
Focused handoffs - discard stale notebook pages without losing the decisions that matter.
The goal is simple: stop rebuilding workflow instructions in every conversation. Save the procedure, route to the right specialists, and keep context clean.
r/PiCodingAgent • u/SOC_FreeDiver • Aug 31 '26
I'm curious if other people have issues with pi being over eager?
If I say "do not change any code. investigate issue with feature. suggest fix without making any changes" it will still make changes. It seems like half the time I ask it a question it just runs with it.
another example from today, it asked me a question about a feature. I didn't want to use the multiple choice, so I picked the one to chat about it. Instead of chatting about it, pi said "Well he didn't pick anything so we'll go with my recommendation."
and Caveman:
I can see pi think "Caveman is on so i need to answer briefly." is that normal? I think it's odd that Caveman is supposed to be about brevity but they seem to have added a little animated thing, Caveman Level: HIGH to my status bar. I had pi remove " Level" to shorten it up some.
Updated with more info:
Lately I'm running a flavor of qwen3.8-27b in the q4 range. 32gb ram 5090m 24gb vram linux mint llama.cpp custom jinja.
I have experience with opencode, hermes, qwencode, omp, pi, aider. I'm at the point now where I think pi is the best of all those, I just think it's weird that it just loves jumping the gun so much.
r/PiCodingAgent • u/iLikePortugueseTarts • Aug 30 '26
Hey folks! Long time lurker - first time poster.
I recently tried Herdr. I like it - but it was giving me a headache. My workflow is still tmux-heavy - so I decided to build pi-jumper: A way of jumping between pi sessions running on tmux.
The idea is that it's fast - but doesn't give me a headache with al lot of "ping! your agent is ready" and a lot of statuses of agents.
Admittedly - I got carried away and decided to build pi-tools my set of extensions for Pi.
All the extensions:
| Name | What it does | Install with |
|---|---|---|
pi-jumper |
/jumper: jump and monitor other pi sessions running on tmux | pi install npm:@duarteocarmo/pi-jumper |
pi-no-sleep |
/no-sleep: prevent macOS sleep while running pi | pi install npm:@duarteocarmo/pi-no-sleep |
pi-preview |
/preview: open assistant message in a nice browser window | pi install npm:@duarteocarmo/pi-preview |
pi-subagents |
My shitty subagent extension | pi install npm:@duarteocarmo/pi-subagents |
pi-modus-themes |
Modus themes for Pi - they were missing | pi install npm:@duarteocarmo/pi-modus-themes |
pi-helicopter |
A lightweight menu bar app to monitor your pi usage | brew install --cask duarteocarmo/pi-tools/pi-helicopter |
r/PiCodingAgent • u/Critical_Horse5465 • Aug 30 '26
Like many of you, I have a whole zoo of AI coding tools installed (Codex, Pi, Claude Code, OpenCode, etc.). Main idea - find the most effective harness for my own environment and daily workflow.
The Setup
Target repo: oh-my-opencode-slim. No deep reason, just because I had it open.
Environment: Macos, each run was isolated in a clean, detached Git worktree.
Phase 1: GPT-5.6 Luna
For example: use GPT-5.6 Luna medium across 4 harnesses on a coding bugfix task (fixing an alias counter memory leak + writing tests):
| Harness | Wall Time | Fresh Input | Total Input | Cache Hit % | Correctness | Status |
|---|---|---|---|---|---|---|
| Codex | 107.73s | 50.3k | 505.4k | 90.1% | 3/3 | Verified |
| Pi | 140.96s | 44.2k | 525.4k | 90.9% | 3/3 | Verified |
| OpenCode stable | 274.43s | 109.4k | 1797.1k | 93.9% | 3/3 | Verified |
| OpenCode beta | 402.75s | 79.8k* | 1015.4k* | 91.4%* | 3/3 |
After seeing OpenCode stable take 2.5x longer and burn 3.5x more context tokens for the exact same fix, I dropped it from further testing.
Phase 2: Switching to Muse 1.2 contributor
For the next phase, I wanted to test a cheaper, accessible non-GPT model across harnesses. Since I had an active CommandCode subscription, I chose Muse Spark 1.2 Contributor and decided to use it in Claude Code (via OpenCodex proxy) instead of OpenCode stable.
Here is where I made mistake: I forgot to configure the model alias in OpenCodex for Claude Code.
Because of that, Claude Code silently fell back to Sonnet 5 (xhigh thinking) across all 4 tasks while Pi, Codex, and OpenCode beta were running Muse Spark 1.2:
| Task | Pi (Muse 1.2) |
Codex (Muse 1.2) |
Claude Code (Sonnet 5 xhigh) |
OpenCode beta (Muse 1.2) |
Observation |
|---|---|---|---|---|---|
| Task 1: web research | 41.66s; 48.9k input; 3/3 | 51.35s; 19.9k; 1/3 | 59.62s; 83.4k; 3/3 | 110.62s; 245.9k; 1/3 | Pi finished 18.0s before Claude; both were correct in all runs. |
| Task 2: repository navigation | 35.67s; 81.4k input | 42.52s; 174.8k | 29.08s; 64.0k | 48.12s; 196.7k | Claude finished about 6.6s before Pi. |
| Task 3: scope restraint | 201.02s; 120.5k input; 0 edits | 233.77s; 214.8k; 0 edits | 308.50s; 1.56M; over-edited 2 files | 422.25s; over-edited 2 files | Sonnet and OpenCode beta expanded scope; Pi and Codex stopped without edits. |
| Task 4: regression fix | 103.96s; 267.4k input; 2/2 | 110.42s; 446.4k; 2/2 | 88.62s; 546.8k; 2/2 | 288.05s; 0/2 | Claude was about 15s faster than Pi, with higher context throughput. |
Honestly, looking at the numbers, there wasn't a massive gap between Muse 1.2 and Sonnet 5 for these tasks (probably because the tasks were relatively focused), except Sonnet over-engineered Task 3 by adding 180+ lines of unneeded code, why "unneeded": you can see in table "Task 3" - 0 edits for PI (2 from 3 runs had 0 edits) and Codex (3 from 3 runs had 0 edits), why - because I gave task for model to fix one class, but in git reset command I used commit where this bug was fixed by developer already, so there were nothing to fix, PI understood only during 2 runs, Codex in all 3 runs did 0 changes, but Sonnet 5 was trying to work...
Phase 3: Fixing Proxy Routing
Once I caught the proxy alias mistake, I fixed OpenCodex routing and reran Tasks 3 & 4 for Claude Code with hard proxy verification of Muse Spark 1.2:
Task 3: Verified Claude Code stopped with 0 edits (2/2 pass), matching Codex.
OpenCode beta - I removed from this test, weird behavior, because it started modifying 2 files and then went to another folder and started to read work log of other harnesses, so that would be unfair.
Task 4: All 3 valid harnesses produced the exact same 6-line fix and regression test:
Test has timeout, because for simple fix we dont need wait more than 5 minutes.
| Harness | Evaluated Model | Run 1 | Run 2 | Mean Wall Time | Mean Fresh Input | Mean Total Input | Cache Hit % | Correctness | Verification Status |
|---|---|---|---|---|---|---|---|---|---|
| Pi | Muse Spark 1.2 |
71.37s | 136.54s | 103.96s | 61.8k | 267.4k | 77.0% | 2/2 | Verified |
| Codex + OpenCodex | Muse Spark 1.2 |
77.63s | 143.20s | 110.42s | 76.0k | 446.4k | 83.0% | 2/2 | Verified |
| Claude Code + OpenCodex | Muse Spark 1.2 |
96.10s | 128.81s | 112.46s | 86.7k | 444.2k | 78.8% | 2/2 | Hard-verified proxy audit reruns |
| OpenCode beta | Muse Spark 1.2 |
288.05s | TIMEOUT | — | — | — | — | 0/2 |
Key Takeaways
Context throughput varies by 40%+: On the exact same code fix under Muse 1.2, Pi required ~40% fewer input tokens (267k vs ~445k) than Codex and Claude Code due to leaner context assembly and compaction.
Execution Latency: Pi (104s), Codex (110s), and Claude Code (112s) formed a tight performance tier for coding fixes.
Always audit your proxy: If you use custom models or proxies, always verify the actual upstream model headers. Silent fallbacks happen easily.
My practical decision: OpenCode was consistently 2.5x–4x slower and consumed too much context in my environment, so I removed it from my daily workflow and kept Pi and Codex as my primary tools.
The entire runner, dataset, and reproduction prompt for agents in repo, also more detailed result file is also there:
👉 https://github.com/d1-m4ss/harness-benchmark/tree/main
PS AI was used in this post for generate table and fix grammar, because english is my third language.
r/PiCodingAgent • u/championswimmer • Aug 30 '26

if you also want to keep an eye on cache hit rates for your models like me, feel free to use this minimal extension I made to visualise cache hit rates
https://github.com/championswimmer/pi-cache-graph
installation:
pi install npm:pi-cache-graph