Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>Pi SidekickNew to Visual Studio Code? Get it now.
Pi Sidekick

Pi Sidekick

Meyverick

|
2 installs
| (0) | Free
Session and extension sidebar for the pi coding agent
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Architected and directed by Human Intelligence, implemented by AI.

Pi for VS Code

A 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

  • VS Code 1.85 or newer.
  • pi installed and reachable. If the editor cannot find it, set pi.executablePath.

Views

The 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 + button opens a new session. With several folders open, the view lists sessions from each and the new-session button asks which folder to use. A session that delegated background work expands to show its child runs: the current turn's runs directly, older turns grouped in an "Earlier turns" folder that holds one folder per prompt, newest first. Each run shows the agent, its state, the current tool and elapsed time, and still-updating runs keep the view fresh while it is visible. Clicking a run opens its recorded output read-only. Only small status files are read, never full transcripts. Branched sessions merge their prompts by time, so turn grouping there is approximate. Verified against pi-subagents 0.90.0. Foreground children run inside the parent session and leave no run behind, so they are not listed.

Pi Extensions lists installed packages grouped by scope. Right-click a package to update or uninstall it; the extension runs pi update and pi remove and then tells open sessions to reload. Entries under extensions in pi's settings (builtin toggles, local resource paths) are listed but not actionable.

Pi Config lists pi's configuration folder (~/.pi/agent, or wherever PI_CODING_AGENT_DIR points), folders first. Clicking a file opens it in the editor. The view reads names only — it never decodes auth.json or anything under secrets/.

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

Setting Default Meaning
pi.executablePath "" Path to the pi executable. Empty means: resolve from PATH, then from a login shell.

Resolution is cached for the window, so the login-shell probe runs at most once.

Session lifetime

Each 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 /resume, /new, /fork, or /clone inside a tab, the guard follows the terminal rather than the session it started with. If the report is unavailable — pi started with extensions disabled, for example — the extension falls back to the session it launched with.

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 terminal.integrated.persistentSessionReviveProcess, the buffers are restored and the processes recreated — running pi --session <file> again — when the workspace is reopened. After a plain window reload the processes usually survive and reconnect, and the extension re-adopts them.

The extension itself never leaves a process behind: the only children it spawns are short-lived pi commands (--version, install, update, remove), which run to completion.

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 titles

A pi session is a Node script, so VS Code's default tab template (${process}) labels the tab node. The extension therefore ships a default for terminal.integrated.tabs.title of ${sequence}, which shows the title the process reports. pi reports π - <session name> - <folder> and re-reports it when the session is renamed, so renaming inside a session updates its tab.

That default applies to every terminal in the window, not only pi's. To restore the previous behaviour, set it back in your settings:

{
  "terminal.integrated.tabs.title": "${process}"
}

Keyboard shortcuts

VS Code handles some chords before the terminal sees them, which includes pi's model cycling. To forward them, add these to your settings:

{
  "terminal.integrated.commandsToSkipShell": [
    "-workbench.action.quickOpen",
    "-workbench.action.showCommands"
  ]
}

This affects every terminal in the window. Images do not render in the integrated terminal, and a fullscreen pi (tuiMode: fullscreen) uses the alternate screen, which costs scrollback; tuiMode: regular keeps history.

Development

npm install
npm run compile
npm test

Press F5 in VS Code to launch an Extension Development Host. The lanes run with ./scripts/check.sh --quick.

Packaging

npx @vscode/vsce package

The package contains compiled output, the manifest, and the icon. It has no runtime dependencies, so an updated pi never requires a new build.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft