Skip to content
TannerMiddPublic

About

A durable, multiplayer, mobile-first web app for Pi agents, built on Pi Durable

Topics

Resources

Contributing

Security policy

Stars

925 stars

Watchers

2 watching

Forks

Latest commit

 

History

3,005 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pi Pocket

Your Pi coding agent, in your pocket.

Start a coding session on your computer, check its diff on your phone, and invite a teammate to the same conversation. Pi runs on your machine, in your project, with your models. No cloud VM required.

Release Node.js 22.19+ MIT license

Quick start · Highlights · Feature tour · Website · Docs

Desktop: review a test diff while another session waits for approval to push. Phone: check in on other sessions with PiP.

Highlights

  • Durable work. Restart the server mid-run and Pi Durable picks up where it left off from one SQLite file. Schedule checks with /schedule, loop until a command passes with /until, watch pull requests with /watch, or run background jobs you can inspect and resume.
  • Agents and Priority. Hand focused tasks to subagents, or use Agent Teams to start linked child sessions that report back. Linked sessions start collapsed in the sidebar and expand inline with connectors. Priority groups sessions by what needs you (Needs you, Ready to read, Working, Quiet), and PiP follows runs for you.
  • Local classification with Pulse Nano. Install Pulse Nano from Menu → Providers (~123 MB ONNX model on CPU, no cloud API calls), or pick a cloud model instead. It handles memory suggestions, stuck-loop checks, run outcome labels, relay screening, and PiP session search. View verdicts in Classifier Hub.
  • Relay. Connect Discord, Slack, Telegram, or Matrix to a Pi session from your machine, with no public server. Optional Relay triage screens messages from unknown senders and holds replies that contain secrets. Relay setup.
  • Memory. Save short lessons for a project, a session, PiP, or everywhere. Pi proposes lessons when asked or when you state a standing rule; nothing takes effect until the owner approves it.
  • Multiplayer. Invite teammates to watch or steer. See who is in the session, take turns driving, queue follow-ups, quote replies, or talk in a side chat Pi does not see.
  • Browser, artifacts, and themes. Watch Pi test a page in Chromium or open versioned HTML, Markdown, and SVG artifacts beside the chat. Fork any reply into a git worktree. Pick from Pocket, Lantern, any Omarchy palette, or your own CSS theme.

Quick start

With Node.js 22.19 or newer:

npm install -g pi-pocket
pi-pocket

Or try npx pi-pocket. Choose how your devices should connect, then open the launcher's sign-in link or scan its QR code. Keep that link private: it signs you in as the owner. In the app, open Providers to connect a model provider (or use an existing Pi sign-in), optionally install Pulse Nano for local classification, and start a session in the folder you want Pi to work in.

Prefer a desktop app? Download the latest stable release. Both installers include Node.js and install for your account without admin rights. They are unsigned; the platform guides cover verification and first launch.

Updates and cleanup: Menu → Update Pi Pocket handles supported installs (including Docker with its persistent npm-global volume). Menu → Clean up archived sessions removes old worktrees, uploads, and schedules, with optional next-restart SQLite purge and compaction. See updates and backups.

Remote access

Choose local for this machine, lan for a trusted local network (plain HTTP), tailscale or tailscale-serve for your tailnet, or cloudflare for a public HTTPS tunnel that still requires sign-in. The launcher guide lists prerequisites and flags. In the desktop app, use Menu → Sign in another device.

Warning

Anyone who can steer Pi can run commands as your user. A session invite limits what someone sees in the app, not which files Pi can reach. Give steering access only to people you would trust at your keyboard. Security model.

Behind a reverse proxy on a Unix socket

On a shared host, use --socket in a protected directory rather than proxying to a TCP port another user could claim during a restart. See socket permissions, Caddy, and nginx examples.

Development

git clone https://github.com/TannerMidd/pi-pocket.git
cd pi-pocket
npm install
npm start

There's no build step. Run npm run check for types and API references, npm run lint for style, and npm test for the test suite. Use node test/serve.ts to try changes on an isolated copy. See Contributing, the code map, and safe self-editing.

Limitations

One server process owns the database. Git worktrees separate files; they are not sandboxes. The built-in browser needs a Chromium-based browser on the host. Pi Pocket has its own extension API; Pi CLI extensions do not run unchanged. Full limitations.

Credits and license

Inspired by Mario Zechner's Pi app demo. Pi Pocket is an independent project, not affiliated with Earendil. MIT; the bundled fonts and dependencies retain their own licenses, including libheif-js (LGPL-3.0). Report a security problem privately.

About

A durable, multiplayer, mobile-first web app for Pi agents, built on Pi Durable

Topics

Resources

Contributing

Security policy

Stars

925 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages