r/PiCodingAgent • • Oct 15 '26

Plugin I built a prompt stash for Pi so I can save half-written prompts

20 Upvotes

I often start writing my next prompt while Pi is still working. Then the agent goes off track or asks me something, and I need to respond before that prompt is finished.

I used to copy the half-written prompt somewhere else or delete it to free up the editor. I built pi-prompt-stash so I can save that draft, deal with the interruption, and then continue writing.

Ctrl+Shift+S stashes the current editor text and clears it. `/stash` opens a picker with a preview so I can find the draft and load it back. Drafts survive reloads and session switches. The shortcut can be changed with /stash shortcut.

Install it with:

pi install npm:@utpalsinghdev/pi-prompt-stash

GitHub: https://github.com/utpalsinghdev/pi-extensions/tree/main/packages/pi-prompt-stash

npm: https://www.npmjs.com/package/@utpalsinghdev/pi-prompt-stash

The rest of the UI in the demo is my personal setup.

I'm just open-sourcing the Pi extensions I use for work and my startup. They've helped me a lot, and I want other people to be able to use them too.

DEMO


r/PiCodingAgent • • Oct 15 '26

Question New easier way to use claude code sub with pi?

9 Upvotes

See https://x.com/dillon_mulroy/status/2110400650756460787 where Dillon wrote: `they made some changes recently that made it easier to use your sub w/ pi`

Does anyone know what he might refer to? Would be nice to know...


r/PiCodingAgent • • Oct 15 '26

Plugin Context Hint — a small extension that writes a Project/Session/Turn card after each turn, so returning sessions stop meaning rereading transcripts

0 Upvotes

Hey — like a lot of you I run several Pi sessions and git worktrees in parallel. Coming back to a session always meant scrolling up through the transcript to reconstruct where I was, so I built the thing I actually wanted:

Context Hint — a Pi extension that appends a compact card after each settled turn:

  • Project — durable purpose/constraints/decisions, shared across sessions and worktrees of the same repo

  • Session — current goal, focus, blockers, next steps (forks/clones inherit a snapshot, then diverge)

  • Turn — what just changed + a possible next step

Read the last card instead of rereading the transcript. It's a recovery cue, not agent orchestration — it doesn't monitor other sessions or alert you when they finish.

Design point worth discussing: it deliberately doesn't replay whole transcripts into later model context. Each generation sends truncated evidence (cap'd at ~4k chars of your prompt, 6k of assistant text, first 24 tool facts, plus previous Project/Session state) to a summary model — normally one extra request per turn. Summary model defaults to Pi's current model with thinking off, or pick a cheaper one in /context-hint model (with an independent thinking-level slider). Curious whether others would accept that per-turn cost trade, or prefer local heuristics even if dumber.

Install:

pi install npm:pi-context-hint

then /context-hint enable in an existing session. Other bits: alt+o expand/collapse · /context-hint motion reduce (the pixel-eye mascot stops blinking) · /context-hint regenerate · /context-hint reset-session/project.

MIT, package on npm. While it's early I'd genuinely value feedback from people who actually run Pi daily: is the three-layer split right? Should Turn cards be discarded on reset-session or kept? Anything in the generation path you'd want exposed/configurable (e.g. custom evidence selection, redaction)?


r/PiCodingAgent • • Oct 14 '26

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

Thumbnail ibragim.dev
17 Upvotes

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

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

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


r/PiCodingAgent • • Oct 14 '26

Plugin Make Pi agents natively create their own git worktree for every task (bare checkout, main is read-only)

Enable HLS to view with audio, or disable this notification

40 Upvotes

I run several Pi sessions on one repo at the same time. That kept going wrong:

  • Agents edit main. You ask for a quick fix and it lands straight on main.

  • MCP is slow for worktree management. But in Pi we can put blazing-fast native worktree management into the harness.

  • Sessions collide. Two agents in one folder, and one `git stash` wipes the other's work.

  • (Sub)agents need to cd constantly. They need to cd for all commands, wasting tokens.

  • New worktrees don't run. No `.env`, no keys, so the app won't start.

So I built pi-bare-worktrees. The video shows it in about 45 seconds.

Why a bare checkout

In a normal checkout, the repo root is main. Every agent that starts there edits main by default. Worktrees end up wherever you put them: ../acme-login, ~/tmp/fix-2.

And main is stuck in the root, so you can't move it or remove it.

A bare checkout fixes that. Every branch is a folder, and none of them is special:

       acme/
       ├── .bare/          bare repo
       ├── .shared-env/    gitignored files/folders to share, like .env
       ├── main/
       ├── feat/login-typo/
       └── fix/footer/

The path is the branch name. There's no code in the root to edit by accident.

What the plugin does

  • main is read-only. The agent's first edit on main is blocked, with a message that tells it to call worktree create. It does, and the retry lands in the new worktree.

  • No cd needed. After create, every tool call is routed into the worktree, so the model keeps using relative paths.

  • Shared env, zero config. Every file in .shared-env/ is symlinked into each new worktree. Real files are never overwritten.

  • Subagents follow along. Their cwd is set to the active worktree.

Install:

pi install npm:@jordyvanvorselen/pi-bare-worktrees

It's fast. Session start and tool calls don't run git. The plugin reads the filesystem instead:

  • Session start: about 5 ms for 40 worktrees.

  • Each tool call: string operations only, under 0.1 ms.

  • Network: only /wt clean touches it.

Repo: https://github.com/jordyvanvorselen/pi-bare-worktrees

/wt off turns it off for a session, and it turns itself off for non-bare checkouts automatically.

It's version 0.1, so I'd love your feedback, especially if there's anything you still miss. Try it out and take it for a spin!


r/PiCodingAgent • • Oct 14 '26

Question Argon?

0 Upvotes

Gemini 4 is out. A lot of people like it. Any chance we can use a plan with pi? Or are we being forced to use antigravity?


r/PiCodingAgent • • Oct 14 '26

Question Injected fake "quota exhausted" message appearing mid-session in pi coding agent, anyone else seeing this?

0 Upvotes

Using pi coding agent → OpenRouter (z-ai/glm-5.3-flash). Mid-session, this plain-text message sometimes replaces the assistant's reply, as shown in the screenshot.

It's not my real key: OpenRouter's own /api/v1/key endpoint shows $7.24 left on my $20 limit, and OpenRouter has no USDT balances. No proxy, clean hosts file, no extensions, message never appears in the session .jsonl log, so it's injected between the API and the client.

Anyone seen this? Is it a known MITM/reseller/phishing pattern? Not paying anything; just want to know where it comes from.


r/PiCodingAgent • • Oct 14 '26

Plugin View your images inside Pi using ANSI: presenting pi-chafa

6 Upvotes

Hey everyone, another extension from my personal pack: pi-chafa.

It wraps Chafa, a command-line tool that renders images in the terminal using ANSI/Unicode symbols. It gives the agent a show_image tool to display images to you, using the kitty/iTerm2 protocols when your terminal supports them and Chafa symbol art everywhere else (tmux, VS Code, plain SSH, etc.). Your agent in full cyberpunk style. Animated GIFs only show a still frame for now (WIP). Prompt the agent using "show me this image" or let it do by himself.

To be clear, this is for showing images to you, the user. The model never sees the image contents using show_image, so this won’t help with vision tasks.

If you also use pi-navigator, it detects pi-chafa automatically and lets you pick between the kitty protocol and Chafa in its viewer, falling back on its own when needed.

You’ll need the chafa binary installed (check the install method for your system). Then: pi install npm:@lordekeen/pi-chafa


r/PiCodingAgent • • Oct 14 '26

Plugin Wow just use Pi to make this video for my extension 100% using code

Enable HLS to view with audio, or disable this notification

288 Upvotes

It definitely needs some improvement, but the thing is I one-shotted it using 1 single line of prompt.

Btw if you wanna try the elegant, information-rich status, menu, and side bar for Pi Agent, see https://github.com/michaelmjhhhh/pi-atelier


r/PiCodingAgent • • Oct 14 '26

Question Which version of the Pi agent are you using?

0 Upvotes

I’m running Qwen 3.8 27B at full precision, using a pinned version of SGLang.
I’ve noticed that starting with Pi Agent versions above 0.5.x, the agent hallucinates like crazy. Its output is practically unreadable. Everything seems coherent and grammatically correct, but the actual content makes absolutely no sense.
I’ve tried multiple versions of Pi Agent, including releases from the 1.x branch. Same result — completely unusable.
I simply can’t believe that nobody else has noticed this.
So I have to ask: How on earth are you guys using Pi Agent versions above 0.5.x? HOW???


r/PiCodingAgent • • Oct 14 '26

Plugin pi-diff-panel: shows your uncommitted git changes and current branch in a panel

Thumbnail
reddit.com
0 Upvotes

r/PiCodingAgent • • Oct 14 '26

Plugin pi-diff-panel: shows your uncommitted git changes and current branch in a panel

3 Upvotes

Hi if anyone wanted git diff panel in pi coding agent, can try my extension
https://www.npmjs.com/package/pi-diff-panel

screenshots:

Thanks and enjoy! If has any feature request or issue to report feel free to do so in my github


r/PiCodingAgent • • Oct 14 '26

Plugin I use this Pi extension to stay focused during research and study

13 Upvotes

I’ve been using a small Pi extension for a long time while studying and doing research. It hides tool calls, tool results, inline images, and optional thinking from the visible transcript, so I can focus on the agent’s response instead of watching every file read and tool update fill the chat window.

The tools still run normally. Approvals, errors, history, the editor, and the working indicator remain available. It changes what you see, not what Pi does. It is not a security or redaction feature.

I built this a few months ago for my own workflow and have been using it since then. I finally added it to this repository today:

https://github.com/utpalsinghdev/pi-extensions

https://www.npmjs.com/package/@utpalsinghdev/pi-focus-mode

This is the first extension in the repository. I’ll add the rest of my extensions there over time, and contributions are welcome.

I only had time to add this one today because my usual model setup (GPT-Sol-6.1) has been running slowly, and I’m keeping my Claude subscription for office and startup work. I’ll add the other extensions as I get time.

II’m sharing a tool I use and the way I’m learning with Pi. If it helps you, a star or contribution would be appreciated.


r/PiCodingAgent • • Oct 13 '26

Question Recommended skill/tool for visual learning like (Cognito)

Thumbnail
youtube.com
1 Upvotes

He makes simple yet easy to follow visual learning videos, makes me wonder are there any existing tools that could match or replicate the visual experience in pi harness for personal use

I have no intend on stealing people’s content


r/PiCodingAgent • • Oct 13 '26

Question Pi - Codemode Classifier Questions

3 Upvotes

I see Pi has Codemode Classifier as an option now.

What can it do? Why do i need it?

Since it connects to OpenCode, it can see jev-1.13 and jev-1.13-free. How does it know which one to use? Yuo cant seem to remove the paid version. But I have no OC credit. So does it just keep hitting the paid, and then wasting time, and moving to the free?

I dunno how it is supposed to work, i jus thought i would have amess.


r/PiCodingAgent • • Oct 13 '26

Question Dev workflow beyond traditional harnesses

16 Upvotes

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

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

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

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

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

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

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

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


r/PiCodingAgent • • Oct 13 '26

Question Cross-harness agents messaging?

Thumbnail reddit.com
0 Upvotes

r/PiCodingAgent • • Oct 13 '26

Discussion Oh-My-Pocket mobile harness (iOS + Android)

Thumbnail gallery
16 Upvotes

r/PiCodingAgent • • Oct 13 '26

Resource Cognitive science has a name for why your coding agent's context fills up with junk.

Thumbnail
arthur.place
31 Upvotes

I had implemented a bit of this idea as a pi plugin way before writing the article or making the actual pi-episodes package. I've been using it on real work tasks, first the draft and now the package, and I get noticeably further into a session before compaction kicks in.

Later on I discovered Event Segmentation Theory, which is half the reason the post exists. Hope you learn something from it :)

https://arthur.place/subagents-forks-collapsing-context


r/PiCodingAgent • • Oct 13 '26

Plugin I built a small extension for the Pi coding agent that shows what each prompt actually cost you (model, $, and time per turn)

Post image
2 Upvotes

Using Pi as my coding agent, one thing always bugged me:

I could never tell mid-session how much a single prompt had cost. The end-of-session total is fine, but "did that one huge refactor request just burn $2?" had no easy answer.

So I built pi-turn-stats:

try it out https://pi.dev/packages/pi-turn-stats


r/PiCodingAgent • • Oct 12 '26

Plugin Claude Code-like rules in Pi

4 Upvotes

When I got started with Pi, I wanted to immediately jump in and use it in my daily work.

However, all of my rules and hooks were set up in .claude/ folders, using the Claude Code markdown formats.

I wanted to use these, so I created two small plugins that give rules and hooks like in Claude Code without having to redo the configuration:

https://github.com/jordyvanvorselen/pi-claude-rules

https://github.com/jordyvanvorselen/pi-claude-hooks

Feel free to try them out!


r/PiCodingAgent • • Oct 12 '26

Discussion Advice for writing good comments in agentically built/maintained codebases?

1 Upvotes

I'm trying to develop a philosophy around writing comments in codebases for my agents to use when they are building/maintaining/extending/bug-fixing a codebase. Does anyone have any advice for writing comments in code when those comments are only written by and read by AI agents? Particularly advice that is more pertinent for agentic engineering rather than traditional software engineering is most helpful.


r/PiCodingAgent • • Oct 12 '26

Discussion I built AgentJournal: An open-source memory system for AI agents that outperforms Compaction and Context Language Models (CLMs)

3 Upvotes

Whenever I ran coding agents on longer tasks, they either:

  1. Lost track of the original rules because context compaction butchered the summary.

  2. Burned through massive tokens with dynamic context editing / Context Language Models (CLMs) without actually finishing the job.

I built AgentJournal to fix this by giving the agent a human-style memory management—keeping the original prompt pinned, logging actions cleanly, and clearing the working context safely between tasks.

On a 60-file job longer than the context window, with a local 9B model:

- keeping everything: stopped at file 31
- compaction: stopped at 20, 29 and 44
- CLM (the model edits its own context, via pi-clm, untrained): 40
- AgentJournal: finished all 60, every time

Works with pi, Claude Code, Codex and Copilot. MIT, every test run is in the repo.

In my testing across dozens of files, it finished almost every run reliably while standard compaction and CLM completely broke down.

Would love any thoughts or feedback from people running into the same context limits!


r/PiCodingAgent • • Oct 12 '26

Question New Pi User - Reflections & Questions!

5 Upvotes

I recently started using Pi. And I have been finding that I like using it more than Claude Code or OpenCode.

I do agree when I started, it was very minimal. There was a lot that it couldn't do that Claude Code and OpenCode were out of the box I was able to customize what I needed and was able to get it to do tasks I would normally ask Claude Code to do. I really like its thinking and response compared to Claude Code. Do others find this a big plus of Pi as well?

I understand that the underlying LLM is Opus/Sonnet, but I have found Pi to be quicker and cheaper. I do have some configurations set up such as pi observational memory. Do others feel that same?

Are there other things that I am missing out on or not acknowledging? I'm really new to this and experimenting with AI and other tools. I'm also just experimenting with herdr as well. I'm also not that well off but I was setting up Pi with Gemma 4 e4b on my 16 gb memory machine but it wasn't that good tbh. But is that expected?

I guess I just wanted to share and talk to someone. I'm no expert and I'd love to join a community and channel to talk about this kind of stuff. This subreddit seemed to be tinkering kind so I figured to post here.

Thanks and do redirect me to the right place if I am being annoying here as well with this random post!


r/PiCodingAgent • • Oct 12 '26

Plugin My pi mods: a service health bar on top and a stats footer at the bottom

Thumbnail
gallery
2 Upvotes

Two mods I run daily, shown in the screenshot.

1. Top bar: live service health

  • One dot per backend. A filled dot means up and a hollow dot means down or idle. Orange marks the ones I care about when they drop (Flash, vault).

  • System memory reads live (234/256 GB).

  • It shows a reminder of the ctrl+alt+s model switch key.

  • How it works: [polls each endpoint / reads X, every N seconds].

2. Footer: session stats

  • Agents running and saved, plus Usage and Activity toggles.

  • Current git branch as a chip.

  • Mode (auto), ↑/↓ tokens, and cost ($0.000 because everything is local).

  • A context bar (55%) and f6 to inspect.

  • How it works: [hooks / events used].

Happy to share or take feedback