piagent_
← ~/map

$ cat ~/map/pi-for-vscode.md

Pi for VS Code

VS Code extension hosting the real pi TUI in the sidebar over a pseudo-terminal — not a chat-panel reimplementation.

tools✓ Sep 16

Facts

repository
github.com/yicLionel/pi-for-vscode ↗
GitHub Stars
★ 1
Forks
0
license
MIT
npm / mo
—
last push
Sep 15, 2026

install

Download the VSIX from the GitHub releases page (pi-for-vscode-<version>.vsix), optionally verify it against the SHA256SUMS.txt from the same release, and run code --install-extension pi-for-vscode-*.vsix — there is no Marketplace listing

## TL;DR

A VS Code extension that hosts the real pi TUI in the sidebar — xterm.js over a node-pty pseudo-terminal — so slash commands, keybindings, themes, /login, session resume, mouse reporting, and tool-approval prompts behave exactly as in a terminal, because it is one.

## Key points

## FAQ

Q Is the extension available on the VS Code Marketplace?

No. It is distributed through GitHub Releases as a VSIX — download pi-for-vscode-<version>.vsix from the latest release, optionally check it against the SHA256SUMS.txt published alongside it, and install it with code --install-extension.

Q Why a webview with a PTY instead of VS Code's built-in terminal API?

The stable VS Code API has no sidebar location for createTerminal, so a webview plus a real pseudo-terminal is the honest way to get a genuine TUI in the Activity Bar — the extension ships the same pi interface the terminal would.

Q Pi fails to start in a container, remote, or WSL — what should I check?

Set pi-for-vscode.executablePath explicitly. Auto-detection cannot see host paths from inside a container, and the troubleshooting section of the README also points to the Show Logs output channel, which records the resolved executable, interpreter, working directory, and pid.

## References

## Related entries

## Guides

Last updated: Sep 16, 2026