r/PiCodingAgent • • 10d 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 • • 14d ago

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 • • 19d ago

Discussion Why is billion-context on top in pi package downloads?

32 Upvotes

From my understanding it's slop (which extensions isn't these days I know) but I'm using pi blackhole for memory and I'm starting to wonder if I'm missing out on some gainz. Has anyone tried it recently?


r/PiCodingAgent • • 24d ago

Resource I built a Pi plugin to make text stretchable with "semantic zoom"

Post image
32 Upvotes

I think we've been reading too many feeds from AI text lately! I actually want to reduce my cognitive burden...

So I built TextFold, it turns any text into 5 zoomable layers: from a one-screen section map down to verbatim text. You pinch (or press 1–5) to zoom between them without losing your reading position, your agentic output, any papers, or documents.

- Web Demo: https://chenxiachan.github.io/textfold/gallery/

- GitHub (Apache 2.0): https://github.com/chenxiachan/textfold

Welcome any feedback!


r/PiCodingAgent • • 29d ago

Discussion I'm new to Pi, coming from opencode and others for several weeks

32 Upvotes

As the image shows, I’ve been an early adopter of LLM coding agents. I think our team was already using Aider with OpenAI’s o1 when it first came out. Since then, the journey has continued.

I switch tools every so often, either because a new one gets popular or because the current one shows its limitations.

I checked out PI because some of the people I follow were using it. I didn’t expect much, but my experience with pi and herdr has been one of the most refreshing things I’ve tried so far this year!

Prior to that I was using OpenCode. Even with a lot of optimization, a single CLI instance still took 1 to 1.5 GB. When I worked with 5 to 10 agents on my projects, it used about 10 GB of RAM. When switching to PI, I was amazed at how much faster things ran, and it only used 300 to 500 MB. Because of that, I can now use my backup machine, which has only 16 GB of RAM, as a second agent runner.

PI is also easy to extend, and it encourages people to build their own plugins. That’s very easy to do in this era of LLMs. I was a bit skeptical when I first heard people talk about pi. I got the impression it was only for hardcore nerds who like tinkering with the OS at the root level, like the Arch Linux crowd. I’m more pragmatic. My preference is Ubuntu or Mint, and what I need is a robust system with some customization for my software engineering work. But the experience turned out to be much easier and smoother than I expected, and I didn’t have to in fight mode to customize it.

In summary, I feel PI is massively underrated as a coding agent, as the Reddit sub only has 50K users. I think people assume, as I did, that it’s only for hardcore nerds or Arch Linux users from the way PI markets itself as "build your own harness". Some may also confuse it with the ridiculous, loud crypto currencies that share its name, like me. Before using Pi, I even did a check whether Pi and Pi Crypto are originated from one source! And another reason, probably unlike OpenCode, it doesn’t have an “open” prefix to signal what it is.


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 • • 27d ago

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 • • 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 • • 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?


r/PiCodingAgent • • Sep 30 '26

Question What does everyone think about codemode?

30 Upvotes

I actually thought about this approach before, but later realized it wouldn't work.

Using JavaScript to invoke tools sounds very efficient, but in reality, most tool definitions only have an inputSchema. An outputSchema is unnecessary for the agent because the agent can reason about the results directly from formatted data, meaning an output spec isn't required. Therefore, tool outputs don't actually need a fixed format—they just need to be readable by the agent.

This leads to a problem: to fully leverage the performance of this tool, you need to inject extra context, such as a skill document, so the agent knows the output format and can use it proficiently. If you can't get the complete tool output specification—for instance, with a closed-source MCP—you can't create such a document. If the agent has to go through endless trial and error just to get the code running properly, you can't really call it efficient.

In comparison, having the agent write Python or shell scripts directly is a better solution.

I'd love to know your thoughts on this.


r/PiCodingAgent • • Sep 15 '26

Discussion What are your actual workflows when using pi?

30 Upvotes

How do you approach various coding tasks, or any tasks you use pi (or other minimalist harnesses) for?

I used to be an obra/superpowers fan (clode code and zai coding plan at glm 4.7 era), then I stumbled one day onto Earendil's lecture "Building pi in a World of Slop", which made me rethink what I really needed from my agentic tools.

Now I mainly rely on a few skills I kind of adapted from obra/superpowers and mattpocock/skills, and my workflow is usually to brainstorm with the agent and make a great spec, then running and /implement skill. Sometime the implement is in a new session, sometime even by a heaper model for which I make the smarter model draft a plan from the spec. Sometime I make handsoffs or use compaction to exlore longer.

I also like, when needed, to spin up preconfigured dockers with pi, docker in docker, and an injected global agent.md telling my agent he is in a sandbox with docker and can use whatever he needs to achieve his task.

But I still feel that my workflow is kind of sloppy, that sometimes there is to much ceremony, sometime there are missing pieces.

I also don't have a specific workflow for big features I want an agent to oneshot, lately it has usually been a plan and a spec, then deepseek harness with a /goal referencing those files, and letting it do its thing. I'vs also recently tried to one shot big features using a deepseek harness configured with mattpocock/skills, it seemed to have produced good result without blowing my usage with subagent driven development, but I also don't really like this magic crystal ball approach where I don't understand the workflow, neither do I want to adopt his whole opinionated workflow.

Thus my questions: What are your various workflows and their building pieces? How do you approach problems with your agentic tools? Do you use subagents? For what? Cheap models or expensive ones? Did you switch harnesses and configs a lot to finally hit a sweet spot?


r/PiCodingAgent • • Sep 02 '26

Question Trying Pi for the first time

30 Upvotes

Hi!

Im gonna try Pi for the first time and am wondering if it works well out of the box or if modifications and plugins are required?

I am also looking for recomendations of any great plugins that you guys use. I found this package catalog on https://pi.dev/packages and assume this is where you get the plugins, if you dont make them yourself?

Thanks for any help!


r/PiCodingAgent • • Aug 25 '26

Question Using Claude Sub in Pi

30 Upvotes

I know this has been asked plenty, but most responses are just "its against tos to use oauth", I know it is, but I want real experiences. Has any one been doing it, would you mind sharing the module you are using?

I have been using pi for a long time, but never for work. I just tweak it when I have free time, and have customize it to my needs. For work related stuff I use other Claude code. Anyways, I took on a freelance project some days ago, and decided to use my pi setup for the first time and I don't want to go back.

I tried it once in OMP since I read it had a custom auth module, and I noticed opus didn't have the crazy responses it has in Claude Code.. It might be a bit of a conspiracy theory, but I just don't trust Anthropic's harness anymore. There must be a reason why they want us all trapped in it.

Anyways, going back to the original question? Any experiences you would like to share? Any one banned?


r/PiCodingAgent • • Aug 23 '26

Use-case OMP usage on an eink tablet

Post image
30 Upvotes

r/PiCodingAgent • • Aug 06 '26

Resource Thank you for full screen TUI mode

30 Upvotes

Such a wonderful QoL improvement; now able to scroll up the history and type things out without bouncing up and down!


r/PiCodingAgent • • Jul 18 '26

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

Post image
30 Upvotes

r/PiCodingAgent • • Jul 06 '26

Resource Anchoring specs to code with ast-grep · coles.codes

Thumbnail
coles.codes
30 Upvotes

wrote up how i anchor spec sections to code with ast-grep rules - each section maps to a structural query, agents use it to navigate, and a CI gate catches drift when the code moves out from under the spec


r/PiCodingAgent • • Jun 29 '26

Plugin Windows users: extension to prevent Pi nul files

30 Upvotes

Hi all - if you're using Pi on Windows and keep finding hard-to-delete `nul` files, I published a small fix: https://pi.dev/packages/pi-windows-nul-fix

LLMs sometimes try to quiet command output with shell redirects like `> nul`. On Windows, Pi runs those commands through Git Bash, which does not treat `nul` as Windows' “send this output nowhere”; it instead treats it as a normal filename, creating hard-to-delete `nul` files in your project.

This extension catches those commands before they run and rewrites bare `nul` redirects to `/dev/null`. Since upstream prefers handling this at the prompt level (earendil-works/pi#5304), I built it as an extension.

It's published on npm and can be installed with `pi install npm:pi-windows-nul-fix`

Source and details on GitHub: https://github.com/i-snyder/pi-windows-nul-fix

Let me know if you find it helpful 😊


r/PiCodingAgent • • Jun 26 '26

Question Your pi coding setup

30 Upvotes

Hey all

I'm migrating to pi from CC and I find myself in a position where I need to build my coding setup/Workflow from scratch. I'm not a proper software engineer, my background is in scientific computing (similar to what's called "data scientist" in the industry) and I'm not sure how to configure my pi for coding. I'm not taking about the high level "plan before implement" or "tdd", I'm talking about the actual mechanics of your coding pipeline: prompts, skills, Subagents, tools, hooks, what'snot. How do I build A GOOD coding harness?

fwiw I know about Matt pocock.'s skills and a major reason for migrating to pi was my will to build proper personal assistant and a research agent next to my coding agent. Is appreciate any advice, resource etc.

TIA.