pigi

A sleek GUI for pi

Fix the tree header overlap⌘ 1Files⌘ 2Git⌘ 3
Session tree
Toggle terminal⌘ J
Toggle right sidebar
the tree header overlaps the row underneath
13:52
Thinking2s
The band is sticky and zero-height, so it paints over the row instead of taking its space.
readsrc/renderer/src/components/sessionTree/SessionTreePinnedBand.tsx
164      <div className="sticky top-0 z-20 h-0" aria-hidden="true" data-testid="session-tree-pinned">
0.1s

It paints over the row instead of moving it: the band is an overlay, and nothing reserves its height.

reserve it then
13:58
editsrc/renderer/src/components/sessionTree/SessionTreePinnedBand.tsx
-164 className="sticky top-0 z-20 h-0"
+164 className="sticky top-0 z-20 h-[var(--pinned-band)]"
0.4s

The band holds its own height now, so the rows move up by exactly that much while one is pinned.

13:58
Type @ for a file, / for a skill or command, or a path with auto complete. Paste images or files.
DeepSeek V4.1 Flashmax
main1.2%/1000k (auto)
01

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.

02

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.

03

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.

04

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.

05

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.

06

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.

07

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.

08

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.

09

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.

10

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.

11

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.

12

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.

13

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.

Bump electron-builder⌘ 1Files⌘ 2Git⌘ 3
Session tree
Toggle terminal⌘ J
Toggle right sidebar
the release DMG has been unsigned since the electron-builder bump
09:05
Thinking2s
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.
$rg -n 'identity|notarize' electron-builder.yml
39   notarize: true
0.1s

The config asks for notarization and names no identity, so the certificate has to arrive from the release job. Nothing there exports one.

pin the version that reads the identity from the environment
09:12
$npm view electron-builder version
26.0.12
0.4s

Pinned to 26.0.12, and left the version in the release skill so the next bump checks it before tagging.

is the DMG reproducible from this commit
09:18
$git status --short
0.1s

Clean tree, and the lockfile is the one the tag will build from.

09:18
/compactCompact session context
/loginConfigure provider authentication
/logoutRemove stored credentials
/nameRename session
/newStart a new chat
/reloadReload extensions, skills, prompts, settings and context files
/treeBrowse session branches
/code-review
/
DeepSeek V4.1 Flashmax
main1.2%/1000k (auto)

Appearance

Visual style

Mode
Theme
Accent
background#ffffff
foreground#1a1c1f
Contrast
30 · 4.7:1
Separate light and dark modes

Typography

Text fontSystem
Code fontSF Mono
Text size15px
Code font size14px
The transcript flickers⌘ 1Files⌘ 2Git⌘ 3
Session tree
Toggle terminal⌘ J
Toggle right sidebar
Type @ for a file, / for a skill or command, or a path with auto complete. Paste images or files.
DeepSeek V4.1 Flashmax
main1.2%/1000k (auto)

Packages

Filter installed packages
Update all1Install from…
Local

Not from a package: ~/.pi/agent, ~/.agents/skills, project .pi/ and paths in settings.

skilltheme
pi-web-access0.46.2

Web search, URL fetching, GitHub repo cloning, PDF extraction, YouTube video understanding, and local video analysis for Pi coding agent.

Nico Bailon · 3w ago
extension
pi-mcp-adapter7.0.1

MCP (Model Context Protocol) adapter extension for Pi coding agent

Nico Bailon · 4d ago
extension
github.com/whycatdothis/pi-extension0.1.0

A pi skill for automated code review workflow using pi itself

23h ago
skillextension
Copy file names from the Files tab⌘ 1Files⌘ 2Git⌘ 3
Session tree
Toggle terminal⌘ J
Toggle right sidebar
src/renderer/src/components/files/FileViewer.tsxModified+7-2
UnifiedSplit
1-import { IconAlertTriangle, IconLoader2 } from '@tabler/icons-react';
1+import { IconAlertTriangle, IconCheck, IconCopy, IconLoader2 } from '@tabler/icons-react';
22 import { useBottomAnchoredScroll } from '../../hooks/useBottomAnchoredScroll';
3+import { useCopyFeedback } from '../../hooks/useCopyFeedback';
34 import { cn } from '../../lib/utils';
250 unmodified lines
254255 const showsPreview = isMarkdown && view === 'preview';
256+ const [copied, copy] = useCopyFeedback();
255257
256258 return (
257259 <div className="flex min-h-0 flex-1 flex-col">
258260 <div className="flex h-8 shrink-0 items-center gap-2 px-3">
259261 <FileIcon path={filePath} className="size-4" />
260- <span className="min-w-0 truncate text-caption text-muted-foreground">
262+ <span className="min-w-0 truncate text-caption text-muted-foreground select-text">
261263 {filePath}
262264 </span>
265+ <button type="button" aria-label="Copy path" onClick={() => copy(filePath)}>
266+ {copied ? <IconCheck /> : <IconCopy />}
267+ </button>
263268 {isMarkdown && <PreviewSourceToggle view={view} onChange={setView} />}
264269 </div>
62 unmodified lines
Copy file names from the Files tab⌘ 1Files⌘ 2Git⌘ 3
Session tree
Toggle terminal⌘ J
Toggle right sidebar
docs/architecture.md

Architecture

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.

Copy file names from the Files tab⌘ 1Files⌘ 2Git⌘ 3
Session tree
Toggle terminal⌘ J
Toggle right sidebar
right-click a file in the Files tree to copy its name or path
12:53
readsrc/renderer/src/components/files/FileTreeSidebar.tsx
412          <ContextMenuTrigger asChild>
0.1s

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.

does the copy button work from the keyboard
12:58

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.

12:58
Type @ for a file, / for a skill or command, or a path with auto complete. Paste images or files.
DeepSeek V4.1 Flashmax
main1.2%/1000k (auto)
Quotes3
  1. the path in the viewer’s title bar is selectable now

    Selectable, but keep it from being dragged out

  2. @docs/architecture.md Both a panel and its adjacent content consume that same property

    Does the right sidebar follow this too?

  3. @src/renderer/src/components/files/FileViewer.tsx:265-267

    Use the shared copy button here

Add global comment
Send
Keep the session tree from blanking⌘ 1Files⌘ 2Git⌘ 3
Session tree
Toggle terminal⌘ J
Toggle right sidebar
does the tree keep a fork under the session it came from
10:51
$rg -n "depth" src/renderer/src/lib/sessionLineage.ts
31 export function lineageDepth(parentPath: string | null): number {
54   const isLastChild = index === siblings.length - 1;
0.1s

It does. Depth is read from the session file, so a fork is drawn under its parent wherever it is opened from.

the tree jumps to the wrong row when I reopen it
10:58
Thinking2s
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.

the tree blanks the window when a session is long
11:02
Thinking2s
Every row is measured on mount, so a session with thousands of entries spends the first frames laying all of them out.
readsrc/renderer/src/components/sessionTree/SessionTreeList.tsx
86  * Row heights are constants and headers are measured, so
0.2s

Rows are a fixed height and the list draws a window over them, so it never measures the whole tree.

and the header should stay put while the rows scroll
11:05Fork this msg in new session
Type @ for a file, / for a skill or command, or a path with auto complete. Paste images or files.
DeepSeek V4.1 Flashmax
main1.2%/1000k (auto)
Add the chat minimap⌘ 1Files⌘ 2Git⌘ 3
Session tree
Toggle terminal⌘ J
Toggle right sidebar
Add a minimap to the transcript
09:12
Thinking2s
One bar per user message, sized by how long the message is.
readsrc/components/transcript/UserMessageMiniMap.tsx
78   const [maxLineWidth, setMaxLineWidth] = useState(
0.1s

One bar per user message. Here is the plan.

make the bars scale with length
09:14

Width now tracks the message length, clamped so a two-word message is still a target.

also show a timestamp on hover
09:18

Added — the list beside the bars reads the message and its time.

and dim the bars that are not active
09:21

Only the bar nearest the middle of the viewport is lit now.

09:21
Type @ for a file, / for a skill or command, or a path with auto complete. Paste images or files.
DeepSeek V4.1 Flashmax
main1.2%/1000k (auto)
Copy file names from the Files tab⌘ 1Files⌘ 2Git⌘ 3
Session tree
Toggle terminal⌘ J
Toggle right sidebar
have a second session review this before I commit
13:02
Thinking2s
A fresh session reads the diff without my context, so it will not take my reasons for granted.
$pigi subagent "Review the uncommitted changes against origin/main. Read-only: report bugs and anything that could be simpler, with file:line."
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.
2m 14s

Both findings are real. The copied state is announced now, and the timer is cleared when the viewer unmounts; the tests pass.

and have one check the changelog entry while you wait
13:06
$pigi subagent "Check this branch’s CHANGELOG entry: user-facing, one line per change, no file names."
pigi: subagent 01a1bb41 ~/.pi/agent/sessions/--Users-me-pigi--/01a1bb41.jsonl (deepseek/deepseek-v4.1-flash, thinking max)
18s
Type @ for a file, / for a skill or command, or a path with auto complete. Paste images or files.
DeepSeek V4.1 Flashmax
main1.2%/1000k (auto)
Fix the tree header overlap⌘ 1Files⌘ 2Git⌘ 3
Session tree
Toggle terminal⌘ J
Toggle right sidebar
the tree header overlaps the row underneath
13:52
Thinking2s
The band is sticky and zero-height, so it paints over the row instead of taking its space.
readsrc/renderer/src/components/sessionTree/SessionTreePinnedBand.tsx
164      <div className="sticky top-0 z-20 h-0" aria-hidden="true" data-testid="session-tree-pinned">
0.1s

It paints over the row instead of moving it: the band is an overlay, and nothing reserves its height.

reserve it then
13:58
editsrc/renderer/src/components/sessionTree/SessionTreePinnedBand.tsx
-164 className="sticky top-0 z-20 h-0"
+164 className="sticky top-0 z-20 h-[var(--pinned-band)]"
0.4s

The band holds its own height now, so the rows move up by exactly that much while one is pinned.

run the suite before you commit
15:19
$npm test
 Test Files  3 passed (3)
      Tests  49 passed (49)
4.1s

Green. The panel is open on the run if you want the full output.

15:19
Type @ for a file, / for a skill or command, or a path with auto complete. Paste images or files.
DeepSeek V4.1 Flashmax
main1.2%/1000k (auto)
15:19 · ~/Programs/pigi
-> git status --short
M src/components/sessionTree/SessionTreeList.tsx
M src/components/transcript/MessageList.tsx
-> npm test
✓src/lib/sessionTreeLayout.test.ts(31 tests) 8ms
✓src/lib/sessionLineage.test.ts(12 tests) 4ms
✓src/lib/readGrouping.test.ts(6 tests) 3ms
Test Files 3 passed (3)
Tests 49 passed (49)
15:20 · ~/Programs/pigi
->
Add the chat minimap⌘ 1Files⌘ 2Git⌘ 3
Session tree
Toggle terminal⌘ J
Toggle right sidebar
Add a minimap to the transcript
09:12
Thinking2s
One bar per user message, sized by how long the message is.
readsrc/components/transcript/UserMessageMiniMap.tsx
78   const [maxLineWidth, setMaxLineWidth] = useState(
0.1s

One bar per user message. Here is the plan.

make the bars scale with length
09:14

Width now tracks the message length, clamped so a two-word message is still a target.

also show a timestamp on hover
09:18

Added — the list beside the bars reads the message and its time.

and dim the bars that are not active
09:21

Only the bar nearest the middle of the viewport is lit now.

09:21
Type @ for a file, / for a skill or command, or a path with auto complete. Paste images or files.
DeepSeek V4.1 Flashmax
main1.2%/1000k (auto)
Terminal panel resize jank⌘ 1Files⌘ 2Git⌘ 3
Session tree
Toggle terminal⌘ J
Toggle right sidebar
the terminal panel drops frames while it animates open
10:44
Thinking2s
Two things resize on every frame: the panel's height and the transcript's viewport. Each of those frames re-measures the visible rows.
$rg -n 'panelHeight|setPanelHeight' src/renderer/src
TerminalPanel.tsx:41:  const [panelHeight, setPanelHeight] = useState(0);
TerminalPanel.tsx:88:      setPanelHeight(event.contentRect.height);
0.2s

The panel's height is React state, so the open animation re-renders the whole tree sixty times a second and the transcript re-measures its rows on every one of those frames.

can you scope the resize observer to the panel instead of the window
10:49
$git log --oneline -3 -- src/components/terminal/TerminalPanel.tsx
a678ff1 fix: hold a version’s header in place at the top
62d9bc3 fix: keep the session tree from blanking the window
0.1s

Done. The observer is on the panel element now, and the height it reports goes straight to a CSS custom property. The gesture writes one value per frame and the browser paints it on the compositor — React never hears about it.

what does the transcript do while that gesture is running
10:53
Thinking2s
The virtualizer needs to know the viewport height to decide how many rows to render. If the height changes every frame, it re-decides every frame.

It re-decides which rows to keep mounted, once per frame. Measured heights are cached, so it is not re-measuring — but it is re-rendering the window of rows, and that is where the frames go.

ok, do that. also check whether the minimap recomputes widths
11:02
$rg -n 'maxLineWidth' src/renderer/src/components/transcript/
UserMessageMiniMap.tsx:78:  const [maxLineWidth, setMaxLineWidth] = useState(
UserMessageMiniMap.tsx:82:  useEffect(() => {
UserMessageMiniMap.tsx:86:    const observer = new ResizeObserver(([entry]) => {
0.2s

It does — a `ResizeObserver` on the transcript container, writing state, on every frame of the gesture. Same shape of problem. The fix there is the same: publish the clamped width, and stop when the value has not changed.

does this affect the session tree too
11:08

Different mechanism. The tree draws a windowed list as well, but its rows are a fixed height, so the window is arithmetic rather than measurement — nothing to re-measure when the window resizes, only a `scrollTop` to re-read.

the tree preview card is also lagging when I move the pointer fast
11:14
Thinking2s
The card opens on a timer and closes on a timer. Moving fast across rows repeatedly restarts both, and each restart re-renders 380px of message preview.

The open delay restarts on every row, which is correct, but the card re-renders its body on each open. Debouncing the body to the row the pointer actually settles on removes the churn.

let's not ship that. revert the preview change for now
11:19
$git restore src/components/sessionTree/SessionTreeList.tsx
0.1s

Reverted. The panel and minimap changes stay; the preview card goes back to what shipped in 0.4.11 and I will redo it with the settle measurement in a separate pass.

good. run the tests before you commit
11:24
$npm test
 ✓ src/lib/sessionTreeLayout.test.ts (31 tests) 8ms
 ✓ src/lib/measuredRowHeights.test.ts (9 tests) 4ms
 Test Files  2 passed (2)
      Tests  40 passed (40)
4.1s

Forty tests, green. Ready to commit whenever you are.

11:24
Type @ for a file, / for a skill or command, or a path with auto complete. Paste images or files.
DeepSeek V4.1 Flashmax
main1.2%/1000k (auto)