A sleek GUI for pi
The band is sticky and zero-height, so it paints over the row instead of taking its space.
164 <div className="sticky top-0 z-20 h-0" aria-hidden="true" data-testid="session-tree-pinned">
It paints over the row instead of moving it: the band is an overlay, and nothing reserves its height.
The band holds its own height now, so the rows move up by exactly that much while one is pinned.
Your pi, unchanged
It is the pi you already have. Models, skills, extensions and sessions are the ones already on the machine, read from pi’s own configuration and session directory — no import step, no second setup, nothing to keep in sync.
Appearance
Light, dark or the system’s, named themes from GitHub to Catppuccin, eight accents, your own colours with a contrast floor, fonts and code themes. The still is live: pick a mode, a theme or an accent and this whole page follows, coloured by the app’s own code.
View modes
One transcript, three densities. Minimal keeps the timer and the answer, Compact folds consecutive read-only calls into one line, and Show All is the native pi log — pick one from the filter menu and the same turn is drawn three ways.
Packages
Extensions without the terminal. Packages lists the pi packages you have — extensions, skills, prompts and themes — with updates and removal in place, and the Marketplace searches the pi catalog with each package’s README. An install reaches open sessions without a restart. Switch between the two tabs in the still.
Git
Review what the agent changed without leaving it. ⌘3 shows the staged and unstaged files, a diff against main or any ref, the last commit, and the commit list. Diffs are highlighted with the changed words marked, unified or side by side, and follow the agent as it edits.
Files
The project beside the conversation. ⌘2 opens its tree with each file’s own icon, ⌘P finds a file by name, and a file opens as highlighted source with line numbers or, for markdown, as the rendered page. A path in a reply is a link that opens here, at the lines it names — switch the still between Preview and Source.
Quote
Point at the exact words. Select text in a reply, a file or a diff and press Q: the passage goes to the quotes panel with your comment, and from a file with its path and lines. Collect a few, add a global comment, send them as one message — press Quote in the still to add the selection.
Fork
Branch off any message. Forking copies the conversation up to that point into a chat of its own, with the same model and thinking level; the original stays where it was, and the fork is listed beneath it.
Tree
Rewind without losing what you had. Going back moves the session — nothing is deleted and nothing has to be summarised, every branch is still in the tree, and the ? beside its search field says what a jump really does.
Subagents
Hand a task to a second session. Agents inside pigi get a pigi command: pigi subagent "…" runs the task in a fresh child session with the same model and prints its reply back — a review of the diff before you commit, say. Children gather in one row under their parent, so you can open one and watch it work.
Terminal
A shell in the same window. ⌘J opens a real terminal along the bottom, already in the project the agent is working in: run the test it just broke without leaving the conversation.
Session switcher
Every session is one line away. One field over all of pigi — every session, in every project, on Ctrl + R — and the letters you typed are marked in the titles, so you can see why a row is there.
Instant session switch
A long session is not a loading screen. Sessions open as fast as the window does, parsed in their own process and drawn as a windowed list that measures a row once — and the minimap takes you anywhere in it.
Notarizing is on and signing is not, so an unsigned bundle goes out for notarization and comes back. The config names no certificate, and never did.
39 notarize: true
The config asks for notarization and names no identity, so the certificate has to arrive from the release job. Nothing there exports one.
26.0.12
Pinned to 26.0.12, and left the version in the release skill so the next bump checks it before tagging.
Clean tree, and the lockfile is the one the tag will build from.
Appearance
Visual style
Typography
Packages
Not from a package: ~/.pi/agent, ~/.agents/skills, project .pi/ and paths in settings.
Web search, URL fetching, GitHub repo cloning, PDF extraction, YouTube video understanding, and local video analysis for Pi coding agent.
Nico Bailon · 3w agoMCP (Model Context Protocol) adapter extension for Pi coding agent
Nico Bailon · 4d agoA pi skill for automated code review workflow using pi itself
23h agoPopular
Browse pi.devWeb search, URL fetching, GitHub repo cloning, PDF extraction, YouTube video understanding, and local video analysis for Pi coding agent.
nicopreme · 3d agoMCP (Model Context Protocol) adapter extension for Pi coding agent
nicopreme · 4d agoPi extension for single-agent delegation and scripted multi-agent workflows
nicopreme · 1d agoFull-featured, lightweight MCP extension for the Pi coding agent: stdio, SSE & Streamable HTTP transports, OAuth 2.1 and more.
irahardianto · 10h agoArchitecture
Resizable Panels
usePanelResize is the shared pointer resize path for the sidebar and terminal. Use it for future panels instead of adding another pointermove state setter. It takes a container ref, a CSS custom property, the dragged edge, the committed size, bounds, and a commit callback. A right sidebar uses edge: 'left'; the existing left sidebar uses edge: 'right' and the bottom terminal uses edge: 'top'.
The hook retains the latest pointer position and writes the dimension at most once per animation frame. Both a panel and its adjacent content consume that same property, so their actual layout stays aligned. React/store state receives the final dimension on release, cancellation, window blur, or unmount. Pending frames and event listeners are cleaned up. Bounds are evaluated during movement so they can follow the current window size, and a committed size outside the current bounds is clamped when the drag starts, so a window that shrank since the last drag leaves no dead zone.
1# Architecture23## Resizable Panels45`usePanelResize` is the shared pointer resize path for the sidebar and terminal.6Use it for future panels instead of adding another `pointermove` state setter.7It takes a container ref, a CSS custom property, the dragged edge, the committed8size, bounds, and a commit callback. A right sidebar uses `edge: 'left'`; the9existing left sidebar uses `edge: 'right'` and the bottom terminal uses `edge: 'top'`.1011The hook retains the latest pointer position and writes the dimension at most12once per animation frame. Both a panel and its adjacent content consume that13same property, so their actual layout stays aligned. React/store state receives14the final dimension on release, cancellation, window blur, or unmount. Pending15frames and event listeners are cleaned up. Bounds are evaluated during movement16so they can follow the current window size, and a committed size outside the17current bounds is clamped when the drag starts, so a window that shrank since18the last drag leaves no dead zone.412 <ContextMenuTrigger asChild>
Done: a tree row opens a context menu with Copy Name and Copy Relative Path, and the path in the viewer’s title bar is selectable now, with a copy button beside it on hover.
It does. The button is in the tab order right after the path, and it shows itself on focus as well as on hover, so the keyboard gets the same affordance the pointer does.
- the path in the viewer’s title bar is selectable now
Selectable, but keep it from being dragged out
- @docs/architecture.md Both a panel and its adjacent content consume that same property
Does the right sidebar follow this too?
- @src/renderer/src/components/files/FileViewer.tsx:265-267
Use the shared copy button here
Add a comment...
31 export function lineageDepth(parentPath: string | null): number {
54 const isLastChild = index === siblings.length - 1;It does. Depth is read from the session file, so a fork is drawn under its parent wherever it is opened from.
The scroll position is restored before the rows exist, so the browser clamps it to a list that is still empty.
It restores before the first window of rows is laid out, and a scroll into an empty list is clamped to nothing. Restored after the first frame, it lands where it left.
Every row is measured on mount, so a session with thousands of entries spends the first frames laying all of them out.
86 * Row heights are constants and headers are measured, so
Rows are a fixed height and the list draws a window over them, so it never measures the whole tree.
One bar per user message, sized by how long the message is.
78 const [maxLineWidth, setMaxLineWidth] = useState(
One bar per user message. Here is the plan.
Width now tracks the message length, clamped so a two-word message is still a target.
Added — the list beside the bars reads the message and its time.
Only the bar nearest the middle of the viewport is lit now.
Tree: a time machine for this session
Hover a row for a preview, search or filter to find one, then click it (or press Enter) to move the session there. Searching picks out the first match, and the up and down arrows move that pick without leaving the search box.
A fresh session reads the diff without my context, so it will not take my reasons for granted.
pigi: subagent 01a1bb3c ~/.pi/agent/sessions/--Users-me-pigi--/01a1bb3c.jsonl (deepseek/deepseek-v4.1-flash, thinking max) 1. FileViewer.tsx:265 — after a click the button still says "Copy path"; the copied state is only a changed icon. 2. useCopyFeedback.ts:14 — the reset timer is not cleared on unmount.
Both findings are real. The copied state is announced now, and the timer is cleared when the viewer unmounts; the tests pass.
pigi: subagent 01a1bb41 ~/.pi/agent/sessions/--Users-me-pigi--/01a1bb41.jsonl (deepseek/deepseek-v4.1-flash, thinking max)
The band is sticky and zero-height, so it paints over the row instead of taking its space.
164 <div className="sticky top-0 z-20 h-0" aria-hidden="true" data-testid="session-tree-pinned">
It paints over the row instead of moving it: the band is an overlay, and nothing reserves its height.
The band holds its own height now, so the rows move up by exactly that much while one is pinned.
Test Files 3 passed (3)
Tests 49 passed (49)Green. The panel is open on the run if you want the full output.
One bar per user message, sized by how long the message is.
78 const [maxLineWidth, setMaxLineWidth] = useState(
One bar per user message. Here is the plan.
Width now tracks the message length, clamped so a two-word message is still a target.
Added — the list beside the bars reads the message and its time.
Only the bar nearest the middle of the viewport is lit now.