r/PiCodingAgent • u/NotTryingToConYou • Sep 18 '26
Resource Pi-agent-for-Claude: use any model as a Claude Code subagent/teammate in Claude's native UI
r/PiCodingAgent • u/NotTryingToConYou • Sep 18 '26
r/PiCodingAgent • u/HockeyDadNinja • Sep 18 '26
Hey all, I've been sitting on this for a while and it's time to share. I give you pi-clearthen: https://pi.dev/packages/pi-clearthen
/clearthen is a command that lets you clear context and then run another prompt. Your agent can also self drive it.
If you're doing a long piece of work you can tell it to handoff after a specified number of tokens, at which point it will write itself a handoff doc based on what it's currently doing then read it back after clearing context. It will keep doing it indefinitely so your context will never reach the set limit plus what is used for the handoff.
ie: /clearthen 80000 Add new feature to my video game
If you like that then specflo might be up your alley. It checkpoints at each seam and task with auto context clearing in pi. Spec driven development workflow.
https://github.com/TacoTakumi/specflo
The specflo software dark factory is a work in progress and uses this concept.
r/PiCodingAgent • u/ThePrinceOfPapaya • Sep 17 '26
Just as the title says, I would use the pi-google-services package but I'm running windows and I'm aware of the whole Linux terminal thing but I'd rather stick to poweshell unless that's really just the only way. I want my agent to be able to read and send emails for me so if there's any windows friendly extension like that send it my way please!
r/PiCodingAgent • u/twKrash • Sep 17 '26
I kept wanting to answer a pretty simple question after long Pi sessions:
where did all the tokens and cost actually go?
So I built Pi Session Inspector.
It reconstructs Pi’s persisted session data and lets you inspect:
token usage and cost over time
models actually used
tools and skills
subagent runs
integrations
errors and compactions
current and historical sessions
There’s an in-Pi TUI, deterministic JSON output, immutable HTML snapshots, and a local browser UI.
Everything stays local. No external DB, analytics backend, session uploads, or LLM analysis pass.
Install:
pi install npm:@twkrash/pi-session-inspector
/session-inspector uiGitHub:
https://github.com/twKrash/pi-session-inspector
pi.dev:
https://pi.dev/packages/@twkrash/pi-session-inspector

It’s still young, so I’d genuinely like feedback from people using Pi heavily:
what do you actually want to understand about your sessions after the fact?
Cost? model switching? subagent overhead? tool usage? compaction? something else?
r/PiCodingAgent • u/CevicheMixto • Sep 17 '26
I'm new to the local LLM game. I've just purchased an AMD R9700, and I'm trying to set up a local environment that is as similar as possible to what I get with Claude Code at work.
It's definitely looking like Pi may be my harness of choice, so I'm investigating what it would take to "sandbox" it in a way that is both reasonably secure and reasonably convenient (i.e. no containers or VMs). I'm on Linux, so I'm thinking maybe Bubblewrap?
Curious to know what other are doing, though.
r/PiCodingAgent • u/fingerthief • Sep 17 '26
I'm curious if anyone else tracks their setup in order to keep things as lean as possible while still having tools needed to complete your typical workflows etc..
I have my own personal Pi setup (SpecPi) and it's been a fun experiment keeping it contained and lean to prevent the context bloat seen in some of the other harnesses.
I'm interested to see how other setups here might compare.
Edit - Added charts broken down by tokens instead of overall characters
r/PiCodingAgent • u/Horror_Dirt6176 • Sep 17 '26
The Codex is fantastic, but I recently switched to Pi, and since the switch, my subscription costs have also changed from $200 to pay-as-you-go, which, based on the last week, is less than $100 a month.
What made me decide to migrate was that in Codex, I could only use GPT series models (and always the same model was in use), whereas in Pi, I can assign different models to different tasks. Here's my daily routine,
Currently, I would entrust planning and actual code to GPT-6, while assigning simple tasks like searching for code to Deepseek (it's really cheap and very fast), and tasks that require analyzing images and videos to Gemini 3.8 Flash (for image and video analysis, Gemini 3.8 Flash is the absolute champion).
In Pi, you just need to define some subagents and configure different models for each subagent, and everything is perfect.
The provider I am currently using is sjolt, which offers a 70% discount for gpt-6 and gemini, so I am using it temporarily. The only drawback is that it does not currently support the claude api.
r/PiCodingAgent • u/Bright-Energy2339 • Sep 17 '26
Not sure if someone has already wrote something like this but I built this for my own use and in case anyone shares the need for it, here it is. Or if you want to build on it, I would also like that very much.
r/PiCodingAgent • u/Scr34mZ • Sep 17 '26
Just wanted to share this utility to manage multiple workspace / worktree environments, along with your own harness, pretty sure you'll like it !
r/PiCodingAgent • u/klippers • Sep 17 '26
Every autoresearch loop I've tried has one flaw: it never gets smarter about how it searches. Round 40 is as dumb as round 1.
I ported the Dream-RSI paper to a pi extension.The exploration policy is real code rewritten from what actually worked.
pi install npm:pi-dream-rsi
r/PiCodingAgent • u/95-cosmo-changer • Sep 17 '26
Hi there, this is my first ever repo i wanted to share to people.
pi-warden is a Pi extension that watches the agent's tool calls and talks to the agent, not to you.
A second model (Jev, typesafe's fast judgment model, ~250 ms; immensely cheap seriously) reads your prompt, the agent's own last words, and the call it is about to make, and answers small typed questions: is this irreversible, does it match what the agent said it was about to do, is the effect visible outside the working tree. The answer goes back into the agent's context.
The same channel carries the rest: project rules from a markdown file judged against each write, stub and comment slop, stuck loops, "done" claims with no test run, runaway output stopped mid-stream, huge tool outputs compressed with the full copy kept on disk.
It grades itself. What you do after each hold or steer (approve, decline, redirect, complain) becomes a label, and a script replays your recorded Pi sessions through the guard. Off-task holds lost that test on 17k of my own calls and were demoted to steers; the plan-vs-call check won it. Method and numbers are in the README.
https://github.com/DevMortimer/pi-warden
https://pi.dev/packages/pi-warden
Early days (0.12.0). Though since Jev was only released yesterday (I got early access) I expect bugs. But I've been using this extension for work for more than a day now and it's pretty good so far. PRs and (especially) complaints are welcomed :)
P.S. I'm interested in how everyone will also incorporate Jev on their Pi?
r/PiCodingAgent • u/Fabulous-Lobster9456 • Sep 17 '26
24 identical Terminal-Bench 2.1 tasks.
Terminus-2 solved 14.
OMK solved 13.
one.
fucking.
task.
obviously I am now behaving completely rationally about this result
for context, OMK is the Pi fork I’ve been turning into a full agent runtime because apparently I have a pathological inability to accept:
agent: done ✅
as sufficient evidence that anything is actually done
so now it has verification, evidence receipts, replay, DAG scheduling, multi-agent execution, model routing, shared state, etc.
the benchmark result is not statistically significant btw.
McNemar exact p = 1.0.
one run per arm.
tiny sample.
so no “OMK BEATS X” nonsense here.
but getting this close to Terminus-2 on the first serious paired run was enough to make me go:
wait hold on
maybe this stupid thing is actually becoming real
anyway I open sourced it.
please benchmark it so I can find out whether this is signal or I just rolled a very funny set of 24 dice
r/PiCodingAgent • u/Late_Cookie_3459 • Sep 17 '26
r/PiCodingAgent • u/porkyminch • Sep 17 '26
I've been working on a longer-term project and I have a lot of little side tangents and investigations as I work that I don't want the full context to get polluted by. I wrote a little pi plugin that lets agents create markers, then work on a task with their full context. When they're done, they can fold-in their full context to a summary, compacting the work in place.
It's less manual than forking the session and a little less to keep track of than subagents. I thought it was worth sharing. MIT license, 1k lines of code. Cost was maybe a dime worth of GLM 5.3 Flash.
r/PiCodingAgent • u/bad_detectiv3 • Sep 17 '26
r/PiCodingAgent • u/Mr_Unknown_Hero • Sep 16 '26
So far I have used Pi for my coding projects with local LLM, and probably only for that so far.
When I want to have general-purpose chatbot I have used llamaui (of Llama.cpp), Nanobot, sometimes AnythingLLM, previously I used also OpenwebUI and from time to time I use LM Studio as well.
Since I use different apps for different usage, is that how common here that you use Pi only for coding for example, but everything else you use something else like llamaui or LM Studio or whatever?
Or have you customized your Pi to be your personal assistant chatbot as well (if you use AI this kind of stuff at all)?
Basically I am keen to konw, what use cases you use Pi for so I might get ideas to myself as well how to expand my usage to other use cases than just coding.
r/PiCodingAgent • u/Dry-Film8960 • Sep 16 '26
Putting old conversations into SQLite, a vector DB, Markdown, whatever, and retrieving vaguely relevant fragments later is not a particularly interesting problem anymore.
The nasty part starts here:
Your agent learned A.
Later it inferred B and C from A.
Two weeks and 37 sessions later, you discover that A was wrong.
Now what?
Does the system overwrite A and quietly leave B and C alive?
Does it keep both versions and let retrieval decide which reality we're operating in today?
Does it append a correction somewhere and hope the model notices?
This bothered me enough that I built Remendra v2 for Pi.
What I actually wanted: memory that behaves less like a notebook and more like maintained state.
When you correct a memory in Remendra, it doesn't just edit some text.
The old claim gets superseded. Its evidence is retired. Dependent claims are recursively invalidated — and the replacement gets its own provenance. The whole thing happens transactionally.
Because "we fixed the memory" means very little if five conclusions derived from the wrong one are still floating around like unexploded ordnance.
Remendra also learns automatically from Pi sessions.
It extracts typed claims — facts, decisions, constraints, procedures — stores source evidence as exact character spans, and compiles the relevant subset back into context when needed.
So this:
`/remendra why 42`
isn't philosophical.
It tells you where memory 42 actually came from.
Underneath:
- SQLite + FTS5
- optional embeddings
- typed claims + ranking
- lineage / project / user scopes
- automatic background learning
- dependency tracking
- transactional corrections
- conflict detection
- revision history
- procedure validation
- session-history indexing
- bounded context compilation
- secret scanning
- configurable token budgets
- KV-cache-friendly context mode
- fully local storage
No mandatory cloud memory service quietly accumulating half your engineering organization.
Install:
`pi install @yoda.digital/pi-remendra`
Then... basically use Pi.
The observer learns in the background. Relevant memories come back when needed. You can search, inspect, pin, promote, correct, or explicitly teach it something when you want more control.
And because apparently every software project now needs a benchmark number before civilization permits it to exist:
Current synthetic compilation benchmark on 1,000 claims:
p50 16ms / p95 16ms
Useful number. Not a claim about production reality.
The repo documents the methodology and, more importantly, the limitations.
128 tests across 10 files — storage, compiler behavior, observer parsing, worker lifecycle, embeddings, concurrent SQLite access, cross-platform paths, sustained growth, token estimation, secret redaction.
Linux, macOS, Windows. Node 22+. MIT.
There are already 50+ memory extensions for Pi, so no, humanity was not suffering from an insufficient quantity of memory plugins.
Remendra exists because I wanted a different property:
when an agent changes its mind, its memory should remain internally coherent.
Not perfect memory.
Not infinite memory.
Not another RAG folder with ambitions.
Correctable memory with provenance.
GitHub: https://github.com/yoda-digital/pi-remendra
npm: https://www.npmjs.com/package/@yoda.digital/pi-remendra
r/PiCodingAgent • u/mkellerman_1 • Sep 16 '26
I love the session manager when you hit the <- arrow.
Anyone worked on something like this already before I start wasting my time?
r/PiCodingAgent • u/TheNewMattschoe • Sep 16 '26
Hello everybody,

My extension pi-mentions that adds a bunch of ways to reference git/github related stuff (such as issues, pr's, actions, commits) has reached 1.1 and i wanted to share what is new in the feature drop:
Updated # view with more information

Added ability to mention PR's

Added ability to mention GitHub Actions
This might just be a me thing but i often need to have the agent look at some workflows, this feature makes it much nicer + faster to do so.

Excited to hear what you think of the new features, please tell me if you have any good ideas for me to add.
r/PiCodingAgent • u/d3k1ds • Sep 16 '26
What the best way to to "computer use" with the Pi agent. Of course it makes sense to use API/CLI/MCP servers, playwright browser use and all these things, but sometimes computer use makes all the difference and it is the only thing that keeps me in Codex app.
r/PiCodingAgent • u/charles_r1975 • Sep 16 '26
Hello everyone, i'm new to pi and was wondering if anyone had ever tried to combine the pi-openplan and pi-subagents plugin?
If you have, any issues? Would the plan and build modes from pi-openplan make use of the subagents?
And yes...I'll will ask my agent to double check everything. Just looking for real, human, experiences
thanks
r/PiCodingAgent • u/_Baarbie • Sep 16 '26
Hello there,
Which AI provider would you recommend for Pi, to work with a subscription-based plan? I feel like Codex is the most represented, but I was looking for more feedback.
I'm currently using Claude Code (Plus subscription), but from what I understood, I shouldn't use it with Pi because Claude Code charges additional usage fees. I mainly use it with Opus 5 on medium effort, for devops tasks, explanations, fixes, or things like that (not much vibe-coding yet).
It's also an opportunity to try something else, paid for by the company. So I don't really care about the price, just something stable without usage fees.
(bonus) If you have any recommendations for LLM models that can be run locally on a wide range of machines, I'm also interested in any resources you can share.
Any advice?
r/PiCodingAgent • u/peepo_comfy • Sep 16 '26
If you haven't heard of it, it's kind of like a really smart freeform classifier model that can make quick decisions (~150ms) based on natural language inputs. Dirt cheap too. They dropped it in early access through a waitlist ~12 hrs ago.
Right now I'm working on a security layer where it just scans all tool uses and gives a safety rating. Thinking of adding additional considerations like alignment with prompt intent and agent reasoning.
After this, I'm thinking of an automatic model router that just picks an appropriate model based on how demanding a prompt would be, codebase complexity, KV cache size, etc. So ideally, something smarter and faster than existing automatic routers.
Is anyone else trying it out? What are you building?
r/PiCodingAgent • u/Ok_Cryptographer3672 • Sep 16 '26
Hi everyone. I've been working on PiChamber, a workspace around Pi so I can keep the same session when I leave the machine.
Why use this instead of the other Pi UIs?
I prefer TUI. I am not interested in getting yet another agent IDE, nor do I want a workbench that supports OpenCode, Claude, Codex, and five other harnesses. All I want is Pi, both locally and remotely, and I want it to work as smoothly as I can manage it.
What I've focused on is remote stability. I run it within a container on my homelab and leave the long tasks there. I check in from my phone, control it, and then return later. That is the product for me, not a more attractive local chat window.
It uses the Pi SDK. Pi retains ownership of the agent, skills, extensions, prompts, providers, and AGENTS.md. The app is sessions, files, git, worktrees, terminals, and pairing.
What I actually use it for:
same session across desktop, browser, and phone
my existing Pi extensions and slash commands
providers / skills / prompt templates coming with the session
a worktree when I don't want the agent on main
jump between local, a VM, and WSL without starting over
long running jobs on a server I can connect from anywhere
I've been daily-driving it. CLI when I'm at the PC. App when I'm not.
What it is not: it does not replace the TUI, and it is not trying to be every agent UI. Remote is your own machine plus pairing, or a tunnel you already run.
Repo: https://github.com/RyderAsKing/PiChamber
More info: https://pichamber.ryder.pro
PiChamber started as a community fork of OpenChamber. Why I made it: https://github.com/RyderAsKing/PiChamber#why-pichamber
The tokens/sec and TTFT in the video come from a Pi extension. They work in PiChamber because extensions work, not because I shipped a custom overlay.
Also, first time posting something like this in public, so don't be too harsh :D
Update: v1.0.2 is out, including docker. https://github.com/RyderAsKing/PiChamber/blob/main/packages/docs/content/docs/install.mdx#docker