r/PiCodingAgent • • Sep 15 '26

Plugin I made pi-crew so subagents get the context, not just the task

Post image
33 Upvotes

Hey folks, I've been working on pi-crew, a subagent extension for Pi.

My main focus is making sure subagents get the context they need. The main agent knows what you've discussed and decided, but a subagent won't unless that information makes it into the task.

With pi-crew, the main agent writes a structured task with separate fields for the goal, context, and instructions. The tool definitions, prompt guidelines, and skill work together to help it carry over the decisions and boundaries the subagent can't find in the repo.

It won't make every handoff perfect, but it's the part I've put the most thought into.

I also wanted subagents to be able to ask questions instead of guessing. In pi-crew, they can get an answer and pick up where they left off. If something needs fixing afterward, the main agent just tells the same subagent what to change. You don't have to spend extra tokens and time getting a new agent caught up on the same task.

It's all async. After handing off a task, the main agent can work on something else or keep talking with you while the subagents run. Results come back automatically, without polling.

I've also tried to keep it feeling like Pi. The six tools have short definitions, with the longer delegation guidance in a skill that gets loaded when needed. The main agent gets the report without all the subagent's file reads and tool output filling up its context.

A few other things it comes with

  • Six agents for investigation, planning, decision advice, code reviews, and implementation.

  • /pi-crew-plan and /pi-crew-review if you want a ready-made workflow.

  • Custom agents written in Markdown, with their own models, thinking levels, tools, and skills.

  • User and project pi-crew.json files to override settings without editing agent definitions.

  • A widget showing activity, working time, tokens, and cost. You can collapse the details or hide tool activity through config.

  • Expandable reports that let you open the full child session.

  • herdr support that shows the running subagent count in the sidebar.

The agents have separate conversations but share your repo. It's not a sandbox, so you still need to avoid handing overlapping edits to agents running in parallel.

pi install npm:@melihmucuk/pi-crew

Requires Pi 0.84.3+. Source on GitHub.

Are you using any subagent extensions with Pi? Curious which ones you've stuck with and whether you're happy with them.


r/PiCodingAgent • • Aug 25 '26

News Parrot OS adds official Pi support

Post image
33 Upvotes

Pi has been packaged and added to the official repository of Parrot OS, which ships a home edition specifically designed for developers and sysadmins. Pi is now a first class citizen in the repository, saving all its users from curl | sh

sudo apt update
sudo apt install pi-dev

any feedback is welcome


r/PiCodingAgent • • Aug 10 '26

Question are there other extensions which implement ideas from oh-my-pi

33 Upvotes

I'm new to Pi and coding agents in general. The existing discussions on oh-my-pi, like everything else, range from 'its great' to 'its bloat' so its very hard to actually decide.

It seems to have useful features like built in tools (avoid process calls), lsp, hashline, memory, subagents and an integrated setup/docs. It does seem to be better than the other oh-my-* set of products.

Are the ideas in OMP useful in practice and if so are they used in other harnesses?

I see a lot of 'just ask Pi to build it' here, but that depends on using frontier models, and when people post their setups they're using a million packages.

Obviously Pi is much more extensible/flexible, but there is value in an all-in-one setup. OMP has a ton of stuff and I'm sure a big system prompt. Is there anything like a slimmed down version or being able to use some of its ideas only?


r/PiCodingAgent • • Jul 29 '26

Discussion piodide ~ pi + pyodide + ghostty in the browser with WASM

Thumbnail daugasauron.github.io
33 Upvotes

https://daugasauron.github.io/piodide/

https://github.com/daugasauron/piodide

I just had this idea that you could just replace the bash tool in pi with python that runs on WASM, then you could run the whole thing in the browser.

Tried it and it's quite fascinating how good it is as a concept.

Everything is complete slop.

I tried GLM (code), OpenAI and moonshot providers.


r/PiCodingAgent • • Jul 21 '26

Resource Pi Workspace (beta)

33 Upvotes

Hey everyone,

I’ve been working on Pi Workspace over the past month, and I’m excited to finally say that the beta is now available for macOS and Linux!

Pi Workspace is a desktop app built on top of Pi Agent. It gives you a sidebar for managing your sessions, with the ability to pin multiple sessions into a live, side-by-side view.

The biggest feature is Workspaces. You can create a workspace, add multiple repositories, brainstorm an idea, and then switch into implementation mode when you’re ready to start building.

This is especially useful for end-to-end features that span several repositories, or projects that rely on shared packages, types, APIs, or supporting services.

I’m incredibly excited to finally release Pi Workspace as an open-source project. Feedback, bug reports, and feature ideas are all very welcome.

Give it a try and let me know what you think!

https://github.com/pi-workspace/pi-workspace


r/PiCodingAgent • • Jul 15 '26

Question I love pi

33 Upvotes

I really love the customization that Pi provides, I only have slight issue with the Interface. I am very used to Opencode interface and I wanted a similar UI. I know Pi allows for fairly extensive customization and even plugins like Pi Zen that are trying to achieve something similar. But none of them were into the extent of what I wanted (inspecting subagents, copying in scrollable mode and removing clutter, better detail handling). Through the gpt 5.6 sol I created this interface. It's not a plugin, but a typescript app communicating to the Pi thought RPC.

This is how it looked before:

This is the newest iteration

Would anyone be interested in this, should I opensource it? Or am I the only one who likes it better?


r/PiCodingAgent • • Jun 12 '26

News Agent Deck finally released the first stable version. Manage AI coding agents, skills, prompts and more in a single Mac app

33 Upvotes

Built a native macOS app for Pi coding agent. Just shipped v2.5 🚀

I’ve been building Agent Deck, a native macOS app for the Pi coding agent, and just released v2.5.

The terminal is great for running an agent. Everything around the agent isn’t.

Projects, sessions, prompts, skills, GitHub issues, memory, context management… it all ends up spread across multiple tools and windows.

Agent Deck brings it together in one place:

Features

  • Project-based sessions with streaming transcripts, inline diffs, and parallel sessions running in isolated Git worktrees

  • Merge worktree changes back with a single click

  • Fork any conversation, retry prompts, or chat 1:1 with a specific agent/model

  • Use a frontier model for planning and a cheaper model for execution

  • Install skills from GitHub or skills sh with one click

  • Sparse checkout support so only the files you need enter the context window

  • Built around keeping context lean because once models get deep into the context window, performance drops fast

  • Built-in GitHub issue management: browse, comment, close, or hand issues directly to an agent with full context loaded

  • Per-project memory stored as plain readable files and recalled only when relevant

  • Automations including AI-generated session titles, commit/push actions from the toolbar, and worktree isolation

  • Fully themeable

  • Free

  • Signed and notarized

Download: https://agentdeck.site

The project is open source and improvements, issues and PRs are welcome.


r/PiCodingAgent • • Jun 03 '26

Resource Built a Tauri v2 desktop chat shell for Pi — same agent, ~12 MB binary, sub-second cold start, every extension you already have just works

33 Upvotes

r/PiCodingAgent • • 8d ago

Question google models might be worth using now, but is it possible to do that in pi via a subscription?

32 Upvotes

r/PiCodingAgent • • 15d ago

Plugin Sharing pi-spec-mode, an extension for drafting, validating and maintaining specifications

Post image
32 Upvotes

Ever since plan modes came along and became standard practice, I've used a

"planning agent" → "coding agent" workflow, pretty much, i assume, like everybody.

It has always worked well, and it cut the tokens I spend per feature by a lot. (Thanks @narumitw/pi-plan-mode)

My project has been growing, so recently I split the work up further and started writing specifications using custom skills :

"specification agent" → "planning agent" → "coding agent".

I am quite happy with the results. Code is even more reliable, and my token usage hasn't gone up. If anything, it has gone down.

I turned all of this specification agent part into an extension that bundles my skills and the full workflow.

Here it is if this is something you'd care to try :

- github, https://github.com/psychobarge/pi-spec-mode

- npm, https://www.npmjs.com/package/pi-spec-mod

- Pi package, https://pi.dev/packages/pi-spec-mode


r/PiCodingAgent • • 29d ago

Resource One skill to turn 1-hour YouTube talks and podcasts into a 5-minute read (with clickable timestamps)

32 Upvotes

Drop a YouTube link, podcast episode, or local recording into Claude Code, Codex, or pi, and get a clean report in HTML, Markdown, or PDF.

Read the whole 1-hour talk in 5 minutes, and click any `[mm:ss]` timestamp to watch just the moments you care about. No extra API keys needed.


r/PiCodingAgent • • Oct 25 '26

Resource Introducing Terrarium — a VM home for your agents, with a pi-durable example

32 Upvotes

Hey folks,

Terrarium is FOSS micro VM manager that gives your coding agents their own isolated space. You choose which host folders and network destinations they can access, and their tools and files stay between sessions.

It runs on Linux, macOS, and Windows, with multiple layers of defense: hw virtualization, WASM isolation for device handling, and sandboxed host processes. You configure a box with a YAML recipe and manage it with one program, `terra`.

Pi’s simplicity was a big inspiration. I wanted that same straightforward experience from a VM manager.

👉 https://github.com/terrarium-sh/terrarium_examples/tree/main/official/pi_durable

If you’d like your agent to help set up a Terrarium box, there’s also a https://terrarium.sh/skill.md.

NOTE: It’s still a beta, and I’d love to get a feedback. How are you running Pi today, and would something like this fit your workflow?

If the project looks useful, a star on https://github.com/terrarium-sh/terrarium would mean a lot. Questions, bug reports, and contributions are welcome too! 🙏


r/PiCodingAgent • • Aug 23 '26

Discussion The more I look at Pi, the more I like the core idea

32 Upvotes

What I find inspiring is the decision to keep the core small and clean, while letting the agent extend itself through skills, extensions and its own understanding of the codebase.

This video on Pi origins and the author of pi really captures that philosophy well: https://youtu.be/RKHaecOi0CA

It makes me think that the real power of an agent harness isn't necessarily having more features in the core.

It's having a small enough core that the agent can understand, modify and extend it when needed.

That feels like a very interesting direction for coding agents less framework, more primitives.


r/PiCodingAgent • • Jul 12 '26

Discussion 1 Month update

32 Upvotes

So i was asked to post updates as i learn and boy have i been having fun. PI is so fun how customizable it is.

First thing i did was create a simple plan mode just so i can ask question without it changing anything. I still use plannotator for bigger stuff.

Second thing i created a Opencode go extension to allow me to easily swap between my different workspace subs. It also shows me the current limits in the footer.

Then i created a pi-worktree, except there was one on pi's website but didnt work with Herdr, so i cloned into my own repo and asked pi to add support for herdr.

I also created a PI Kanban that pi would work with and move tickets along the board but i think im scrapping this idea because i dont like how i cant fully see whats going on. So i feel like its more of a token hog.

Then some non extension related projects is i created a page on my website for chat and have it interface with PI, not sure if this is best way to do it but my goal is to give it context on all things related to my server and make it so i can easily / do thing on my server for example restart an LXC.

The above i have a hermes instance that knows all about the server setup but im trying to migrate from that but so far hermes is just so good at handling it.

One thing i want to do is setup a pi instance under a service and have communication via telegram, i know theres an extension on pi.dev but i want to think it through. I thought id separate into multiple agents per "profile" but im thinkign i can just make skills that load a certain context.

Anyways thats my update lol any tips / ideas are welcome


r/PiCodingAgent • • Jul 05 '26

Plugin Made a Pi extension for hierarchical multi-agent orchestration — is this useful to anyone, or does it already exist?

32 Upvotes

I've been building pi-hive, a Pi extension that runs a whole hierarchy of agents on a project instead of one session, and I've reached the point where I want to know two things before I sink more time in:

Would anyone actually use this or does something like it already exist? I haven't found a Pi-native equivalent, but I'd genuinely rather hear "X already does this" than reinvent it. If you know of one, please tell me.

Anyone want to collaborate? It's MIT, early, and rough. I'd love co-maintainers or even just people willing to try it on a real project and tell me where it breaks.

Here's what it does today:

  • Config-first. It's completely inert until a project has a .pi/hive/hive-config.yaml — installing it globally touches nothing else. That one file is the team: you declare each agent's type, model, tools, filesystem write-domain, and where it sits in the tree. Roles are derived from structure (a node with members: is a lead, a leaf is a member); an agent can delegate only to its direct reports. Prompts/knowledge/skills are plain files under .pi/hive/, versioned with your repo.

  • Isolated + bounded agents. Each runs as its own pi subprocess with a scoped tool allow-list and an enforced write-domain — a worker can't edit files outside what its lead granted.

  • Plan, then execute. Three modes (normal → plan → hive). Plan mode drives a separate planning team through spec gates (proposal → requirements → design → tasks, via OpenSpec) and writes no code; hive mode executes the approved spec. Plan review is a human gate — I self-host Plannotator's review UI in the dashboard.

  • Local telemetry dashboard (/hive-observe): live topology, delegation lifecycle, tokens, cost across every project/session. Nothing leaves your machine.

It's on npm, so it's a one-liner to try:

pi install npm:pi-hive

Fair warning: it's unpolished and there's plenty of rough edges — I'm sharing it now to gauge whether it's worth pushing further, not because it's finished.

Repo (MIT): https://github.com/demetere/pi-hive

If you'd use something like this, or you're building something similar, or you want to help — I'd love to hear from you.


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

News Easter egg on Pi 1.0

31 Upvotes

Click on the logo on the top left to see the easter egg in action!

You can also try Pi 1.0 (with the easter egg) online at https://wasmer.sh/?example=pi


r/PiCodingAgent • • Oct 01 '26

Resource I made a Pi extension that improves compaction with local models

31 Upvotes

When Pi compacts a long conversation, the normal approach can throw away the prompt cache and start a fresh summarization request containing the entire old context.

With a 100k–160k token context on a local model, that means llama.cpp may spend minutes re-prefilling tokens it has already processed.

I built Better Compaction to avoid that.

Instead of starting a separate summarization chat, it appends the compaction instruction to the already-cached conversation. The existing prefix stays byte-identical, so the backend can reuse its KV/prompt cache and only prefill the small new suffix.

On my Qwen3.8-27B + llama.cpp setup:

~13–15 min → ~6.5 min

and with thinking disabled:

~2 min

One compaction request reported 94.4k tokens served from cache.

GitHub:
https://github.com/NotSoSeriouss/BetterCompaction

I'd especially like to hear from other Pi users running local models + llama.cpp. I'd love to collect real-world numbers across different GPUs, quantizations, and context sizes.


r/PiCodingAgent • • Sep 03 '26

Plugin Anyone else excited about zvec-grep? Made a small wrapper extension for pi

31 Upvotes

The new zvec-grep is pretty neat — local-first hybrid search (BM25 + vector) that handles the fuzzy codebase questions grep can't reach: "how is the token validated?", "where does this flow?" — ranked, source-linked hits, all locally on your machine.

If you want it in pi, I wrapped it up: pi-zvec-grep

Quick Install

npm install -g @zvec/zvec-grep
pi install npm:@luminascale/pi-zvec-grep

Run /zg index once in a workspace and that's it — the agent reaches for zvec_search on its own for meaning-based or cross-file questions, and still uses plain rg for exact strings and piping, since rg is the right tool there. No MCP, no prompting tricks.

Small and new (v0.2.1), but on my list is an optional auto-index on session start, plus other smart touches once I figure out what'd actually be useful — ideas very welcome if you've got some. Poke around, file issues.


r/PiCodingAgent • • Aug 17 '26

Resource DeepSeek peak/off-peak pricing clock in your local time

Post image
31 Upvotes

Know when it's peak time and off-peak time and adjust your usage accordingly.

Check here: https://deepakness.com/deepseek/


r/PiCodingAgent • • Jul 18 '26

Plugin Just made this extension because it seems like noone made something like this yet

Post image
31 Upvotes

r/PiCodingAgent • • May 11 '26

Resource LLM as logic processor, filesystem as memory — Q2 quant doing real agentic coding 50k context

31 Upvotes

Hello Pi subreddit, i have been running local models for coding tasks and kept hitting the same problems everyone does — the model writes an 800-line file in one shot and half of it is garbage, it spirals in its own reasoning for 4000 tokens, it forgets what it was doing after context compresses,

The core problem: we've been using LLMs as context databases when they should be logic processors. A 50k context window isn't meant to hold your entire project state — it's meant to process one small task at a time.

So i discovered PI and it's amazing customization options, I built a stack around Pi coding agent with Qwen 35B (Q2_K_XL quant through LM Studio) that enforces this at the API boundary. Not in the prompt — the model literally cannot bypass them.

The shift: instead of big monolithic calls, many small calls with memory in between.

What the guards enforce:

  • - Rejects any write/edit over 100 lines. Model has to write a skeleton first, then fill in one section at a time. If it tries to dump a whole file, the call gets blocked with instructions to split the work.

  • - If the thinking block goes over 2000 chars, it gets a correction telling it to write conclusions to disk and move on.

  • - Context monitor at 65% and 80%. At 65% it tells the model to write its state to files. At 80% it stops everything. The model writes its brain to disk while it's still coherent, not after it's already lost.

  • - If the model gives a long answer without writing a file, it gets told to save findings to a step file. Nothing stays only in context.

There's a .think/ and .plan/ directory that acts as the model's external brain. Every step, every decision, every finding goes to a file. When context gets compressed, it reads its own notes back. The model's memory is the

filesystem, not the context window. The LLM is treated as a logic processor — it doesn't try to remember anything.

Also built a /distill command that crawls a codebase, builds an import graph, topologically sorts the files, and has the model summarize them one per turn into a knowledge base. It splits the manifest into pages of 50 so it doesn't eat the whole context, and you can query it or distill even more so you can ask "big questions" without having pi and the small llm going around the filebase

You can drop files like svelte5-gotchas.md or astro-gotchas.md into a knowledge folder, and an isolated LLM call picks which ones are relevant to the current task. The selection reasoning never touches the main conversation. Only the content gets injected.

Example: asked it to build a Three.js plane flying game. First attempt it tried to write 652 lines in one write call. Guard rejected it. Model replanned, wrote a skeleton, then filled in features one edit at a time. End

result was a working game with 3D plane model, obstacles, HUD, minimap, start/game over screens. At Q2 quant. Many small calls, each one focused, memory persisted between them.

The session purpose gets saved separately to _purpose.md. When context compresses, it re-injects the original goal — not just the last step

All of this runs at Q2_K_XL quantization. That's the floor. If you're running Q4 or Q8 the results should only be better.

https://github.com/Kodrack/Pi-forge

Curious what models and quants other people are running for agentic coding. If you try it let me know how it goes, later ill post some screens about "benchmarks" i did with q2 model


r/PiCodingAgent • • 6d ago

Plugin A library for pi extension makers to implement "Settings" dialogs

30 Upvotes

I have been making a lot of pi extensions/plugins, mostly for myself but few have become popular as well.

One common pattern I make in all of them is obviously the settings of that extension itself. Over time Pi has improved its TUI and now even has mouse mode, which some of my older extensions required rewriting the settings implemention to adopt.

I thought creating settings is a common pattern; there are few standard things

- settings location -> <pi-agent-dir/project-dir>/<extension-name>.json

- handling of 'dirty' state and Ctrl+S type saving

- a wrapper over pi-tui with mouse/keyboard handling

- dialog, margins, borders, all of that

If the extension can just declaratively set the config it needs, the settings UI, mechanism to save, etc can all be handled by a common library.

So here it goes: pi-extension-settings-tui


r/PiCodingAgent • • Oct 03 '26

News Big PiG update, hope everyone enjoys and thank you for everyone who's used PiG and helped so far!

30 Upvotes

r/PiCodingAgent • • Oct 03 '26

Discussion Will pi add built-in subagents or sandboxes?

30 Upvotes

Pi has already supported built-in mcp and codemode. Will pi add built-in subagents, sandbox, permission popups, etc. in the future? According to this article, pi plans to offer support to enterprise users in the future.

On top of the MIT core, there will be some commercial additions over time. Here's how we think about it in three tiers:

snip

2. Fair Source (value-add features): Some future commercial features will be Fair Source licensed. Free to use, source available, and they convert to full open-source after a set period via Delayed Open Source Publication (DOSP). Think of it as open-source on a delay, and downside risk protection for you as a user.

3. Proprietary (enterprise): Some enterprise-specific features and cloud infrastructure will be proprietary. No source available. This is the stuff that pays the bills for the stuff in tiers 1 and 2.

If pi wants to target enterprise users, these features may be essential.

With built-in mcp & codemode, pi is still minimal, so I believe pi will still remain minimal even with built-in subagents, sandbox, permission popups, etc.

I’d like to ask you guys in the channel: how many of you rely solely on native Pi features without using any extensions? How many use widely popular community extensions (such as pi-web-access or pi-subagent)? And how many have written their own extensions for these features?

If pi has these features built in, how would that affect you? Would you benefit automatically by default? Would you need to migrate the extensions you’re currently using? Or would you need to carefully manage conflicts between your code and pi’s built-in code?

That article also says:

And if you ever feel like we've lost the plot, the fork button on GitHub still works. Always will.

When it comes to forking, maintaining your own downstream build is never as simple as it sounds. I maintain a de-commercialized downstream fork of a browser extension myself, and syncing upstream fixes, cherry-picking features, and resolving conflicts is a hassle. As the codebase grows, the divergence between the downstream fork and upstream widens, making synchronization increasingly difficult. The same will be true for the Pi fork, and keeping up with Pi’s updates is essential, since Pi relies on updates to add new models to its support list.

So I’d also like to ask: Will you consider forking Pi? If so, will you continue to maintain and update it? And if someone else forks Pi, would you switch to using their fork?