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 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.


r/PiCodingAgent • • May 07 '26

News PSA: Breaking changes for Pi Extensions

30 Upvotes

Pi namespaces changing:

https://x.com/badlogicgames/status/2052337097315381517

Maintainers need to update their extensions, or won't work.


r/PiCodingAgent • • 27d ago

Discussion What is everyone's experience with the billion context extension?

29 Upvotes

I've been seeing the [billion context](https://pi.dev/packages/billion-context) gain a fair bit of downloads on pi.dev. I did try it but it never really solved my biggest issues with Qwen 27b running locally with 128k context.

Am I misconfiguring it or something? How are you guys using it?


r/PiCodingAgent • • Oct 03 '26

Plugin I made pi-delegator for people who want a simpler subagent extension

Thumbnail
github.com
29 Upvotes

r/PiCodingAgent • • Sep 17 '26

Discussion Sandboxing Pi?

29 Upvotes

I'm new to the local LLM game. I've just purchased an AMD R9700, and I'm trying to set up a local environment that is as similar as possible to what I get with Claude Code at work.

It's definitely looking like Pi may be my harness of choice, so I'm investigating what it would take to "sandbox" it in a way that is both reasonably secure and reasonably convenient (i.e. no containers or VMs). I'm on Linux, so I'm thinking maybe Bubblewrap?

Curious to know what other are doing, though.


r/PiCodingAgent • • Sep 10 '26

Plugin pi-play | i made a pi plugin to play simple games instead of doomscrolling

29 Upvotes

Whenever Pi was chewing on something for a minute, I'd grab my phone and come back 20 minutes later to a response that had just been sitting there.

So I wrote pi-play: /play opens a game as an overlay right on top of the conversation, and it listens for agent_settled. The second pi finishes or is waiting on you, the game stops immediately. No alt-tab, no phone.

5 games so far: Snake, Tetris, 2048, Minesweeper, sudoku

(6 is on the way, i am implementing chrome dino game rn)

to install: pi install npm:@terminalika/pi-play


r/PiCodingAgent • • Aug 17 '26

Use-case Adjust thinking level for Qwen3.8-27b

29 Upvotes

It seems the "compat.thinkingFormat": "qwen-chat-template" setting that worked with Qwen3.6-27b does not pass thinking level to qwen3.8-27b, which defaults to xhigh and is quite slow.

This is what worked for me in models.json. I have to add some compat options to pass thinking level correctly from pi to llama.cpp:

{
    "providers": {
        "llama.cpp": {
            "modelOverrides": {
                "Qwen3.8-27B-Q4_K_M": {
                    "reasoning": true,
                    "thinkingLevelMap": {
                        "minimal": null,
                        "low": "low",
                        "medium": "medium",
                        "high": null,
                        "xhigh": "xhigh"
                    },
                    "compat": {
                        "thinkingFormat": "chat-template",
                        "chatTemplateKwargs": {
                            "enable_thinking": { "$var": "thinking.enabled" },
                            "reasoning_effort": { "$var": "thinking.effort" }
                        }
                    }
                }
            }
        }
}

Disclosure: I do not understand why those compat options are needed but I have pi tested it against llama server running qwen3.8-27b and confirmed all thinking levels work as they should: off/low/medium/xhigh.


r/PiCodingAgent • • Jun 20 '26

Use-case GLM 5.2 + pi — way better than I expected. Vibe-coded a terminal transcriber I now use daily

29 Upvotes

Figured I'd vibe-code a terminal transcriber with GLM 5.2 + pi agent — even if it half-worked, that'd be enough. It didn't half-work. It's now the tool I reach for daily, and GLM 5.2 was a real step up from 4.5 at keeping diffs clean across long iterations.

The fiddly parts pi + GLM 5.2 handled without me writing them by hand

- macOS system-audio capture via a Swift ScreenCaptureKit helper (no kext) + BlackHole fallback — the part I expected to die on

- Terminal TUI with raw-mode keys, ANSI render loop, blinking indicators

- Idempotent curl | bash installer with prerequisite checks and PATH injection

- Scrollable transcript with auto-follow, Groq rate limiting, config migration across renames

Not one-shot — iterative. "Make the REC dot blink", "why are mic and system audio duplicating?", "add --uninstall", "rename the config dir and migrate existing users". Each step was a normal back-and-forth, but pi kept context across the whole thing and GLM 5.2's diffs were almost always clean. That's what surprised me.

Anyone else getting results like this with GLM 5.2 + pi? Curious what you're building.


r/PiCodingAgent • • Jun 11 '26

Resource Pi + Docker Sandbox + llama-server setup guide

29 Upvotes

Hi everyone,

I put together a guide for running Pi securely inside a Docker Sandbox while running llama-server directly on my host machine. The goal was to keep the agent isolated while still running the model on the local GPU at full speed.

Hope someone finds this useful!

https://github.com/cuolm/pi-sbx-llamacpp/tree/main


r/PiCodingAgent • • 14d ago

Use-case Finally introduced coding subagents to my harness

Post image
28 Upvotes

I was running several primary agents in parallel in my harness and the notifications were burying me. Every agent stopped to ask me something: "X or Y?", "tests pass, commit?", "found a side issue, fix now or later?" I'd answer half of those the same way every time. I had become the bottleneck on decisions that didn't need me. my AGENTS.md cover many conventions/rules/standards but its still wasn't enough to cover so many of these questions.

So I restructured my workflow like a team:

  • Me: the manager

  • One chat per project: the team lead

  • The other agents: team members, each working in its own "lane"

How lanes work

  • A lane is a git worktree plus a chat working inside it. Each one gets its own branch and folder, so agents don't trample each other's files.

  • The lead asks to open a lane with a title, a plan, and the files it expects to touch. Nothing starts until I approve it on a Lanes board. Before I approve, the harness checks for overlap with files other open lanes are touching, my plan usage, machine load, and whether a spec exists for the work.

  • When a team member stops (it's done, blocked, or has a question), it rings the lead, not me. The lead works through its inbox and replies.

  • The lead can only answer from written rules: a lead.md file in the project plus the project's docs, and it has to cite the rule it used. If no rule covers the question, or it's a taste/preference call, it escalates to me.

  • Escalations land on the board and on my phone as numbered questions, each with a recommended answer. I can answer straight away or ask the lead a follow-up first.

  • The lead can also send me FYI notes that don't need an answer.

I still have full control

Every lane is a normal chat. I can open any of them, read the whole transcript, and type into it directly if I want to step in. The harness never merges a branch, deletes a branch, or removes a worktree on its own.

My notifications are now mostly things that actually need me. It's still early, and I keep refining what goes into lead.md, since that file decides how much the lead can handle without me.

So far I have noticed I am getting alot more done with less headaches (literally!).


r/PiCodingAgent • • Sep 29 '26

Plugin I built Pi-forge: editable context presets and on-demand tools for Pi

Thumbnail
gallery
28 Upvotes

Inspired by SillyTavern presets, I built pi-forge to edit and inspect how Pi's context is assembled. I just released 0.5.7.

It gives you a local web editor for Presets: reorderable prompt blocks, context slots and tool policies, saved as JSON that you or the agent can edit.

What it does

  • Context composition: arrange text blocks and slots for tools, skills, project files and conversation history.

  • Tool selection: define which tools are permitted and a smaller set available by default.

  • Capabilities: load task-specific instructions + tools mid-conversation, manually or through an agent tool you explicitly authorize in the Preset.

  • Inspection: readable context Preview with collapsible tool calls/results and historical tool declarations, Draft/Run diffs, and reported cache usage. Preview shows Forge's composed context, not an exact provider-wire dump.

  • Presets & Profiles: switch setups with /preset use <id>; Profiles also save model and thinking level.

  • Regex: apply rewrite rules to outgoing input or completed assistant/tool output.

How I use it

My daily assistant starts with 10 tools. Delegation, image generation and MCP are separate Capabilities it can enable when needed, instead of loading everything up front.

Since presets are JSON, the agent can also edit individual instruction blocks or turn a repeatable workflow into a new Capability. I review the diff and Preview, then /preset reload. I keep .pi/forge/ in git, since the tool policy is editable too.

Note that cache behavior for capability loading depends on the provider/model: supported Claude and OpenAI models can preserve the cached prefix through tool additions and removals.

Try it

pi install npm:@zihanw/pi-forge

Requires Node ≥22.19 and Pi 0.87.x. Restart Pi, run /forge ui, then create, save and activate a Preset.

Still 0.x. Optional subagents are a separate package with their own compatibility requirements.

GitHub: https://github.com/MacroSony/pi-forge

Curious how others here manage task-specific instructions and tool sets, and what you'd want to inspect before a model call.

Any feedback and ideas would be much appreciated!


r/PiCodingAgent • • Sep 23 '26

Resource Pi-Agent-Kernel: focused code retrieval, grounded edits, safety checks

Thumbnail
gallery
28 Upvotes

I've been working on pi-agent-kernel for a while now.

It mostly operates in the background rather than adding a completely new workflow, it wraps Pi's existing tools to keep sessions compact.

Across standard benchmark tasks, it cut token usage roughly in half and passed our test suites. But local benchmarks only go so far, I'm at the point where I need real users to test it on actual projects.

I'm still quite skeptical about whether some of the tool wrapping might conflict with the users existing extensions.

LMK if anything breaks, behaves unexpectedly, or conflicts with your setup. All feedback and criticism welcome


r/PiCodingAgent • • Jul 26 '26

Discussion Just want to say I love Pi.

28 Upvotes

I started copy pasting code from gpt3 into an VSCode.

Then tried cursor on launch and wasn't impressed.

Tried gpt extention on vscod and that was ok enough.

Went back to cursor again with gpt5.5

Then tried pi and was hooked.

I put pi in vscodium, moved the terminal to a sidebar.

Am building my own IDE around the pi harness and will never go back.

Heavily customising pi to work exactly in my workflow, reducing tokens as much as possible.

Its just awesome, love it.

I use must haves for pi are context 7 and headroom.

What are your must have?


r/PiCodingAgent • • Jul 20 '26

News I run a steel fabrication shop and just published my first two packages for the Pi coding agent — one of them does plate nesting and burn-table DXFs

28 Upvotes

Longtime lurker, first real ship. I own a structural steel fab shop in Denver and have been using the Pi coding agent heavily for internal tooling. Two of those internal tools felt generally useful, so I cleaned them up and published them to pi.dev this weekend.

pi-steel — steel estimating skills. AISC 16th Edition shapes database (477 shapes) with lookup/validation scripts, a MaxRects plate-nesting engine (kerf/gap/edge margins, holes, yield and scrap numbers, PDF layouts, and one DXF per sheet that imports straight into the burn table's CAM), and a vendor RFQ generator that turns a takeoff spreadsheet into a quote-ready .xlsx. The three chain together the way estimating actually flows: takeoff → nest → RFQ. As far as I can tell, it's the only construction-trade package on the registry.

Fair warning on the nesting: rectangular parts nest exactly, irregular parts nest by bounding box. It tells you when it's approximating instead of pretending to be SigmaNEST. No G-code either — kerf comp and lead-ins belong to your table's real post-processor, not a Python script.

pi-tilldone — a discipline extension born from frustration. The agent can't use write/execute tools until it declares a task list, works one task at a time, and gets auto-nudged if it stops with tasks unfinished. Basically a foreman for your agent. If you run Pi inside cmux, your workspace tabs change color based on task state, which is great when you have six agents running in parallel.

Both MIT, repos under github.com/StructuPath. Install with pi install npm:@structupath/pi-steel / pi install npm:@structupath/pi-tilldone.

Happy to answer questions about either — especially from anyone else applying agents to trades/manufacturing work.


r/PiCodingAgent • • Jun 19 '26

Resource pi-flow , a Kaggle verified harness, better than plain dynamic workflow/subagents

28 Upvotes

On the Kaggle NeuroGolf 2026 competition, I made my first attempt at fully autonomous long-horizon optimization with agents.

I experimented with the mainstream loop-harness approaches and a variety of models, then quantitatively evaluated them based on token efficiency and time efficiency.

In the end, I built my own harness around Pi Agent + Extensions. I'd recommend checking out Pi Flow. It can use Claude and Codex as subagents or as agent nodes inside dynamic workflows. It's especially useful if you have both Claude and Codex subscriptions. You can also pair it with an OpenCode Go subscription for stronger adversarial reviews and better model-perspective fusion.

https://github.com/kky42/pi-flow


r/PiCodingAgent • • Jun 14 '26

Resource Minimal subagents for Pi

28 Upvotes

How are you running subagents in Pi?

There are already several subagent implementations for Pi, but for me they were usually either too heavy or missing something I needed. So I just built my own, with the minimum I needed for my harness.

  • Worktree

  • Sandbox

  • Subagent Panel

  • Agent injection

  • single / parallel / async

  • Artifacts

  • Code API

Honestly it's probably too much for some people and not enough for others. I mostly tried to keep it minimal.

If it's useful to you, feel free to try it. And if you're running subagents some other way, I'd like to hear how.

https://github.com/AgwaB/pi-subagent


r/PiCodingAgent • • May 24 '26

News pi-advisor - let smarter model hand-holding cheaper model

28 Upvotes

got an idea from beta feature from claude code recently, introducing pi-advisor, set up advisor model as a smarter, pricier model so agent can call as a tool call for recommendation when it hit blocking wall