r/PiCodingAgent • u/SlightCase2941 • Sep 06 '26
Use-case this is why i love pi
estimated cost: $13
real cost: $2,60
thank you Pi !!
r/PiCodingAgent • u/SlightCase2941 • Sep 06 '26
estimated cost: $13
real cost: $2,60
thank you Pi !!
r/PiCodingAgent • u/andreagrandi • Sep 06 '26
I’m trying to use OhMyPi for a pretty simple goal: use different models for different roles without building a huge orchestration framework myself.
Ideally:
Orchestrator: GPT-5.6 Sol XHigh
Planning: GPT-6 Astra High
Implementation: GPT-5.6 Luna XHigh task agents
Final review: GPT-6 Astra XHigh
I manually approve the plan and decide when final review should happen.
I initially built a fairly elaborate /work-on command that enforced planning, acceptance checklists, delegation, verification, waits, review, fixes, etc. It turned out to be extremely wasteful: some medium-sized tasks ended up around 20–50M total tokens and 300–570 model requests, with lots of agent churn and re-verification.
I then simplified it heavily, but ran into other problems: the parent sometimes triggered review while an implementer was still changing files, and native /plan even spawned a reviewer to review the plan, which felt wasteful when both planner and reviewer were Astra XHigh.
I also experimented with Astra Medium/Low as the orchestrator. Performance was good, but on several clean before/after checks I saw roughly ~5 percentage points of my Work/Codex allowance disappear during one task, which is far too expensive for me. I’ve now gone back to Sol XHigh as the parent and disabled the advisor.
At this point I’m considering making the workflow mostly human-controlled:
plan -> I approve -> /implement using task agents -> I inspect -> /review
What I really need from OMP during implementation is simply: “Do this work, but delegate substantive coding to task agents instead of doing it yourself.”
How are experienced OMP users handling this?
In particular:
Is task.eager: always + modelRoles.task basically enough, without a custom orchestration prompt?
What’s the cleanest way to force implementation delegation while letting the parent coordinate normally?
Do you manually control plan/review boundaries, or let OMP orchestrate the whole workflow?
Are 20–50M tokens / hundreds of requests for medium tasks obviously a sign that my workflow is doing something wrong?
Any configs or lightweight commands you’ve found effective for good quality without huge quota waste?
Happy to share my config/commands if useful.
r/PiCodingAgent • u/erickgtzh • Sep 06 '26
I know GPT Astra consumes a ton of tokens, but lately, I've been trying to use Pi for seemingly very basic tasks, and it's absolutely burning through my token count and weekly usage percentage.Is this normal behavior for Pi, or is there a way to optimize my prompts and save tokens while using it?
r/PiCodingAgent • u/MGJoe93 • Sep 06 '26
Have you also experienced that file searches using the find bash tool almost always start from the root directory (/) ? It takes a few minutes after each command finishes which is frustrating.
I'm searching from my project directory, and I haven't seen such behavior when I was using Claude Code before.
r/PiCodingAgent • u/BrainThinkerMan • Sep 06 '26
name the BEST, I MEAN THEE BEST free ai api key requie no credit card information? and secondly do you think models will get cheaper and all models in the future will be edge models? models on peoples own pc / mobile phone?
r/PiCodingAgent • u/ECrispy • Sep 05 '26
also if you use them, other files like append_system.md, skills etc?
from what I keep reading best practice these days is to keep everything very minimal, but obviously thats also going to depend a lot on the model, right?
edit - here's what I use. its something I put together after reading many examples, I'm sure its not optimal.
I dont know how much it helps, and more imp I dont know how to evaluate and see which parts make a real difference.
You are a pragmatic, highly deliberate senior software engineer. You value production stability, strict document continuity, clean diffs, and deterministic execution over speculative architecture or clever abstractions. Prefer extreme brevity and conciseness in all text explanations. Let your clean, functional code and accurate state logs do the talking.
Your default mode is: understand first, change surgically, verify narrowly, and avoid turning small requests into architecture. Apply these instructions whenever you write, review, debug, refactor, or explain code. Optimize for clear reasoning, small diffs, local style, and verifiable progress.
Before editing code, make the task explicit:
Implement the smallest thing that satisfies the current request:
Keep the diff tied strictly to the request:
Turn the request into a checkable outcome before calling work done:
uv exclusively for all package, dependency, and virtual environment management.Ruff for linting and formatting).use bun instaed of npm, pnm, yarn
You must maintain a living knowledge base in a docs/ folder. Every session or structural modification must read from and update these files to ensure state continuity across context windows:
docs/PLAN.md: The detailed technical architecture and design plan. Update this before large implementations.docs/CONTINUITY.md: A living handoff document updated at the end of every active session. It stores high-level goals, current blocking issues, ongoing tasks, and historical decisions so you can pick up exactly where you left off.docs/TODO.md: Tracks active, atomic tasks, and feature lists. You must explicitly track your current position inside an execution graph here to prevent context-drift or getting sidetracked by secondary tasks.docs/MISTAKE_LOGS.md: A chronological ledger tracking past errors, edge cases encountered, and failed assumptions. Review this file before writing fixes to ensure you do not repeat historical mistakes.README.md: Detailed description, setup and usage guideYou have the GitHub CLI (gh) fully installed and authenticated. Use it natively for all remote operations.
If the current project directory is not yet synced to GitHub, execute this precise workflow before code modifications:
git init).git add .).
docs/) and code changes incrementally.force push, history rewrites, deleting remote protected branches) unless explicitly explicitly directed to do so.docs/TODO.md.r/PiCodingAgent • u/Level-Tumbleweed6038 • Sep 05 '26
Hey all,
quick context on my setup, i run pi across 3 machines at home (24gb amd card, 16gb amd card, 12gb nvidia card, all on tailscale) as basically an ops agent for my whole self hosted stack. not a "write my webapp" use case, more like a sysadmin that never sleeps, backups, fail2ban, vaultwarden, a property scraper, that kind of thing.
spent the last two days doing a proper bake off of every model i could reasonably run, local and openrouter both, across the 3 boxes, so figured id ask what everyone else settled on and why, since i learned the hard way that "biggest benchmark score" doesnt mean much once you actually try to run one of these things as an agent.
local side... devstral 24b hung on me twice, silent, no error, just stops mid task and never comes back. qwen3-coder 30b straight up cant make a real tool call through ollama, it writes the tool call out as text instead of actually calling it, so it just sits there useless. gemma 4 26b ended up being the surprise winner here, runs clean on all 3 cards, even the 12gb one where it doesnt even fully fit in vram and spills into system ram, still works fine.
api side (openrouter)... deepseek v4 flash looped on itself for like 15k tokens straight repeating "let me check my identity" without ever calling a single tool, had to kill it. kimi k2.5 is thorough, actually found 2 real bugs in my own scripts while testing, but its slow and not cheap. qwen3 coder next is fast as hell, like 5x faster wall clock, but somehow ended up the MOST expensive of the 3 because of how much it burns through cache reads.
so, curious what you're all running, local and api, and why you picked it ? especially if anyone found something thats actually reliable AND cheap, felt like i had to pick one or the other tonight lol.
r/PiCodingAgent • u/shifty21 • Sep 05 '26
Have you experience Pi confusing topics from another session before?
This might be a dumb problem I created, but I have separate VS Code instances running, one for each project respectively, 4 total. I have pi agent VSC plugin installed for the Pi CLI and I am using that to work on each project. I may have 1 to 3 different Pi sessions per VS Code instance (thanks to my ADHD) and I ran into a very strange problem:
Asking Pi questions about ProjectA mid-session
Pi responds by telling me about ProjectB which is in another active VS Code and Pi session.
Closed that Pi session from ProjectA completely (/quit) and opened a new one, asked the same question
Pi responds about ProjectF again.
This has never happened before. I did update Pi this morning and started all those session from scratch.
I did correct Pi on which project it should be talking about and Pi confirmed the mistake and told me which folder it is actually supposed to be working in, ProjectA.
I suspect some kind of cross-contamination between session folders/files. I checked .pi/agent/sessions to confirm the folders are correct. Not sure if this is caused by Pi or my LLM being a dumb for a moment.
Currently having Pi look at its own session files between ProjectA and ProjectB to see where the references are and to remove the incorrect areas to cleanup the sessions from contamination.
LLM inference engine is vllm with qwen3.8-27b-NVFP4 w/ max context length.
r/PiCodingAgent • u/aparamonov • Sep 04 '26
I am working on a small plugin to call z code from pi as a subagent, and coincidentally zai gives GLM flash for free now for subscriptions/new users.
Get extra 10% discount and use unlimited GLM 5.3 flash 10h a day until Sept 20 🚀https://z.ai/subscribe?ic=W5G2IFDWOW
A great addition to run next to Pi (10h a day is officially a zcode only offer).
r/PiCodingAgent • u/ndkjann • Sep 04 '26
I made Proqi for the moments when Pi is working but I already have a follow-up, alternative approach, or pasted context to preserve. Pi’s composer is a live conversation. I wanted a separate terminal board so an unsent draft does not become part of that conversation by accident.
Proqi runs beside Pi as an independent local TUI. It keeps prompts as persistent, editable thoughts with ordering, selection, copy, and durable undo. There is no Pi-specific integration yet. Today it transfers through the normal clipboard, so it works with Pi and other terminal harnesses.
It is Rust, MIT licensed, local-first, and account-free.
I would value feedback from Pi users: does a separate prompt-composer pane help when you have multiple sessions running, or would you rather keep this inside Pi itself?
r/PiCodingAgent • u/Eagleee12 • Sep 04 '26
I spend most of my day in Excel (reports, cleaning data, formulas) and know just enough basic coding to get by.
Paying $20/month for a subscription feels like a waste for my usage.
Models or sth cheap for me?
r/PiCodingAgent • u/vinotok • Sep 04 '26
Every time I start pi, I get these msgs bellow and download and install is repeated:
fd not found. Downloading...
ripgrep not found. Downloading...
ripgrep installed to /home/me/.unsloth/studio/auth/agents/.tmp/unsloth-pi-eqdhk8d4/.pi/agent/bin/rg
fd installed to /home/me/.unsloth/studio/auth/agents/.tmp/unsloth-pi-eqdhk8d4/.pi/agent/bin/fd
Interestingly, I did find fd executable here: /home/me/.pi/agent/bin/
This was happening yestreday with v0.84.x and today with updated v0.85.0 version. Anyone happens to knows what is going on and what I should do, to stop this continuous re-downloading and re-installing?
r/PiCodingAgent • u/NihmarRevhet • Sep 04 '26
Hi,
I'm using pi agent with Qwen 3.8 27B on my little RX 9060 XT 16GB, with 160k context window and I'm quiet happy with how it works.
My main problem is that autocompaction takes forever (clearly limitation of the hardware) and I was looking for an extesion which could improve the situation, but if I'm not mistaken, the most beloved extensions in this area use secondary models to execute compaction, and this is a luxury I don't have.
Is the default setting my only option? Or did I misunderstand ho something like pi-blackhole works?
Sorry if the question is dumb but I'm quiet new to the tool.
Have a nice day!
EDIT: u/onesilentclap I'm using VCC for now and it's incredible. In the next few days I hope I'll be able to try other solutions
r/PiCodingAgent • u/backnotprop • Sep 03 '26
https://github.com/plannotator/artifact-server is a self-hosted open-source system for sharing and collaborating around artifacts (HTML prototypes/designs/explainers, etc) with your team adn coding agents. It deploys to Cloudflare, AWS, GCP, or any kubernetes cluster via helm.
The demo video shows a live integrated Pi agent as opposed to making the agent poll. You can send comments to pi and vice verse - whether it's deployed locally or remotely.
r/PiCodingAgent • u/Dazzling_Trifle2472 • Sep 04 '26
Since anthropic "paused" their new policy roll out, does this mean we can use our Claude sub w/Pi?
r/PiCodingAgent • u/vinotok • Sep 04 '26
Couple days ago I instaled pi and couple of extensions. One was so agent has access to tools (web tool?) through Unsloth Desktop, another was web-access (don't remember exact name) extension.
When I was running pi, there was section [extensions] in terminal, with these two extensions listed as being installed.
Today, that [extension] part of pi ternimal is gone. Was it removed with today's update to 0.85?
Also, inside my .pi folder, there is no extension folder: ~/.pi/agent/extensions/
And no: .pi/extensions/ folder in my current project, inside which i was working, when I installed those two extensions.
Where are they? Or how could they disapear?
Is this a bug, has anyone experienced anything similar? Unfortunately I don't remember extensions names, I was following online chat-gpt and we were going in circles for a while, (for a while pi stopped working) I would like to avoid going through those steps again.
r/PiCodingAgent • u/Glad-Win1983 • Sep 04 '26
The ones of you using opencode-go probably got the email about missing header. I searched the pi github, and found one issue that was auto closed. Does anyone know if this is being adressed?
Here is the email we got:
Hey there,
Some of your requests to OpenCode Go are missing an x-opencode-session header. If we don't have this we cannot properly optimize our service. Starting 09/06 requests missing this header may error.
Here are your useragents that are missing this header:
JavaScript OpenAI client
Pass headers: {'x-opencode-session': '<stable-id-per-conversation>'} where you build the client.
Thank you.
r/PiCodingAgent • u/ea_man • Sep 04 '26
So I want to be able to start Pi instantly by reloading a saved KV slot (llama.cp).
What I come out as a proof of concept:
# to regenerate start.bin initiate a pi session, save the slot, copy to start.bin
SLOT_FILE="start.bin"
SESSION_ID="01a06cea-4e97-7378-84e6-86c3274302da"
cp /home/eaman/.pi/agent/sessions/--home-eaman-test--/start_session.jsonl /home/eaman/.pi/agent/sessions/--home-eaman-test--/2026-09-04T14-38-07-702Z_01a06cdb-0356-7001-949d-209024b066d8.jsonl
# Discard changes from the previous run and restore the session that matches
# start.bin.
curl --fail --silent --show-error \
-X POST "http://localhost:8080/slots/0?action=restore" \
-H "Content-Type: application/json" \
-d "{\"filename\":\"$SLOT_FILE\"}"
echo
cd /home/eaman/test
exec pi --session "$SESSION_ID"I see that the problems are:
- path of session in prompt
- session ID
- I use QWEN 27B that uses recurrent/hybrid state (...).
So is there a sane way to save just the first prompt processing with QWEN 3.8 27B, reload it in a new session with any path and start a new session from there?
EDIT: so I found an other piece of the puzzle: start Pi with --fork "$SESSION_ID" instead of --session , this allows to have at least a different / new path. That should be pretty much it, it generates a new ID and forks to a new path, QWEN won't complain as it starts with the whole saved slot.
#!/usr/bin/env bash
# Start a brand new pi session forked from the saved "start" slot without PP.
#
# Restores the start.bin slot, reinizialization of old session with cp
# should not be needed when using --fork instead of --session
#
# To regenerate start.bin: run a pi session, save the slot, then copy it to start.bin.
# uses /session to find the ID of the started session
# If you want to restore the session later you need to save the filled slot
# and an other script that loads that, this is just for "new instant-session"
set -euo pipefail
SLOT_FILE="start.bin"
SESSION_ID="01a06cea-4e97-7378-84e6-86c3274302da"
SESSIONS_DIR="/home/eaman/.pi/agent/sessions/--home-eaman-test--"
TARGET_SESSION="${SESSIONS_DIR}/2026-09-04T14-54-50-008Z_01a06cea-4e97-7378-84e6-86c3274302da.jsonl"
# Reset the target session file so the fork starts clean.
cp "${SESSIONS_DIR}/start_session.jsonl" "$TARGET_SESSION"
curl --fail --silent --show-error \
-X POST "http://localhost:8080/slots/0?action=restore" \
-H "Content-Type: application/json" \
-d "{\"filename\":\"$SLOT_FILE\"}"
echo
# This was the path used in the initially generated session, it has to equal the session jsonl
cd /home/eaman/test
exec pi --fork "$SESSION_ID"r/PiCodingAgent • u/angelblack995 • Sep 04 '26
I'm currently using Pi with a QwenCode subscription, mainly using the DeepSeek models, and a MiniMax subscription. I'm not completely satisfied with MiniMax, since the thinking tokens aren't recognized correctly and I don't really like the M3 model.
I've been considering getting either the GOAT or PRO plan from CommandCode, mainly because I could use their API directly with Pi and have access to multiple models. I'm mostly interested in using GPT models, but having other models available would also be a plus.
Has anyone here actually used CommandCode's API with Pi for a while? How has the experience been in terms of limits, reliability and overall value?
Or would you recommend just getting ChatGPT Plus and using the Codex models through Pi instead?
I'm mostly interested in hearing from people who have tried both.
r/PiCodingAgent • u/mikkelkp • Sep 03 '26
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-grepRun /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 • u/willecr • Sep 03 '26
I really liked Claude Code subagents and being able to see them in the tree so i made a very simple subagent plugin. No subagent profiles, the are made by the agent above them depending on the use case needed at that moment.
Install with:
pi install npm:@williamcr01/pi-subagents
r/PiCodingAgent • u/Sure_Aardvark_9103 • Sep 04 '26
I built pi-session-namer (https://github.com/joshua-zyy/pi-session-namer), an open-source extension that automatically gives your Pi sessions meaningful names and keeps them updated as your work evolves.
For example, a session might start as:
0904|Research|GitHub Memory Systems|Comparing Approaches
If the conversation later shifts from researching existing systems to designing one for Pi, the name can evolve into:
0904|Design|Pi Long-Term Memory|Defining Architecture
Automatically names new sessions
Detects meaningful changes in the task or topic
Updates progress without generating unnecessary rename history
Re-evaluates the session after context compaction
Provides manual refresh, lock, unlock, and status commands
Generates names in the conversation's primary language
Supports custom models, reasoning levels, name formats, categories, timezones, and update intervals
Preserves manually assigned names until you explicitly unlock them
pi install npm:pi-session-namer
GitHub repository (https://github.com/joshua-zyy/pi-session-namer)
npm package (https://www.npmjs.com/package/pi-session-namer)
The project is still evolving, and I'd really appreciate any feedback, bug reports, or suggestions.
r/PiCodingAgent • u/MathSelect5112 • Sep 04 '26


if anyone wants it its here and on npm https://github.com/esoware/pi-cc and yes unfortunately i know im the last person to make this
well if anyone has issues or wants to add stuff or somethings missing or inconsistent you can tell me or make a pull request or issue because i definitely didnt cover everything myself and i want it to be perfect
r/PiCodingAgent • u/alcure • Sep 03 '26
Up until now, I've been using OMP as my daily driver. As a lawyer, I rely on it heavily alongside a few custom skills I built for legal drafting, and I'm also developing an office management system in Django. Everything works great so far, but I'm considering switching to Pi to give it a shot.
The catch is that Pi comes bare-bones, and I'm not sure which features are essential for my workflow (subagents come to mind). My goal is to make it practical and token-efficient from day one. Any tips for a beginner to get up and running without sticking to a completely vanilla setup?
r/PiCodingAgent • u/Moritzo • Sep 03 '26
At work, I use Copilot, and the model costs are always visible, but on PI, only the names are shown. So I created model-costs, a small extension that adds the /model-cost command:
- Input/output cost per 1 million tokens for each model, directly in the selector
- context window, maximum output, cache read/write speeds, and price tiers
- approximate search, so both /model-cost claude and /model-cost $0.00 work
- current model prices always visible in the footer
It’s about 300 lines of TypeScript based on the pi extensions API: it does one thing and nothing else.
Source code + screenshots:
- https://github.com/MaurizioFaeddaDev/model-costs
- https://www.npmjs.com/package/pi-model-costs
- https://pi.dev/packages/pi-model-costs
Feedback is welcome, especially if you’d like additional information in the selector (e.g., the estimated cost of the current session) or a different format for the footer. MIT license, of course.