Pi for VS CodeA thin sidebar for the pi coding agent. It lists the pi sessions of the open folder and the pi packages installed on this machine, and does nothing else: the agent itself runs in a normal VS Code terminal. Requirements
ViewsThe Pi icon in the activity bar holds two views. Sessions lists the pi sessions recorded for the open folder, newest first,
labelled with the session's name or, when it has none, an excerpt of its first
message. Clicking one opens it in an editor tab, next to your files, or
focuses its tab when that session is already open in this window. The Pi Extensions lists installed packages grouped by scope. Right-click a
package to update or uninstall it; the extension runs Pi Config lists pi's configuration folder ( Right-click a session to rename or delete it. Delete asks once, then moves the session file to the platform trash (Recycle Bin, Trash, or XDG trash), and it is refused while that session is running in a tab. Settings
Resolution is cached for the window, so the login-shell probe runs at most once. Session lifetimeEach session terminal loads a small bundled pi extension that reports which
session it currently has open. That report is what the sidebar uses to decide
whether a session is in use: after Closing a tab ends that session's pi process: VS Code disposes the terminal and closes its pty, which terminates the process tree pi started. The conversation is already on disk, so the session stays in the list and one click resumes it; at most the reply that was in flight is lost. Closing the window or quitting the editor ends every session the same way. With
VS Code's default The extension itself never leaves a process behind: the only children it spawns
are short-lived pi commands ( Updating pi is refused while a session tab started here is still running, since replacing an installed binary under a live process can break it. Close those tabs (or quit pi inside them) and try again. Version checking starts the first time the Sessions or Pi Extensions view is shown, so a window that never opens them makes no registry request. The refresh button in either view header re-checks for updates immediately; a press made while a check is running re-checks once more as soon as that check finishes. Tab titlesA pi session is a Node script, so VS Code's default tab template ( That default applies to every terminal in the window, not only pi's. To restore the previous behaviour, set it back in your settings:
Keyboard shortcutsVS Code handles some chords before the terminal sees them, which includes pi's model cycling. To forward them, add these to your settings:
This affects every terminal in the window. Images do not render in the
integrated terminal, and a fullscreen pi ( Development
Press Packaging
The package contains compiled output, the manifest, and the icon. It has no
runtime dependencies, so an updated |