r/PiCodingAgent • • Aug 12 '26

Question Caching - how are you accounting for it in your workflow?

6 Upvotes

(This is based on my possibly flawed understanding of caching. If I have anything wrong please let me know)

So, title. I generally stick with a single session but I do a lot of things that (AFAIK) break cache, such as:

  • Change models
  • Change thinking levels
  • Fork / Rewind / Branch etc

I do these things to actually save tokens, but since they break the cache perhaps it's more efficient to decide upfront on the model and thinking levels and use the branching functionality sparingly?

What do y'all do?


r/PiCodingAgent • • Aug 12 '26

Question How to prevent cd to project root on any bash command?

Post image
4 Upvotes

The most annoying thing in Pi coding agent. Every time it needs to grep or find, it cd first to the same root. I do not cd to other directories, but still on every tool call it cd <project path> && find/grep. I've tried to run pi on it's source code, but non of my local models were able to find the reason or fix it. Even custom bash tool with cwd not helping. I can't configure any bash permission because of this chain commands.

P.S. Solution is to write custom extension, which replace built-in bash with custom bash and optional cwd param. Don't forget to use custom promptSnippet, this is critical for this issue


r/PiCodingAgent • • Aug 12 '26

Question What if coding agents shared a Git-native coordination layer?

2 Upvotes

I've been experimenting with a small open source tool called ank.

The problem I'm trying to solve is what happens when you use multiple

coding agents on the same codebase.

Claude Code does one task.

OpenCode does another.

Pi picks up something later.

A month passes.

Where do the decisions and constraints that all of them should respect

actually live?

My current answer is a Git-native layer for:

- decisions / ADRs

- scoped constraints

- tasks

- completion criteria

- verification

- proofs

The interesting part is that the format is agent-agnostic.

So ideally:

Claude Code

Codex

OpenCode

Pi

custom agent

can all consume the same `.ank/` state.

https://github.com/haksolot/ank

I'm not really looking for "please try my tool" feedback here.

I'm more interested in whether the underlying model makes sense.

If you're an Pi user running multiple agents, how are you currently

solving this?


r/PiCodingAgent • • Aug 12 '26

Plugin pi-web-agent is essentially feature-complete now, Tavily and Exa are the last backends that were added

42 Upvotes

Last time I posted I was thinking out loud about which hosted backend to add next, Tavily first and maybe Exa after, and asking whether people wanted them as full answer engines or just as discovery. My bias was to keep them discovery-only and let web_explore stay in charge of fetching, ranking evidence, caveats and synthesis.

Both are in now, and they're discovery-only like I said I'd keep them. They surface candidate sources, web_explore still reads the actual pages and decides whether the evidence holds up or needs a caveat. Set TAVILY_API_KEY or EXA_API_KEY, pick it from Settings, keys stay in env instead of getting written into config files.

---

The things I'm weighing next are going deeper on evidence quality (cross-source dedup, conflict detection, recency), adding caching for repeated research or just keeping it focused and maintaining it.

If you're using this, what would you actually want? And if you tried it and it broke somewhere, that's the more useful thing to hear.

---

Repo: https://github.com/demigodmode/pi-web-agent

npm:

npm i @demigodmode/pi-web-agent

r/PiCodingAgent • • Aug 12 '26

Question Hitting limits using Pi with OpenCode Zen free models

1 Upvotes

Wondering if anyone here has had this issue before and found a solution. I created an account in OpenCode, copied the api key into auth.json

{
  "opencode": {
      "key": "sk-xxxxxxxxxxxxx",
      "type": "api_key"
  }
}

start pi, select model (opencode) deepseek-v4-flash-free. run the first prompt, it hits limits within the first few seconds of usage.

Error: 429: {"type":"FreeUsageLimitError","message":"Error from provider (Console): Rate limit exceeded. Please try again later."}

However when I go back to OpenCode, I'm able to keep using it, no rate limit issue.

Am I missing something?


r/PiCodingAgent • • Aug 12 '26

Plugin I built a tmux session manager for Pi coding agents

0 Upvotes

I built **tmux-pi-session-manager**, a small tmux plugin for managing multiple [Pi](https://github.com/badlogic/pi-mono) coding agents running across different projects.

The main reason I made it was because I often have several agents running at the same time, and switching between tmux sessions and figuring out which agent needs attention gets annoying.

It provides:

* 🔎 Automatic discovery of Pi agents running inside tmux

* 📂 Multiple agents per project/directory

* 📊 Live `WORKING / WAITING / BLOCKED / ERROR / IDLE` status

* 🔔 Desktop notifications when an agent needs attention

* 🎯 An `fzf` picker with live terminal previews

* ⚡ Quick jump between agents

* 🗑️ Safe agent/session killing

* 🖥️ `pi-tmux` CLI for managing agents from the shell

* 🚫 No daemon and no terminal-output parsing — it uses Pi's native extension events

The idea was inspired by `tmux-claude-session-manager`, but this implementation is built specifically around Pi's extension/event APIs.

If you're running multiple Pi agents in tmux, I'd love to hear how you manage them.

Repo: [github.com/x0d7x/tmux-pi-session-manager](https://github.com/x0d7x/tmux-pi-session-manager)


r/PiCodingAgent • • Aug 12 '26

Use-case How I set up a shared AI harness for a dev team

Thumbnail jhartum.github.io
9 Upvotes

r/PiCodingAgent • • Aug 12 '26

Resource I used Pi to build Phi — a small Go sibling with a few extras

Thumbnail
gallery
8 Upvotes

Hey everyone,

Short version: I used Pi to build Phi.

I’ve been using Pi a lot, and at some point I started hacking on my own little harness in Go. The result is Phi — deliberately small, terminal-first, and very much in the same spirit as Pi. I’m sharing it here because a lot of the ideas (and a lot of the motivation) came from using Pi.

Repo: https://github.com/pulseaiclub/phi

  • What Phi tries to add on top Not claiming these are “better” — more like experiments on top of the Pi-shaped workflow I already liked:
  • Permission gate by default — destructive stuff (writes / bash) asks first; rules can go down to command level
  • Hooks — PreTool / PostTool scripts for policy, audit, or input rewrite, without rebuilding the binary
  • Hashline edits — line edits anchored by short hashes, so stale context is less likely to silently rewrite the wrong thing
  • Sub-agents with isolation — explore / review / worker; full traces stay under ~/.phi/jobs/, only summaries come back to the main context
  • Model-agnostic — OpenAI-compatible or Anthropic; swap models without waiting on the tool
  • Small Go binary — ~12 MB stripped, no Node / Electron / Python runtime There’s also a hand-rolled TUI (Markdown, themes, Ctrl+K, @ file picker, session resume).

Phi is still not as good as Pi.

Pi is more polished, the UX feels more finished, and for day-to-day work I’d still reach for Pi first. Phi is the side project where I get to try permissioning, hooks, and edit safety a bit more aggressively. If anything here is useful, great; if it’s rough around the edges, that’s on me.

If you’re a Pi user and curious, feedback is very welcome


r/PiCodingAgent • • Aug 12 '26

Question Undo in Pi

11 Upvotes

Hi guys, I've been using Pi lately to help me code. Previously using OpenCode. I use vanilla pi with webfetch and context7 mcp. It works great. The harness and efficiency is better here in Pi. It drive the cost down for me. What I miss in pi is undo command from opencode. I tend to watch how AI reasons and write the code/commands real-time, interrupt it at the first sign of drift or hallucination then revise the command. Undo command is very useful for me as it clean up the code and chat history before I revise it. Is there any way (config or plugin) to simulate undo command in pi?