Slopfluencer

Notes › Products and projects › Agent tools I built

pi-deck

pi-deck was a web app for running the Pi coding agent from a browser instead of a terminal. One server held several Pi sessions across several project folders and streamed them to any browser, including a phone's. I built it for myself, as someone who had started handing most coding work to agents and kept losing track of them. The problem it addressed was that terminal agents each need a window, their tool output buries their replies, and a phone can't reach them at all.

I worked on it from 31 January to 10 February 2026, 196 commits in all, and published it to npm as pi-deck.[1] It is finished. pi-deck was organized around conversations, and its split panes, which showed several conversations side by side, rebuilt the clutter of terminal windows the project set out to replace, so on 10 February I dropped them for tabs.[2] By then a work queue called Jobs, added on 6 February, interested me more, and the next day it grew into its own app, Task Factory.[1][3] pi-deck was the first of the harnesses I built in 2026; the whole sequence is in Agent workbench.

Background

Pi is a minimal open-source coding agent written by Mario Zechner. It has a small core loop, a handful of tools, and an SDK that lets another program create and drive agent sessions.[4] Most coding agents at the time, including Anthropic's Claude Code, ran in a terminal. In January 2026 I was running several of them in separate terminal windows and in tmux, a terminal multiplexer that splits one terminal into panes. Each tool call printed its output into the scrollback, so the messages that told me what an agent was doing (mine and the agent's replies) were buried, and nothing showed which window was waiting on me.[3]

Timeline

  • 31 January 2026: first commit, "Pi Web UI". The same day added a layer that ran sessions in several workspaces, a footer with git information and a context-window gauge, slash commands, notifications, a background service and SQLite storage for interface state.[1]
  • 1 February: sessions survive a dropped WebSocket connection. Fork dialog, mobile navigation and a steer button.[1]
  • 6 February: a Jobs pipeline replaces a plain plan list. Each job is a Markdown file with YAML front matter that moves through backlog, planning, ready, executing, review and complete.[1][3]
  • 7 February: renamed from pi-web-ui to pi-deck. Plan and job files sync between disk and the editor.[1]
  • 9 and 10 February: fixes for a race in session start-up and for a sync database that kept growing. The pane system is removed in favor of tabs, and the mobile layout becomes three sliding panels.[1][2]
  • 11 February: work moves to Task Factory.[1]

How it worked

A Node server created Pi sessions through the SDK rather than wrapping the terminal program, and everything else followed from that choice. The browser received structured events, such as "tool call started" or "file edited", instead of a stream of characters. A React client used them to show each tool call with its command or file path next to the result, file reads with line numbers, edits as diffs, and the model's thinking in collapsible blocks.[3]

The server kept open workspaces, drafts and interface state in SQLite and pushed updates over WebSocket, so a phone could pick up a session that was already running on another machine. A directory allowlist limited which folders the interface could open.[1] I reached it over Tailscale, a private network service.[3]

The interface could steer a running turn, meaning a message delivered to the agent at its next step, or queue a follow-up that waits for the turn to end. It could fork a session, attach a pasted image and set the model and thinking level per session.[3]

How it went

The structured transcript worked. Seeing a command next to its output, or an edit as a diff, made an agent's work readable in a way a terminal scrollback never was.[3] Phone access also worked, and the need for it never went away. Neon Pilot and BB Studio both had phone apps, and by November 2026 I was doing about half of my prompting from a phone.[7]

The trouble started on the desktop. A browser tab felt awkward for long sessions, so I moved toward a desktop layout and split transcripts into panes, each conversation beside another with its own controls. The project had set out to replace a pile of terminal panes, and it was arranging agent transcripts into panes again. On 10 February I removed the pane system and kept tabs.[2][3]

The state on the server had its own costs. The commit log from the last two days includes a race in session start-up and a sync database that needed cleanup to stop it growing.[1] A server that sits between a person and several running agents has to own reconnection, ordering and storage, and each of those took time away from the interface.

Meanwhile the Jobs pipeline was about choosing which piece of work should move next, where panes were about fitting more conversations on a screen. That second question was more interesting to me, and it became Task Factory.[3]

Lessons

The unit an interface is organized around decides most of what follows. pi-deck was organized around conversations, and adding more conversations to one screen led back to panes. Each of my later projects changed that unit: tasks in Task Factory, extensions in Neon Pilot (Personal Agent), and bots in BB Studio.[3]

A terminal was the wrong place for supervising several agents. I said so plainly two months later, when I wrote that terminal interfaces force workarounds such as tmux and feel like "a hacked together kludge".[5] Structured events from an agent SDK are what make a better interface possible, because the interface can tell a tool call from a reply.

Building directly on an agent's SDK was fast. pi-deck went from first commit to a working phone client in one day.[1] That speed is part of why I kept building harnesses for the rest of the year, and part of why so many other people did too (Agent harnesses).

What carried over

Four things moved into later projects. They were rendering structured events instead of terminal text, steer and follow-up controls, phone access over a private network, and Markdown files with front matter as the record of work. Task Factory took the Markdown jobs and dropped SQLite on its first day.[6] The lessons across all five projects are collected in Lessons from a year of building agent harnesses.

See also

Reading

References

  1. ^ pi-deck source code and commit history (GitHub)
  2. ^ pi-deck commit 0ef0334: remove pane system, simplify to tabs-only interface (Feb 2026)
  3. ^ From pi-deck to bb: four tries at a home for agent work (experiment, Sep 2026)
  4. ^ Pi, a minimal open-source coding agent (GitHub)
  5. ^ Personal Agent (post, Apr 2026)
  6. ^ Task Factory source code and commit history (GitHub)
  7. ^ The harness features I can't live without (post, Nov 2026)