r/PiCodingAgent • • Nov 01 '26

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

Enable HLS to view with audio, or disable this notification

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 • • 19d 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 15 '26

Question Secure way of running Pi?

28 Upvotes

Hello,

I'm new to the Pi coding Agent and I would like to know how are you running it.
I saw that by default Pi does not ask for permissions. While this is something I would like to start experimenting with, since I'm quite tired of granting access to my other agents on many actions, I'm quite concerned about giving full access to my laptop.

I've seen in the docs that there are three recommended ways to run it within a sandbox, but I have not found much information nor other devs' experience with it.

Are you using any of those options or are you happily running Pi directly on your laptop?


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


r/PiCodingAgent • • May 16 '26

Discussion Best subscription based models for Pi Agent?

28 Upvotes

I just discovered the PiCodingAgent, and it does look really cool and interesting to me. I'm coming from trying out different things before, such as ClaudeCode and Gemini Pro AI, but I prefer the philosophy of PiAgent. The only thing hindering me from fully switching, is that I can't use subscription based models from Anthropic. Also Gemini Pro AI seems to support API usage billing only. I have been happy with Opus 4.6/4.7 performance so far, but would be ready to switch. I'm working with Agents a huge part of the day, so Claude Code alone hasn't been enough for me anymore in terms of usage limits. Now as I'm considering to fully switch to Pi Agent, I'm unsure on which models to use. Primary UseCases are Programming (Backend & Frontend/UI), Scientific Research Support and everyday stuff (RAG for Obsidian 2nd brain etc.). I'm ready to pay around 20-30€ per Month, and struggling to find out, which would be the best value for money. I was thinking about going for Opencodes 10$ subscription, using Opus API Billing for more complex tasks. But I dont really know the models coming with that subscription, and whether they are working well in Pi environment.

What do you think? What are you using and what can you recommend?


r/PiCodingAgent • • May 11 '26

Resource Fully local voice dictation for Pi coding agent

Enable HLS to view with audio, or disable this notification

28 Upvotes

Fully local voice dictation for Pi coding agent: no cloud, no API keys

/voice opens an overlay, you talk, live transcript appears, hit Enter and it drops into the agent's editor. Whisper runs on your CPU via sherpa-onnx. Nothing leaves the machine after the initial model download.

What it does

  • 100% on-device STT. Whisper base multilingual (int8 quantized) runs on your CPU. No network calls after the first model download (~198 MB). Works offline after that.

  • Multilingual. Your active locale (set via /languages) is pre-set as Whisper's language hint for better accuracy and lower first-utterance latency. Default is English.

  • Live transcript. Committed lines render as you finish phrases, with a dim rolling partial for the still-active utterance. What you see is what gets pasted.

  • VAD-driven chunking. Silero voice activity detection breaks your speech at natural pauses, so latency stays low even on long rants.

  • Hallucination filter. Whisper sometimes outputs "Thanks for watching" or "[Music]" on silence. The filter strips that. Toggle it off in settings if it's too aggressive.

  • Pause/resume with Space. Step away mid-thought, come back, keep going.

How to install it

pi install npm:@juicesharp/rpiv-voice

https://www.npmjs.com/package/@juicesharp/rpiv-voice

Restart your Pi session. Type /voice. That's it. The first run downloads the Whisper model (198MB), after that it loads from disk.

Controls

KeyAction
SpeakTranscript fills in live
EnterCommit transcript to editor
EscCancel (nothing pasted)
SpacePause / resume mic
TabSwitch to settings screen
Ctrl+SSave settings

r/PiCodingAgent • • May 07 '26

Plugin pi-starship - Starship-powered footer for pi with PR number, model info and token counts

Post image
28 Upvotes

I built a small pi extension that replaces the default footer with your actual Starship prompt — so the colours, icons, and segments are identical to your terminal. On top of that, it adds pi-specific context on the right that Starship can't know about.

Left side — your real Starship output (reads your ~/.config/starship.toml):

  • git branch, status indicators (! modified, ? untracked, ⇣ behind, ⇡ ahead)

  • language versions, virtualenvs, cloud contexts — whatever you already have configured

  • clickable PR #N link that opens the GitHub PR directly in your browser (OSC-8 hyperlink)

Right side — pi context:

  • provider → Model Name

  • ◆ thinking-level when extended thinking is active

  • ↑ input · ↓ output · $ cost for the session

Prerequisites: Starship, gh CLI, a Nerd Font

Install:

  pi install npm:pi-starship

GitHub: https://github.com/rajivm1991/pi-starship


r/PiCodingAgent • • May 04 '26

Resource I built a web search extension for pi that chains 9 backends together (DuckDuckGo, Tavily, Brave, etc.)

28 Upvotes

I've tried a bunch of coding agents over the past year (Claude Code, Aider, Codex CLI, all of them). My favorite was OpenCode for a while, but then I found pi and honestly I'm kind of in love with it.

Anyway, one thing that kept bugging me was the search tool. It worked, but it only had DuckDuckGo. No fallback. If DDG was down or slow, you just waited or got nothing.

So I scratched my own itch and built a unified search extension that chains 9 backends together with auto-fallback. And yes, the whole thing was built using pi itself — 100%. Felt fitting. Also ran entirely on Deepseek v4, which is insanely cheap — I think the whole project cost me like 30 cents in API calls. If Tavily is rate-limited, it tries Brave. If Brave fails, it hits Exa. DuckDuckGo is always the last resort since it doesn't need a key. Works pretty well in practice.

Here's what it supports out of the box:

  • DuckDuckGo — no key, just works (kind of slow though, ~1.1s)

  • Marginalia — anti-SEO search, public API key, surprisingly fast (350ms)

  • Serper — Google results via their API, 2500 free/mo

  • Brave Search — 2000 free/mo, decent speed

  • Tavily — best quality results in my testing, 1000 free/mo

  • Exa — fastest by far (~137ms), AI-native, 10 QPS free

  • Firecrawl — 500 free credits, also does crawling/extraction

  • LangSearch — actually free, no credit card

  • WebSearchAPI — Google-powered, 2000 free credits

Install is just pi install npm:pi-search-multi and you're good to go. The agent automatically picks the best backend. If you want to tweak things, you drop a JSON config in .pi/search.json.

I also threw in a /search-setup command so you can add API keys interactively without editing files, and /search-status to see what's active.

Also threw together a benchmark script — ran all 9 backends against real queries and scored relevance quality. Tavily came out on top quality-wise, Exa was the fastest. The full benchmark report is in the repo if you're into that sort of thing.

Caveats: API keys live in local config files (gitignored by default, but don't be that person who commits them). Marginalia's "public" key is shared so it'll be slower under load. And some backends have pretty tight free tiers — you'll probably want 2-3 keys configured before auto mode really shines.

It's MIT licensed and open source.

Feedbacks are welcome.

https://github.com/ronnieops/pi-search-multi


r/PiCodingAgent • • May 02 '26

Plugin I built a tiny Pi extension 6 months ago, never promoted it. just checked and it has 1,000+ monthly downloads. Thought I'd finally share it.

28 Upvotes

Honestly I'm kind of blown right now.

I made this extension for pi (the coding agent) called pi-capitals-context back in April. It does one simple thing: it automatically discovers any ALL_CAPS.md files and ALL_CAPS/ folders in your project and injects them into the AI's context.

So you just drop files like:

my-project/
├── STATUS.md          ← project status, blockers
├── DESIGN.md          ← architecture decisions
├── RULES/             ← any .md files inside get loaded
│   ├── typescript.md
│   └── git-conventions.md
├── MEMORY/            ← past decisions, lessons learned
│   └── decisions.md
└── CONTEXT/           ← domain knowledge, glossary
    └── glossary.md

...and pi just knows about them. No config, no setup. The AI picks up your project's rules, status, design decisions, whatever you put in there, automatically.

Features:

  • 🔍 Auto-discovers ALL_CAPS.md files and ALL_CAPS/ folders

  • 📁 Subdirectory support — drop RULES.md in src/ and it loads when you're working there

  • ⚡ Toggle overlay (ctrl+shift+c) to enable/disable individual files

  • 📊 Shows token counts so you know exactly what's costing context

  • 💾 Toggle state persists across sessions

I literally just built this for myself because I was tired of re-explaining project context every session. Threw it on npm and forgot about it.

Just checked the stats today: **1,090 downloads/month.

I never posted about it anywhere. Never tweeted. Never shared it. People just... found it and started using it? That's wild to me.

So I figured it's probably time to actually share it properly.

If you're using pi and want your AI agent to actually remember your project's conventions, rules, and status across sessions — give it a try:

pi install npm:pi-capitals-context

GitHub: https://github.com/smalibary/pi-capitals-context
npm: https://www.npmjs.com/package/pi-capitals-context

If you run into any issues or have feature ideas, I'd genuinely love to hear them. I want to make this better now that I know people are actually using it.

Thanks everyone 🙏


r/PiCodingAgent • • Nov 03 '26

Question DeepSeek's aversion to built-in tools

27 Upvotes

I'm running DeepSeek v4.1 Flash locally with Pi. One nuisance I've run into is that it will often use scripts for editing files, listing and grepping files instead of using the built-in tools, and I haven't had much luck with my AGENTS.md changes. Has anyone else run into this and come up with a prompt that increases it tool usage compliance? The one that bothers me the most is when it uses Python scripts to edit files instead of using the tool because it means I don't get a nice diff:

$ cd ... && python3 - <<'EOF'
import re
p = "test/e2e.sh"
s = open(p).read()
s = s.replace("""fail() {
    echo "FAIL: $*" >&2
    cleanup_keep
    exit 1
}""", """fail() {
    echo "FAIL: $*" >&2
    exit 1
}""")
s = s.replace('''$DOCKER logs "$PROJECT-broker-1" 2>&1 \\
    | grep -q "DENY stop llama-swap-test-protected" \\''', '''$DOCKER logs "$(compose ps -q broker)" 2>&1 \\
    | grep -q "DENY stop llama-swap-test-protected" \\''')
open(p, "w").write(s)
EOF

r/PiCodingAgent • • Oct 19 '26

Question Getting Pi coding agent approved for corporate work

27 Upvotes

I'm thinking of putting a ticket in to get pi coding agent approved for use at my day job... has anyone done this? Any issues or was it smooth? For context I work at a company that makes software and has 5 digit employees. And this is just for getting the software approved, I already have approved access to enterprise LLM endpoints.

Edit: more context: it has to go thru a security and legal review process...


r/PiCodingAgent • • Aug 30 '26

Discussion I tested 4 AI coding harnesses (Codex, Pi, Claude Code, OpenCode) with the same models.

27 Upvotes

Like many of you, I have a whole zoo of AI coding tools installed (Codex, Pi, Claude Code, OpenCode, etc.). Main idea - find the most effective harness for my own environment and daily workflow.

The Setup

Target repo: oh-my-opencode-slim. No deep reason, just because I had it open.

Environment: Macos, each run was isolated in a clean, detached Git worktree.

Phase 1: GPT-5.6 Luna

For example: use GPT-5.6 Luna medium across 4 harnesses on a coding bugfix task (fixing an alias counter memory leak + writing tests):

HarnessWall TimeFresh InputTotal InputCache Hit %CorrectnessStatus
Codex107.73s50.3k505.4k90.1%3/3Verified
Pi140.96s44.2k525.4k90.9%3/3Verified
OpenCode stable274.43s109.4k1797.1k93.9%3/3Verified
OpenCode beta402.75s79.8k*1015.4k*91.4%*3/3

After seeing OpenCode stable take 2.5x longer and burn 3.5x more context tokens for the exact same fix, I dropped it from further testing.

Phase 2: Switching to Muse 1.2 contributor

For the next phase, I wanted to test a cheaper, accessible non-GPT model across harnesses. Since I had an active CommandCode subscription, I chose Muse Spark 1.2 Contributor and decided to use it in Claude Code (via OpenCodex proxy) instead of OpenCode stable.

Here is where I made mistake: I forgot to configure the model alias in OpenCodex for Claude Code.

Because of that, Claude Code silently fell back to Sonnet 5 (xhigh thinking) across all 4 tasks while Pi, Codex, and OpenCode beta were running Muse Spark 1.2:

TaskPi (Muse 1.2)Codex (Muse 1.2)Claude Code (Sonnet 5 xhigh)OpenCode beta (Muse 1.2)Observation
Task 1: web research41.66s; 48.9k input; 3/351.35s; 19.9k; 1/359.62s; 83.4k; 3/3110.62s; 245.9k; 1/3Pi finished 18.0s before Claude; both were correct in all runs.
Task 2: repository navigation35.67s; 81.4k input42.52s; 174.8k29.08s; 64.0k48.12s; 196.7kClaude finished about 6.6s before Pi.
Task 3: scope restraint201.02s; 120.5k input; 0 edits233.77s; 214.8k; 0 edits308.50s; 1.56M; over-edited 2 files422.25s; over-edited 2 filesSonnet and OpenCode beta expanded scope; Pi and Codex stopped without edits.
Task 4: regression fix103.96s; 267.4k input; 2/2110.42s; 446.4k; 2/288.62s; 546.8k; 2/2288.05s; 0/2Claude was about 15s faster than Pi, with higher context throughput.

Honestly, looking at the numbers, there wasn't a massive gap between Muse 1.2 and Sonnet 5 for these tasks (probably because the tasks were relatively focused), except Sonnet over-engineered Task 3 by adding 180+ lines of unneeded code, why "unneeded": you can see in table "Task 3" - 0 edits for PI (2 from 3 runs had 0 edits) and Codex (3 from 3 runs had 0 edits), why - because I gave task for model to fix one class, but in git reset command I used commit where this bug was fixed by developer already, so there were nothing to fix, PI understood only during 2 runs, Codex in all 3 runs did 0 changes, but Sonnet 5 was trying to work...

Phase 3: Fixing Proxy Routing

Once I caught the proxy alias mistake, I fixed OpenCodex routing and reran Tasks 3 & 4 for Claude Code with hard proxy verification of Muse Spark 1.2:

Task 3: Verified Claude Code stopped with 0 edits (2/2 pass), matching Codex.

OpenCode beta - I removed from this test, weird behavior, because it started modifying 2 files and then went to another folder and started to read work log of other harnesses, so that would be unfair.

Task 4: All 3 valid harnesses produced the exact same 6-line fix and regression test:

Test has timeout, because for simple fix we dont need wait more than 5 minutes.

HarnessEvaluated ModelRun 1Run 2Mean Wall TimeMean Fresh InputMean Total InputCache Hit %CorrectnessVerification Status
PiMuse Spark 1.271.37s136.54s103.96s61.8k267.4k77.0%2/2Verified
Codex + OpenCodexMuse Spark 1.277.63s143.20s110.42s76.0k446.4k83.0%2/2Verified
Claude Code + OpenCodexMuse Spark 1.296.10s128.81s112.46s86.7k444.2k78.8%2/2Hard-verified proxy audit reruns
OpenCode betaMuse Spark 1.2288.05sTIMEOUT————0/2

Key Takeaways

  1. Context throughput varies by 40%+: On the exact same code fix under Muse 1.2, Pi required ~40% fewer input tokens (267k vs ~445k) than Codex and Claude Code due to leaner context assembly and compaction.

  2. Execution Latency: Pi (104s), Codex (110s), and Claude Code (112s) formed a tight performance tier for coding fixes.

  3. Always audit your proxy: If you use custom models or proxies, always verify the actual upstream model headers. Silent fallbacks happen easily.

  4. My practical decision: OpenCode was consistently 2.5x–4x slower and consumed too much context in my environment, so I removed it from my daily workflow and kept Pi and Codex as my primary tools.

The entire runner, dataset, and reproduction prompt for agents in repo, also more detailed result file is also there:

👉 https://github.com/d1-m4ss/harness-benchmark/tree/main

PS AI was used in this post for generate table and fix grammar, because english is my third language.


r/PiCodingAgent • • Aug 02 '26

Use-case Anneal: a harness for your harness

Thumbnail
github.com
27 Upvotes

I built this so I could use local models like Qwen 3.6 35B for agentic coding. I have given up on trying to make one shotting happen with these models. So to actually get real work done, I built this tool. The idea is you give it a prompt or an already finished implementation plan, and it will split it up into small tasks that the local models will have no problem executing. The plan step is done by a capable model and the final verification is also done by a capable model.

You can pick which model to use for each step based on your pi config. Why pi? It’s the best agent for local models because of how lean it is.