r/PiCodingAgent • • May 25 '26

Resource I built Pi Insights, find where you waste tokens and time in your Pi harness

42 Upvotes

I use Pi as my coding harness for basically all my coding now. After a few months I had 400+ sessions and no idea what was actually working. Was I using the right model for each task? Was I repeating the same mistakes? idk

I thought claude code's /insights was cool, so I built it with a clean room implementation, but it wasn't good enough. Claude wants you to burn as many tokens as possible, I have no such incentive so I added tokens wastage section, created it to be like a retrospective report that compares this week to last week.

It also tells you what to stop doing. Most tools just suggest new things to try. This one looks at your actual sessions and says "you used Opus 47 times for single-file edits, that cost you $14 more than Sonnet would have" or "you retry this pattern 3x per session on average, here's why it keeps failing."

How it works if your interested, here is a tldr; it extracts deterministic stats from each session (tokens, tools, git ops, errors), then runs a short LLM call per session to classify the goal/outcome/friction. Then it aggregates everything with exponential decay (recent sessions matter more) and runs 8 focused prompts in parallel to generate different report sections. The whole thing caches aggressively, so re-runs are fast.

To prevent redundant changes it also checks what you already have installed (skills, extensions, AGENTS.md) so it won't suggest things you already use in your harness

Install:

pi install npm:@observal/pi-insights

Run: /pi-insights

Opens an HTML report in your browser. No server, no signup, runs locally.

Source: https://github.com/BlazeUp-AI/pi-insights (Star and throw some contributions this way if your interested, or fork and customize it to your hearts desires)

I built this as part of a bigger project (Observal, agent observability platform) but this extension is fully standalone. Would love feedback on what else would be useful to surface from session data.


r/PiCodingAgent • • May 11 '26

Plugin You can do basic web-search with just two simple cli tools

42 Upvotes

Hi! I was looking at the web search options available in the pi ecosystem and most of them wrap some API or require config..

I just want my tool to be able to

  1. Run a search query via a search provider

  2. Fetch pages preferably as markdown

For this I found that there exist two boring tools that work well together:

  1. The duckduckgo commandline tool ddgr. This is just one sudo apt install ddgr away

  2. The super weirdly named trafilatura tool. This is a python tool that extracts text content from a url. Has lots of options for presentation and what to include/exclude. pip install trafilatura.. I suppose? I use NixOS so I dunno how to install this globally with Python. Python is hell.

What is trafilatura?

It's a commandline tool that extract meaningful content from a web-page. It's been actively maintained for over 9 years (probably longer?), and its primary use-case is to help with academic research. I suppose it's usually useful for researchers to do scraping.

Anyway, it is rich, mature, old and just a cli tool. It supports markdown output, regular output, a mode to show very little content, a mode to show more content. You can choose to include/exclude links etc.


Anyway. If you wrap these in a simple extension you get 100% local search that works for the common use-case of "just quickly look something up on a forum, documentation, wikipedia or Github".

I haven't looked into how to publish this as an extension, but if people like it I could package it up.

This is the extension as a gist if anyone wants to try it.

https://gist.github.com/Azeirah/9375fb67c5aee6ca1b7e046f8b7cf0cd

Trafilatura has been configured to do:

  1. Show links

  2. Show markdown

  3. Show the concise output, so not the verbose output. I did that to save tokens


r/PiCodingAgent • • Oct 04 '26

News Morse — a chat UI for the pi coding agent (VS Code + browser, MIT)

Thumbnail
gallery
41 Upvotes

I use pi daily but wanted tabs, image pasting and a scrollable transcript, so I built a frontend for it. Morse doesn't reimplement the agent — it spawns pi --mode rpc and reuses your ~/.pi config.

  • npm i -g @supanadit/morse-web && morse start, or the VS Code extension

  • multi-session/multi-project with warm sessions, @mention files and dirs, image paste, steer/abort mid-task, model and thinking pickers

  • keyboard-driven, real transcript with tool timelines, works the same in both hosts

It's a nicer way to stay in flow with pi. Free, MIT: https://github.com/supanadit/morse — feedback very welcome.


r/PiCodingAgent • • Aug 19 '26

Question Subagent extensions

41 Upvotes

Can you recommend me a simple yet configurable subagent extension? I'm currently testing `pi-subagents` but i find it slow and bloated. What are you guys using?


r/PiCodingAgent • • Jul 27 '26

Discussion Are you using pi on mobile?

Post image
41 Upvotes

I use Pi from my Android phone through tmux + TermRover (a terminal app I’m building).

With a good tmux scrolling support + ability to send images, working with Pi is just very pleasant.

Curious how everyone else is using Pi on mobile, if at all? SSH app? Or Just waiting until you’re back at a laptop?


r/PiCodingAgent • • Jul 08 '26

Resource We just added Pi to our runtime agnostic Claude Managed Agents alternative

Post image
41 Upvotes

We're building a durable runtime for agents, and recently, we shipped adding Pi as a runtime!

Some highlights on how it works and what it runs on:

- It's built on top of our QEMU based elastic VM’s purpose built for agents

- Supports Pi, Claude and Codex (ofc)

- Slack and GH as channels for now (I built my own Claude tag for eg, you could build internal agents like Ramp's Inspect or Stripe Minions)

- Use playground via managedagents.sh or API (docs here)

We'd really appreciate your feedback, it comes with a bunch of free credits so please kick the tyres, roast it and tell me what sucks!


r/PiCodingAgent • • Jun 02 '26

News Updates on the pi-llm-wiki.

Post image
41 Upvotes

First of all I would like to thank the Reddit communication of subReddit PiCodingAgent.

Your feedback helped me make this llm-wiki better.

It was broken for a while and honest feedback from this community gave me the motivation to fix those issues.

It’s working good for me as well.

I’ve shipped few updates on how the wiki recall, retro and observations happen.

Let me know your throughs.

Here is the repo link.

https://github.com/zosmaai/pi-llm-wiki.

https://pi.dev/packages/@zosmaai/pi-llm-wiki

You can also checkout other OpenSource projects we are working on.


r/PiCodingAgent • • May 08 '26

Use-case Embed pi in your terminal shell

41 Upvotes

I recently built a tool that lets you to embed your pi inside a custom shell. The shell supports multiple agent backends, but I found it works best with pi due to pi's extensibility. This shell should work like any ordinary shell but with one keystroke you can summon pi and it will have full contextual awareness of what's happening in your shell, without copy pasting.

If this looks useful, feel free to try it out!

npm install -g agent-sh
agent-sh install pi-bridge
agent-sh --backend pi

No additional setup needed. Would love to hear your 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)

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 • • Sep 10 '26

Discussion Who uses Pi — what do you like about it?

40 Upvotes

I’d heard about the Pi, that it’s a great way to customize tools to suit yourself and save tokens. I don’t know about token savings, but I tried using Gemini 3.8 flash inside it, and I didn’t like how it wrote code.

For a while, I tried to refine the Pi using Codex and Claude, ran various tests, and thought that the whole problem was with Gemini. I would really find it convenient if several AI models were inside a single harness, but right now I suspect that’s exactly the problem, despite all the attempts to refine it.

I opened the classic Antigravity CLI, and the results seem much better. I don’t like the Antigravity desktop app — it’s also kind of weak. I hope a miracle will happen and the CLI will turn out to be a lifesaver. Gemini attracts me with its slightly higher limits, even though I’m a Claude fan.

What do you think? What’s your experience?


r/PiCodingAgent • • Aug 03 '26

Question Want pi-llm-wiki to have OKF v0.2 update?

Post image
40 Upvotes

Thanks to everyone who has encouraged me to maintain this project.

As an upgrade, I was planning to introduce the OKF v0.2.

Let me know your thoughts in comments.

Thank you community for all your support so far.

https://github.com/zosmaai/pi-llm-wiki


r/PiCodingAgent • • Jul 27 '26

Question Subagents and orchestration ...

40 Upvotes

Looking for some pointers. Been using Pi for months, have a setup I really like (very simple, two extensions I wrote plus plannotator and pi-herdr).

This works great for interactive sessions but I'm finally finding myself wanting some basic orchestration with subagents.

I'm building a product and need to do a bunch of testing/fixing rounds with different models to find rough edges. I've been doing this by hand but it's getting tedious (and it's mostly simple enough that it could run while I'm doing something else).

I also like the idea of:

  • a long lived orchestration agent that holds long term context but doesn't do work.

  • scouts that can cheaply get context and pass that back to workers.

  • automatic adversarial review of changes by a different model.

I've looked at a bunch of plugins and they all seem much more complicated than required. Should I just suck it up and using Nico's pi-subagents? Or is there a nice, simple starting point that I'm missing?

Any pointers appreciated.


r/PiCodingAgent • • Jun 26 '26

Question context-mode is adding 15k tokens to every request — is this expected?

40 Upvotes

I was looking into why my Pi sessions were burning so many tokens and found that context-mode alone injects ~15k tokens into the system prompt. Every turn. Even when I'm not using any context features.

It loads 5+ skills with full reference files (anti-patterns.md, patterns-javascript.md, patterns-python.md, etc.) plus spawns an MCP child process at startup. Removing it from my packages array dropped my baseline from ~35k to ~20k instantly.

Is anyone actually using context-mode features every session? Or do most of you just leave it installed because it came with the defaults? Feels like this should be on-demand rather than always-on.


r/PiCodingAgent • • Oct 24 '26

Question Claude with Pi

39 Upvotes

Hi,

Currently got a Claude Pro subscription and wondering how the usage works out with

  1. Claude Code

  2. Pi with pi-claude-bridge

  3. Pi with pi-anthropic-auth

I understand it's against ToS to use try to use consumer claude subscription in another harness but curious on why it's popular. Aside from the system prompt control over the harness, is there any benefit over extending usage or maximizing the Pro subscription with these approaches?


r/PiCodingAgent • • Oct 19 '26

Plugin I built a Pi extension so I can work on my servers without setting up Pi on each VPS

39 Upvotes

I often need my AI coding tools on a server, but I don't want to paste server IPs or passwords into chat. I also don't want to install Pi and set up my tools again on every new machine, especially when I only need to deploy something or check a remote project.

I built pi-remote-workspace so I can keep using my local Pi session and switch its coding tools to the server over SSH. It's inspired by Warp's remote workflow, but built around the way I use Pi.

I run /remote, enter my connection details in a private form, and connect. Passwords are entered in a masked prompt instead of chat. Pi stays on my computer with my model login and conversation, while file reads, edits, and shell commands run on the server. Pi doesn't need to be installed there.

For my work and startup, I use this when I've finished something locally and need to deploy it. I switch to the server, ask Pi to handle the deployment and check that it's working, then use /remote stop to return to my local workspace. Connecting doesn't upload the project by itself, so I still use my normal Git or deployment process to get the code there.

The private login keeps passwords out of chat and model context, though remote files and command output can still expose sensitive details. Commands have the permissions of your SSH account, so be careful with production servers. Pi also still runs on your computer; it won't keep working independently after you shut the laptop.

Install it with:

pi install npm:@utpalsinghdev/pi-remote-workspace

GitHub: https://github.com/utpalsinghdev/pi-extensions/tree/main/packages/pi-remote-workspace

npm: https://www.npmjs.com/package/@utpalsinghdev/pi-remote-workspace

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.

If it deserves a star, the repo is https://github.com/utpalsinghdev/pi-extensions


r/PiCodingAgent • • Aug 10 '26

Plugin CodePi - I Integrated PI Coding Agent into VSCode Extension

Post image
39 Upvotes

Hi all,

Today I released CodePi, an extension for VSCode for PI coding agent. As opposed to existing extensions, it brings the familiar pi's TUI experience straight into vscode. Your existing setup (~/.pi) will work out of the box!

Extension:

marketplace.visualstudio.com/items?itemName=lutrarutra.code-pi

Github:

github.com/lutrarutra/codepi

Why i built this extension:

  • It sees my current files, selection, Git changes, and VS Code diagnostics (warnings and errors).

  • Edits show up as diffs I can review, accept, or reject.

  • Sessions live in editor tabs and survive reloads.

  • Built-in Ask/Plan/Implement modes and bash ask/allow/disable feature make it safer to use.

  • It keeps the agent, terminal, tasks, and editor workflow in one place.

  • Color indicator to see the state of the session (busy, idle, waiting for user input/question)

  • SSH support; pi is bundled with the extension, so no need to install pi agent on every remote server

Any suggestions or feedback issues appreciated on here or Github!

p.s. I am not affiliated with pi.dev


r/PiCodingAgent • • Aug 05 '26

News pi-llm-wiki v0.11.0 adds native OKF v0.2 support

Thumbnail
gallery
39 Upvotes

pi-llm-wiki v0.11.0 now supports native Open Knowledge Format v0.2.

Highlights:

  • Canonical OKF documents for new vaults

  • Standard Markdown links and stable citations

  • Deterministic indexes and logs

  • Legacy and OKF dual-read compatibility

  • Shared Pi/MCP knowledge model

  • Safer vault-layout migration with no-clobber moves and recovery journals

Install:

  pi install npm:@zosmaai/[email protected]

For an old .wiki/ layout, preview first:

  node node_modules/@zosmaai/pi-llm-wiki/scripts/migrate-llm-wiki.js \
    /path/to/vault --dry-run

Apply after reviewing:

  node node_modules/@zosmaai/pi-llm-wiki/scripts/migrate-llm-wiki.js \
    /path/to/vault --force

This migrates the directory layout, not legacy page content. Full OKF adoption is incremental: create an OKF vault, re-ingest source material, and explicitly port selected pages. Existing legacy pages remain readable alongside OKF pages.

Always back up first.

GitHub Link -> https://github.com/zosmaai/pi-llm-wiki

Pi Package Link -> https://pi.dev/packages/@zosmaai/pi-llm-wiki


r/PiCodingAgent • • Jun 12 '26

Question Does Pi's minimalism actually pay off on Terminal-Bench?

39 Upvotes

I've been trying out Pi for about a week, though not very frequently since I need to hit my ai subscription 5-hour limit first. Recently, I got curious about its performance, so I did some quick searches.

Mario Zechner's blog post on building pi makes a case for radical minimalism: near-empty system prompt, four tools (read/write/edit/bash), no MCP, no sub-agents, no plan mode. He ran Terminal-Bench 2.0 with Claude Opus 4.5, showing pi at ~50%. (Claude says that the actual score for Pi is 47.87%, not '~50%'. Mario's results.json gist shows a mean of 0.4786516853932584 (out of 428 valid trials, with 71 errors). )

For context, here are all the Opus 4.5 entries on the current Terminal-Bench 2.0 leaderboard:

AgentScore
Droid63.1% ±2.7
Letta Code59.1% ±2.4
Mux58.4%
Terminus 257.8% ±2.5
Goose54.3% ±2.6
Claude Code52.1% ±2.5
OpenHands51.9% ±2.9
OpenCode51.7%

Pi sits below Claude Code and about 8 points below Terminus 2, with the same underlying model.

Mario cites Terminus 2 in the same post as "more evidence that a minimal approach can do just as well." The description fits — Terminus 2 has no structured tools at all, just raw keystrokes into a tmux session. But it scores 8 points higher than pi with the same model. If the thesis is "less is more," Terminus 2 makes the case better than pi does. Mario uses it as supporting evidence without addressing why his own agent lags behind it by a meaningful margin.

None of this means pi is a bad tool. Benchmarks don't capture context efficiency, extensibility, or daily workflow ergonomics, all of which Mario documents carefully. But on the one quantitative metric he chose to present, pi underperforms most of the agents it's positioned against — including the one he cites as validation.


r/PiCodingAgent • • May 14 '26

Discussion Nearer my god to thee

Post image
39 Upvotes

r/PiCodingAgent • • 22d ago

Resource OmpDeck: a native desktop app for omp (oh-my-pi) that draws omp's own UI as a chat view, and sessions keep running when you close it

Thumbnail
gallery
38 Upvotes

I've been building OmpDeck, a native desktop app (Rust/egui, not Electron) for omp (oh-my-pi), on Linux and Windows. Heads up: it's for omp specifically, not vanilla pi, since the chat view relies on omp's Tern Surface Protocol.

https://github.com/lavinhoque33/omp-deck

What it does

  • Native chat view (the default): omp describes its UI over TSP and OmpDeck draws it natively: messages, formatted replies, tool calls as cards with diffs and output, image previews, todos, approvals and ask dialogs. It's omp's real behaviour, not a re-implementation, and omp's own TUI is one click away.

  • Sessions outlive the app: every omp session in a sidebar grouped by project. Tabs run in OmpDeck's session host (or tmux), so closing a tab or the whole app leaves omp running, and reopening re-attaches.

  • omp's screens as native ones: /settings (incl. plugins and advisor), the model picker (favorites, roles, thinking), /usage with 5h/weekly limits, /resume, /tree with fork / go-here.

  • Status bar: model + thinking, context meter, git, tokens, cost; Handoff / Compact / Shake / Fork / Plan in one click.

  • Agents dashboard: live subagents per session; steer, kill, revive, clean up.

  • Changes panel: working-tree diff with line review comments you send straight to omp.

  • Also: split view (up to 4 panes), worktree sessions, session manager (size, cost, bulk delete/move), command palette, desktop notifications, 18 styles, Google Drive backup + per-project sync.

  • Phone companion: a PWA over a self-hosted relay, Noise end-to-end encrypted (the relay never sees content): transcript, answer approvals, send prompts, Web Push.

Install

No macOS build yet. MIT/Apache-2.0, unofficial side project. I use it daily, and a lot of it was built with omp itself. Feedback and bug reports welcome!


r/PiCodingAgent • • 23d ago

Question Anyone here who avoids sub-agents completely?

38 Upvotes

Can you list your reasons why and if you did it any tests to confirm your position?

Also would like to hear your thoughts on context management and how you do it.


r/PiCodingAgent • • Sep 14 '26

Resource I built pi-ahp to use pi in VS Code’s Agents window

Post image
38 Upvotes

I tried a bunch of pi GUIs, but none of them quite stuck, so I started building pi-ahp. It gradually became my daily driver.

The chat UX, terminal, file search, previews, and editor are all still VS Code; pi is just the agent underneath.

The part that makes this work is Microsoft's open Agent Host Protocol (AHP). It separates the agent host from the client UI: pi-ahp embeds pi in-process and exposes its sessions, filesystem, and PTYs over AHP, while VS Code provides the familiar UI.

pi itself remains the backend, so your existing models, credentials, settings, and session history continue to work. It also means pi-ahp isn't tied to VS Code — other AHP clients can connect to the same host.

GitHub: https://github.com/Qusic/pi-ahp

npm i -g pi-ahp


r/PiCodingAgent • • Aug 08 '26

Question Which extensions do you use?

38 Upvotes

Hi guys,

Perhaps we can learn from each other and discover some great experiences with Pi Agent. I will start with my list of extensions and skills that I use. Please do share yours and we can learn from each other even if you have nothing to learn from us but help others.

Extensions

  • npm:@ff-labs/pi-fff

  • npm:@juicesharp/rpiv-ask-user-question

  • npm:@juicesharp/rpiv-todo

  • npm:@juicesharp/rpiv-web-tools

  • npm:context-mode

  • npm:pi-mcp-adapter

  • npm:pi-powerline-footer

  • npm:pi-rtk-optimizer

  • npm:pi-subagents

Skills

  • grill-me

  • karpathy-guidelines

  • last30days

  • caveman

And you?


r/PiCodingAgent • • Jun 09 '26

Question And now there is headroom. How many of these hyped context compression and memory management tools actually work in real world scenarios?

38 Upvotes

I am loving Pi. I moved to Pi on CMUX from claude and codex. I tried to keep it minimal but some packages do help make PI more for my taste and work. I tried making my own extensions or modifying existing ones but they always backfire or create new errors. I tried the hyped ones but I cannot tell what really works even if I ask my pi to tell me what is actually helping. Sometimes it overcompensates and creates a unified setup that is supposed to work but crashes half the time then I spend half my day trying to fix what it broke. I have tried my best to make pi my own but I need some setup that actually works for context and memory management. Also what model do you all use for primary planning or making extensions? What model do use for coding part? Any packages that ACTUALLY work without causing new headaches? Thank you for listening to me vent.


r/PiCodingAgent • • Jun 07 '26

Plugin This one's mine

38 Upvotes

Spent the afternoon customizing my pi agent
Just visuals but makes it 10x more fun to work with!