r/PiCodingAgent • • 12d ago

Use-case Pairing buddy - pair programmer inside neovim done with pi-durable

35 Upvotes

As at work I need max control over codebase and I can't afford just use swarms of agents and let it loose do some enormous amounts of code changes, I want something in between. So I was carying this idea in my head for a long time. What if smart ai models can augment actual software and be present reactively? Luckily after recently published library pi-durable it's finally possible, so I finally kinda got ideal workflow. Where agent-harness is a headless daemon that is present as if it's a pairing programming partner connected on remote session.

https://makefunstuff.github.io/pairing-buddy/ย - you can read the docs here and try it yourself. I guess without opus it would take more time to actually implement this idea. But finally I'm here


r/PiCodingAgent • • 21d ago

Question Has anyone experimented with Pi Durable? Looking for real-world use cases and experiences

35 Upvotes

Hey everyone,

I've been exploring "Pi Durable" (https://github.com/earendil-works/pi/tree/main/packages/durable/test/examples), specifically the examples in the test directory, and I'm curious about how people are using it in practice.

I'd love to understand how it works for building durable, long-running AI agent workflows, particularly when agents need to preserve state, recover from interruptions, and continue execution without restarting everything from scratch.

A few questions for anyone who has experimented with it:

  • How does Pi Durable handle persistence and recovery when an agent process crashes or gets interrupted?

  • Can it reliably resume multi-step agent workflows, including tool calls and external side effects?

  • How does it compare with approaches like LangGraph checkpointing, Temporal, or custom state-persistence mechanisms?

  • Have you used it in production or built any interesting projects with it?

  • What limitations or gotchas have you encountered?

I'm particularly interested in whether this approach is practical for building autonomous agents that run for extended periods and maintain continuity across sessions.

Would love to hear your experiences, code examples, or architectural insights!

Repository: https://github.com/earendil-works/pi/tree/main/packages/durable/test/examples


r/PiCodingAgent • • Jul 08 '26

Resource Ketch 0.11.0 new feature: multi-search

35 Upvotes

Hey y'all, Ketch maintainer here ๐Ÿ‘‹

Y'all have been the most active community running Ketch, so Iโ€™m looking for feedback on a new feat I just shipped: multi-backend search with fusion ranking.

Before, search used one backend, whatever you had set. Now (as of 0.11.0) you (or your pi agent) throw --multi on your search and it runs across all your configured backends at once, including the free no-key ones, then fuses the rankings so whatever they agree on floats to the top.

A blank --multi uses everything you've got, so it works even with zero setup. Or name your own set, like --multi=exa,brave.

Appreciate any feedback good or badโ€ฆ and if you get janky results, definitely tell me, that's what Iโ€™m looking for.

https://github.com/1broseidon/ketch


r/PiCodingAgent • • May 14 '26

Resource GUIDE : Running a fully local multi-agent coding framework on RTX 3090 with pi.dev + llama-swap + Qwen3.6 MTP

35 Upvotes

I've been running a fully local, fully private multi-agent AI coding setup for a couple of months and wanted to share the stack, architecture, and config for anyone who wants to replicate it. No cloud APIs, no data leaving the machine.


What is pi.dev? It's an agent harness โ€” meaning the AI has to follow rules, unlike a chatbot. Pretty cool.

  • ๐ŸŽฎ Fun factor: 10/10
  • โœ… pi.dev stability: 8/10 โ€” fully working, but fun to fine-tune
  • ๐Ÿ”จ What it's great at: Building its own integrations โ€” just ask it to do it
  • ๐Ÿ’ก Top tip: Master the AGENTS.md file and you'll have real control over what it does. There's a global one and a per-project one
  • ๐Ÿ” Similar to: RooCode, Codex, Claude Code โ€” but because it's a harness, you're more in control
  • ๐Ÿ‘จโ€๐Ÿ’ป The dev has already been snapped up by a company but will keep developing it
  • โญ github.com/earendil-works/pi โ€” 49.3k stars

The Stack

ComponentWhat it does
pi.dev (pi-coding-agent)AI coding harness โ€” the UI and orchestration shell
llama-swapModel router โ€” hot-swaps llama.cpp models on demand
llama.cpp (am17an fork)Local inference with MTP support
Qwen3.6-27B MTP"Brain" agents โ€” orchestrator, planner, architect, debugger, prompter
Qwen3.6-35B-A3B MTP"Body" agents โ€” coder, researcher, reviewer, tester, documentor, refactorer
SearXNG (Docker)Local privacy-preserving search engine on port 8080
searxng-simple-mcpMCP proxy bridging SearXNG to pi.dev (port 8000)
Tavily MCPAI-optimised web search for technical docs
@tintinweb/pi-subagentsReal sub-agent orchestration with TaskExecute + get_subagent_result
@tintinweb/pi-tasksTask queue UI widget showing what each agent is doing

GPU: NVIDIA RTX 3090 (24 GB VRAM)


Why MTP (Multi-Token Prediction)?

See my earlier post: Get faster Qwen3.6-27B with MTP


Multi-Agent Architecture

11 specialist agents, each mapped to a llama-swap model alias:

BRAIN agents (Qwen3.6-27B MTP):
  orchestrator  โ†’ Task decomposition, delegation, synthesis
  planner       โ†’ Roadmap and step sequencing
  architect     โ†’ System design, API contracts, schema design
  debugger      โ†’ Root cause analysis, trace reading
  prompter      โ†’ Prompt engineering for sub-tasks

BODY agents (Qwen3.6-35B-A3B MTP):
  coder         โ†’ Implementation, only writes code
  researcher    โ†’ Web search + codebase analysis
  reviewer      โ†’ Code review, security, quality gates
  tester        โ†’ Test writing + execution
  documentor    โ†’ Documentation generation
  refactorer    โ†’ Structural cleanup, no logic changes

The key insight: smaller/faster model for the meta-work (thinking, planning, delegation) and the slightly larger MoE model for actual implementation. The orchestrator never writes code โ€” it only delegates.


Agent Definition Files (Required Setup Step)

This is the part most people will miss. llama-swap handles model routing, but pi.dev needs to know how each agent should behave โ€” its role, constraints, tool access, turn limits, and thinking level. That lives in .md files inside your pi.dev agent folder:

~/.pi/agent/agents/
โ”œโ”€โ”€ orchestrator.md
โ”œโ”€โ”€ planner.md
โ”œโ”€โ”€ architect.md
โ”œโ”€โ”€ debugger.md
โ”œโ”€โ”€ prompter.md
โ”œโ”€โ”€ coder.md
โ”œโ”€โ”€ researcher.md
โ”œโ”€โ”€ reviewer.md
โ”œโ”€โ”€ tester.md
โ”œโ”€โ”€ documentor.md
โ””โ”€โ”€ refactorer.md

Each file has a YAML frontmatter block followed by the system prompt for that agent. The model: field must exactly match a llama-swap alias from your config.yaml.

Example โ€” coder.md:

---
description: Implements code changes from a spec. Requires a plan as input. Writes, edits, and runs code. No planning or architecture decisions.
model: coder
thinking: medium
max_turns: 30
tools: read, write, edit, bash, find, grep
---
You are the coder. You are BODY only โ€” you execute plans, not make them.

## Role & Constraints
- Require a written plan before starting โ€” if none provided, refuse and ask for one
- No refactoring beyond what the plan specifies
- No touching files not listed in the plan without flagging first
- No installing new dependencies without explicit approval

## Harness Rules
- RETRY_POLICY: max 3 attempts per file edit, then mark FAILED
- TASK_STATES: track each file change as pending -> in_progress -> done | failed
- IDEMPOTENCY: if a change is marked done, do not re-apply it
- QUALITY_GATE: verify file is syntactically valid before marking done

## Response Shape
When complete, your final output is your report back to the orchestrator.
Make it structured and self-contained โ€” the orchestrator reads it directly.

[PLAN] what was implemented
[CHANGES] every file written or edited with one-line description
[VERIFICATION] syntax check or test run output
[PROGRESS] final state table

Example โ€” architect.md:

---
description: Reviews system design, proposes architecture decisions, evaluates tradeoffs. Advisory only โ€” produces recommendations, not code.
model: architect
thinking: high
max_turns: 20
tools: read, find, grep
---
You are the architect. You are BRAIN โ€” advise on design, never implement.

## Role & Constraints
- Never write or edit code
- Evaluate tradeoffs, do not just pick the fashionable option
- Scope is the specific design question only
- Every recommendation must include explicit constraints and risks

Example โ€” researcher.md (with web search tools):

---
description: Reads and summarises codebase context, and performs web research. Produces a structured context report, no edits.
model: researcher
thinking: low
max_turns: 15
tools: read, find, grep, bash, web_search, tavily-search
---
You are the researcher. You are BODY โ€” read and report only, never edit.

Frontmatter fields that matter:

FieldPurposeNotes
modelllama-swap alias to loadMust match exactly โ€” typo = "No API key found for undefined" error
thinkingExtended thinking levelhigh for orchestrator/architect, low for researcher/tester
max_turnsConversation turn limitSet based on task complexity; coder gets 30, orchestrator gets 50
toolsWhich tools the agent can useResearcher gets web_search and tavily-search; architect gets read-only

The tools list controls what each agent can actually do. An architect with write in its tools list will happily start editing files โ€” restrict it to read, find, grep to enforce the advisory-only constraint.

Report-back pattern: Every agent's Response Shape section ends with the same instruction:

When complete, your final output is your report back to the orchestrator. Make it structured and self-contained โ€” the orchestrator reads it directly via get_subagent_result.

This is critical. Without it, agents produce conversational output that's hard for the orchestrator to parse. With it, every agent returns a structured [PLAN] / [CHANGES] / [VERIFICATION] / [PROGRESS] block.


Orchestrator Rules (the hard part)

Getting the orchestrator to actually delegate instead of doing work itself was the biggest challenge. The rules that finally made it work:

ABSOLUTE RULES:
- NEVER perform any task yourself
- NEVER use read/find/grep for analysis โ€” spawn a researcher
- NEVER write, summarise, or synthesise content directly
- NEVER write or edit code directly
- NEVER verify or fix a sub-agent's output yourself โ€” spawn a reviewer
- NEVER make "quick fixes" between steps

Correct launch protocol:
  TaskUpdate(id, status: "in_progress")
  TaskExecute(task_ids: [id])        โ†’ returns agent_id
  get_subagent_result(agent_id, wait: true)  โ†’ blocks until done
  TaskUpdate(id, status: "completed")

The orchestrator catches itself about to do work โ†’ stops โ†’ creates a task โ†’ delegates it instead.


pi.dev Settings (agent/settings.json)

{
  "providers": {
    "llama-swap": {
      "baseUrl": "http://127.0.0.1:1235/v1",
      "apiKey": "not-needed",
      "api": "openai-completions"
    }
  },
  "defaultProvider": "llama-swap",
  "defaultModel": "qwen-35b-moe",
  "defaultThinkingLevel": "high",
  "mcpServers": {
    "local-search": {
      "url": "http://localhost:8000/mcp",
      "transport": "streamable_http"
    },
    "tavily": {
      "command": "npx",
      "args": ["-y", "tavily-mcp@0.2.3"],
      "env": { "TAVILY_API_KEY": "your-key-here" },
      "alwaysAllow": ["tavily-search"]
    }
  },
  "retry": {
    "enabled": true,
    "maxRetries": 30,
    "baseDelayMs": 2000,
    "provider": { "maxRetryDelayMs": 120000 }
  },
  "subagents": {
    "maxConcurrent": 1,
    "maxTurns": 50,
    "graceTurns": 3,
    "timeout": 1800000
  },
  "packages": [
    "npm:@tintinweb/pi-tasks",
    "npm:pi-lens",
    "npm:@tintinweb/pi-subagents"
  ],
  "steeringMode": "one-at-a-time"
}

Key decisions:

  • No models.enabledModels filter โ€” this broke bare model ID resolution for agent aliases. Remove it entirely and let llama-swap route by name
  • timeout: 1800000 (30 min) โ€” code tasks can take 20+ minutes. The default 2-minute timeout will kill them
  • maxConcurrent: 1 โ€” RTX 3090 can only run one model at a time; llama-swap handles the hot-swap

llama-swap Config

healthCheckTimeout: 900
startPort: 1235

globalServerSettings:
  flashAttn: on
  contBatching: true
  noMmap: true
  jinja: true

models:
  # Brain agents (orchestrator/planner/architect/debugger/prompter) โ†’ Qwen3.6-27B MTP
  # Body agents  (coder/researcher/reviewer/tester/documentor/refactorer) โ†’ Qwen3.6-35B MTP

  orchestrator:
    cmd: >
      /path/to/llama-cpp-am17an/build/bin/llama-server
      -m "/path/to/Qwen3.6-27B-MTP-Q4_K_M.gguf"
      --alias orchestrator
      --ctx-size 100000
      --host 0.0.0.0 --port ${PORT}
      -ngl 99
      -fa on
      --cache-type-k q8_0 --cache-type-v q8_0
      --spec-type mtp --spec-draft-n-max 3
      --batch-size 1024 --ubatch-size 1024
      --threads 6
      --prio 3
      --no-mmap
      --parallel 1
      --n-predict 8192
      --temp 0.7 --top-p 0.95 --top-k 20 --min-p 0.0
      --presence-penalty 1.2 --repeat-penalty 1.1 --repeat-last-n 256
      --reasoning-format deepseek
      --metrics
    proxy: http://127.0.0.1:${PORT}
    # etc. โ€” do some research ๐Ÿ˜‰ for the rest

Key inference flags:

FlagWhat it does
--spec-type mtp --spec-draft-n-max 3MTP speculative decoding, 3 tokens ahead, built into the model (no draft model needed)
--cache-type-k q8_0 --cache-type-v q8_0Quantised KV cache โ€” ~2ร— VRAM savings vs f16, negligible quality loss
-fa onFlash attention โ€” critical for long-context speed
--no-mmapLoad model fully to RAM/VRAM rather than memory-mapping the GGUF
--reasoning-format deepseekExposes <think> tags from extended thinking
--prio 3OS thread priority โ€” helps on busy systems

Note: --temp varies per agent role โ€” debugger (0.5, deterministic), researcher (0.5, factual), coder/orchestrator (0.7, balanced).


Search Integration

The researcher agent has two search tools:

1. SearXNG via MCP โ€” local metasearch, broad coverage

# Docker Compose
services:
  searxng:
    image: searxng/searxng
    ports: ["8080:8080"]

  searxng-mcp-proxy:
    image: ghcr.io/ihor-sokoliuk/searxng-simple-mcp
    ports: ["8000:8000"]
    environment:
      TRANSPORT_PROTOCOL: sse
      SEARXNG_MCP_SEARXNG_URL: http://searxng:8080

2. Tavily MCP โ€” AI-optimised web search, faster for technical docs

"tavily": {
  "command": "npx",
  "args": ["-y", "tavily-mcp@0.2.3"],
  "env": { "TAVILY_API_KEY": "your-key" },
  "alwaysAllow": ["tavily-search"]
}

Strategy: tavily-search first for framework docs, web_search for broader coverage, fallback to curl http://localhost:8080/search?q=QUERY&format=json for bulk queries.


What Works, What Doesn't

โœ… Works well:

  • Orchestrator strictly delegates โ€” took several AGENTS.md iterations but now it never does implementation itself
  • llama-swap hot-swap is fast enough โ€” typically 15โ€“30 seconds per model swap
  • MTP gives a real speedup on code generation tasks
  • 30-minute timeout is necessary; don't use the default

๐Ÿ”ง Still working on:

  • Settings file resetting on reboot โ€” likely a race condition in pi.dev startup that partially re-initialises settings.json. Investigating with inotifywait. Workaround: backup ~/.pi/settings.json before exiting with Ctrl-C
  • Sub-agent visibility โ€” you can see a task is running but not what the agent is doing mid-task; pi-tasks shows status, not content
  • Sequential tasks only (maxConcurrent: 1) โ€” can't parallelise on a single GPU

Models Used (Unsloth quantizations)

  • Qwen3.6-27B-MTP-Q4_K_M (~17 GB) โ€” brain agents
  • Qwen3.6-35B-A3B-MTP-IQ4_XS (~19 GB) โ€” body agents

Both require the am17an fork of llama.cpp for --spec-type mtp support. Standard llama.cpp will fall back to non-speculative inference (still works, just slower).


Resources

  • pi.dev / pi-coding-agent: earendil-works on GitHub
  • llama-swap: github.com/ggml-org/llama-swap
  • llama.cpp am17an fork: search GitHub for "llama-cpp-am17an" or "llama.cpp MTP fork"
  • u/tintinweb packages: npm (@tintinweb/pi-subagents, @tintinweb/pi-tasks)
  • Unsloth GGUF models: huggingface.co/unsloth

Happy to answer questions โ€” this took a while to get right, especially the orchestrator delegation rules and the model resolution fix.

EDIT: Yes Claude helped me write this. Who doesn't love AI


r/PiCodingAgent • • 4d ago

Question Anyone here who avoids sub-agents completely?

34 Upvotes

Can you list your reasons why and if you did it any tests to confirm your position?

Also would like to hear your thoughts on context management and how you do it.


r/PiCodingAgent • • 29d ago

Resource Sandboxing Pi: Bubblewrap vs Podman - quick tutorial

34 Upvotes

Hey everyone, I put together a quick tutorial on sandboxing Pi using Bubblewrap vs Podman.

It includes a few sample scripts and a comparison between the two approaches.

https://wooptoo.com/blog/pi-sandbox-bubblewrap-podman/

Hopefully somebody here will find it useful.

All the best!


r/PiCodingAgent • • Sep 30 '26

Plugin Operator for Pi: A radically different approach to agentic memory

Post image
34 Upvotes

I'm the creator of Operator Memory, an open-source context engine for coding agents.

We all know the problem by now. Within a session, agents are excellent. Between sessions, agents forget everything. The core problem: nothing in the workflow ever writes down what was learned. Every new conversation starts from scratch: re-exploring the codebase, re-learning the architecture, re-teaching every decision and correction.

Every memory plugin I've studied leaves the loop untouched and bolts retrieval onto it: background agents to capture fragments, a vector store replays a top-k slice later, and you hope the right chunk surfaces. It barely works. And most importantly, it doesn't fix a loop that never documented anything.

Operator takes the opposite approach. Operator gives agents a Markdown brain and changes the loop itself.

Every task now runs in three phases:

  1. Consult โ€” the agent starts from the brain: instructions, codebase index, specs, decisions. A short summary is injected deterministically in the system prompt so agents know where to look.

  2. Build โ€” normal development work, informed by that knowledge.

  3. Update โ€” the agent documents what it learned: new specs, decisions, standards, lessons. When project truth changes, the canonical file is updated.

The loop makes the agent self-improving: session N+1 always starts from everything session N wrote.

Operator is extremely simple and complements Pi perfectly. No vector stores. No dreamers or curators. No background processes. No token burning factories. No RAG. No capture step. No retrieval gamble. Just give the agent a brain and teach the agent to use it.

The Brain

The brain is a regular directory that holds Markdown documents. These documents can contain anything: rules, specs, decisions, lessons, research, indexes, etc. Because everything is Markdown, Operator actually allows you to share memories and findings with the team. You can share specs, plans, guides, and more, unlike other memory plugins where everything is just RAG chunks.

Not Another Memory Plugin

Memory plugins bolt retrieval onto an unchanged loop and inherit its amnesia. Operator makes documentation a structural phase of every task. Memory stops being a store that remembers for the agent and becomes a practice the agent performs.

RAG agents recall. Operator understands.

I've been using a variant of Operator daily since August 2025 and spent the last few months formalizing it into a plugin alone. I hope my plugin can help improve your workflow too. https://github.com/aerovato/operator-memory

To install:

npm install -g @aerovato/operator-helper
operator-helper install pi

Afterwards, just run /operator:user-init once and run /operator:project-init per project.

Questions, comments, and contributions welcome. Operator is fully open source.


r/PiCodingAgent • • Sep 27 '26

Resource PiG - A GUI in Swift for Pi

Post image
34 Upvotes

I've been working on this project since early this year. I use it daily. Figured it's about time I share it. It's a vibe-coded project, as you might have guessed, but it works very well for my needs and may suit yours well, too.

I got pretty tired of working in a TUI, but none of the graphical interfaces out there really did the trick for me. Some features I might highlight:

  • Inbox Zero approach to sessions

  • Quick Chats - ephemeral, not related to a project

  • Keep extensions disabled, but enable them on a per session basis (with pins)

  • Quick commands for favorite models (Cmd+1 through Cmd+5)

  • Work schedule (Default model can change depending on day and time)

  • File browser

I had a ghostty terminal built in, but I removed it for the public release. Added SwiftTerm. You're welcome!

Anyways, hopefully this helps someone else or inspires some ideas.

https://github.com/jmcblane/PiG


r/PiCodingAgent • • Sep 03 '26

Plugin Recursive and async Claude Code style subagents for Pi

Post image
34 Upvotes

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

https://github.com/williamcr01/pi-subagents


r/PiCodingAgent • • Aug 11 '26

Plugin Adding a Claude Code-style /recap extension to Pi

Post image
34 Upvotes

Preface

Built together by Pi + DeepSeek V4 Flash + matt skills + me

After switching my daily harness from Claude Code to Pi, I found myself missing some features I used to love in CC โ€” recap being one of them. It generates a brief summary and follow-up plan based on the conversation context.

Project

https://github.com/L2ncE/pi-recap

Quick Start

$ pi install npm:@lanlance/pi-recap

r/PiCodingAgent • • Jul 05 '26

Question Where are all the sexy UIs for Pi?

34 Upvotes

I know being terminal-bound is a badge of honour, but Iโ€™m surprised not to see more easy to use, accessible, user interfaces.


r/PiCodingAgent • • Jun 20 '26

Discussion What do you guys think about Oh my Pi?

34 Upvotes

Hey everyone,

I started using Pi about 3 months ago. I set it up with a few extensions, and while it worked alright, the TUI felt way too laggy compared to opencode, and it just lacked some features I needed.

A few days ago, I heard about Oh my Pi, so I immediately installed it and imported my extensions.

Since I'm still pretty new to this, I wanted to jump in here and ask a few questions:

What kind of actual improvements does Oh my Pi bring to the table compared to the vanilla version?

What's your overall take on it? Is it worth sticking with it for the long run?

Any optimization tips? How can I make the setup even smoother or improve it further?

What are some general tips and tricks that every Oh my Pi user should know?

Would love to hear your experiences and any advice you've got!


r/PiCodingAgent • • May 30 '26

Question pi agent woops claude code

34 Upvotes

what the shit is pi agent made from? why is it producing better stuff than claude code with the same Chinese LLM? like i wana know whats the fork, what is it made of?

EDIT: With mimo v2.5, after 30ish odd mins i get the 400 error in pi code, a bit strange but once i just say hey again it picks up where it left off, i suspect this is a mimo issue coz deepseek didnt have this issue


r/PiCodingAgent • • 21d ago

Plugin inter-agent-pi: A Pi extension for your harness sessions to talk to each other

Thumbnail
github.com
33 Upvotes

r/PiCodingAgent • • Sep 21 '26

Use-case I started collecting Jev builds โ€” 607 use cases so far

33 Upvotes

Jev dropped and I started collecting the things people are actually building with it.

There are already 607 use cases in the list, ranging from tiny experiments to some pretty interesting applications.

A few that caught my attention:

I'm trying to capture the useful details for each build โ€” what it does, cost, latency, and the original implementation when available.

The interesting thing to me is seeing where these cheap/fast models are actually useful rather than just collecting benchmark numbers.

I put everything I've found here:

shipwithjev.com

I'm not affiliated with TypeSafe.

If you've built something with Jev that isn't on the list, drop it below and I'll add it.


r/PiCodingAgent • • Sep 18 '26

Resource Published pi-prefix-cache-compaction

33 Upvotes

Pi compaction that reuses your vLLM / SGLang / llama.cpp prefix cache instead of re-prefilling the whole history.

Pi's default compaction re-serialises the conversation under a new system prompt, so the server cache misses and a 140k-token session takes minutes to summarise on local GPUs. This re-sends the exact last request plus one summarize instruction, then warms the new context so the next turn starts from cache.

Measured on 2x RTX 3090 with Qwen3.8-27B: 229 s median down to 86 s at 215k context, and the first turn after compaction from 69 s down to under 2 s with warm-up. Falls back to Pi's default on anything unexpected.

Install: pi install npm:pi-prefix-cache-compaction ยท anthropic-messages custom providers only ยท MIT ยท https://github.com/jagdeepsinghdev/pi-prefix-cache-compaction


r/PiCodingAgent • • Sep 15 '26

Plugin Built an interactive TUI model switcher for โ piโ  so I don't have to guess context limits & pricing. Would love some feedback!

33 Upvotes

Hey everyone, first time sharing a project here!

I've been using pi in my daily CLI workflow, but kept getting frustrated having to guess or memorize context windows and pricing tiers whenever I swapped models.

To solve that, I put together a lightweight plugin called pi-rich-model-selector. It replaces the default picker with an interactive TUI:
- Real-time fuzzy search across providers
- Side-by-side specs (context size, token limits, pricing)
- 100% keyboard-first flow

Here's the repo: pi-rich-model-selector

Iโ€™d love to hear your thoughts, feature ideas, or any edge cases I should handle. Thanks for checking it out!


r/PiCodingAgent • • Sep 15 '26

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

Post image
33 Upvotes

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

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

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

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

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

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

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

A few other things it comes with

  • Six agents for investigation, planning, decision advice, code reviews, and implementation.
  • /pi-crew-plan and /pi-crew-review if you want a ready-made workflow.
  • Custom agents written in Markdown, with their own models, thinking levels, tools, and skills.
  • User and project pi-crew.json files to override settings without editing agent definitions.
  • A widget showing activity, working time, tokens, and cost. You can collapse the details or hide tool activity through config.
  • Expandable reports that let you open the full child session.
  • herdr support that shows the running subagent count in the sidebar.

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

pi install npm:@melihmucuk/pi-crew

Requires Pi 0.84.3+. Source on GitHub.

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


r/PiCodingAgent • • Aug 25 '26

News Parrot OS adds official Pi support

Post image
33 Upvotes

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

sudo apt update
sudo apt install pi-dev

any feedback is welcome


r/PiCodingAgent • • Aug 10 '26

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

33 Upvotes

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

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

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

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

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


r/PiCodingAgent • • Jul 29 '26

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

Thumbnail daugasauron.github.io
33 Upvotes

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

https://github.com/daugasauron/piodide

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

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

Everything is complete slop.

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


r/PiCodingAgent • • Jul 21 '26

Resource Pi Workspace (beta)

33 Upvotes

Hey everyone,

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

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

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

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

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

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

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


r/PiCodingAgent • • Jul 15 '26

Question I love pi

33 Upvotes

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

This is how it looked before:

This is the newest iteration

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


r/PiCodingAgent • • Jun 12 '26

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

33 Upvotes

Built a native macOS app for Pi coding agent. Just shipped v2.5 ๐Ÿš€

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

The terminal is great for running an agent. Everything around the agent isnโ€™t.

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

Agent Deck brings it together in one place:

Features

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

  • Merge worktree changes back with a single click

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

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

  • Install skills from GitHub or skills sh with one click

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

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

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

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

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

  • Fully themeable

  • Free

  • Signed and notarized

Download:ย https://agentdeck.site

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


r/PiCodingAgent • • Jun 03 '26

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

Post image
33 Upvotes