Pi Pocket features
The full tour. For setup, see the README.
- Durable runs. Every model request, tool call, queued message, and subagent is a durable task in one SQLite file. Kill the server mid-run and start it again: the run continues. A tool call that was cut off reruns if it is safe to; otherwise the model is told it was interrupted.
- Themes. A theme changes the app’s look and layout without a change to its code: a folder of CSS, fonts, images, and optional colors (
docs/extensions/themes.md). Appearance has a Theme row above Colors: Pocket, the app’s own look (“C · Bold” since 0.31.0: near-black neutral greys that rise by tone, sharp corners, an accent for the place you are in and the primary button (coral in Pocket neutral, the palette’s own accent in other colors), blue only for links and focus, a quiet well for what Pi did, a red edge and the word “Failed” for a failed step, and the amber approval as the strongest state, all made from the colors in use, so any palette works); Lantern, a calm, warm dark theme that comes with the app, made for reading for hours (warm brown-grey with warm off-white text and a muted amber accent, one readable column of about 72 characters, tool calls as one quiet line until opened, and your messages set off by a quiet amber bar instead of cards); and each theme folder. A theme stays when the colors change; one with colors of its own brings them when you choose it. The owner can Duplicate the theme or the colors in use into a folder of their own (in the data folder’sthemes/), Edit with Pi (a session in the theme’s folder, with a message ready that names the guide), and Remove one (its folder moves tothemes/.removed/). Under them, the owner picks the theme’s fonts under Fonts for its name: Text font (Geist, Inter, System Sans, JetBrains Mono, Fira Code, IBM Plex Mono, Iosevka, or System Mono), Code font (one of the monospace ones), and Ligatures (Theme’s own goes back to the theme’s own setting), with a preview; each choice is saved into the theme, so everyone who uses it gets it. A theme that comes with the app shows its fonts, with Duplicate to change. Each save shows at once in every tab that uses the theme, without a reload, and a reload never flashes the app’s own look. A theme loads only its own files; one that breaks a rule keeps its last good version, and the owner is told what and where. Each person chooses for each browser, guests too, and the owner can make the theme and colors in use the default for browsers that have not chosen. The launcher’s Themes and/theme <name>choose themes as well as colors. A theme can bring a pair of palettes, dark and light, that follows the system’s setting. Safe mode (?noext=1) loads no theme. - Omarchy colors. All of Omarchy’s themes, from Tokyo Night and Gruvbox to Rosé Pine and the light ones, drawn from each theme’s own
colors.toml, in Pocket’s look (sharp corners on 1px hairlines, planes that rise by tone, shadows only on what floats), Geist for words and JetBrains Mono for code, paths, and numbers, with JetBrains Mono’s own italic and the Nerd Fonts icons that prompts and tools print (bundled inweb/fonts/, with Inter, Fira Code, IBM Plex Mono, and Iosevka for themes to name;web/fonts/SOURCES.mdsays where each came from); light themes too. Menu → Appearance (or the Theme tile, the launcher, or/theme gruvbox) picks one under Colors, as well as a theme folder’scolors.toml(any Omarchy theme folder dropped intothemes/shows there); the mini-desktop cards in Appearance preview a theme on hover or keyboard focus, and leaving without choosing restores the saved theme. The new look grows as a circle from where you tapped. Pocket neutral (and Pocket neutral light) are the greys the look is drawn for, and the colors a browser starts with when nobody chose any and the owner set no default (before 0.32.0: Desktop). Desktop follows the Omarchy theme of the machine Pi Pocket runs on: change your desktop’s theme and the app follows within seconds, optionally with your wallpaper in the gaps. - Sheets and controls. Sheets have a 56px title bar on wide screens, a back chevron when opened from another sheet, grouped inset lists, round toggles, and segmented settings. On phones they keep their bottom-sheet grip and drag-to-close gesture. Text sheets have Cancel and the main action together at the bottom; all existing keyboard and back flows stay available. Buttons, fields, and search share the same rounded controls across the app.
- Tiled windows and motion. On wide screens the sidebar and the session are Hyprland windows, softened: 8px gaps, rounded corners on a hairline, and a soft accent ring on the one under the mouse. Motion uses Omarchy’s Hyprland curves: windows pop in at 87%, sheets and popovers rise a little as they fade in, and leave quickly, new messages slide in, and notices count down until they go. While Pi works, the conversation shows what it does; elsewhere a working session’s square steps around and a small dot pulses (both hold still with reduced motion). Appearance can turn tiling off (no gaps, square corners, no ring), reduce motion (or follow the system’s setting), choose Fluid motion (sheets, menus, the launcher, and notices arrive on a spring and leave quickly, over a frosted scrim; what they hold, and a tool group’s first steps, follow a step apart; a message sent lifts off from the message box; each new paragraph of Pi’s answer fades in, and its caret breathes; a pressed button springs back; and folding the sidebar morphs the windows into place; Width and tiling change at once, as they are set from a sheet or the launcher, which morphs skip; Auto never picks it), change the conversation’s text size (13, 15, 17, or 20, or any size from 10 to 32 px typed in, in half pixels), set the width (Comfortable, which grows with a wide window, Wide, or Full: how much of the window the conversation and the message box take, per browser; phones stay as they are; a reply’s code block with long lines grows past the column, centered on it, where plain text and Markdown wrap in the column, and a wide table grows toward the window’s edge), set the density (Comfortable, Compact, or Tight: less room between turns, inside message cards and activity groups, between the conversation’s lines, in the session list’s rows, around the message box and the status line, in sheets and their lists, and in the top bar, while font sizes stay and rows on a touch screen stay a thumb tall), choose where PiP opens (PiP: Floating, a window in the corner or a phone’s sheet, or Board, its conversation in the session’s place), show Pi’s thinking while it works, and show the reply speed under the message box.
- The sidebar. The labeled rail groups navigation into Sessions, Activity, and Tools, with Account at its foot. Activity opens the running and subagent boards. Tools brings the session’s places and extension destinations together. Ctrl/⌘+B still folds the sidebar to numbered sessions and unfolds it again. The list has Priority, Recent, Folders, and Archived (an icon) in a segmented switch; sessions grouped by day or by folder, in groups that fold; and pinned sessions on top (per browser). Priority (since 0.27.0) groups sessions by what they ask of you, not by when they ran, and has no Pinned group: pinned sessions go by their state. Needs you holds sessions with a call waiting for approval (the longest wait first), then failed runs not seen yet, then sessions with failed subagents nobody dealt with; its tab and the rail’s Sessions button carry a warning-colored count of them, and its head offers Dismiss N failed when more than one failed. Ready to read holds sessions that finished since this browser looked, that are marked unread, or that have new chat (newest first; Mark all read in its head). Working holds sessions where Pi or its subagents work, a background command runs, or a request waits for a provider’s limit (a clock pill says when it clears). Quiet holds the rest, folded at first. Comfortable desktop rows can show two title lines when space permits. A call’s row has a Review button, which opens the call in the row (one at a time): the tool and its whole command, why the guard asks, and how long ago, with Deny and Allow. Allow shows only when the command is whole in the row (80 characters, one line), as on a peek tile; otherwise Deny and Open. An extension’s question can be declined from its row, or opened to be answered where it waits, a person who may not allow what Pi did for someone else cannot allow it, and only people who can steer answer. After an answer the next call opens by itself with the focus on its Review, and the answered row glows in the group it moves to; an answer cannot be undone, and says so in a notice without Undo. A failed run’s row has a ✕ that dismisses it (the run counts as seen, like opening it) and a failed subagent’s ✕ deals with it, as the subagents board does; Dismiss and Mark all read say so in a notice that undoes them, except a subagent’s dealt-with failure. The open session’s row stays in its group while it is open, though opening it reads it, and moves when another session opens. Needs you shows six rows and a Show N more button. In each group, sessions of one family sit under their lead, one step in: a muted row for the lead (it opens the session, and ends in its count), or the lead’s own row when it is in the group; a session deeper than the lead’s own children shows its path after its title; a family shows five sessions in a group, then +N more, which opens the family’s index (filtered to Needs attention or Working in those groups). A session whose lead you cannot see stays a plain row. A search lists the matches, as on the other tabs. The tab a browser starts on is the one it kept (Recent when it kept none). Each session row has a square in its folder’s color whose shape says where the session is (stepping quadrants while Pi or its subagents work, two bars while a call waits for you, a cross when its run failed, solid when it finished since this browser last had it open or is marked unread, and hollow once read or never run), its title (semibold with new chat, when marked unread, or when open, and the open one on the accent’s soft fill), and on the right a small pill with ⑂ and how many subagents work there (or failed with nobody dealing with it yet, in red), who else is there, a pulsing dot while Pi works or a “needs you” pill while a call waits for you, a dot for new chat (or for a session this browser marked unread), and how long ago; its folder and model are in its tooltip. Rows draw no buttons on hover; to archive, pin, or mark one unread, hold a finger on it on a touch screen (the row shows the press, and moving the finger scrolls instead) for a sheet of its actions; with a mouse, right-click a row for the same actions in a small menu at the pointer (Shift+right-click keeps the browser’s own menu, and Ctrl+click on a Mac still selects; Shift+F10 or the Menu key on a focused row opens it under the row, and the bar under the list acts on selected rows). They are: open it in a new tab, copy its link or its folder’s path, rename it, fork it (a new session with its whole history, through Pi’s latest finished reply), start a new session in its folder, share it (an invite to only that session), pin or unpin it, move a pinned one to the top or bottom of the pins, mark it unread or read, extensions’ actions, select it, and archive or unarchive it. Pinned sessions keep the order they were pinned in, or moved to. Marks are per browser, like pins (a session’s square counts as read here when this browser opens it, or has it open in sight as its run ends; a failed run’s cross stays until its next run starts, and a restart forgets it), and opening the session clears its mark; the session’s menu marks the open one unread and goes back to the list. Recent keeps ordinary sessions in view. At most two pinned or working linked shortcuts and the selected child join them. A parent’s row ends in its count, on the same line at every density: ⑂ and how many sessions are linked to it, with a warning-colored mark when some need attention. It is the Browse button: it opens a family index instead of expanding the sidebar. Family counts and the default index exclude archived sessions. Choose Archived in the index to find them. Find any session searches visible sessions and their ancestry with the same filter. The index shows twelve results per page with their folder or parent context. Back returns to the same query, filters, page, scroll position, and result. Someone who cannot see the session that started one sees it as a session of its own. A session moves up the list when it is renamed, gets a message, or Pi starts work there for any other reason (a scheduled message, a subagent’s report, a message sent again after a restart), so the one that ran last is on top. Archiving says so in a notice that undoes it. Ctrl/⌘+click selects sessions, Ctrl/⌘+drag selects every row it passes (the list scrolls at its edges), and Shift+click selects a run; on a touch screen, after Select, taps select more rows or let them go. A bar under the list archives, unarchives, or pins them, and Esc (or back, after Select) lets go. Archiving does not move a session in the list, so one brought back returns to where it was. Drag its edge to resize the list (to 40% of the screen at most), or fold the sidebar to the rail with numbered sessions, like Waybar’s workspaces. Appearance → Switch sessions with → Tabs (off until you turn it on, in each browser) also puts the first nine of those sessions in a strip of segments above the top bar, each in its folder’s color: the open one fills, one that works pulses, one that waits for you shows in the warning color, and a tap opens it (the open session takes the ninth place when it is further down the list). Choosing Tabs folds the sidebar to its rail, and Sidebar unfolds it; Ctrl/⌘+B still folds and unfolds it either way. On a phone the strip is the bars alone, and the top bar names the open session. A rail with more buttons than room in a short window scrolls as a whole, and its numbered sessions on their own, up to a third of the window; each fades the edge where more is. On smaller screens the labeled rail is a bottom bar; Sessions returns to the session list. On wide screens with no session open, the home screen shows a fastfetch-style summary, buttons for a new session, the launcher, and Appearance, and the sessions to jump back into.
- Your own layout. Appearance → Top bar buttons, Status line items, Places, Message box buttons, and Under Pi’s answers list what shows in each place, the app’s own and extensions’ alike: a switch shows or hides each one, arrows move it, and Reset goes back to the defaults. The menu, More under an answer, Lancet Guard, and the connection’s warning always show. Saved in each browser, so a phone and a desktop can differ. Extensions can arrange these too (
pocket.arrange), and what you choose wins. - Peek tiles. Off until you turn them on: the menu’s Peeks tile, Alt+P,
/peek, the launcher, or Appearance switches them on or off in one step, and so do the Peek tiles action in Tools and the tiles button in the top bar, which shows wherever its pane is 480px wide or more (while off, it has a dot when another session waits for you). Then other sessions’ live work shows beside the one you are in: one tile per session that is working, waiting for an approval, has subagents at work, finished since this browser last had it open, or is pinned, plus the one you just left. Each is a card with the session’s folder square, title, and path, its last three lines (what was asked, what Pi said, its tool calls and how they went, each in two lines at most, with a mark for who or what said it), the subagents at work there, and a footer with its state in words; it changes at most once a second, and only its square moves while the session works. Its subagents at work get a line each: the state square, the name, and what it does this moment (the call it runs, the one it waits to allow, or its words), from its own peek; a tap opens it. Those waiting for an approval come first, and a tile shows three at most (the strip one), so it stays a glance however many work: N more opens the subagents board at the first one left out. A subagent’s call waiting on its session’s tile says which subagent asks, and in the column the footer says when only subagents keep the session working or waiting (“3 subagents working”). Click a tile to open its session; the one you leave takes its place, so the tiles stay put. Allow or deny a waiting call right on its tile, which shows the whole command and why the guard asks; a command that does not show whole offers Open instead of Allow, which goes to the conversation it waits in. The ✓ on a finished one marks it seen. On wide screens the tiles are a column that slides in where People and the Browser panel dock when neither is open, with ▲/▼ N need you at its edge for waiting tiles out of view; narrower screens (and wide ones with a panel open) get a strip under the top bar that swipes sideways. Only the tiles on screen are live: once scrolling settles, the tab tells the server which, and the rest keep their last lines (their marks stay current from the session list); a tab in the background keeps none live, and with tiles off nothing is sent at all. Peeking is not being there: it does not show you in the session’s people. - Session cleanup (since 0.30.0; startup SQLite deletion & compaction since 0.31.0; the owner’s alone). Remove and clean up on an archived session (a held row, a right-click, or selected rows) takes it out of the app for everyone and removes Pi Pocket’s own files of it: its worktree (its branch stays), its uploads, and its background logs. All versions of its artifacts go too; assets another artifact uses stay. Its schedules, background tasks, PR watch, webhooks, repository watches, published artifact links, modules’ public page links, and session lessons end too. The confirm says what goes and its size first, and large removals run asynchronously with a live progress bar. A session where Pi works, or whose worktree has uncommitted changes, stays, and says why; a fork’s uploads and parent transcript stay while a fork still reads them. Menu or the launcher → Clean up archived sessions looks at the archived sessions not used for 7, 30, or 90 days (or any age): Remove worktrees removes their worktrees and keeps the sessions, Remove N sessions… removes them after the same confirm, and Database shows the current
pocket.sqlitesize and lets the owner explicitly schedule Purge on next restart (fast row deletion before Pi Durable opens, so SQLite reuses the freed space automatically) or Purge & compact on next restart (also runsVACUUMafter checking free disk space, shrinking the file on disk). Nothing is ever purged frompocket.sqlitewhile the server is running or automatically on upgrade. A removal cut short by a restart goes on at the next start. - Launcher. Ctrl/⌘+K (on a touch screen, the Launcher tile among the places, or the ⌘ button in the session search) opens a rounded search window for sessions, actions, and themes, with fuzzy matching. Search-type pills sit above grouped results with folder-color tiles, action icons, or four-color theme swatches; the selected row has a soft fill. All, Sessions, Actions, and Themes select the search type without clearing your words;
>,@, and#still work. All starts with six recent sessions; Show all searches the whole session list, including archived sessions. Result counts show when a list is capped. Titles and folder or command details highlight matches, and sessions show their current, working, waiting, or archived state in a pill on the right. Arrowing onto colors shows them at once; Enter keeps them, Escape goes back. A theme that changes the look shows once chosen. Arrows, Tab/Shift+Tab, and PageUp/PageDown move the selection; Enter opens it. Close, Escape, a tap outside, or Back closes the launcher. Each opening starts with a fresh search and a focused input, even when it reopens during its fade-out. On a phone it is a sheet from the bottom edge, like the app’s other sheets: drag it down to close it. On a touch screen it opens without the keyboard, so the results stay in sight; a tap on its search brings the keyboard up. - The menu. Menu opens Files, Changes, and Find when available. All places includes the other destinations enabled for this browser. The current session’s actions are separate from Appearance and App settings. Navigation docks at the right on a large screen when there is room; it overlays a smaller desktop and opens from the bottom on phones. Back returns to the preceding group or sheet. Close dismisses the whole menu.
- Keyboard. Alt+1…9 jumps to a session (hold Alt to see the numbers), Alt+↑/↓ goes to the previous or next one, Alt+N starts a new one (where Ctrl/⌘+1…9 starts it in a favorite folder), Alt+B opens or closes the browser, Alt+E the Files tile, Alt+T turns Show thinking on or off, Alt+V starts or stops dictation, and
?lists every shortcut. On a computer, a session opens with the caret in its message box, ready to type; on a touch screen it waits for a tap, so the keyboard does not cover the conversation, and on a Mac a session opened with Alt+1…9 or Alt+↑/↓ leaves the box alone, so the next Alt shortcut still works (Option types characters in a box). - The conversation. A column of turns, made for phones. Your messages are cards with the sender’s avatar (the accent for yours, the sender’s color for someone else’s), who sent each and when; Pi’s replies are plain prose at Appearance’s text size, streamed as they come (lists keep a quiet marker column; code, tables, and rich blocks are rounded cards). The Message time item under completed replies shows the time, with the date for earlier days, and can be hidden or moved in Appearance → Layout. What Pi does between its words, its thinking and tool calls, folds into one line that says what it did and for how long (“Thought, searched, read 2 files, ran 1 command · 18s”), and opens, as a card, into a timeline: a line per call with a circle for how it went (✓ done, × failed or denied, ! waiting for an approval, a spinner while it runs, ⑂ for a subagent, ✦ for a thought) and what it came to (lines added and removed, lines read, matches, tests passed, an exit code, “needs approval”), and tapped, its input and output, with the diff viewer’s diffs for edits (line numbers, syntax colors, and the words that changed) and bash’s live output. The newest turn’s groups are open and earlier ones closed, unless Appearance’s Keep activity folded (off by default) keeps them on their line until you open one; a thought alone still follows Show thinking. A lesson Pi saved, changed, or forgot that still waits for a decision stays in sight when its group folds: its Approve and Discard card under the group’s line (two lines of it; the whole at its step once opened), or, with Appearance’s Lessons in folded activity on Badge, a “1 lesson waits” badge on the line; either goes once the lesson is decided, here or anywhere (since 0.31.0). An approval is a card at the end of its turn (the command, the reason, Deny and Allow; once answered, the call’s line says who allowed or denied it), and while Pi works one line, a pulsing dot with the state in the accent (the warning color while it waits for an approval), says what it does (thinking, working, waiting for an approval, retrying) and for how long. With Show thinking on in Appearance (or Alt+T, or the launcher), the current thought shows above that line as it streams, and the thoughts in the conversation show their words once written (a thought alone in its group opens, and one on a timeline opens its step). A chevron before the line’s dot folds the live thought away, and again brings it back. Alt+T shows a short on/off notice, even while Pi is idle. During tool calls the latest thought stays; a new response clears it until the model shares new thinking. Models that share none say so, rather than showing an old thought as current. A fold holds in that session, also over a reload, until you open it again; the setting is off until you turn it on, in each browser, and while it is off or folded the live thought is neither selected nor drawn. The reading area follows new words until you scroll up in it, and follows again for each new thought. While Pi works, Steer, Queue, or Interrupt beside the model chip says whether a message steers the run, waits for it to end, or stops the run at once (the tool call too) and is sent first (on a narrow message box, such as a phone’s, they are one button with the chosen mode that opens a menu of the three, so the model chip stays in view; since 0.29.0), while the queued messages stay in order with their senders and modes; Stop stops the run and holds the queued messages (since 0.28.1): a bar above the message box says how many, Send sends them in their order as the people who wrote them, and Show lists them, each with Edit for its sender and a × to withdraw it (anyone their own, the driver anyone’s), while subagents’ reports, and PiP’s queue, are still withdrawn; Interrupt goes back to Steer after one use, or when Pi stops before it was used, while Steer and Queue stay as chosen; Ctrl/⌘+Enter sends a message the other way while Pi works (queued when Steer is chosen, steering when Queue is) and leaves the choice as it was, and on Interrupt or with nothing running it sends as Enter does (since 0.28.0); queued messages can be withdrawn, and your own, tapped open, can go back into the message box to change (Edit: its words above what you were typing, on a line of their own, with its files), move to Queue or Steer until Pi reads it, or go now as an Interrupt (a second tap confirms;
CONFIRM_INTERRUPTinweb/composer.jsturns that off), with these buttons in a quiet row at its right (since 0.28.0): that stops the run and sends only that message, while every other queued message, from everyone, stays queued in its order with its sender and mode (a restart in between loses or repeats none), and so do subagents’ reports; with take turns on, moving one to Steer or Interrupt waits for your turn at the wheel, as sending does; Stop (or Esc twice) stops the run. A run stopped in the middle of a tool call ends with a “Stopped.” line under its card. A session you go back to shows at once where you were in it, as this browser tab kept it, and what came while you were away rises in: at the bottom the conversation glides up to it, and scrolled up the row you read stays where it is. With Appearance’s Wait for updates (off by default), a session that changed while you were away shows only once its updates have come (or after 2.5 seconds). Scrolled up, a round button above the end of the message box goes back down to the newest message. - Getting around on a phone, with one hand. Back (the swipe, Android’s back button, the browser’s) goes back to where you were: it closes what opened last (a sheet, the menu’s next sheet back to the menu, a file back to the Files tree, back to Changes when the file was opened from there, the Files tile or the Browser panel, the drawer) before it leaves the session, and leaving goes to the session before or to the list, scrolled and searched as you left it. A session opened straight away (a link, a notification) has the list under it, so back does not leave the app. What you use most is a thumb’s reach from the bottom edge: the button beside the message box (or a swipe up from it) opens the places, a short sheet of big tiles (Files, Changes, Browser, Artifacts, Chat, Find, Branch, Peeks) with the session menu below them. On a phone (a message box up to 480 px wide) the row beside it is always one row: Plan and the buttons that extensions add are in one ⋯ button after the model, which opens a sheet that lists them in the order Appearance gives, each with its state (Plan On or Off, an extension’s count and whether it is open), and a dot on ⋯ says that one is on or has a count; Attach joins them where the model’s name would show fewer than eight characters, and Steer or Queue, the mic, Send, and Stop stay in the row. On the conversation, swipe left for Files and right to go back; in Files, swipe right to go back. Each swipe shows a mark that lights when letting go will act. The top bar leads back to the list (counting other sessions that wait for an approval) and keeps only the buttons with something to say. Every control is a thumb’s size on a touch screen (small ones, such as a code block’s Copy or a reply’s Pin, keep their look and take a wider tap); a tap anywhere on the message box, off its one line of text, still goes to the text; a quick second tap does not land on whatever just slid in under it; tables in replies scroll sideways instead of crushing their columns; a diff’s header keeps the file’s name on a line of its own on a phone; and the command a peek tile asks about opens its session when tapped. The Files tile and the browser slide in as screens of their own and slide away on back, a file slides in over the tree, and the browser’s tools sit on their own row under the address. Drag a sheet down, or the drawer left, to close it. In an iPhone home screen app, which has no back gesture of its own, swipe in from the left edge to go back.
- Reply to a passage. Select words in one of Pi’s replies, on a phone or a desktop, and a Reply button appears by the selection (below it on a touch screen, where the system’s menu sits above). It puts the passage in the message box as a Markdown quote (up to 1,500 characters), right after what is there, with the caret on the line right under it, ready to type; Reply again stacks another quote, so one message can answer several passages, each with its own words. In the box each quote is one piece: drawn as one block apart from your words, its empty lines in it (Appearance → Quotes in the message box: Fade, the default, a tint that fades out to the right; Tint, a soft block; Ghost, faded words only), with a × on its first line, and a “2 quotes · Clear quotes” line above the box. Typing inside a quote writes on the line under it instead; Backspace on the line under a quote turns it red, and a second Backspace removes it; a reload keeps the quotes and their pieces. The box knows each quote by where it is, so one typed by hand (“> …”), even with the same words, is plain text; undo after removing a quote brings it back as one. The message goes to Pi as written, with a blank line set around each quote so Markdown keeps it apart; a paste placeholder or an
@fileinside a quote stays the passage’s words (nothing expands or goes along). It shows in the conversation with each quote as a quote block where it was written. Separate, the fourth choice there, keeps quotes out of your words instead: each Reply adds a strip over the box (× on each, Clear quotes with more than one, and a reload keeps them), and the next message goes with every strip’s passage quoted first, in order, then your words. With PiP on, PiP’s orb (Ask PiP) sits beside Reply in the same pill: it opens PiP with the passage in a quote strip over its box, ready to type (as a board, Appearance → PiP → Board, the quote strip of the board’s message box); your message goes with the passage quoted first, and shows with it as a quote block. PiP also gets, unseen by people, which session the passage came from (its number, title, and folder:abouton the submit request, a<pocket-context>part after the message that no view or resend shows), so it can read that session for more. In Appearance, Reply to a passage and Ask PiP about a passage (both on by default) each turn their own button off in that browser; with both off, nothing shows. - Forks. Tap Pi’s reply → More → Fork from here: a new session with everything up to that reply, which then goes its own way. Tap one of your messages to edit it and send it again, or send any message again, to the same model or another one (a retry). Each makes a new session that forks just before the message; the original stays as it is. A fork gets its own chat (with the pins of what it inherited), a link back to where it came from, and optionally a git worktree of its own.
- A new context. Menu → New context (or
/reset [note]): Pi starts fresh and no longer sees the messages so far, while everyone still does. An optional handoff note carries over what matters. - Instructions for Pi. Menu → Instructions for Pi (or
/instructions …): ground rules Pi gets with every message in this session, such as “use pnpm, not npm”. Everyone in the session can see them. - Memory. Short lessons Pi keeps across sessions: how to build and test a project, a gotcha it hit, a convention, a preference someone stated. Pi proposes one with its
memorytool (one or two sentences each, never secrets) only when a person asks for it, or when Pi is sure that it will help in many later sessions, never for a one-off detail, and proposes fixing or forgetting one that turns out wrong; the owner approves. What Pi reads (a web page, a post, a comment, a file) could talk it into a “lesson” that would reach every later session, so nothing Pi saves, changes, or forgets counts until the owner says: Approve and Discard show right under Pi’s memory call, with the words that wait and where they would apply (this project, or everywhere: every session and PiP), and in the sheet. Approve approves only what you saw: if Pi changed it since, the app says so and shows the new words. Lessons and project names are kept on one line, without invisible characters, so Pi reads only what the owner saw. A change or forgetting Pi proposes leaves the lesson as it was until then. Lessons you add yourself count at once. Each is for this project, for everywhere, or for this session alone: a project’s lessons reach every later session in the same repository, its worktrees included (or the same folder, outside a repository), everywhere’s reach every session and PiP, and a session’s own reach that session and its subagents for the rest of its life, through compaction and restarts, and no other session (since 0.29.0; Pi usesscope: "session"for something to keep only here). A fork starts with its session’s lessons in force, as its own; what waits for approval stays with the session it was saved in. Archiving a session keeps its lessons for when it comes back. In PiP the same part is PiP only: lessons for PiP that no session gets. Menu → Memory (its hint says how many apply here, everywhere, and in this session) opens as a wide sheet; a switch at its top, This project, Everywhere, or This session, each with how many it holds and how many of them wait for approval, picks which it lists and where a lesson you type in goes. Each shows who saved it and a link to the session it came from (when you may see it), with Edit and Forget; type one in to add it by hand, or use/remember run the tests with make checkor Remember… on a message. A guest’s lessons wait for the owner too, and a guest’s change to one in force is a proposal they can withdraw. What waits shows at the top of the owner’s sheet; the menu’s hint says how many. Lessons waiting take no room from the approved ones, and a person (or Pi for them) may have 20 waiting at most. Only the owner, or whoever saved a lesson, changes or forgets it; viewers only read. A project keeps 40 lessons, everywhere 30, and each session 20 of its own, each in a room of its own; past that, forget one first. A person’s session lessons that wait count in that session only (20 at most there, and 40 in all sessions), not toward the 20 waiting elsewhere. A server from before 0.29.0 uses a session’s lessons nowhere (it shows one that waits in the owner’s queue, for “session “…””), never as lessons for everywhere. Changes show as lines in the chat. Turn it off in Extensions. - A lean prompt. A new session gets only the tools most conversations use.
browser,subagent,background,schedule,watch_pr,ask_someone, and the design tools wait, and so do their prompt sections; the prompt lists them with a line each, and Pi loads one withtool_searchwhen a task needs it. On a model whose provider takes tool changes in the messages (Claude 4.8 and 5, and later), the tool joins the list and stays for the conversation; on any other, Pi calls it from acodemodescript, so the tool list and the prompt cache never change. Long guides, such as the design guide and the page-to-app messages of artifacts, are files that Pi reads when it needs them. Turn the Tool search module off in Menu → Extensions to offer every tool every time. A test keeps Pi Pocket’s own part of a plain session’s prompt under 15,000 characters (about 5,500 tokens, including Agent Teams on a new profile: schemas and this prose run at about 2.75 characters a token), so it does not grow by accident. - Plan mode. The Plan chip by the message box (or
/plan): Pi reads files, runs read-only commands, and uses tools their extensions mark read-only, then proposes a plan; writing, editing, and other commands are blocked. Subagents inherit plan mode and explore under the same restrictions. Approve plan turns plan mode off and tells Pi to go ahead; it waits until Pi has answered since plan mode went on. - Scheduled messages.
/schedule in 2h check the deploy,/schedule tomorrow 9am …, or/schedule every weekday 8:00 summarize CI, or/schedule every 30m between 9:00 and 17:00 on weekdays check the queue, or Menu → Scheduled messages (also the violet pill on the left of the status line, which shows how many are set and, hovered, counts down to the next): Pi gets the message at its time, in this device’s time zone, even with nobody watching, and the people in the session get the usual “Pi finished” notification. Pi can schedule its own follow-ups with itsscheduletool. Since 0.29.0 a repeat every so many minutes can run only inside a time window:between 9:00 and 17:00, and optionallyon weekdays,on weekends,on mon,wed, oron day. It runs at the window’s start on each day the window opens, then every so many minutes while before the end, which is excluded (9:00, 9:30 … 16:30); a repeat longer than the window runs once, at its start. An end at or before the start ends on the next day, sobetween 22:00 and 6:00 on friruns from Friday night to Saturday morning; the start and the end cannot be the same. The start and the end are wall-clock times, and the runs between them are real minutes apart: on a night the clocks change, a window that holds the change is an hour shorter or longer, with a run less or more. A server older than 0.29.0 ignores the window and runs such a repeat all day. Each schedule is a durable task: a restart while it waits keeps waiting, one after its time sends at once, and none is ever sent twice. A schedule is cancelled, with a line in the chat saying why, once its person can no longer steer the session or a spend limit is reached. A repeat whose last message still waits in the session’s queue (Pi is at work, or a run failed and holds it) sends no other at its next time: the time is skipped, a line in the chat counts the skips, and the Schedules sheet, the Running now board, and Pi’sscheduletool list show how many there were (since 0.28.1). A repeat can compact before each run (a checkbox in its editor, orcompact_beforein Pi’sscheduletool): before it sends, everything before its last message is summarized, so each run starts on the last run and what was said since, not on all the runs before, which a weekly job would otherwise pay for again each time. It suits a job that keeps its state in files. The first sending has nothing to compact; a session at work when the time comes sends without compacting, and a compaction that fails sends all the same. Limits (settable since 0.24.0): a session holds 50 schedules, a message 4000 characters, a repeat comes at most every 10 minutes (a short repeat can cost money in model calls), andin …reaches 366 days ahead. The owner changes each in Menu → Extensions, under Scheduled messages; a change applies at once, to new schedules only. The Schedules sheet lists them with a live countdown each; a tap on one opens an editor in its place, to change its message and when it goes out (Once on a date and time, On days at a time of day, or Every so many minutes, hours, or days, with Only between for a window and its days) with a preview of the next time, or to delete it, and New schedule opens the same editor, beside quick add in words. A change goes out as the work of whoever made it; a new time of day is on their device’s clock, and other changes keep the time zone it was set in. Pause beside each schedule (and in its editor, and on Running now) stops it at once, without asking Pi: it sends nothing and stays in the list, dashed, until someone taps Resume. A repeat then goes on from its next time still to come, and a one-time message whose time passed while paused goes out at once. An edit keeps it paused. The pill and the countdowns count only schedules that go out; a session whose schedules are all paused shows “N paused”. Pi’sscheduletool lists a paused one as paused, and only a person resumes it. Archiving a session that has repeating schedules says how many keep running there, with a tap to see them, and its Schedules sheet marks it as archived; nothing stops or moves (since 0.28.0). - Done when.
/until npm test: after each of Pi’s answers, the check runs in the session’s folder; while it fails, Pi gets the end of its output and keeps going, for five checks at most. A bar above the message box shows how it stands. With Lancet Guard on, the check must be a command the guard allows outright. In plan mode the check waits until the plan is approved, and past a spend limit Pi stops going on. A check cut off by a server restart is not run again, as it may have done part of its work: Pi hears so, and its next answer is checked. - Mention files. Type
@in the message box to pick a file or folder from the session’s folder:@alone lists its top,@src/a folder’s own files, and anything else matches across the whole folder (@srvappfindssrc/server/app.ts). Tab or Enter (or a tap) puts the path in, and a folder opens to its files. Pi gets the message as written,@src/server/app.tsand all, and reads what it names; or tap Send them along above the box to send the files’ contents with the message, as Claude Code does (text files up to 100 KB each, images as images when the model takes them). The list is git’s in a repository (so ignored files stay out), and a walk that skips hidden and dependency folders elsewhere; your browser fetches it once and matches as you type, so suggestions never wait on the network. - Shell commands.
!git statusruns in the session’s folder, and Pi sees the command and what it printed with your next message, as in Pi’s terminal app;!!git statusshows it only to the people here. While it runs, a row says so, with Stop (it is in Running now too). A restart while it runs does not run it again: its entry says it was cut off. With Lancet Guard on, a command from anyone but the owner must be one the guard allows outright. A command Pi sees counts as its person’s message: Pi works for them from there, as for a steer. These are a person’s own commands, not Pi’s: plan mode does not hold them back. Stop one from its row, or from Running now on any device. - Quiet commands stop (since 0.29.0). A bash command of Pi’s that prints nothing for 15 minutes is stopped with the processes it started, and the call ends as timed out with what it printed, so a hung test run cannot hold a session or a subagent for good. A command that keeps printing, such as a long build, runs on, and Pi can give a call its own
timeoutinstead. The owner changes the time in Menu → Extensions, under Background tasks (0: no limit); while Background tasks is off, the time last set there stays in force. - Following a background job. In Menu → Background, expand Job status and recent outcomes. It shows up to 20 current attempts and 10 recent adverse outcomes per session. More workers opens the next page of immediate linked workers. In the owning session, Pi can use
background→jobs, thenstartwith the samejobId, the currentexpectedAttempt, and a new command to resume. Nothing retries by itself. Each launch has its own attempt ID, process evidence and output. A quiet command can be healthy; an exit code describes the command, not the result of the work. Recent timeouts, failures, stops and lost processes stay separate from the current attempt. Checking these records does not wake Pi or share worker commands or logs. - Background tasks. Since 0.24.0, Pi’s
backgroundtool starts a command without waiting for it: a dev server, a watcher, a long build or test run. It runs in the session’s folder, reads what the command printed since it last looked (the last 20,000 characters at most), lists the session’s tasks and how they ended, and stops one: every process it started, politely, then by force after 4 seconds. A task runs while any process of its group runs, so a command that starts a server in the background and exits keeps its task running. A daemon that leaves the group (a build tool’s) does not keep it running: the task ends, says which processes it left, and a stop ends them too. When a task ends by itself, Pi gets a message that starts with[background], with its exit code and the end of its output, as data; Pi can start one without it. Tasks that end together go as one message, which joins the run in flight at its next pause rather than starting another turn (a steer, as a subagent’s report is): several ending cost Pi one turn, not one each, and the answer it was writing keeps its place. A task Pi stops is not told about; one a person stops (in Running now) is, as Pi may wait for it (since 0.29.0). A task that prints nothing for 60 minutes is stopped, and Pi is told why; Pi starts a server or a watcher withquietMinutes: 0for no limit (since 0.29.0). In the conversation, that message shows as a card each, a group for several: the task’s id, how it ended and how long it took, its command, and the last 8 lines of its output as printed, with the rest behind Show all (a person who types[background]themselves keeps their message as theirs). Each command runs detached from the server, with its output in a log in the data folder (background/, in 4 MB segments), so it goes on across a restart from the app; stopping the whole service (systemd) ends it. A durable task watches each one, and after a restart finds the same processes again by their pid, start time, and a marker in their environment. A start is reserved before its process starts, so a tool call run again after a crash never starts the command twice: the watch adopts the processes it finds by their marker; with none left, it tells Pi the exit code the command left, or that how it went cannot be known. A start passes Lancet Guard as a bash command does, and plan mode blocks it (listing, reading, and stopping stay allowed). Each task shows in Running now, where anyone who may steer the session can stop it. While any runs, the session’s status line shows N in background, its row in the session list shows a terminal mark with the count, and the rail’s Running now button counts the session (since 0.25.0). A tap on that count opens Background (Menu → Background opens it too, also when nothing runs): the session’s commands, the newest first, and what the open one printed, as it comes. It asks again once a second while the task runs, so a dev server’s log scrolls by itself; a scroll back up stops it following, and Jump to the end goes on. A tap on another command in the row above the log switches to it. Stop is there for anyone who may steer. Watching a task takes nothing from Pi: what it reads next stays where it was, so Pi still gets every line it has not read. Past the 20,000 characters the sheet keeps, or past what the log still holds, it says how many bytes it did not show. Limits: 10 running at once in a session (the owner changes it in Menu → Extensions, under Background tasks); a log past 50 MB loses its oldest segments, whole, and a command that writes more than 200 MB in a quarter of a second, or more than 500 MB in 10 seconds, is stopped at once, and Pi is told why; the last 20 ended tasks of a session stay readable. Sessions only: not subagents or PiP. It needs bash andsplit. Since 0.30.0 it runs on Linux, macOS, and Windows (before, Linux only). Each platform knows a process by its pid and its start time together, so a stop never hits a process that took a task’s pid later. Linux reads/proc, and macOS readsps: a task is its process group, and a process that left the group is found by its marker. Windows has no process groups or signals: a task is its first process and what it starts (by parent and start time), held in a job object through a small PowerShell helper that can record completion while the server is down; it needs Git Bash, and a stop ends the processes by force at once. On Windows, a process in a task cannot leave its job, a process started outside it (through a service) is not followed, and a task does not say what it left running (Windows lists what is weaker there). - Extensions’ commands. A module can add commands to the message box (
/clock-zone Europe/Berlin), which do something without asking Pi: show a status, change a setting. They show in the suggestions with the app’s own, after them; a prompt template of the same name wins. What one gives back is a notice for you alone, or a card of plain text in the conversation for everyone there, which Pi never sees and which does not change whom Pi works for; Find in session and export include it. A conversation command is for whoever may steer (whoever drives, while people take turns); a global one is the owner’s, also while someone else drives; viewers get none. Each run is a durable task: sending the same text again after a lost reply gets the first run’s result, a restart never runs one again, and Running now shows and stops it. See Writing extensions. - A person’s role and the page’s scroll, for extensions. Since 0.27.0, two experimental members.
host.roleOf(personId)gives a person’s role (owner,guest, orviewer), orundefinedfor an id that is not a person here. It reads the role that core already uses, so a module that guards owner-only things can ask whether Pi works for the owner (host.requesterOfgives the id). The snapshot ofhost.browserhas ascrollfield,{ y, viewport, height }in CSS pixels, the same numbers that Pi’sbrowsertool shows as “scrolled 0 of 800px”. See Writing extensions. - Classifier calls, for extensions. Since 0.31.0,
host.classify(request)asks a classifier model (TypeSafe’s Jev, Cloudflare’s Clef, OpenAI’s GPT-6 Luna) typed questions about JSON state, through Pi’s model runtime and the owner’s stored provider sign-ins. A chat model is refused, a provider without a stored sign-in or key is refused before anything is sent, and a failed call throws. It never wakes a session. Pi Pocket chooses no classifier model for anyone: a call that names none uses the one the owner chose in Providers, and throws “No classifier model is chosen” when there is none. See the host reference. - Set up a classifier model (since 0.31.0). The classifier features (relay triage and its reply screen, run outcomes, stall verdicts in Agent Teams, screenshot triage in the browser, PiP’s ranking of query matches, and suggested lessons in Memory) all use one model that the owner chooses; Pi Pocket names none, so with none chosen they do nothing and fail open, as when the classifier is down. To set it up: sign in (Menu → Providers) to any provider that has classifier models: TypeSafe directly with a TypeSafe API key, OpenRouter, Cloudflare Workers AI, OpenCode, OpenAI, or GitHub Copilot. The provider’s row counts its classifier models (“1 classifier model”). Then pick the model under Classifier model in the same sheet; it lists only classifier models of providers you signed in to. Each feature module also has a Classify model setting (Menu → Extensions), empty by default, which names a classifier for that module alone. Classifier Hub says so when none is chosen. What leaves the machine: each feature sends the text it reads to the classifier’s provider, and the provider’s terms apply. Relay triage sends the sender’s name and id, the connector and channel, attachment names and types, and the message text (6,000 characters at most); its reply screen sends each reply in full (6,000 characters at most), secrets in it included. Run outcomes sends the first 1,000 and last 3,000 characters of a final answer. Stall verdicts send the session’s address, what it waits on, its last 5 tool calls with their arguments (each cut short), and the last 800 characters of its output. Screenshot triage sends each screenshot, the page address without its query and fragment, and the page title. PiP’s ranking sends the search words and up to 8 sessions’ titles, states, folders, and branches. Suggested lessons sends every person’s message and its sender. Values Pi Pocket hides from tools are taken out of run outcomes and stall verdicts first; nothing else is scrubbed.
- Folded inputs. An extension can send a message the conversation shows as one line: a short label, and a summary when the message has one. Tap the line to read the message. Tap the message for its sheet, where Show, Fold, and Hide choose how every input of that kind shows in this browser: as a message, as the line (the usual choice), or hidden until Find jumps to it. A hidden message still starts its turn. An extension’s browser code can pick one for you until you choose. The queue shows the same line. Export keeps the whole message in a folded block. Find searches the label, the summary, and the whole message, however long; Copy text copies all of it. An input the extension stored as its own kind is not a message you can send again. Peek tiles and PiP show the one line. The model still reads the whole message. Since 0.28.0.
- Drafts on a shared browser. Message drafts, folded pastes, and uploaded files stay with the person signed in, across reloads and Back. Signing out clears them and resets other open tabs; theme and layout stay as they were. On Back, a cover checks who is signed in; Retry checks again if the server cannot be reached. Old unscoped drafts are discarded. PiP keeps text across reloads, but its files only while the page stays open.
- What you sent before. ↑ in the message box goes back through what you sent from this browser in the current session (↓ comes forward, then back to your draft), and Ctrl+R searches it. The browser keeps up to 200 entries per person across sessions, with duplicates removed only within your session. Signing out clears this history. What 0.27 kept moves to its person the first time 0.28 opens signed in as them (a sign-out before that clears it); older unscoped history is discarded.
- Dictation. The mic beside Send, in the message box and in PiP’s, dictates with the browser’s own speech recognition, in the language the browser is set to. Words show in the box as they are heard and stay once the browser settles on them: at the caret while the box has the focus, after its text when it does not, with a space where they meet; words typed meanwhile stay too, and a phrase still being heard when you type or move the caret elsewhere finishes where it is, the next one going to the caret. It never sends by itself: tap the mic again (or Alt+V, which dictates into PiP’s box while PiP is open, else into the session’s) to stop, read it over, and send. Sending, leaving the session, closing PiP, or switching away from the tab stops it as well. What was heard is kept as a draft, like typing. While it listens the mic takes the accent, with a ring that breathes (still, with reduced motion), and the box says “Listening…”. On a phone while Pi works, the mic takes Send’s place until there is something to send. It needs a browser with the Web Speech API: Chrome, which sends the audio to Google’s servers to recognise it, and Safari, on iOS too; where there is none (Firefox), the mic does not show. Browsers give a page the microphone only over https or on localhost, as Pi Pocket is served through the Cloudflare Tunnel, Tailscale Serve, or on this device. A blocked microphone, silence, a missing microphone, or no network says so in a notice.
- Long pastes. Pasting more than 20 lines puts a placeholder such as
[Pasted text #1 · 240 lines]in the box; the message goes out with the text in its place. - Files at a tap. Inline code paths in Pi’s replies (
src/app.ts,app.ts:42), Markdown links to local paths (such as[config](/etc/app/web.env)), file mentions in messages, read/write/edit cards, and Changes open a viewer: text with line numbers and syntax colors (Markdown rendered too), images, and folders to browse, with @ Mention to put the file in the message box. Download saves a regular file (binary files, images, and text) to your device, even when there is no preview. Folders and special files have no download control. While the Files tile is open, they open there instead of in a sheet. Opening a file that is already shown reads it again, so after an edit the viewer shows the new text; the old text stays on screen until the new text arrives. Someone invited to one session sees its folder only, and only the owner opens Pi’s own folder and Pi Pocket’s data. For the owner, Ctrl+click (⌘+click on a Mac) on such a path, or on a row in the Files tile, shows it in the file manager of the machine Pi Pocket runs on (Files, Dolphin, Finder, Explorer), selected in its folder; so does the folder button in the viewer, with a mouse. It opens on that machine, not on the device you click from. - Files tile. Menu → Files (or Alt+E,
/files, or the launcher; the folder button in the top bar, where the pane has room) shows the session’s folder beside the conversation on wide screens, where the Browser and People panels dock (one of the three at a time), and full screen on phones. Each session remembers which panel it showed (Files and its tab, Browser, People, or an extension’s, such as Design): going back to it, reloading, or opening it in another tab of the same device shows that panel again; PiP’s floating panel stays as it is across sessions, and PiP as a board opens with no panel beside it. Its bar has a switch between Files and Changes (with the count of changes), the folder’s path, and close. Files is a tree of the folder that opens as you go (changed files carry an M, A, or D, folders holding changes a dot, and arrow keys move through it), a Go to file box that matches across the whole folder as the@menu does, and the file you pick, beside the tree when the tile is wide enough (600px) and in its place when not. Changes is the review below. Drag the tile’s edge to resize it. Esc closes a file open over the tree, and then the tile where it covers the conversation, as back does. - Find in session. Ctrl/⌘+F,
/find, or Menu → Find in session: every message, command, and note in the session, earlier history included, newest first; tap one to jump to it. - Stop with Esc. Esc twice stops Pi while it works.
- Session titles. A session is named after its first message; a long first message, or one that runs a skill or prompt template (
/skill:name,/review …), gets a short title written by the session’s own model (its cost counts as the session’s), unless someone renamed it first. A command’s title is written from what it sends, not only its name. A reply that is no title, such as a model thinking aloud or one cut off at its length limit, leaves the first message’s. - Prompt templates. Pi’s prompt templates (
~/.pi/agent/prompts/*.md, the project’s.pi/prompts/*.md, and the paths in Pi’s settings) show up as slash commands:/review src/auth.tssends thereviewtemplate with its arguments filled in. Pi’s skills do too, as/skill:name what to do: Pi gets the skill’s instructions with the request. Theskillssetting of Pi’ssettings.jsonworks as in Pi:-pathand!patternleave skills out,+pathputs one back, and a relative entry starts from Pi’s folder (since 0.28.0). - Project trust. A project’s own skills (
.agents/skills) load only in a project Pi trusts, as in Pi’s terminal app. When a session’s project has some and nobody has decided, the owner is asked above the message box: Review says what trusting it loads, here and in Pi’s terminal app, and offers to trust the folder, the folder above it, or not; Don’t trust answers at once, and Not now (×) puts the question off in that tab./trustor Menu → Project trust changes the answer later. Answers are saved where Pi’s terminal app keeps its own, so a project trusted there is trusted here too. Pi has the skills from its next message. A project’s.pi/skillsload until it is told “Don’t trust”, then stay out too (Pi’s terminal app asks before loading them at all); the sheet lists both kinds and says what each answer does to them. Only the owner is asked. - Changes. The Files tile’s Changes tab (or the count of lines added and removed in the top bar,
/changes, or Menu → Changes): every uncommitted change in the session’s folder as one review, file by file. Summary counts include new text files before and after staging (an untracked one over 2 MB shows no count); binary files have no line counts. Each file has a header that stays in view while you scroll its lines, with a fold chevron, what kind of change it is (M, A, D, or R in a small tile), its counts, and a Viewed checkbox button that folds the file; viewed files stay folded on this device until their diff changes again, and the summary says how many you have seen. Diffs show side by side when there is room and unified when not (Auto, Unified, or Split, as you pick, with long lines wrapped or not), with line numbers on both sides, syntax colors, and the words that changed within a line marked; a changed line is paired with its new version by likeness, not just position. The unchanged lines between changes are a tap away, a few at a time or all at once, read from the file as it is now (and only when it still matches the diff). Tap a line number to open the file there. A tree of the changed files (beside the diffs when wide, behind Files when narrow) jumps to one, a filter narrows them, and π only keeps the files Pi edited. Diffs load as they near the screen, a few at a time, and the review looks again a moment after Pi moves on. Keys:j/kthe next or previous file,n/pthe next or previous change,vviewed,sthe layout,wwrapping. From a file’s header, ↺ (tapped twice) puts it back as the last commit has it, or deletes it if it is new; Pi is told, and it waits while Pi works. A file with a merge conflict, or a rename, is left to git. Outside a repository it lists Pi’s edits alone. Someone invited to one session sees the changes in its folder only. - Running now. Activity → Running now (also in the launcher) shows, in the conversation’s place as the subagents board does, everything at work and everything scheduled in the sessions you can see. A Coming up timeline at the top has a lane per session: its scheduled messages as marks at their times (a diamond for a repeat, a ring for one that goes out once, amber while a spend limit or a lost right to steer holds it), a bar for how long the session has been at work, and a line at now; 24h, 3d, or 7d, it scrolls sideways, hovering a mark says what and when, and hovering (or tapping) a session’s bar shows the last message sent to it, which its run works on. Under it, filter pills (All, Running, Scheduled, Needs approval, Held, Paused) and a search, then one row per session: the session, with its folder, Busy, calls to approve, and Stop on one line under its name; Now, what is at work there from Pi Durable’s task graph (answers, tool calls, subagents, compactions, background tasks, shell and extension commands, PiP’s follows and watches) with how long each has been at it, Stop where it can stop, and the session’s model and spend; and Schedule, its scheduled messages with the next time, the repeat in words, and how many times each went out. A schedule picked there or on the timeline opens at the side on a wide screen, under the rows on a narrower one, and in a bar at the bottom on a phone: its message, repeat, next time in its own zone, who set it up, its next five times, Open session, Pause or Resume, and Cancel (a paused one has no marks on the timeline); Needs you (calls waiting for approval, held schedules) and Next up stay beside it. Esc, back, or × closes it; it asks the server again every 2 seconds while it shows.
- Watch a pull request. Menu → Watch pull request,
/watch(or/watch 123,/watch <PR address>), or Pi’swatch_prtool, which it can start after opening a PR (Pi only for its folder’s repository, by number; a person for any): until the PR is merged or closed, Pi Pocket looks at it on GitHub every few minutes with theghcommand signed in on the server, and tells Pi in the session what needs doing, as a message sent through the watch for whoever set it up: checks that failed on its last commit (once all of them finished, with the end of each GitHub Actions log), conflicts with its base branch, and new comments and reviews. Only comments from the repository’s owner, and from organization members and collaborators whom GitHub says can write to it, count, and bots’ reviews (a member may only read, a collaborator only triage:ghasks GitHub, at most every ten minutes for each person, and GitHub tells only an account that can push there, so on a PR where yours cannot, such as a fork’s PR to someone else’s repository, only the owner’s count, and the watch says so); your own account’s (which Pi posts as) only when they mention @pi in their own words (not in a quote or code), so Pi never answers itself. Comments keep their lines (a suggested change is code), 30 at most in a message (read newest first, so a burst never hides the new ones); each is told once, and what does not fit in one message comes in the next; nothing goes while Pi is busy there or, with take turns on, while someone else drives (the bar says it waits, and nothing counts as failed); and a watch sends 10 messages at most. While Triggers is off it asks GitHub nothing. A bar above the message box shows the PR, its checks, and how many messages went, with Stop. It ends, with a line in the chat and a notification, when the PR is merged or closed, when there is more to tell than it may send, after two weeks with nothing new, or after an hour of looks that failed (the bar says why). Logs reach Pi fenced as data, which nothing in them can end early, and titles, check names, and branches come on one line, quoted, as data too. It needsghinstalled and signed in (gh auth login) on the server, on GitHub Enterprise hosts too: a host other than github.com is used only whenghis signed in there (gh auth login --hostname <host>; a token only inGH_ENTERPRISE_TOKENdoes not count), for Pi, PiP, and people alike, and Pi names a PR by address only on github.com or its folder’s own host. - Watch a repository. Tell PiP in plain words, such as “watch acme/api: when CI fails on main, fix it and tell me” or “when I open an issue labelled pi in acme/web, work on it”: it sets up a watch that looks at the repository on GitHub every few minutes with
gh(no public address needed, unlike a webhook), and what is new there (issues and pull requests opened, CI failing on a branch, releases, someone writing @pi, as a word of its own, in a comment or an issue) comes to PiP, or to a session you name, with your instructions; PiP then acts on it: it starts a session in the repository (its checkout here, or a clone it makes in the data folder’srepos/), sends it the task, follows it, and tells you what came of it. A watch can be narrowed to a label, to issues assigned to you, or to a branch’s CI (mentions of @pi are not narrowed). CI is the branch’s own runs: pushed to it, scheduled, started by hand or through the API, or started by another workflow, in the repository itself, never a pull request’s or an issue’s (a renamed repository keeps working). Only repositoriesgh‘s account can push to can be watched or worked on, and issues and pull requests count only from the repository’s owner, and organization members and collaborators whom GitHub says can write to it (and bots’ pull requests), unless you turn on From anyone on the watch in Menu → Webhooks and watches (PiP cannot); @pi always only from them. PiP works in a checkout of a session you started, or in a clone it makes, which appears only once complete (a clone a restart cut off leaves a~part-…folder, removed at the next clone of that repository); a different folder already where the clone goes is reported, never overwritten. While Triggers is off, watches wait and ask GitHub nothing; while PiP is off, a watch to PiP holds what it found, and its note says so. What came from GitHub is fenced as data, each thing is told once, ten in a message and twelve messages an hour at most (the rest come next), and a look that fails is tried again, less often each time, with the reason shown. Menu → Webhooks and watches lists the watches, to remove one; or ask PiP (“what are you watching?”, “stop watching acme/api”). PiP can also start a PR watch on a session (“see acme/api#12 through”), and Pi’s ownwatch_prtakes a PR in another repository it can push to by its address orowner/name#12, telling Pi to work in a checkout of it. Part of the Triggers extension. - Webhooks. Menu → Webhooks and watches: an address that other services (GitHub, a deploy, a monitor) post to, each post becoming a message to Pi in a session, or to PiP, as the work of whoever made the hook: their instructions first (“When a deploy fails, find out why and fix it”), then what was posted, trimmed of noise such as API addresses, and fenced as data. PiP gets them as folded cards and decides what to do: start a session, message one, or tell you. A GitHub hook is signed: GitHub gets the address and, separately, a secret (its Payload URL and Secret), and a post gets in only with GitHub’s signature made with it, so whoever sees the address (the repository’s admins do, in its settings) cannot post as the hook. Unless a GitHub hook is made From anyone, what people outside the repository wrote does not reach Pi (the repository’s people are its owner, and the organization members and collaborators whom GitHub says can write to it, asked through
gh, which must be signed in to the host and able to push there, or else only the owner counts; bots count on pull requests and what is said on them, never on issues): a post an outsider started (their issue, comment, pull request, review, or discussion) is dropped with a 202 that says so; in a post the repository’s people started, the body of anything an outsider wrote in it (the issue under a member’s comment, a review thread’s comments) is left out, its title kept; a workflow run goes only when a branch of the repository itself started it (a push, a schedule, a manual or API dispatch, or another workflow), so one a pull request (a fork’s too), an issue, or a comment started is dropped, and so is one whose head repository GitHub does not show; workflow jobs, check suites, and check runs do not say where their run came from, so they are dropped too, as are a commit status on no branch of the repository (a fork’s commit) and a security advisory someone reported; and pushes, releases, and other posts that name no author go as they came. A non-GitHub post whose JSON carries onlymode(andtext) says how it lands:steerjoins the run that is going at its next tool round andfollowUpwaits for its end, carryingtextalone; a value that is not a mode is refused with a 400, while other JSON payloads (including ones with their ownmodefield) pass through as before. A hook for another service has the secret in its address instead: anyone who has the address can message Pi as the hook’s person. New secret shuts out the old one, for an address or a secret that got out. Anything else gets 404. A post GitHub sends again goes to Pi once, GitHub’s ping gets an answer and is nothing for Pi, a hook takes 30 posts an hour of up to 5 MB each (the server reads eight at a time, two to one hook, each within 15 seconds; past that, 503 with Retry-After), a hook to PiP answers 503 while PiP is turned off, and a post that cannot go now (someone else drives, a spend limit) gets a 409 that says no more. Services must be able to reach the server: through a tunnel, a public address works for GitHub. People who can steer make hooks for the sessions they can reach; each sees their own, the owner every one. Choose Edit prompt to change a hook’s instructions, then Save or Cancel. Only the hook’s creator or the server owner can save changes, and they need steering rights. You can enter up to 2000 characters. Leave the instructions empty to ask Pi to summarize what happened and whether anything needs doing. Saved changes apply to later posts. The address, secret, destination, and usage history stay unchanged. Webhooks and the Relay (the next item) deliver the same way, through core’s inbox: the same fence, the same once-only key, and a limit for each source. The watch and webhooks are the Triggers extension: turned off, watches wait and hooks answer 503. - Relay. On for new profiles created with 0.31.0 after beta 3; existing profiles keep their previous setting. Menu → Extensions → Relay turns it off or on, and restarts and updates keep that choice. Installation adds no connectors, uses no credentials, and starts no connection. Relay lets a chat service or a feed send messages to a session, with no separate relay service and no public address: each connector makes outbound connections only (it polls, or keeps a stream open), and delivers inside the server. Menu → Relay (the owner only) adds a connector: choose its kind, a session, and instructions for Pi, then its fields. Discord needs a bot token, and the bot’s Message Content Intent turned on in the Developer Portal; Slack uses Socket Mode, with an app token (
xapp-…) and a bot token (xoxb-…); Telegram needs a bot token; Matrix needs a homeserver address and an access token; RSS needs a feed address; HTTP polls any JSON address, with headers, the fields of an item, and an optional reply address. For a chat service, give channel, chat, or room IDs, or leave them empty for all the bot can see; for direct messages, Discord has its own switch. Each message comes to the session as[via relay <name>]: the owner’s instructions first, then the sender, then what was written, fenced as data in<relay-message>tags. Pi answers with therelay_replytool, which only a session that a connector delivers to is offered; a reply goes to where the message came from, and a call that runs again sends once. On Discord, Slack, Telegram, and Matrix, Pi can send images and files from the session’s folder with a reply (10 files; 10 MB each on Discord, 50 MB on the others, 100 MB in all; never a hidden file, a.envfile such asprod.env, a file outside the folder, or the server’s data), and can download an attachment that a person posted withrelay_fetch, into.relay/in the session’s folder, where it reads an image (25 MB at most, 20 MB on Telegram); the token and the file’s link never reach Pi. Slack needs thefiles:writeandfiles:readscopes for this, and Matrix fetches nothing from an encrypted room. Each event is delivered once, also across restarts: what came waits on disk until the session takes it (a busy session, a spend limit, or a restart do not lose it). Messages from bots, and from the connector’s own account, are dropped. Mention only takes messages that name the bot, or that come in a direct message. Owner IDs are your own accounts on the service: only a connector that authenticates the sending account can mark a match as trusted. A display name is not proof. HTTP and RSS never identify an owner. Trusted accounts have no per-author limit; every other author has 10 messages an hour by default, and a connector 30 an hour (both can be changed; a feed’s items, RSS, or HTTP without an author id field, have only the connector’s limit), and a message over a limit is dropped and counted. The first look at a feed or an address takes nothing that was there before. Tokens are kept on the server only (a file of mode 0600 in the data folder’sx.pocket-relay, which Pi’s tools cannot read), never reach the browser (it only shows that one is set), and are hidden from transcripts and errors. A connector that fails shows why and tries again, less often each time; a refused token stops it until you edit it, and an error never stops the server. Drop-in extensions can add kinds of connectors (Relay connectors). - Relay triage. On for new profiles created with 0.31.0 after beta 3; existing profiles keep their previous setting. The owner can turn it off in Menu → Extensions. It does nothing while Relay is off, or without a chosen classifier. Installation chooses no classifier. A provider sign-in alone does not select one. Without a shared or module classifier, messages and replies pass unchanged, with no classifier call, charge, warning, or model prompt. Choosing a shared classifier later activates this screening while the module is on. Before a relay message from a sender the owner did not mark reaches the session, a classifier model reads it: spam and injection attempts (text that tries to change Pi’s instructions or get secrets) are dropped with one line in the connector’s status, and the rest are delivered with a
Triage:line inside the fence that names what came (question, bug report, feature request, chat), so Pi knows what arrived. A classifier that fails or is slow (5 seconds) delivers the message unlabelled, as without triage: nothing waits on it. The classifier is the owner’s shared choice (see “Set up a classifier model” above), or this module’s own Classify model setting; with neither, nothing is screened. A classifier that keeps failing (5 calls in a row) raises one notice. Outbound screening (since 0.31.0). With Screen replies before they leave on (the default), the same classifier reads each reply Pi sends throughrelay_reply, and a reply it is sure holds a secret, a key, a token, or private data is held: the tool says nothing was sent. Every reply goes to the classifier’s provider in full, so a secret in it leaves the machine before it is checked. The screen is best effort, not a boundary: files are judged by name only, encoded text passes, and a classifier that fails or is slow lets the reply go. A reply to a message from an owner (a sender marked as owner on the connector) is never screened. A third party’s module can screen deliveries the same way (Relay connectors). - Spend and limits. Menu → Spend shows a large total and usage bars (against a limit, or the largest spend in that group): what Pi spent per person (the work goes to whoever asked for it) and per session, subagents included. When you can see a lead and at least one of its linked sessions, Team total adds their spend even if no budget is set. The breakdown shows each visible session with its own subagents counted once. The owner can limit a session or a person: past the limit Pi takes no new messages there, scheduled messages and goals stop, a run that crosses it stops, and subagents’ reports wait instead of starting Pi again: the subagents bar says why (the owner gets Raise it), and they go to Pi together once the limit is raised, those that were in the queue when the run stopped included. The status line shows a session’s spend and limit; for a session with a limit that started linked sessions (Agent Teams), the spend it shows, here and in the sheet, is the team’s, as its limit counts it. PiP’s row shows its limit too, and PiP’s notices (such as a stop at its limit) show in its panel. Spend per person counts from the first start of a version with this feature; what was spent before shows for its sessions only.
- Usage. For the owner. Each time a model provider answers, the headers of its response say how much of its limits is used; Pi Pocket keeps the newest of each provider in memory (a restart starts empty) and shows it. The status line gets a Provider usage item before the spend (hide or move it in Appearance → Status line items): the tightest window of the open session’s provider, as “7d ▬ 59% used” (the bar fills with what is used), then “59% used”, then “59%” as the line narrows, with a mark and a word when the provider is Low (under 15%) or Limited (with a countdown, as “Limited 1:12”; also while the limit gate holds the whole account, or the session’s own model, even before any numbers came; another model’s limit shows only as a detail, “claude-fable limited · 1:12”, and a window with under 1% left says “>99% used” and is Limited only once it is used up). It shows nothing while the provider has no numbers and no hold. A tap opens the list: a popover above the status line, a bottom sheet on a phone. The open session’s provider shows in full (5-hour and weekly windows, or requests and tokens, each with its reset and “as of 3 min ago”); every other provider takes one line (limited first, then low, then the least left), a tap opening one at a time; N without usage data folds the providers that have not answered yet or send no limits; more than six others get a filter; Menu → Providers is at the foot. The model sheet’s first row says the same for the session’s provider (“Anthropic ▬ 7d 59% used · All providers ›”) and opens the list, also when the item is hidden. It never asks a provider anything: the numbers come only from the responses Pi’s own requests got. Guests, viewers, and people invited to one session get none of it. Providers that send no limit headers (many do not) show as not reporting usage.
- A session’s folder. New (or Alt+N) opens a folder picker laid out as a desktop’s file dialog, in the folder of the session you are in (or the server’s folder, on the home screen): the path on top (tap a part to go back up, or its end to type a path), places at the side (Home, Computer — or each drive letter on Windows — the server’s default workspace when it is another folder, and recent folders; pin the default workspace there to start every new session in it, in this browser, since 0.28.0), the folders where you are, and Cancel and Open at the bottom, with Own git worktree and Show hidden beside them. With a mouse, a click selects a folder and a double click goes into it; on a touch screen, a tap goes into it. Open starts the session in the selected folder, or in the one you are in, as the Folder: line says. Keys work as in a file dialog: arrows, Enter, Backspace to go up, letters to jump,
/or Ctrl+L to type a path, Ctrl+Enter to open. The star on the Folder: line keeps that folder among the places as a favorite (tap it again to let it go). Favorites are each person’s own, saved on the server, and change at once on all their devices; while New session is open, Ctrl+1…9 (⌘1…9 on a Mac) starts a session in one of the first nine, with Own git worktree as it is set. New folder makes a folder where you are and goes into it; a typed path that is not there yet offers Create it. Menu → Working directory (or/cwd) moves a session with the same picker. Someone invited to one session cannot browse or make folders. The launcher lists these too: New session here for the folder you are in, and New session in and its name for each favorite; each starts a session there at once, without a worktree of its own. - Branch. The top bar shows the git branch the session’s folder has checked out, under the session’s title beside the folder, and follows it when Pi or anyone else switches (in a terminal too, within seconds). Tap it (or Menu → Branch, the launcher,
/branch, or the branch in Changes, which stays in sight however long the folder’s path) for the branch picker, down from it: the folder’s branches with the current one first, then the newest, each with its last commit and how far it is ahead of or behind its remote branch, and the remote branches it has no local branch for. Type to search; a name that is no branch yet makes one from what is checked out (spaces become dashes), and a remote branch becomes a local one that follows it. Uncommitted changes come along, and when git would overwrite them it says so and nothing changes. A branch checked out in another worktree is listed but switched to only there. Switching changes the files under Pi, so as with moving the session to another folder it waits while Pi works and, while taking turns, is the driver’s; Pi is told. Viewers see the branch; someone invited to one session can look but not switch. - Worktrees. A new session (the New session sheet) or a fork (the message sheet) can work in a git worktree of its own: a branch, apart from the folder it came from, which starts with that folder’s files as they are. Menu → Worktree removes it (not while Pi works in it); its branch stays.
- Gondolin micro-VM sandboxes. Off by default; turn on Gondolin in Menu → Extensions (owner only). Runs a session inside a dedicated QEMU Linux micro-VM (
gondolin://) seeded with a snapshot of a project folder, with host-side secret/env stripping, optional per-domain HTTP allow-list (or NIC-level offline mode), and explicit owner review before applying diffs back to the host repo. Host browser, background jobs, MCP tools, and host-path artifacts are blocked for isolated sessions. - Continue a Pi session. A session of Pi in the terminal can carry on here. The owner picks it from Continue a Pi session in the New session sheet (or the launcher): Pi’s sessions on this computer by folder, newest first, with a search through their titles, folders, and words, and for one its folder, model, and last messages. Continue in Pocket makes a new session in its folder, with its model when that one is signed in here, and its whole conversation to read. Pi gets the context Pi itself builds from the file: what a compaction summarized, and Pi’s context edits, stay as Pi had them. Pi’s system prompt and extensions’ state stay behind, and nothing Pi did runs again: a tool call that never finished gets a result saying so. The session’s file is only read. The list marks sessions already continued here, and says when Pi went on in the terminal since.
- Diagrams and math. Mermaid fences render as diagrams. Inline
$…$, display$$…$$, andmath,latex, ortexfences render as LaTeX. A closing$must have no space before it and no letter or digit after it, so prices and text such asPATH=$HOME/bin:$PATHstay plain. The owner can turn Diagrams off in Menu → Extensions; the original text remains in the conversation. - Export. Menu → Export as Markdown (or
/export): the whole history as a Markdown file, with tool calls folded into<details>blocks. - Any provider or model. Uses Pi’s own model runtime and sign-ins (
~/.pi/agent/auth.json): pick a model and thinking level per session from the menu that opens up from the model chip in the message box (arrows and Enter pick, with a search box when there are many models), and sign in to providers (API key or subscription) from an inline card in the Providers sheet; expired sign-ins come first with a warning pill. API keys cannot be empty or only spaces. A failed sign-in shows a short message, technical details folded away, and Start again. A provider search with no matches offers Clear search. Pi’senabledModelssetting supplies the Scoped list, using Pi’s own pattern matching (including wildcards and thinking-level suffixes). When any scoped models are available, [scoped | all] beside the Model heading switches between that list and every model with a configured sign-in; the active choice uses the primary color. Tab in the search box (or in the picker, when it has no search box) switches it too, also when the search has no matches; from the picker’s other controls, Tab moves the focus. On a touch screen, each choice takes a tap about 40px across. Each opening starts scoped; without a scope, when no pattern matches, or when/model …searches for models only outside the scope, it shows all instead. Switching the list keeps the search and changes no model or setting. The default-model picker has the same switch. New sessions start with the owner’s default model and thinking level: Make default under the thinking levels makes the session’s the default, and Menu → Default model (or the launcher) picks one without changing a session; without one, a new session starts with a trusted project’s model/thinking default, then the last model anyone picked, then Pi’s global default. Since 0.29.0 a thinking level belongs to its model: a model picked with no level, or a new session on the last model picked, takes the level Pi’s TUI keeps for it in Pi’smodelThinkingLevels, limited to that model’s levels. Pocket reads that map and never writes it. Subagents, linked sessions, and PiP’s own conversation do not read it. To use project defaults, Menu → Default model → Clear owner default: use project defaults, then last picked. A project pin needs bothdefaultProvideranddefaultModelin the final session folder’s.pi/settings.json;defaultThinkingLevelis optional (offwhen omitted) and limited to that model’s levels. Thinking-only project settings do not change another source’s pair. Untrusted settings use normal fallback; a settings-only project appears in the owner’s trust flow. Trust affects only later new sessions, never the open one, and no project setting can grant itself trust. Invalid consulted trusted settings stop creation with a contained error, without a model swap. Known unsigned project models stay selected. Imports, forks, subagents, manual choices, and PiP’s own conversation keep their previous behavior. Extra per-project skill/prompt paths and per-project run policy are not supported yet (project defaults) A model is always one a person chose: a default that is not signed in now stays the default (the chip shows it, and the first message says why it fails) rather than give way to another model, and with no model chosen anywhere a new session starts with none until someone picks one. A subscription sign-in that its provider will no longer renew (OpenAI’s refusing a refresh withinvalid_grant, say) is found when the owner opens the Providers sheet, when a subagent on another model or PiP is about to use one of its models, or when a run fails on it: the sheet marks the provider needs sign-in with what the provider said, the model menu marks its models, the owner (alone) gets a notice, and subagents on other models and PiP use none of its models until someone signs in again. A session on one of its models, and a subagent on that session’s model, are not checked first: they try it, and their runs fail where you see them. Subagent models gets a full-height pane on the right of the owner’s Providers sheet on wide screens, and comes first on phones. It lists every signed-in model by provider, with a box to find one when there are many: each one checked is a model Pi may start subagents and linked sessions on; with none checked (the default) they run on their session’s model, and with some checked they run only on those, never on the session’s own model unless it is checked (see Background subagents;subagentModelsin~/.pi-pocket/config.json). A tap changes that one model alone, so quick taps, and two tabs at once, keep every choice. An allowed model that is not signed in now stays listed, marked, so it can be taken off. Star a model in Providers to save it as a favorite, independently of its subagent checkbox. All models / Favorites filters this list and the session/default-model picker; favorite models come after the current model and before other models in the picker, within the active scope. Favorites belong to the signed-in person in this browser and survive reloads; they do not sync between devices. - Multiplayer. Any number of browsers can watch and steer the same session live. The status line under the message box shows how many are here, how full the context is (after a compaction, an estimate marked ~ until the next answer measures it), the cache hit rate, the cost, and a pill that says whether Lancet Guard is on (it opens Extensions). Reply speed in Appearance (or the launcher) adds how fast the last answer came: its tokens per second and how long its first token took (a response delivered in one buffered flush has no speed, only that wait). It is off until you turn it on, in each browser. On a touch screen, a tap on the line says in a notice what its items mean. On a narrow screen the line keeps to one row where it can. Where it does not fit, it gives up these in turn, only as far as it must: the speed’s long words (“42 tok/s · 1.2s”), “1 here” while you are alone, the word “guard” (the shield stays), the word “context” (the meter stays), the cache, and the wait for the first token. “Sign in another device” makes a one-time invite link, a QR code, and a short code to type on the other device’s sign-in screen. The owner can tick Sign in as me (owner) to sign their own other device in as the owner, with the owner’s notifications, instead of as someone new. Messages show who sent them.
- Profile pictures. Account → Your name has Add photo and Remove photo. The picture is cropped to a square and shrunk in the browser, kept in the data folder, and replaces your initials in the people lists, the rail, and on your messages for everyone who can see you.
- Working together. The top bar shows who else is in the session (an avatar with a mark that greys when their tab is in the background, and how many more), and “Alex is writing to Pi…” warns before two people steer at once. The People panel opens beside the conversation on wide screens, where it takes the Browser panel’s place, and as a sheet on phones. Its header counts the people here; the roster shows their online or away state, typing, and role. A Take turns card starts or turns off shared driving with the same permissions as the menu. It has:
- Chat for the people in the session, which Pi does not see. Your messages are right-aligned accent bubbles; other people’s are left-aligned, with their name and time above. Quotes sit above the bubble, and the pill-shaped message box keeps a dismissible quote strip. The latest pin stays above the chat. Type
@to mention someone (they get a notice wherever they are), tap Discuss under a reply of Pi’s to quote it, and tap a chat message to Send to Pi, pin, or copy it. Changes show up here as activity lines (“Alex stopped the run”, “Tanner switched the model to …”, “Alex allowed the bash call: …”), and as a notice to everyone else in the session. - Pinned replies and chat messages.
- Notes: one shared page per session. This browser keeps your unfinished edit for your account and session through tab or panel changes, switching sessions, and reloads. Signing out clears it. Save, Cancel, or Use theirs clears that edit, not a newer draft from another browser tab. Saving over someone else’s newer save still asks first, including after you return to a draft. If browser storage is blocked or full, the draft stays until a reload and a warning asks you to save first.
- Under Pi’s answers: emoji reactions, Discuss, and Pin. Queued messages show who queued them. Approved or denied tool calls show who decided.
- Chat for the people in the session, which Pi does not see. Your messages are right-aligned accent bubbles; other people’s are left-aligned, with their name and time above. Quotes sit above the bubble, and the pill-shaped message box keeps a dismissible quote strip. The latest pin stays above the chat. Type
- Take turns. Menu → Take turns: one person drives and only they send to Pi or change its settings. Others tap Ask to drive, the driver hands over, and anyone can take the wheel when the driver has left (the owner always can). Anyone who can steer can still stop a run.
- Roles and invites. An invite can let someone steer or make them view only (they read, react, and chat, but cannot send to Pi, approve, or upload). It can cover every session or only this session, and lasts 15 minutes, an hour, a day, or a week (Expires after); either way it works once, and a restart keeps it. Changing what the sheet’s invite grants, or how long it lasts, ends the one it showed; New invite makes another and leaves the one before working. Only the owner can make an owner invite (Sign in as me (owner)): it makes no one new, but signs the device in with the owner’s token, so it has full control, works once, and always expires in 15 minutes; rotating the owner token (
--rotate-token) signs out every device signed in that way, and ends owner invites not yet used. Menu → People lists everyone, who is online, and when the others were last here. The owner can change what each person may do or remove them. The session list shows who is in each session, and a dot marks new chat messages. - Notifications. Menu → Notifications turns on push notifications for a device: Pi finished (or Pi stopped with an error, with why: a run that failed with no answer of its own, as when its context could not be compacted, says so too, and the open session keeps a “Run failed” line until the next run starts; since 0.28.1), Pi needs approval, someone @mentioned you, or a chat message in a session you take part in. You only get them while you are not looking at that session. An approval can be denied from the notification, and allowed there when the whole call fits on one short line. The home-screen icon counts the sessions that need you. They need an https address: the Cloudflare Tunnel or Tailscale Serve, or another tunnel such as ngrok in front of This device only (
--access local). On iPhone, add Pi Pocket to the home screen first. The server signs pushes with its own keys in~/.pi-pocket/push.json. Signing out or switching accounts turns off push for that browser. If its device cookie is missing or no longer matches a subscription, all Web Push devices for the departing person must turn notifications on again. Rotating the owner token stops Web Push on all owner devices, not guest devices. Older subscriptions without a sign-in binding must be enabled again; preferences stay. If the server cannot save a device revocation, it turns off Web Push for the departing person instead. If it cannot verify or save the change, the browser does not complete sign-in or sign-out. The service worker checks the current sign-in before showing a queued push. The server checks that same device binding before accepting an answer from the notification. If the server cannot be reached, it shows none of the message. In a host around Pi Pocket (an app such as Pi Pocket GUI), they come as the app’s own notifications, with no https address needed, while the app runs (docs/embedders.md). - Run outcomes. On for new profiles created with 0.31.0 after beta 3; existing profiles keep their previous setting. Menu → Extensions turns it off or on, and restarts and updates keep that choice. Installation chooses no classifier. With neither a shared nor a module classifier chosen, reports and notifications stay unchanged: no verdict, classifier call, charge, warning, or model prompt. A provider sign-in alone does not select one. Choosing a shared classifier later activates labels while the module is on. When a run finishes with a final answer, the module can label the report delivered to its orchestrating parent (linked sessions and subagents), its completion notification, or its PiP follow report as Completed, Needs input, Blocked, or Outcome unclear. This is what Pi reported, not proof of completion. Parent reports retain their original answer, sender, and routing, with a separate attributed classifier verdict. A normally finished answer that requires a branch choice can be Needs input. Parent reports get labels even without notification subscriptions or anyone watching. The module sends the first 1,000 and the last 3,000 characters of the final answer (so a closing question is read) to the classifier (the owner’s shared choice, or its own Classify model); with none chosen it does nothing. Reports and pushes wait for the label for 1.5 seconds at most, so they can come that much later, and a notice is dropped if a new run began meanwhile. Values Pi Pocket knows to hide are removed first. A failed, slow, or low-confidence call leaves the notification or report unchanged. Failures, stops, stalls, empty answers, and approvals keep their existing paths without classification. The same child answer shares one cached verdict across surfaces in this process; a restart clears that bounded cache.
- Classifier Hub. The owner can open Classifier Hub from the menu or launcher. It shows counts per integration and the last 60 completed classifier calls, with the verdicts, failures, or timeouts. It shows what the provider answered, not whether Pi Pocket acted on it. The hub tracks the built-in integrations regardless of which classifier model each one selects. It makes no new calls and keeps no prompts, replies, screenshots, or transcript IDs. Its counts reset on a restart or when the hub is turned off.
- Built-in browser. Menu → Browser (or Alt+B,
/browser localhost:5173, or the globe in the top bar while a page is open; on a phone, a dot on the places button by the message box says so) opens a real Chromium page that runs on the server: beside the conversation on wide screens, full screen on phones. Type an address (localhost:5173,example.com), or (the owner) tap a row under Running on this machine on the start screen; a green dot in the rounded address field marks an open page. Tap, drag to scroll, and type into the page (the keyboard button sends text from a phone). The size button switches between fitting the panel (the page follows the panel when it changes size), desktop (1920×1080), phone (390×844), and tablet (820×1180) sizes, and the console button shows the page’s logs and errors, with a warning-colored error count. Pi’sbrowsertool uses the same page: it opens addresses (dev servers, HTML files on the machine, any site), reads a snapshot of the page’s text and controls, clicks, types, takes screenshots it can see, reads the console, and runs JavaScript in the page, while everyone in the session watches. Each session has one page, in a browser context of its own; links that open a new tab open there instead, and dialogs are accepted. Anyone in the session can watch; using the page takes steering rights (and the wheel, while take turns is on), the addresses people open show in the chat, and only the owner opens files from the address bar. The browser reaches what the server reaches,localhostand its network included, and Lancet Guard does not check it (see SECURITY.md). A restart closes the pages, and each opens again at its last address and size. Where the panel covers the conversation, Esc closes it, unless the page has the keys (then Alt+B does). In plan mode Pi may look at pages but not click, type, or run scripts in them. It needs Chromium, Chrome, Brave, or Edge on the server (orPI_POCKET_BROWSER); the owner can turn it off in Extensions, which closes the panel too. - Artifacts. The
artifacttool publishes versioned HTML pages, Markdown documents (shown in the app’s theme), or SVG images. Give itcontent,editsagainst the latest version, or apathto a UTF-8 text file on the server (up to 2 MB). A path can be absolute, start with~/, or be relative to the session’s folder. The file is copied into a durable version, not linked: changing or deleting the source does not change the artifact. For a new artifact,.html,.md/.markdown, and.svginfer its type; a path update keeps the existing id’s type. A page can carry a bundle of files (since 0.26.0).assetsadds up to 200 entries, each{ name, path }(a file on the server, binary allowed, copied and not linked) or{ name, content }(UTF-8 text): images, fonts, stylesheets, scripts, data files, or more HTML pages. A name is a relative path of letters, digits, dots, underscores, and hyphens, up to 200 characters, with no.or..segment. A new version keeps the assets of the one before it; an entry with the same name replaces one, andremoveAssetsdrops some. One asset is up to 5 MB, and one version’s assets up to 20 MB. A relative URL in the page (assets/logo.png,about.html) loads from the bundle in the viewer, in an inline card after Run, in the artifact’s own tab, and in a published link. Each file is sent with the sandbox’s policy,nosniff, and a type from its extension (an unknown one is never HTML). Assets are stored once for each content hash. A private page reaches its assets through a signed address that lasts 12 hours, so a page left open longer loads new assets only after a reload.group(a lowercase slug) puts artifacts together as variations of one design, andkind(pageordeck) says what a design is; Design uses both. Artifacts from before 0.26.0 work as they did.inline: true(since 0.28.0, one tool; before it a second tool,artifact_inline, sent almost the same schema again on every request) is the same store for HTML only (contentoredits, no path, notypebuthtml): the call shows as a card in the reply, between Pi’s words, instead of a link (see Rich replies). Pi’s guide says when to use which: the card for a small interactive piece that belongs to what it is explaining, the viewer for a whole page, a game, a Markdown document, or an SVG image. An id made by either tool takes versions from both, but aninline: truecall refuses an id that is Markdown or SVG, and theartifacttool cannot change the type of an id that has had an inline version (a card names a version, and the page comes by the artifact’s type): Pi uses a new id for that. Pi’s guide mentionsinlineonly in sessions whoseartifacttool has it (PiP’s has not), and says that only a direct call shows a card. Sessions from before 0.28.0 keep theirartifact_inlinecalls and results as stored, and still show them as cards, also in forks; the model is shown those calls asartifactwithinline: truein its requests, so it does not repeat a tool it is no longer offered. The Artifacts sheet lists every version in a rounded card grid; opening one shows the sandboxed viewer (or its own tab). The list does not run artifacts as previews. Artifacts cannot reach the app or its cookies. In the viewer, an HTML artifact can ask for two things, which Pi knows how to build: a follow-up, a message it puts in your message box (after your draft, starting with which artifact it is from, with any selection as JSON) for you to read and send, never sent by itself, and only after you tap the page (a real tap or key press in the page, up to 5 seconds before: the page cannot fake one, andwindow.focus()does not count; each tap serves one follow-up), at most every 2 seconds (the viewer then closes, so the box shows); and saved state, up to 16 KB of JSON that it saves for you alone, so its filters and inputs come back after a reload, a restart, or on another device. Saved state stays out of Pi’s context, belongs to the artifact rather than a version, and starts empty in a fork; a page that changes the state’s shape names a new schema, and the old state then reads as none. Only people who can write to Pi get a follow-up; a viewer gets a notice. HTML run from a reply (▶ Run) can offer a follow-up too, but keeps no state. Only the artifact’s first page is heard: as it starts, it opens a private channel to the app (a script the server puts first in an HTML artifact’s page when a frame asks for it, and in the frame page that runs a reply’s HTML), and everything goes over that channel, so a page the frame goes on to cannot use it and an answer still on its way never reaches it.schemais a string (a number is refused, for a get and a set alike). The bridge is for HTML artifacts, not Markdown or SVG. Neither works in a published link or an artifact’s own tab. A session keeps up to 300 saved values; a person removed from the app keeps theirs until the session goes. Share in the viewer publishes one artifact to anyone with the link (/pub/<token>), with no sign-in: the page is the artifact’s own sandboxed one, so it still cannot reach the app, and its address is the whole of the access. A bundle’s files are at/pub/<token>/<name>, checked on every request: ending or expiring the link closes every file, a link that follows the newest version follows its assets, and a pinned link keeps its own. A published page gets no bridge. A share either stays at the version it was made from or follows the artifact’s newest, and either lasts until it is ended or closes after a day, a week, or a month; End closes it at once, and the address then answers nothing. Only people who steer and see every session publish or end one, or see its address, never viewers or someone invited to a single session. The sheet lists the session’s links still in force, with the address to copy; it starts at the server’s public address when a tunnel gives one, else at this browser’s. Delete (the bin in the viewer, and on each card of the Artifacts sheet, since 0.30.0) takes an artifact with all its versions, after a confirm: its pages, its share links, the state its page saved, and its design comments go in one commit, so a restart finds it all there or all gone, and the storage drops the older revisions that held them. Its asset files go too once no artifact in any session uses them (a sweep after the delete, run again at startup if a restart cut it off). Cards in replies say it was deleted, also after a reload (the session’s view carries the last number of each deleted artifact). A share or saved state made while it is deleted is refused, and edits that Pi sent for a deleted version are refused too. What stays is Pi’s own messages: the tool calls that made it still hold the text Pi sent, and the confirm says so. Anyone who steers the session may delete, never a viewer; Pi has no tool to delete. One version alone cannot be deleted, as cards in replies and design comments name versions by number. A fork keeps its own copy. Published again under the same id, it starts at the next number, never one a card names. - All artifacts. Tools → All artifacts opens every artifact in every session you can see, grouped by session (archived sessions are left out), newest first. Each row shows its type, size, age, and the number of its current (latest) version, as
v3 / 3of the versions it has (v1when it has one). A tap opens that version in its session. The launcher’s All artifacts opens it too, which is the way on a phone. The list isGET /api/artifacts. - Design. On by default (Menu → Extensions turns it off). A canvas beside the chat for Pi’s HTML designs: prototypes, screens, one-pagers, and slide decks. A design is an artifact, so versions, the sandbox, saved state, and share links work as they do for any artifact. Open it from Tools, All places, Open in Design in the artifact viewer, or
/design-open(with an artifact’s id to open that one). On a wide screen the panel sits beside the chat; on a phone it covers the chat, and the way back keeps the canvas as it was. Since 0.26.0.- The canvas. A picker of the session’s HTML artifacts (newest first, variations together); the page in the artifact sandbox, at phone (390×844), tablet (820×1180), desktop (1920×1080), or a custom size; fit or zoom, and a light, dark, or theme backdrop. A new design that Pi makes opens by itself, unless you are in a mode, have a draft, or it is a variation of the open design.
- Versions. A timeline of every version, side-by-side compare of two, and Go back to this one: it makes a new version that is a copy of the old one, assets included, and does not ask Pi. A repeated tap finds the version it made.
- Comment. Tap an element and write a note: it becomes a numbered pin. Comments are shared with everyone who sees the session, last across restarts, and belong to the version they were made on. Send N to Pi puts one message with all open comments (each with its element as JSON) in the message box for you to send. Only the author or the owner changes or deletes a comment.
- Edit text. Click text in the page and change it. The changes gather in a list, and Apply N with Pi puts one message in the message box.
- Tweaks. A page can declare knobs (colors, sizes, choices, switches) and the Tweaks tab shows them as controls that change the page live. Values are each person’s own, kept for each design. Keep these puts them in the message box so that Pi writes them into the design.
- Variations. Artifacts of one group show as a grid of live thumbnails. Use this one puts a message about it in the message box.
- Export and share. PNG, PDF, PPTX (decks), and an HTML zip, from the menu. The file is written in the session’s
exports/folder and the browser downloads it. Share a link is the artifact viewer’s Share. There is no Canva export. - What Pi does. Its guide,
src/server/guides/design.md, which Pi reads before it makes or changes a design (a short prompt section, only while the module is on, points to it), gives Pi an order of work, after Claude Design’s (since 0.27.0): one round of questions when the work is new or unclear, then a start from what exists (the design system, the code, the screens) rather than a mock from scratch, a first version early, iterations, a check, and a short reply. A screen that exists is redesigned from itself: Pi reads its code and data first, makes version 1 the screen as it is today (in its place in the app, compared with a screenshot of the real one when it can get one), and then changes it in new versions, within what the code supports; a change that needs new data or server work is marked in the design and named in the reply, and a different direction becomes a new artifact in the same group. The product’s own type sizes, spacing, and density win over the guide’s craft defaults. It also gives Pi a page skeleton and craft rules: one HTML artifact for each design,data-pidon meaningful elements, a tweaks manifest of 3 to 8 knobs bound to the system’s tokens, assets for images and fonts, variations as a group of 2 to 4 artifacts, a link tods/tokens.csswhen the project has a design system, and a check withdesign_previewbefore it replies. When the project has a system, the prompt section carries a summary of it (roles and components first) as untrusted project data. Its tools:design_previewrenders a version in a private headless Chromium (never the browser people watch) at mobile and desktop sizes, or the sizes asked for, and returns screenshots and a short report (see Checks); its options arechecks(on by default),tweaks,colorScheme,page(another page of the bundle), andactions(hover, click, or focus on a selector before the screenshot).design_exportwrites PNG, PDF, PPTX, or an HTML zip, by default asexports/<id>-v<version>.<ext>, and refuses a path outside the session’s folder; it also takestweaks, a customviewport, and, for a deck’s PNG,slide(a number, or"all"for a zip of every slide). A page’s PDF is as wide as its viewport, and PPTX slide images have twice the pixels.design_systemreads, scans, and changes the project’s design system (see The design system). The private renderer serves the bundle on a loopback address under a random path and gives Chromium no sign-in; other requests go throughhost.fetchPublic, so a design reaches only public addresses. Renders run 2 at once, and more wait their turn; each has 90 seconds. - The design system. A project’s design system lives in
.pi/design/in the session’s folder:tokens.json(W3C Design Tokens, DTCG: groups,$value,$type, references such as{color.blue.500}, tiers for primitives, semantic roles, and component tokens),tokens.<mode>.jsonfor each other mode (dark, high contrast, a brand),components/<slug>.html(a component specimen with its states), andguidelines.md. Pi Pocket checks it (broken or circular references, raw values in semantic roles, declared contrast pairs in every mode) and buildsdist/:tokens.css(:root, a[data-theme]block for each mode, and aprefers-color-schemeblock),tailwind.css(a Tailwind v4@theme, with utilities such asbg-surfaceandtext-primary),tokens.<mode>.resolved.json(DTCG, one for each mode),tokens.studio.json(Tokens Studio),tokens.resolved.json(a compact summary), andcomponents.css. A design that linksds/tokens.css,ds/tailwind.css, ords/components.cssgets the current files as assets when Pi publishes it, a snapshot kept with that version. Pi’sdesign_systemtool has the actionsscan(a structured draft from the project’s style files: colors in every CSS syntax, roles, the type, spacing, and radius scales, shadows, breakpoints, and dark mode, from CSS custom properties and rules in CSS, SCSS, Less, and page style blocks, Sass and Less variables with literal values, Tailwind’s@themeand atailwind.configtheme read as a literal, and DTCG, Style Dictionary, and Tokens Studio JSON files, and Figma.figfiles, whose variable collections and their modes, aliases, and text, effect, and paint styles it reads offline with no account and no network, while the file’s layers, components, and images are not imported (the report says so); a browser renders the project’s pages to fill in what the files leave out),init(from a scan or given tokens; it refuses to replace a system unless asked),resync(bring a saved system up to date with code that changed: it adds the tokens the code now defines and the system lacks, keeps every token people wrote or changed, and lists the values that differ and the tokens that are no longer in the code (as not seen in this scan when the scan read only part of the project); withoutapplyit only reports),set,validate,compile,component,guidelines, and the 0.26readandwrite. A resync records where its tokens came from in$extensions["com.pi-pocket"].sourceontokens.json, so a system carries its own provenance. A project with only.pi/design-system.md(the 0.26 format) keeps working. - The System view. The first row of the design picker (or
/design-open system, or the launcher’s “Open the design system”) shows the system: Colors (role cards with contrast badges first, a live sample card, and the palette as ramp strips in a folded group), Type, Spacing, Radii, Shadows (each with its value), Motion (durations and easings that play), Components (every state, in a frame that runs nothing and loads nothing), and Guidelines. A section’s count is its role tokens; the palette and component tokens show their own counts inside it. Modes show one at a time or side by side, and a mode’s value says whether it is its own or inherited from the default. People who steer change a color, a size, a time, a weight, a font, an easing, or a shadow’s layers in place, or link a token to another; the open design shows each change live when it uses the system’s variables. The editor lists every contrast pair of a color (an exempt pair shows as exempt, not as a failure). Undo and Redo step through the changes, Discard gives them up, and Save writes the files and the generated CSS with no run of Pi (it refuses a change that the checks refuse, or one made on a system that changed meanwhile). The menu publishes the documentation page as a design, exports the generated files as a zip, and adds or removes a mode. People who only view see everything and change nothing. Focus mode hides the conversation for wide work. On a phone, the canvas fits the screen’s width, and until a size is chosen it takes the size of its panel. The Design module loads only a small shell at app start; the workspace and the System view load when first opened. - Checks. A design’s Check tab and
design_previewrender the page on the server and judge only what the author’s CSS sets, never the browser’s defaults. They report values that are not the system’s (colors, fonts, and sizes, each with the exact CSS edit and the nearest token of the matching role), contrast (WCAG 2.2 AA, judged only where the background is certain), non-text contrast of focus rings and icon buttons (3:1), tap targets (an error under 24 px, a warning under 44 px), sideways overflow, image alt text, heading order, a missinglang, form controls with no label (a placeholder is not a label), links, buttons, and widgets with no accessible name, nomainlandmark, fonts that did not load, a missing viewport tag, missingdata-pids, elements with no visible focus style, long motion with noprefers-reduced-motionrule, and author-set input text under 16 px on a phone. A check runs in any mode of the system. The tab follows the mode and size on the canvas, puts a pin on each element, and Send to Pi puts one message with every finding in the message box. Fix N exact matches rewrites literals that equal a token exactly tovar(--token)and saves a new version with no run of Pi. On a phone, the tab starts as a bar with the counts, so the page keeps most of the screen. - The documentation page. The System view’s menu (and
design_system) makes a documentation page of the system as a design: navigation, a filter of names and values, and links to every section; color roles with their values, contrast, and copy buttons for the CSS variable and the Tailwind class; the contrast pairs in every mode (exempt pairs labelled); palettes, type specimens, spacing, radii, shadows, and motion demos; component state grids with their code; guidelines; every token with a column for each mode; and a list of the generated files with how to use them. Component states are drawn in shadow roots after an allowlist sanitizer, under a nonce-only script policy, so they paint in screenshots and PDFs and run nothing. It runs in the artifact sandbox with no network, so it can be shared with a link or exported like any design. - Decks. A deck is a page with
<meta name="pocket-kind" content="deck">and its slides as<section class="slide">, written at 1920×1080 (<meta name="pocket-slide-size" content="1280x720">changes that). The canvas shows one slide at a time, scaled to fit, with a slide strip, a full-screen present mode, arrow keys, and swipes, and the page needs no navigation script of its own. PNG, PDF, and PPTX exports use the same slide size. PPTX slides are images with the slide’s text as speaker notes, not editable shapes. A deck opened in its own tab or published shows one slide at a time too, and printing it gives one page for each slide. - For page authors.
data-pidnames an element for comments and pins. The tweaks manifest is<script type="application/json" id="pocket-tweaks">[…]</script>, an array of up to 40 knobs{ name, label?, type: "range" | "color" | "select" | "toggle" | "text", value, min?, max?, step?, unit?, options? }. A name that starts with--sets that CSS custom property on:root; any other name reaches the page as apocket:tweakevent onwindow. The app speaks to the page through the bridge’spocket-inspect,pocket-edit-text,pocket-tweak-set,pocket-highlight, andpocket-gotomessages, and the page answers withpocket-picked,pocket-text-edited,pocket-tweaks, andpocket-deck. Only the app’s inspector can send those answers, and the app checks their shape and length before it uses them. - Who. People who see every session load the module; people who steer comment, edit, tweak, go back, and export; viewers read the canvas, versions, and comments. Someone invited to one session never loads it. While Take turns is on, only the driver writes.
- Limits. The static Preview of an inline card does not load a bundle’s assets until you tap Run. The inspector adds about 36 KB to each HTML artifact page. A second HTML page inside the frame has no bridge, and neither has a page that navigates itself, so comments, edits, and tweaks go quiet there. Shadow DOM and nested iframes cannot be picked. A comment shows only on the version it was made on. On a phone, a desktop page at “fit” is small: use zoom or a custom size.
- Agent Teams. On for new profiles created with 0.31.0 after beta 3. Existing profiles keep their previous setting, including off when never enabled. The owner can turn it off or on in Menu → Extensions; restarts and updates keep that choice. Installation starts no linked session and makes no model call. Pi starts work in a linked session: an ordinary session in the family of the one that started it, with its own settings and life (stopping or archiving one leaves the other as it is). It works in the same folder, or in the folder an extension names with
cwd(since 0.19.0; no worktree of its own) with the same model, thinking level, and agent settings, but none of the history, plan mode, or budget, so Pi gives it all it needs in its first message. With Subagent models (Menu → Providers) empty, it runs on the starting session’s model; with models checked there, it runs only on one of them: the session’s model when that is checked and Pi names none, else a checked one that Pi must name (the refusal lists them), and Pi may name only a checked one. A linked session’s reply to the session that started it goes whatever model that one runs on. A message to a linked session on a model that is no longer checked is refused. Pi may name any thinking level, also one above the session’s (a level the model lacks becomes its nearest lower one, or its lowest); a model that cannot be used now is refused, with no session made. Pi’s tool,team, starts linked sessions, lists them, and sends them messages, both ways. Since 0.28.0 a message lands at its session’s next pause (steer: falsewaits for its run), and when a linked session’s run ends, its final answer goes back by itself to the session that started it, as a card from its address (or why it failed, or that it was stopped), so the lead ends its turn and waits without polling. A worker sends one short update when a blocker, handoff, or changed expectation affects the lead’s next decision, not for routine progress or acknowledgment. Before treating silence as a stall or duplicating the work, the lead checksteam listonce. A working status proves neither progress nor failure. The lead asks the worker for a missing fact only if it still needs it. Everything waiting in a session’s queue goes in together at its next pause, so ten reports cost one turn, not ten. Before 0.28.0 an answer did not go back by itself, and each waiting message took a turn of its own. A message from a linked session shows as a card of its own, not as a person’s message (since 0.28.0): its head names the session and has Open when you can see it (“A session you cannot open” when you cannot), its text shows as Markdown, as Pi’s replies do, with its first line leading, and a long one folds to its first lines with Show all. Pi takes it as a request, not as a person’s order. Since 0.19.0, linked sessions write their messages and replies to each other in the language of the person they work for: ASD-STE100 (Simplified Technical English), at about 80% adherence, when it is English (in other languages since 0.28.0); their answers to messages from people stay as they were. Above the transcript, Lead opens the visible parent and shows whether it is unread. The linked count opens the family index and shows waiting and failed sessions separately. Replies stay in their own conversation. Each start and message acts as the person Pi works for, with their access, take turns, plan mode, and spend limit: a session someone cannot see stays out of their reach, and its name out of the list Pi gets, unless everyone in the session sees it. A link gives no access: someone who sees only the new session does not learn where it came from. A team has bounds: a linked session starts none, and the budget of the session that started the team covers what all of them spend. No count limits how many linked sessions a session starts, and no count of messages between them stops them (since 0.19.0; before, a session started 10 at most, and they stopped after 20 messages with no person writing). A subagent cannot start them. Since 0.31.0, when a linked session first stalls and a classifier model is chosen, the classifier reads its recent activity (its last 5 tool calls with trimmed arguments, and the tail of its output): looping or stuck report to its lead at once, with the verdict on the stall line; progressing delays the stall line to twice the stalled time, so the time rules stay the backstop (one classification per quiet spell, and a classifier that fails or is slow reports the stall as before). Stops of stuck calls never wait on a verdict. - Session tags. Off until the owner turns it on in Menu → Extensions. Shared labels on sessions, which show as chips under each row’s title. To tag sessions, right-click a row (or hold it, on a touch screen), or select rows (Ctrl/⌘+click, or Select) and choose Edit tags, or use Edit this session’s tags in the launcher: add a tag, take one off, then Save. Tags are lowercase, up to 32 characters each, and 10 on a session at most; a change to several sessions saves on all of them or on none. The filter button in the session search, or a tap on a chip, shows only the sessions that have every chosen tag; the tab keeps its filter until it closes. New in the Sessions head, while the filter is on, gives the new session the chosen tags, so it stays in the list. The list’s search and the launcher find sessions by their tags too. People who steer every session edit tags, viewers see them and filter by them, and people invited to one session do not see them. Each person sees only the tags of the sessions they can see. Since 0.20.0; it uses the session list’s extension points, which other extensions can use too (browser-modules.md).
- Ask someone. Off until the owner turns it on in Menu → Extensions. When Pi needs an answer that only someone outside the chat can give (a manager, a client, an expert), Ask someone under one of Pi’s answers puts a request in the message box, and Pi writes the question with its
ask_someonetool so that it stands alone: the background, the question, the options, and its recommendation. Nothing goes anywhere yet: the draft waits in Questions for others (the status line under the message box, the session menu, or the launcher), where you edit it, Copy text, or Create link for a day, a week, or a month. The link opens a page with no sign-in, the question, and a box for one answer and an optional name; then it closes. Copy link, Copy message, and Share… (on a phone) send it on; End link takes the page down. When the answer comes, a notice says so, and Give to Pi puts it in the message box, quoted and marked as someone else’s view, for you to send. People who steer every session use it; viewers and people invited to one session do not. Since 0.22.0. - Waiting out provider limits. When a provider’s limit stops a run (a 429 or an overload, a Claude or ChatGPT usage window, a model’s cap), Pi Pocket waits for it to clear and goes on by itself, instead of failing. It waits until the reset time the provider gave (or, with none, tries again at growing intervals), then sends one request to find out; if that gets an answer, the sessions waiting on the same limit go on, one at a time. The live line says what Pi waits for, when it tries next, and when the limit resets, with Retry now; Stop or Interrupt end the wait at once, and a message you send meanwhile waits in the queue as always. The session’s square is a hollow square with a dot, also on peek tiles, and a subagent’s row says it waits. One push goes out when a wait of ten minutes or more begins (Menu → Notifications → Waiting for a limit). It survives a restart. The owner sets the longest wait (Wait for a limit in the Providers sheet: Off, 1, 6, 12, or 24 hours; default 6): what waits is any reset time within that longest wait, load with no time given (an ordinary 429 or an overload), which is tried again at growing intervals for up to 30 minutes, and, since 0.24.0, a plan’s usage limit with no time given (OpenAI subscription sharing, Z.ai, MiniMax, OpenCode Go), which is tried again about every 15 minutes, up to the longest wait, counted from the first failure across restarts. What fails the run at once, with the reset in the message where there is one: a window of days (Claude’s 7-day window, a Codex window of over 300 minutes), a reset after the longest wait, a usage limit that names a window of days (daily, weekly, monthly), with or without a reset time, and a sign-in that expired or billing. Retry now sends one try each 30 seconds. It never picks another model. Since 0.21.0. A Fable subscription limit does not hold other Claude models unless Anthropic names a shared window (since 0.30.1).
- Prompt cache keeper. On by default;
PI_POCKET_CACHE_KEEPER=offturns it off. While a run waits on a tool call, Pi Pocket replays the last request that ended in a tool call, withmaxTokens1, at 90% of the cache’s lifetime or 10 seconds early, whichever is sooner. It does so only when the expected savings are more than the cost. It keeps the 5-minute cache only: no idle warming, no 1h cache, no request withcacheRetentionnone, and no Anthropic thinking set by a token budget. It stops on a real cached request, when the run ends (PiP’s too), on an error, at shutdown, or after 30 minutes. A warm request does not wait for a provider limit. Its usage counts inpi.usageand in the spend of the person and session that were paying when it started, and spend limits are checked before each warm. A restart drops the warm timers and does not replay warm requests. - Background subagents. The
subagenttool spawns named subagents that work in their own conversations while you keep talking. Since 0.28.0 the tool waits for tool search, asbrowserdoes, so a session that starts none does not pay for its prompt. On a model without tool changes in the messages (all but Claude 4.8 and 5, and later), Pi then starts subagents from a codemode script: the conversation shows each start as a line of that script, without the subagent’s card, and the subagents board still opens each one. Pi writes its tasks for subagents in the language of the person it works for, in ASD-STE100 (Simplified Technical English) when it is English (since 0.19.0; in other languages since 0.28.0), and asks for their reports in that language too. Since 0.20.0, Pi’s instructions say when to start one (independent parts of the work, a long or noisy job whose result alone matters, a review or second opinion before it calls work done, or when you ask for subagents or parallel work), when to do the work itself (one or two tool calls, work that needs the conversation), and what a brief holds (the goal, paths, what is known, limits, and the report wanted: answer first, then evidence); the result of a start tells Pi to carry on with its own part. Linked sessions (Agent Teams) get the same kind of guidance: they suit long or separate jobs that you may want to follow, and subagents suit short helpers. Open one to watch it or talk to it. Its answer goes back to the main agent at its next pause (after a tool call; when it is idle, after a moment, so answers that finish together go together); answers that arrive meanwhile wait together and go as one message, shown as a card each, so many subagents cost the main agent one extra turn at most, and wait in its queue as one row: one that arrives while that row waits joins it. A subagent that fails says why, and one that is stopped says so, to the main agent too, so it does not wait for an answer; a message sent to it while it worked, which its failed run never took, is withdrawn, and the main agent is told to send it again. A message sent to a subagent at work waits in its queue: a steer until its next pause (after its current tool call, or when its run ends), a follow-up until its run ends. The tool tells the main agent so when it sends one, and the tool’sstatuslists the start of each message that still waits. A subagent thinks at the session’s level unless Pi names another, of any height, such as a cheap model at its highest (a level its model lacks becomes the nearest lower one it has, or its lowest, and the main agent is told), with an optional tool list. A tool markedsubagents: "always"by an extension comes along even when that list leaves it out, only while the extension runs there (Tools). Pi picks no model on its own: until the owner allows models for subagents (Subagent models in the Providers sheet), a subagent runs on its session’s model, and the subagent tool offers none and refuses one Pi names. Once some are allowed, a subagent runs only on those: with no model named, on the session’s model when that is allowed, else Pi must name an allowed one (the refusal lists them, and its instructions show each model’s thinking, context window, and price where known, with a line on matching the model to the work); one that is not allowed is refused, as is one whose sign-in expired, with word to tell you rather than pick another. A subagent on a model the owner does not allow (any longer), the session’s own included, gets no more work; a level raised by hand in its conversation stays as work is sent. One whose model or provider failed (an expired sign-in, a model that is gone or refused, a quota or rate limit) says so with its model, on its card and in a notice, and the main agent is told to stop and tell you, never to start it again on another model. A subagent’s status line shows what the subagent itself cost, with no limit: the limit is its session’s (since 0.28.0). The tool’sstatuslists the subagents at work, each with what it does (a call it runs, or one that waits for a person to allow it) and how long ago its transcript last got a message, a tool call, or a tool result; one at work with nothing new for 30 minutes is called stalled (the owner changes the time in Menu → Extensions, under Subagents). Since 0.29.0 the tool’sstatussays what it waits on and since when (“waiting on bash since 21:57 UTC”), and a stall watch tells the main agent by itself, without a model call: past that time with no progress (no new message, call, result, or output), one message for all the stalled subagents, with what each waits on; past Stop a stalled call after (60 minutes), Pi Pocket stops the stuck call, and the subagent goes on with its partial output (when no call runs, it stops the run, and the main agent is told to send the work again), at most 2 times until it answers again, then a person decides (a call with its owntimeoutruns until then, and a wait for approval or for a provider’s limit is no stall); the owner gets a notice and a push notification (Stalled work in Notifications) each time. Running now marks a stalled subagent’s work. A subagent a person stops is reported as stopped by a person, not failed, and a message a Stop held, sent again later, still brings its answer to the main agent. Linked sessions (Agent Teams) have the same watch, with the same two settings under Agent Teams. The rest are counted by how they ended, andstatuswithalllists every one. - PiP. The owner’s assistant, “Pi in Pocket”, over every screen. It stays out of the way until called: Alt+A, Tools → PiP, the PiP tile in the places, the launcher, or
/pip(/pip what needs me?asks at once); a small mark shows in the corner only while it works or has something new. It opens as a rounded, shadowed window anchored 16px from the bottom right corner on wide screens (on a short screen it is shorter, never over a session’s top bar; on a screen narrower than about 1600 px it covers the right end of a session’s message box until it closes) and a sheet from the bottom on phones, over whatever is open, which stays as it was; Esc, back, or a swipe down closes it. Appearance → PiP → Board (Floating is the default, per browser) opens PiP’s own conversation in the session’s place instead, as a session: its top bar with the model, its menu, every step, and a × at the end of the bar, with PiP’s own message box at the session’s width (the panel’s box, without a session box’s slash commands, @ mentions, ↑ history, or Steer and Interrupt). The sidebar stays, the rail’s orb shows it open, and every way in opens it there; back, its ×, or the orb again gives the place back to what was there (home after a notification’s link), and Running now, the subagents board, an extension’s page, or another session simply take its place. Changing the setting while PiP shows moves it to the new place. PiP has one message box, so a move changes nothing in it: the same words, files, passage to ask about (Ask PiP), and message on its way show in both places. PiP looks after the other sessions: it lists and reads them, starts sessions (in a folder, a worktree, with a model) and messages them, stops and archives them, schedules messages there, watches your GitHub repositories and pull requests and acts on what happens there (see Watch a repository), starts sessions in a repository by name (its checkout, or a clone), and follows runs until they end, when a report comes back to it and it says in a line what came of it: pushed as a notification when you are not looking (instead of the session’s own “Pi finished”, which is held back only while PiP is on, not held back by a spend limit, and following that run, and for a minute after its report), which opens PiP over whatever the app shows. A request to do hands-on work authorizes PiP to start or message the session it needs; you do not have to say “start a session.” PiP delegates to that session’s tools instead of refusing because its own tools cannot edit files or run commands. PiP’s model and new sessions’ default model are separate: if a worker has no model, choose one in that session. Menu → Default model sets the model for future sessions. It is dependable before fast: it acts on a session (messages, stops, archives, follows its run, schedules there, or watches its PR) only after it looked at it in the last 15 minutes (read it, started it, or had a report from it), its tools say how a session stands after they act, and it says what it checked and what it did not; tasks it sends that touch code ask for the checks and tests. It never picks a model: which one is yours to say, as below. A session’s last answer comes to PiP, in a report or a read, in parts of up to 12,000 characters; when it is cut, a note after the fence says how many characters are left, and PiP’ssession_readtool takesanswerFrom(a character) to read the rest of that answer, part by part. What sessions say reaches PiP fenced as data, never as instructions, and what sessions, guests, or GitHub named (titles, waiting calls, scheduled messages, PR titles) comes on one line, quoted, as data too. It makes at most 60 messages, follows, schedules, and watches (its reminders to itself included; a schedule it could not make does not count), and starts at most 20 sessions, an hour (counted since the server started). It can deny a call waiting for approval, never allow one. When one of its own calls waits for approval, the panel says so, and Review opens its conversation, where it can be allowed. What it sends shows as sent through PiP for you; it reads files but changes none and runs no commands, handing hands-on work to sessions. It writes what other agents read (its messages to sessions, scheduled messages, and the instructions of its watches) in its person’s language: ASD-STE100 (Simplified Technical English), at about 80% adherence, when it is English (since 0.19.0), the same short, plain style in another (since 0.28.0), so a session it worked in reads in your language; it asks each session to answer it in the same language and style, and a session answers a message that came through PiP (scheduled ones too) in the language of that message. PiP’s answers to you stay as they were. Your messages are accent bubbles, and one you send while it works shows at once, dimmed, with when PiP reads it (at its next pause, or when it finishes for a queued one) and Withdraw, until PiP takes it; completed steps have small green checks, and reports are rounded cards that expand to show more. Its replies link the sessions they name; Board (above) shows every step, and Start fresh gives it a new context. The panel’s header measures context against PiP’s compaction limit, capped at the model’s context window (or just that window with As sessions do), and follows changes in Extensions; Compact there (or/compact, or/compactwith what to keep in mind, typed to PiP) turns its older messages into a short summary, the newest few kept as they are; and by default it compacts when a session would, at Pi’s own thresholds (since 0.22.0; before, above 60k tokens). To keep it smaller, the owner picks 40k, 60k, or 100k in Extensions under PiP (pipCompactAtin~/.pi-pocket/config.json): then it compacts itself once idle above that, and waits for 8k tokens more before it does again, while a session’s thresholds stay as a backstop during a long run. An owner who chose a limit before keeps it. PiP’s summary is its own: written from its conversation with what sessions said, webhooks’ posts, GitHub’s events, and what files and scripts gave back left out, so none of their words come back as PiP’s notes; it keeps its person’s preferences, what is still open, and what it follows and watches, which live on the server and carry on as they were. A summary that cannot be written leaves the context as it was: Compact’s notice says why, and after one of PiP’s own that failed it waits 30 minutes, or 8k tokens more, before it tries again. A summary costs a request, counted in PiP’s spend. It is a conversation of its own, kept out of the session list and out of everyone else’s reach (nobody else can open it or write to it), and durable like the rest: follows outlive a restart. Its cost shows in its person’s Spend sheet, and its follows in Running now. Turn it off in Extensions: it stops what it was doing (a compaction too), takes no messages, its own conversation’s box included, and meanwhile its follows’ reports and its own scheduled messages wait, webhooks to it answer 503, and repository watches to it hold what they found, all going on once it is back. PiP follows its owner’s standing instructions inpip.mdin the data folder (since 0.28.0, customizing.md).- Resize. At widths of 768px and above, drag PiP’s left edge, top edge, or top-left corner to resize it, with the bottom-right corner fixed. The same zones are finger-sized on touch screens. Its size is remembered for each account in this browser and fits back inside the viewport when it shrinks. Phones use a bottom sheet with rounded top corners and a grabber; the model, context meter, and all three header actions stay available.
- Choose PiP’s model. Tap the model chip in PiP’s header to use the existing model and thinking picker for PiP alone, from Home or over a session. The chip and picker choices are disabled while PiP works. Saving also checks that PiP is idle. This header path does not change the last picked model for new sessions; as a board, the top bar’s model keeps a session’s behavior. With no model, the welcome offers Choose a model to use these suggestions, which opens the same picker. Suggestions that send at once wait for a model; those that put text in the box stay usable, and choosing a model keeps the suggestions visible.
- Files and images in chat. Pick files with the attach button, paste files or images from the clipboard, or drop them into PiP’s message box. Remove attachments before sending; upload status shows while they are saved. You can send files with text or on their own. They belong to PiP’s conversation, not the session behind the panel. Images have previews and open full screen; other files show their names. As in normal chat, supported images go directly to an image-capable model and other files are given as saved paths. PiP does not choose a different model for you. Draft attachments stay when you close and reopen the panel, or move PiP to the other place.
- Pending memories. The Pending memories strip above PiP’s message box (in the floating panel, and above its box when PiP opens as a board) shows how many lessons wait for your approval across all projects and everywhere; with none waiting it does not show. Tap it for the approval list, a sheet as tall as the Memory sheet; Menu → Memory in a session lists that project’s lessons and the ones to approve there. Open it from any screen, including Home, to approve or discard new lessons and proposed edits or forgetting. Each says where it applies; approval still checks that the words match what you saw. This queue is the owner’s only. Pi and guests cannot use it to approve lessons or reach another project’s memory.
- It never picks a model. It starts a session on one, or names one in a task, only when you named that model yourself, and not one whose sign-in expired:
- in your own words to it, in its current context, with the whole name in one message. A name beside Chinese, Japanese or Korean text needs no extra spaces. A short name of two characters, like “K3”, counts only with its family’s name in the same message, “Kiwi’s K3”: alone, it reads as an ordinary code. A whole model name or id of two characters needs its provider in that message too: “o3 on openai”, not just “o3”.
- or in the instructions of the webhooks and watches to it that you set up. A watch PiP set up, a webhook’s post, a watch’s event, or what a session wrote does not count.
- When the model you named is at two providers, you say which one pays. Part of a provider’s name picks nothing, after “on” or anywhere else, and PiP asks you which one instead: “on copilot” does not pick GitHub Copilot, and “build the server with Go” does not pick a provider called “Acme Go”. Name it:
- by its whole name or id, right after “on”, “via”, “through”, “with”, “using”, or “from”, in one message: “on GitHub Copilot”, “via github-copilot”.
- or, when PiP asks which one, by answering with just its whole name or id as your next message: “GitHub Copilot”.
- Some words name a model more loosely than you may mean:
- a short name of three characters or more, without its family’s name: “an OpenAPI v3.1 spec” names a signed-in “Acme V3.1”.
- everyday words that are a model’s name without its first word: “deep research” names “X9 Deep Research”, and “the 2.5 flash drive” names “Nova 2.5 Flash”.
- a longer name Pi has no model for: it names the model it starts with. “zeta-5-ultra” names zeta-5, while “zeta-5-nano”, a model Pi knows, does not.
- Returning from a subagent. A subagent’s conversation has Back to main session above the message box, for viewers too, so the way back stays in sight however long the conversation is. It goes up, not forward (since 0.29.0): opened from the main session, it goes back there as back does; reached another way, the main session takes its place. So back from the main session never opens the subagent again. The top bar says which session it is a subagent of, and carries a small tag with the model it uses, which a tap opens in the model sheet. The composer hides its model chip on a phone while the subagent works, so the tag keeps the model in sight; when room is short, the parent’s title is cut first.
- Subagents bar. Above the message box while a subagent works or has a report on its way: a dot per subagent, how many work and how many are done, and what the newest one does now. Tap it (or the count in the top bar while one works) for a row each: what it was asked, what it does this moment (the call it runs, or what it writes), for how long, the model and thinking level it runs on (with ↗ when that is not the session’s model), whether its report is on its way, Stop, and a tap to open it; a call waiting for approval says so, and a failed one says why, and “dismissed” once someone dealt with it (see Subagents board). Done, stopped, and failed ones are counted apart, failed ones first. A finished row (done, stopped, or failed) has its own ×, for people who can steer: it hides that subagent from the bar for everyone, on every device and after a restart, and deals with its failure too. It shows again once it does anything new (Pi sends it work, it answers or fails, someone writes to it), or once someone who can steer opens it (from the board, a report, the tool call that started it, or the session menu). The board still shows it, and Pi sees no change. Once none works the bar stays until you put it away (its own ×, in this browser), and comes back, counting only the new ones, when one starts again. Viewers see it too, without Stop or ×.
- Subagents board. Activity → Subagents shows every subagent in every session in the conversation’s place: a soft state-colored square each, in a rounded row per session, those that need you first, and under each row a sub-tile for every subagent at work there, with its state and the model it runs on, so a glance says what each is doing without opening one (a tap picks it for the detail card, staying on the board; a double click, or double tap, opens it). A row shows six sub-tiles (three on a phone), and the selected one wherever it is; Show N more shows the rest. Working squares pulse; the selected square has a ring, and filtered-out squares fade. A proportional state bar and filter pills with counts say how many wait for an approval, failed, work, were stopped, or are done, and let you filter by one; a search finds a subagent by its name, what it was asked, what it does now, or why it failed. Needs you lists those waiting for an approval and those that failed with nobody dealing with it yet. The selected subagent’s detail card shows its session, how long it has worked (or when it ended), what it was asked and does now, and its error, with Open (Review the approval while it waits), Stop, and, for a failure, Dismiss (off while it is asked; when the subagent failed again since, a notice says so and the newer failure stays). A failure is dealt with once someone who can steer dismisses it, or opens the subagent from the board, its row in the subagents bar, its report or the tool call that started it, or the session menu: it stays on the board as failed (“Failed · dismissed”, without the “!”), and leaves Needs you, the rail’s red mark, and the session’s red ⑂, for everyone, after a reload or a restart too. A message someone sends it, like later work from Pi, settles it by what it comes to, after a restart too: answered, the subagent is done; failing again, it needs someone again. The session’s activity says who dealt with a failure, whichever way. Hover a square to see what it does in the line under them; the arrows move the focus between squares and Enter opens the one focused; Esc, back, or × closes it, and on a phone a swipe right does too. Archived sessions show only while a subagent works there. A session keeps its 24 newest finished squares (done, stopped, or failed and dealt with); older ones are counted, as +N after its squares and in the bar’s numbers. On a phone it is one column, Needs you first, with bigger squares and a bar at the bottom for the one selected.
- The queue and the bars above the message box. Messages waiting for Pi show above the message box, with how many wait whenever not all of them show. With the bars there (the subagents bar, plan mode, a goal, a PR watch, a trust question, who drives), they take less than half of the room they share with the conversation when the bars fit in it, and the conversation keeps the rest, staying where you were reading. The bars always show whole; the queue and the subagents’ list take what the bars leave, and scroll. Unfolding the subagents bar gives the list the room, one whole row at least: the queue shows fewer rows, or folds to how many wait. With several bars on a short screen, the plan, goal, watch, and trust bars keep one line each, their words cut short and their buttons whole. When even that does not fit (a phone on its side with every bar up), the stack scrolls, and the conversation keeps a quarter of the room, or a few lines, whichever is less.
- Live editing. No build step. Edit a file in
web/and every open browser reloads. Edit a file insrc/server/extensions/and it is reinstalled into the running server (a running tool call finishes on the old code). For core server changes, use Restart server in the menu: running work resumes after the restart. - Lancet Guard. Off by default: the owner turns it on in Menu → Extensions. From the Lancet Guard inspector, the owner can click Set up to install
specpi-lancet-guardon demand into<dataDir>/models/lancet-guard/(with--ignore-scripts) and download the pinned LANCET Nano model (~113 MB, checked against fixed SHA-256 checksums, shared with Pi), or reuse an existing Pi install ofspecpi-lancet-guard. Once set up and turned on, its rules and classifier check every bash, write, and edit call, and each command Pi starts in the background. A “risky” or “unsure” verdict asks for approval. Only someone who can steer can answer. Nobody can allow a call if its original requester is unknown or has lost steering access. A saved approval stays bound to its requester across restarts. Progress shows in every tab, and nothing installs or downloads without the owner clicking Set up / Download. A guard that is on without its model blocks the bash calls its local rules leave open, and the status line shows “guard failed”. - Core’s secrets stay out of transcripts. These secrets are hidden in every session, PiP and subagents included, as a value an extension hides with
host.hideis: each module’ssecret: truesettings (and their defaults), the owner token, the private key inpush.json, and the keys and tokens in Pi’sauth.json. The secrets Pi Pocket keeps inpocket.sqliteare not hidden, and Lancet Guard does not keep Pi from that file: a webhook’s secret, an artifact’s share token, and a public link’s token. Each shows as its label, such as[secret vault.apiKey]or[owner token], in commands’ output, every tool’s result, and people’s messages. Core reads them again when the owner saves settings, and before each command and after each tool when a file changed; a value that changes stays hidden as the old one too, while the server runs. A module that is off has its values inconfig.jsontoo: which are secret is unknown then, so none is hidden, except a value hidden while it was on, which stays hidden while the server runs. Hiding is by value: a command that encodes or splits a value on purpose shows it. - Lancet Guard keeps Pi from core’s secret files. While the Lancet Guard module is on, before the guard’s own rules, and without its package, its model, its settings file, or
PI_POCKET_GUARD, it blocks a call that would readconfig.json,push.json, or another secret file in the data folder, a drop-in’s data folder (x.*there), Pi’s.pi/agent/auth.json, or a.envfile (.env,.env.local,.plane.env; not.env.example): read, edit, an artifact’s path, and every tool’spath, and bash, PowerShell, and background commands that name one. It is a block, not a question. For commands it reads their words: it sees a file named outright, through~,$HOME, a glob, a relative path in the session’s folder or a folder the command names, or a symbolic link that exists. A glob of every file (*,.*) names no.envfile (.env*does), and a name as text (anechoargument, an--exclude=value) or a write (>, wherecpcopies to) is not a read. It does not see a path a command computes, nor a folder read as a whole (grep -rover the data folder): there, hiding is what keeps the values out. Neither is a boundary between Pi and the files of the user Pi Pocket runs as. - Codemode. On by default, like
"+codemode"in Pi’sdefaultTools. Thecodemodetool runs JavaScript the agent writes in a QuickJS sandbox with no Node, files, network, or timers; its only capability is calling the agent’s other tools astools.<name>(args). Use it to batch independent calls, chain them, or filter large output before it reaches the model. Each call a script makes goes through the same checks and hooks as a direct call, so Lancet Guard judges it and can ask for approval.store()andload()keep values per conversation. Its card shows the script, each call it made, and the output. Since 0.28.0, Codemode has a Mode setting in Menu → Extensions, for the owner and all sessions, as Pi’scodemode.mode. On (the default) changes nothing. Only declares onlycodemode,tool_search,artifact,ask, andmemory(the cards of the last 3 need a direct call). Pi calls every other tool only from scripts (except a drop-in tool whosecallersnames"model"), also the tools of a module that is turned on later, and a tool that a session loaded before. The codemode section of the prompt lists each of these tools with its description and parameters, up to 3,000 tokens (Pi’s defaultcodemode.inlineBudget), and then the names of the others. Tools that wait fortool_searchstill wait, and a tool that it loads goes through codemode. A subagent that gets one of these tools also getscodemode. One limit: a subagent started in On mode with a list of tools withoutcodemodecannot call a tool in Only mode, because the setting cannot see each session’s list. - Share to Pi. With Pi Pocket on the home screen (Android), share a link, some text, or a screenshot from any app to Pi Pocket: pick a session or a new one, and it goes into the message box with the files attached, ready to send.
- Pi’s questions. Since 0.27.0, Pi’s
asktool asks the person it works for 1 to 4 questions on a card at its call, when a decision changes the work and only they can make it. Each question has a short tag, the question, and 2 to 4 answers as buttons, each with a line under it; a tap chooses one (or several, where the question allows it), and Or type your own answer takes a typed one instead. Send is on once each question has an answer; Decline answers nothing, and Pi goes on with its best judgment. Pi waits for the answer, for hours if it must, and after a restart the same card asks again. Pi gets one line per question (Storage: Local storage), and the call shows each question and its answer to everyone in the session. The card shows, and notifies, as an extension’s question does (below). It runs in plan mode, the guard never asks about it, and subagents do not have it. The Ask module, on by default (Menu → Extensions). - Questions from extensions. An extension can ask the person Pi works for on a card, as an approval asks: a sign-in, a one-time code, a key, or “solve the CAPTCHA, then tap Done”. Only that person can fill it in, while they can still steer; anyone who can steer can Decline. An ask without its original requester cannot be answered. What is typed goes to the extension, never to Pi, into the transcript, or to the other people here, and the call’s line says Answered or Declined by whom. A notification goes to that person alone, and opens the session: the fields are filled in in the app. Extensions can also hide values (they show as
[label]in command output, tool results, and in a message to Pi that someone pasted one into), give commands environment variables, and use the session’s browser page. Since 0.22.0 (docs/extensions/people-values.md). - Approvals need someone else. An owner setting under Lancet Guard in Menu → Extensions: a guest cannot allow a risky call that their own message led to. Someone else has to; the owner always can.
- Docs for agents. Pi’s system prompt says where Pi Pocket’s documentation is (index.md), to read when someone asks about Pi Pocket itself: changing how Pi works without code, writing extensions (with tested examples), and changing Pi Pocket’s code while it runs, checked first on a throwaway copy (
node test/serve.ts). - Drop-in extensions. Put your own extension module (a
.tsfile that default-exports(host, web) => Extension, or a list, or nothing) in~/.pi-pocket/extensions/. It shows in the Extensions sheet, stays off until the owner turns it on, can import Pi Pocket’s packages (Pi Durable, pi-ai, Pi’s MCP client pi-mcp, and the rest) as the built-in modules do, and reloads when edited. One that would take the name of a built-in extension or tool, or of another drop-in’s, is not loaded, and the sheet says why: installing it would replace that one. - Extensions in the app. A module can add to the app itself, without changes to Pi Pocket’s code: routes on the server, commands for the message box, and a browser module with buttons on the rail, pages in the conversation’s place (as the subagents board shows), panels beside the conversation (where the Browser and Files panels dock, with a button in the top bar and the places), items in the status line under the message box (with a short form a narrow line takes), sheets, rows in the menu, and launcher actions, which work without asking Pi. A dashboard of a provider’s usage, the server’s load, or a machine’s power and temperature, say: the route asks the service with a key that stays on the server, and the page shows what it says, live with the module’s events. It is the owner’s alone unless the module opens it to people who can steer, or to everyone who sees every session; someone invited to one session never gets it. A module can also show public pages to anyone with one of its links, with no sign-in (
/l/<token>, since 0.22.0): each link closes at its time (30 days at most) or after the answers it takes, the page runs in a sandbox with no script, so whoever opens it while signed in lends it nothing, and Extensions says which modules have them (docs/extensions/public-pages.md). Turning the module off takes away what it added, its pages included; an edit swaps the routes, and an edit to the browser module’s files has tabs load it again. One that fails tells the owner why in a notice and in the Extensions sheet, and the rest of the app goes on; a tab opened with?noext=1loads none of their browser parts (safe mode), to turn off one that breaks the app. docs/extensions.md says how, with an example: a page with the server’s load, memory, and uptime. - Extension workspace APIs (0.16.0). A page can save its own durable catalog with request-lifetime document commits, or use a source-bound route to start linked sessions as the person who clicked Run. Current source access, turn, plan, spend, team, and model checks apply; explicit thinking choices are not silently lowered. Human history can open authorized sessions through
pocket.openConversation. Extensions can read the running server’s package version throughhost.pocketVersionor browserpocket.pocketVersion, without an updater or restart control; the extension API level remains 1. - Extensions hub. Menu → Extensions opens Discover, Installed, and Updates, as tabs in the sheet’s head, for the owner while the gallery is on. Wide screens show the list and the selected entry side by side; phones show one at a time, with Back returning to the filtered list. Discover lists entries in sections: Extensions as dense rows divided by hairlines (a small mark, the name and its maker, one line about it, and up to three facts of what it reaches or adds, such as
openrouter.ai,a key,sees turns, or2 tools), and Themes as cards, each a tiny desktop drawn in the theme’s own colors with its color dots (since 0.27.0). Filters narrow Discover to Extensions or Themes, and to those with Tools for Pi, a part In the app, or ones that Change Pi (hooks, prompt sections, wraps). Installed groups built-ins by purpose: Agents & automation, Communication, Workspace, Creation & display, and Tools & system. Unclassified built-ins appear under Other features; gallery and local drop-ins appear under Added extensions. Choose All, On, or Off to filter the library. Select a name to inspect it without changing its state; use the separate state control to turn it on or off. The inspector shows what the module adds, any load error, and settings it actually provides. The owner can turn Artifacts, Design, Browser, Subagents, Scheduled messages, Done when, Plan mode, Codemode, Memory, PiP, Triggers, Extension gallery, Pi Pocket updates, Agent Teams, Session tags, Lancet Guard, or a drop-in off and on, or reload one; the change applies to every session at once, stays after restarts (disabledExtensionsandenabledExtensionsin~/.pi-pocket/config.json), and everyone in a session sees who changed what. Turning Lancet Guard off first shows a warning card with Keep it on and Turn off; only Turn off applies the change. This leaves Pi’s own setting (~/.pi/lancet-guard.json) alone. Under PiP, the owner picks when PiP compacts its context. The system prompt cannot be turned off. - Extension settings. A module can declare settings (on or off, text, a number, a choice, or a secret such as an API key); the owner changes them in Menu → Extensions under the module, with Save settings, and Default or Clear to put one back. A secret’s value never leaves the server: the sheet shows only that it is set. Modules can also listen to what happens in the app (sessions made, renamed, and archived, messages, runs) and offer services to each other; Extensions says which ones offer a service. Since 0.22.0 (docs/extensions/services-settings.md).
- Pi’s cards. Since 0.31.0, Pi’s
uitool shows an interactive card in the conversation, where it would otherwise ask you to type: a table with check boxes, a form, a status list, buttons. The card sits in the transcript with a fixed “Pi’s card” label. Ticking a row, typing in a field, or choosing an option changes it for everyone who has the session open, within a moment, and totals Pi wrote as expressions (13.9 GB selected) follow along; a button acts, after its own question when Pi gave it one (a delete button always has one). When Pi waits for the card (wait, for up to 7 days, 24 hours if it says nothing), its call sleeps in the database and wakes with the values, also after a restart; without a wait, each action reaches Pi as a message marked[via surface s3]. Pi gets the values the server works out from the stored data, never what the browser says, and as data, not instructions. A pending action never runs as a substitute owner. If the requester loses steering access, the card closes and its pending actions are cancelled, including after a restart. Who may act is the card’swho: owner (the default), requester (also the person Pi works for), steer (also guests), or anyone (also viewers); people invited to one session count by their role. A card that Pi changed under your hand (a new table, a different button) refuses your tap (“The card changed: look again”) so you never confirm blind; the first action that resolves a card wins. A card is plain data: text is never Markdown or HTML, images load only asdata:pictures up to 64 KB (anhttps:image shows as a link), links open only ashttps:buttons, and a card never asks for a secret. A fork, an export, and a card gone from the session show its text, read-only. In a chat and on a phone: with Relay, Pi can send a card to the chat a message came from (relay_replywithsurface): the card goes as numbered text (1 [x] /tmp/a 4.2 GB,3 Delete), and a reply to that message that is only numbers (1,1 2) or a number and a text (5: my note) acts on it; so does a message that names the card first (s3 2). A bare number that neither replies to the card’s message nor names it is an ordinary message for Pi. A reply to the card’s message, or to one of the last 5 messages the relay sent to say what the card is now, acts on it in any thread of that connector and channel (Discord, Telegram, Matrix, and Slack tell which message a reply answers; Slack’s reply is a thread reply to the thread’s first message, so it needs a card that started the thread); a message that names the card needs the thread the card went to. Only numbers the card has act; the author is the owner’s account (the connector’s owner ids) acting as the connector’s person, or anyone else, who may use only controls whosewhoisanyone. A handled reply is answered in the chat and never reaches Pi; one that was refused (a stranger, a number the card lacks, a card that changed) gets a short answer in the chat and goes to Pi as ordinary outside data. A card that Pi waits for also pushes to the people who can act on it, as an Ask does (the approvals notification setting): Pi needs you · session, the card’s title only, never its values; a tap opens the card. At most 12 cards are open and 40 kept in a conversation, each up to 48 KB. Subagents do not have the tool; plan mode lets it run. Extensions can add components to cards (docs/extensions/surfaces.md:web.surfaceComponentandpocket.surfaceComponent, since 0.31.0); a browser without the module (a person invited to one session) shows the component’s text. Pi can also show a card from A2UI v1.0 messages (uiwithaction: "a2ui"); what the adapter cannot map (video, modals, remote catalogs, functions butopenUrl) is refused with its reason. The Surfaces module, on by default (Menu → Extensions). - Extension gallery. Menu → Extensions → Discover (or Find extensions in the launcher) lists drop-ins other people wrote, from a reviewed index (TannerMidd/pi-pocket-extensions unless the owner picks another): search them by name, words, and tags; entries for a newer Pi Pocket are hidden. Each row has a quiet Install, which installs it turned off. An entry (since 0.27.0) says What it can reach in plain sentences, each marked with where it comes from: In its code (from the scan below: “Talks to openrouter.ai”, “Uses your openrouter key, from Pi”, “Runs git and gh”, “Uses files it writes”), Declared (the hooks it sees with, such as “Sees tool calls, before they run”, and changes to Pi’s instructions or tools), and Always (it runs in the server with your rights, in every session, where Lancet Guard does not see its code), then what the scan found nothing for. The scan reads the code’s text, so the code can reach more than it finds: the entry says so, and nothing claims an extension stays inside. When the installed files were edited since install, the entry and the question say that the summary is the pinned version’s, not what runs. What it adds shows its tools and commands as code, and what it puts in the app; technical information is folded below. Install and turn on asks one question over the sheet: what it reaches, and that the scan reads text so the code can reach more, with Cancel, Install turned off, and Install and turn on (Cancel has the focus, Escape closes only the question, and the question stays until it is installed and on); Install turned off installs it without asking, and an installed one that is off has Turn on, which asks the same question. Before turning it on, read its source with View source, or install it off and Ask Pi to review. A theme’s entry shows its picture in its own colors (dark and light side by side when it has both), what it changes from its files (its colors, a layout of its own, its fonts, its images), its palette with the values, and Use it in this browser and Open Appearance once installed. In Updates, a row says what an update adds to what the extension declares (“Declares more: sees tool results; 2 new tools”, or “Declares nothing new”) before its review; its code’s changes are in the review’s diff. An entry shows who wrote it, where its code is (a GitHub repository at a pinned commit), its files, and what it declares: its tools (and which only read), hooks, prompt sections, wraps, routes, and browser module, and who can reach them. Install downloads its files over https from that commit, checks each against the SHA-256 the index pins (one that differs installs nothing), and puts them in the extensions folder, off, as every drop-in starts. Before turning it on, read its whole source in the gallery, or Ask Pi to review: a new session in the extensions folder, in plan mode, where Pi audits what the code reads (
config.json, sign-ins, other secrets), the addresses it calls, the processes it starts, what its browser module does, and whether it does what it declares. Updates are never automatic: the Updates tab lists available updates with a Review update button, and the review shows what changes, as a diff of every file and of what it declares, before you apply it. When the index revokes the version you have, the gallery and Extensions say why and offer to turn it off, and a notice says so while it is on. Uninstall removes its files (where each came from is kept in<name>.gallery.jsonbeside it). Share… on one of your own drop-ins in Extensions checks that it stands on its own (its files named after it, importing only Pi Pocket’s packages and its own files), drafts its index entry (the description from its doc comment, each file’s SHA-256, what it declares while it is on), asks where its files are on GitHub (the repository and commit you put them in, tags, your GitHub name), and, once the entry would pass the index’s checks, opens GitHub’s page for a pull request to the index with the entry filled in; Pi Pocket itself makes no GitHub calls. docs/extensions.md says how to publish. The owner’s alone; turned off in Extensions, it reads nothing. It lists themes too, with a Theme tag and filter: Install checks a theme’s pinned files and its CSS before it goes intothemes/, and puts it in Appearance’s list without applying it; Update shows a diff; Remove moves it tothemes/.removed/; Share… in Appearance drafts an entry for one of your own themes (themes.md). What an entry reaches.GET /api/x/gallery/reach(the owner’s, like the other gallery routes) answers{ entries: { [name]: … } }for every entry of the index read now, each with the entry’spinso the app matches a result to the exact files it shows, so the app can show what each one can reach before it is installed. An extension gives{ kind: "extension", commit, scanned: { network, keys, programs, files } }: short words for the hosts its address literals name (localhost, standards’ namespaces,example.*, and repository pages left out;addresses it builds at run timewhen it callsfetch(,new WebSocket(, orhttp.requestwith no host in its code, or gives one of them, or anet,tls, ordgramconnection, an address it builds, also beside hosts it names), the keys it reads (openrouter key from Pi, an environment variable whose name hasKEY,TOKEN, orSECRET,Pi's auth.json), the programs it starts (programs it names at run timewhen it importschild_processbut names none, or loads code the scan cannot read:eval,new Function,getBuiltinModule,process.bindingordlopen,import()orrequire()of a name it builds, or a.nodefile), and the files it writes (files it writes, paths under~/.pi/agent/, oryour home folder). The scan is by literal patterns on the code with its comments taken out: it tells what the code says, not what it does. A theme gives{ kind: "theme", commit, palette: { colors, colorsLight } }from itscolors.tomlandcolors-light.toml(nullfor one it lacks). An entry that cannot be read (a download fails, or a file differs from the size or SHA-256 the index pins) gives{ kind, commit, error }and fails no other entry. Only the code files (.ts,.js,.mjs,.cjs) and the two palette files are read: from the installed copy when the entry is installed at the same commit and each file is as pinned, otherwise downloaded from the pinned commit with the checks every download has. Results are kept ingallery/reach.jsonin the data folder, by entry, commit, and pinned files, so the next answer downloads nothing for them; entries that fail are tried again, and three are read at a time. - Updates. Menu → Update Pi Pocket (or the launcher) shows the running version, the newest release with its notes, and Update to … and restart; a notice says once when a new version is out. The owner’s alone. Under the version, the sheet shows the checkout’s branch and commit, installed with npm (global), installed with npm (local), or run with npx. For npm installs, Pi Pocket asks the npm registry’s
latesttag for the newest published version 2 minutes after the server starts and every 6 hours after, and GitHub for that version’s release notes (PI_POCKET_UPDATES_REPOnames another repository). A git checkout asks GitHub for the newest release (or the repository’s version tags, without notes) and downloads its commit into the checkout under a ref of its own,refs/pocket-update/target. An update from a git checkout needs a checkout that the server’s user can write, run by the launcher (npm start), with no changes that are not committed and no commits the release lacks, and a Node.js the release runs on; the sheet says which of these stands in the way, and an ignored file of yours where the release has a file stops it too. It installs the release’s packages beside the checkout first (npm ciin.pocket-update/staging/, only when the lock file names other packages), stops loading edited files, puts the packages in place, moves the branch forward to the release’s commit (a detached checkout moves detached), and restarts. A global npm install updates from the app too, when the server’s user can write the folder that holds the package and the launcher runs the server: Pi Pocket installs the exact published version into a staging folder beside the package, stops watching its own files to release the folder on Windows, swaps it in place of the running copy, and restarts, with the copy before kept next to it. If the machine stops at the very moment of the swap,pi-pocketmay not start:npm install -g pi-pocketputs it back. A local npm install (in a project’snode_modules) and a copy run with npx do not update from the app: the sheet lists what stands in the way, with the server’s hint of what to run instead (npm install pi-pocket@latestin the project, ornpx pi-pocket@latest), and the update button stays off. The owner runs the command and restarts. Running work continues through a restart, but a tool call the restart cuts off comes back as interrupted, and the sheet says when Pi works. When the new version does not start, the launcher puts the files before back and starts that (a git checkout puts the commit and packages back; a global npm install swaps the kept copy back, with no network), and the sheet and a notice say what happened; after the next look the sheet offers that version again, for the owner to try again. A release whose notes have a[!WARNING]or[!CAUTION]alert needs a tick that you read it, and is not undone by itself, since it may change data one way; so does a release whose notes Pi Pocket could not read because GitHub did not answer (the registry or the tag gave the version, with no notes), since they may have such an alert: read them on GitHub. Under Menu → Extensions → Installed → Pi Pocket updates: Look for new versions (on), Install new versions by themselves (off), and Beta updates (off). Beta updates (since 0.27.0) also offers pre-releases, taggedvX.Y.Z-beta.N(GitHub releases marked as pre-release; npm’sbetadist-tag): a git checkout takes the highest version among GitHub’s non-draft releases (or the beta tags, when GitHub does not answer), and an npm install the newer of thelatestandbetadist-tags. A beta is marked Beta in the sheet, the menu hint, and the notice, and its caution says that it may have bugs. With the setting off nothing changes: only stable releases are offered, a beta is never offered, and a running beta still gets the next stable release (0.27.0is newer than0.27.0-beta.N, and0.27.0-beta.2is newer than0.27.0-beta.1) but never an older one. Turning it off drops a beta found before. An install by itself also takes a beta, when both settings are on. A server from before 0.27.0 needs a restart (menu → Restart server) for the setting to work. An install by itself waits until no session has worked for 10 minutes, and again after its packages install; it never takes a release with a warning or without notes, or one that failed before (did not start, or did not install). A launcher started before this feature restarts but does not go back, and cannot update a global npm install at all (the sheet says so): quit Pi Pocket and start it again once. - OpenAI-compatible endpoints. The owner adds an endpoint from the OpenAI Compatible row of the Providers list (Add; searching “ollama”, “local”, or “custom” finds it): a name, a base URL (
http://localhost:1234/v1), and an API key, or No key for a local server. Find models asks the endpoint’sGET /modelsand lists what it has, each with a checkbox; a model ID can also be typed by hand, and either way it is added. Each chosen model has an Images checkbox (it sees images: Pi sends them instead of a placeholder) and a Thinking button that opens its thinking levels: on, it starts with Low, Medium, High, Extra high, and Max, each sending its own name as the reasoning effort; levels can be added (Add level adds the next one above the highest, below the last row; Off and Minimal too), removed, or sent under another name (a model whose top effort ishard). The rows stay in Pi’s order, from Off to Max, as the model menu lists them; a row’s menu changes which level it is. A Context & price button opens its context window and maximum output, in tokens (empty: Pi’s defaults, 128k and 16k), and its price in dollars per million tokens: input, output, cache read, and cache write (empty: the model costs nothing; a cache price left empty is 0). The context meter and compaction go by the context window; each request asks for up to the maximum output, so it must be at or below what the endpoint allows; each message’s cost, and spend limits, go by the price. All of these are set by hand and saved inmodels.json, and Edit shows them as saved; Pi Pocket does not guess them from the endpoint’s list, which has no common format for them. The one exception is a vLLM server’smax_model_len, which fills in the context window of a model chosen from its list. Save writes the endpoint into Pi’s~/.pi/agent/models.json(made, with~/.pi/agent/, when missing) and keeps the key in Pi’s sign-ins (auth.json), so its models show in the model menu at once, with no restart. Each endpoint is a row of the list like any provider, with Edit (an empty key keeps the saved one; models can be found again with the saved key, at the same address only) and Remove (which removes its key too). Pi Pocket rewritesmodels.jsononly when it is plain JSON that Pi accepts, and keeps the fields that it does not set; a file with comments or trailing commas is left alone, with a message. - Refresh models. The owner can tap Refresh models in the menu (under App) or the Providers sheet (the refresh button beside the Subagent models heading), or run Refresh models from the Ctrl/⌘+K launcher. The same controls work on phones. Refresh reloads
models.jsonand Pi’s sign-ins, and asks configured providers for fresh catalogs. The menu’s row says when it is refreshing, and a notice gives the added and removed model counts, without closing the menu; the Providers sheet also shows the errors for individual providers. All connected tabs receive the updated list. Healthy providers finish independently of slow ones; each provider has an eight-second limit. Running sessions keep their chosen models. A local model must be configured inmodels.jsonor registered by a Pocket-compatible extension: refresh does not load regular Pi CLI extensions or discover arbitrary local servers. - Uploads. In normal chat and PiP, attach files with the picker, paste files or images, or drop them into the message box. Files are saved on the server for the conversation you send to and their paths are given to the agent; supported images also go straight to models that accept them. That includes HEIC and HEIF photos (from an iPhone, say), which the server converts to JPEG for the model in a worker, one photo at a time, with limits of 30 seconds and 64 million pixels (a photo that big needs about 1 GB of memory while it converts), so a broken or huge photo gets a notice and does not hold up the server; the original stays in the session’s uploads. When the image the model gets differs from the file, its line in the message says so: the format when it changes (
[Image: shown to you as JPEG.], always for a HEIC photo), and, in the words of Pi’sreadtool, the original size, the shown size, and the multiplier when it is made smaller. An image that does not change gets no note. A sent HEIC photo shows in the chat and in PiP as the JPEG the model got; when the model did not get one (a model without images, or a failed conversion), or when Pi Pocket cannot be sure which image is the photo’s (the message names an image with@, or another attached image failed), it shows as a file. An image starts to be made ready for the model as soon as it uploads, so a send seldom waits for it. In a session’s message box (not PiP’s), attached files stay across a reload, as the draft does, and leave with your sign-out; while a message is on its way, the box dims and holds what it sends, its words, files, and quote, which no key, dictation, or × changes until it went (in PiP’s box too, which empties as it sends), also when it shows again meanwhile (you went to another place and came back), so it cannot go twice; text sent to the box meanwhile (Send to Pi) goes in once it went or failed, and so does a queued message taken back with Edit, kept meanwhile in the browser, also through a reload or a move; the same words and files sent again after a lost answer, also after a reload, find the message that went instead of making a second; once you change them, or after an answer that said it was refused or failed, they go again; if the send fails, it is all there to send again, with its quote. - Code in your messages. In a message you send,
`code`and a fence of```lines show as code, the way Pi’s replies show it, colored when the fence names a language (```js). A span closes with as many backticks as opened it, a fence’s lines stand on their own, and a stray or unclosed one stays text. Nothing else is formatted:*,#, lists, and spacing stay as typed, and @mentions outside code stay buttons. Only the display changes: Pi, exports, and ↑ get the message as written. - Rich replies. Code blocks in Pi’s replies show their language and a Copy button, with syntax colors for the common languages (no dependencies, so it works offline), and a block of more than 40 lines folds until you ask for the rest. Some show more than code, with the code a tab away: an
htmlblock (or a reply that is a whole page) is previewed as a page, inline, with its scripts off and nothing loaded from anywhere; ▶ Run runs its scripts in the artifacts’ sandbox, where it can reach the internet but not the app; ansvgblock is drawn as an image (tap it for full screen); and adifforpatchblock opens in the diff viewer. While Pi is still writing, they show as code. Write cards color the file they write, and the file viewer previews.htmlfiles the same way, with Run. Cards in the reply. Anartifactcall withinline: true(anartifact_inlinecall, in a session from before 0.28.0) shows as a card in the reply, as thehtmlblock above with the artifact’s name and version in its bar, an Open button for the artifact viewer at that version, and the same Preview/Code and Run/Stop; a failed, denied, or stopped call shows as a step with its reason instead. The result records the version its call made, so each card keeps showing its own: an update by Pi adds a new card, and earlier cards, in this session and a fork, do not change. A card’s page is read from the artifact’s own address, so whoever can see the session sees the card, a viewer and someone invited to this session alone included, and each can Run it. Once run, its page gets what an artifact’s does: a follow-up for the message box (a notice for a viewer) and saved state under the artifact’s id, shared with the viewer. A preview grows to fit the page, up to 1200 px, and a running page up to 900 px, then scrolls inside. On a phone the bar takes two lines. A viewer already open on an older version stays on it and offers “latest is vN” after an update. Only a call Pi makes itself is a card: one made inside a codemode script is one of its nested calls, and in PiP’s panel the call is a line among its steps. - Images inline. Attached images show as thumbnails (also in the composer before you send). When Pi writes
with a path on the server (absolute,~/…, or relative to the session’s folder), the image shows in its reply. Images a tool returns and SVG artifacts show inline too; an image Pi reads withread(often one you just sent) shows only when its call is opened, so it is not on screen twice.readshrinks an image larger than the model takes (more than 2000 pixels a side, say) and converts BMP, with Photon in a worker thread that exits after 30 seconds idle; without Photon, the server still starts andreadrefuses such an image. Tap any image to see it full screen. Only real image files are shown: the server checks a file’s bytes, not just its name. - Launcher.
npm startasks how your devices should reach Pi Pocket: this device only, the local network, a Cloudflare Tunnel, Tailscale, or Tailscale Serve. It then shows the address and a QR code to sign in your phone, and keeps running with keys to restart the server or change access. With--socket PATH, for a reverse proxy on the same machine, it asks nothing: the server listens on that Unix socket, and the launcher shows the sign-in path to open at the proxy’s address, with no QR code (README).
Limitations
Section titled “Limitations”- Pi Durable is experimental, and its API can change between releases. Versions are pinned in
package.json. - Only one server process can use the database at a time.
- Forks are separate sessions; there is no branch tree to switch between inside one session.
- Pi’s own extensions are not supported: Pi Pocket runs its own extensions on Pi Durable, and drop-ins from
~/.pi-pocket/extensions/. Pi’s prompt templates work as slash commands. - A git worktree keeps a session’s files apart; it is not a sandbox. Pi can still reach everything you can.
- Artifacts run in an opaque-origin sandbox, so
localStorageand cookies are unavailable inside them. In the viewer, they can save up to 16 KB of state for each person through the app instead. - The browser needs Chromium, Chrome, Brave, or Edge on the server. Its pages live in memory: a restart opens each one again at its last address, but not what was typed into it. Each session’s cookies are its own and last until the page closes. A browser installed as a snap (Ubuntu’s Chromium) is used only when there is no other; it cannot open files outside your home folder. The list of servers running on the machine is Linux-only. Tested on Linux and macOS; not yet on Windows.
These pages describe Pi Pocket 0.31.3. Your copy has the pages of its own version in its docs/ folder.