- TypeScript 64.1%
- JavaScript 23.3%
- Python 7.3%
- CSS 3%
- Shell 1.9%
- Other 0.3%
| .vscode | ||
| contracts | ||
| contrib/topgrade | ||
| dictate | ||
| docs | ||
| skills | ||
| tests | ||
| vscode | ||
| web | ||
| .gitignore | ||
| AGENTS.md | ||
| claude_ai_forgejo_mcp_architecture.svg | ||
| Dockerfile | ||
| LICENSE | ||
| logo.png | ||
| models.json | ||
| pid | ||
| pid-rpc.py | ||
| README.md | ||
pid
pid runs the Pi coding agent in a rootless, locked-down Docker sandbox, with a writable project workspace and persistent agent state kept separately from the host. Use Pi in your terminal or through the experimental Pi for pid VS Code sidebar, which connects to the same launcher, Pi home, installed extensions and native sessions rather than bundling another Pi runtime.
Key features
- Read-only container root, dropped capabilities, no privilege escalation and enforced memory/process limits.
- Persistent Pi home, executable and extension caches, with optional host-backed configuration and credentials.
- Terminal session continuation, a sandbox shell and an alternative Claude Code workflow.
- A VS Code chat sidebar with streamed replies, tool activity, session browsing, file context and change review.
- Git-managed launcher updates, a bundled sidebar VSIX and optional topgrade integration.
Requirements
- Linux with Docker CLI and rootless Docker Engine 26+, seccomp enabled and the
systemdcgroup driver. Rootful daemons are refused. XDG_RUNTIME_DIRset, normally with the socket at$XDG_RUNTIME_DIR/docker.sock.- Bash, Git,
sha256sum, standard GNU utilities, andflock/scriptfrom util-linux (scriptis inbsdutilson Debian). Python 3 is needed for the RPC helper and sidebar version checks. ~/.local/binonPATH.- For the sidebar: local Linux desktop VS Code 1.95+ and a trusted local folder. Remote SSH, WSL, Dev Containers, virtual workspaces and browser VS Code are unsupported.
Installation
Launcher
git clone https://git.tsbprodesk.co.uk/localuser/pid.git
cd pid
./pid --install
The installer clones the configured distribution into ~/.local/share/pid/source and links ~/.local/bin/pid to its launcher. The default distribution ref is main; PID_REPO_REF selects another branch or tag and is recorded for later updates. Installation does not require Docker. Running --install again replaces the managed checkout, so do not keep local work there.
Host command approval (hostrun)
pid --install also sets up hostrun, a Python daemon running on the host as you, plus its Pi host_run extension. Approval appears inside Pi: a TUI popup or a questionnaire-style card in the sidebar, with the complete command and Deny / Allow once / Allow for this session choices. Session grants cover the exact command and cwd in memory. Print/JSON mode without a UI denies commands. Review the trusted source and each complete command, not just the agent's description.
The daemon trusts the sandboxed extension's approval decision. Sandboxed processes could forge approval, so this is a convenience boundary, not a security boundary.
Opt out before installation with PID_HOSTRUN=0 ./pid --install. Keep PID_HOSTRUN=0 in your terminal/sidebar environment to skip future setup and socket mounting. This does not stop an already running daemon or revoke access from existing containers. To remove the daemon:
# Use your PID_INSTALL_ROOT if overridden:
~/.local/share/pid/hostrun/uninstall.sh
# Optional: remove the Pi package from the selected Pi home:
PID_HOSTRUN=0 pid --shell
# Inside the sandbox (use your configured URL/ref if different):
pi remove git:https://git.tsbprodesk.co.uk/localuser/hostrun.git@main
exit
There is no launcher uninstall command. Stop/reconnect existing sessions after disabling the integration; retain PID_HOSTRUN=0 to prevent reinstallation. The hostrun uninstaller retains audit logs. Pid state resets/rebuilds do not uninstall host software.
The host checkout lives at $PID_INSTALL_ROOT/hostrun (default ~/.local/share/pid/hostrun). PID_HOSTRUN_REPO_URL defaults to https://git.tsbprodesk.co.uk/localuser/hostrun.git; PID_HOSTRUN_REPO_REF defaults to main and is recorded for later updates. As with pid itself, the configured Git source is trusted code, including its installer. Existing origins are retained unless explicitly configured; mismatched origins, local tracked changes and non-fast-forward updates are refused. No downloaded shell pipeline is used.
pid --update installs a missing companion, fast-forwards an existing checkout, and updates its Pi package with the other extensions. Only changed daemon/unit files trigger a restart; other checkout changes are reported without restarting it. A failed restart remains pending for the next repair. Unchanged hostrun setup is silent apart from prerequisite warnings. Automatic launcher-only --self-update does not install host software.
The daemon requires host Python 3, but no graphical desktop, tkinter, kdialog or zenity. With an available systemd user manager, installation enables and starts the unit. Without it, files are installed with instructions for manual startup. Git/network/Python/service/extension failures warn but do not fail the pid install/update (pid's own prerequisites still apply).
Pi registration uses the normal pi install git:URL@ref package mechanism, persisted in the selected Pi home's agent/settings.json, with a sandbox-visible checkout under agent/git/. Other settings/packages are preserved. Installation attempts registration when Docker is ready; otherwise it queues registration for the next ordinary Pi launch or pid --update. Offline-first --prepare-state, --skip-update, shell and RPC launches do not fetch it. Prepare through the terminal before connecting the sidebar. Rebuilt/reset homes acquire it again on an updating launch. Restart existing containers/connections to pick up the read-only $XDG_RUNTIME_DIR/pid-hostrun socket-directory mount. The host checkout, registration marker and installed daemon/unit paths are protected against writable sandbox mounts. See hostrun's README for approval, audit and manual checks.
VS Code sidebar
pid --install-vscode
This installs vscode/release/pid-sidebar.vsix into every detected code or codium editor. Alternatively, select that file with Extensions: Install from VSIX. Keep the launcher, adjacent pid-rpc.py and VSIX from the same distribution.
The sidebar remains experimental: local automated checks are not full real-host or installed-extension qualification. See the development guide, native compatibility notes and host checklist.
Quick start
Run from your project, not the protected pid installation checkout:
cd /absolute/path/to/your/project
pid # Continue the latest session, or start one if none exists
pid --new # Start a fresh session
The first terminal launch builds a missing image and prepares Pi state. Authenticate with /login in terminal Pi, or copy existing host Pi credentials beforehand with pid --import-auth. The import reads ${PI_CODING_AGENT_DIR:-$HOME/.pi/agent}/auth.json; it is unnecessary and refused when PID_AUTH_FILE is mounted directly.
For the sidebar, prepare and authenticate the same Pi home through the terminal first, then open the Pi view and choose Pi: Connect. Opening the view alone does not start Pi. Connect does not build images or prepare/update Pi packages; pid --prepare-state can prepare resources without opening Pi. The sidebar can update the launcher/VSIX before connecting.
GUI-launched VS Code may not inherit terminal exports. Configure user settings as needed:
{
"pidSidebar.launcherPath": "/home/YOUR_USER/.local/bin/pid",
"pidSidebar.environment": {
"PID_PI_HOME_DIR": "/absolute/path/to/your/pi-home"
}
}
Use the same overrides as your terminal setup. Omit PID_PI_HOME_DIR if you use the default Docker volume. No shell profile is sourced.
Launcher commands
| Command | Purpose |
|---|---|
pid [Pi arguments...] |
Launch Pi in the current folder. No arguments continues its latest session; explicit Pi arguments are forwarded. |
pid --new [Pi arguments...] |
Start a fresh session. |
pid --skip-update [Pi arguments...] |
Skip launcher, Pi core and extension update checks. Does not prevent building a missing image. |
pid --install |
Install/reinstall the managed launcher and repair its symlink. |
pid --install-vscode |
Explicitly install the bundled VSIX into detected editors; no Docker required. |
pid --self-update |
Fast-forward the launcher and synchronise an already-installed sidebar; no Docker checks. Ends stdout with a JSON result. |
pid --update [--if-idle] |
Update launcher, refresh a stale/missing image, update Pi core/extensions and install shipped skills. --if-idle skips successfully when resources are busy. |
pid --rebuild [--no-cache] |
Pull the base, rebuild and reset Docker-backed state after a successful build. --no-cache forces a cold build. See the data-loss warning below. |
pid --prepare-state |
Prepare Pi state/core without launching Pi or running launcher/core/extension updates. Builds a missing image. |
pid --import-auth |
Copy host Pi credentials into the configured Pi home. |
pid --install-skills |
Replace shipped skills in Pi home, leaving unrelated skills alone. |
pid --shell |
Open sandbox Bash without Pi core/extension updates. Git self-update still applies. |
pid --claude [Claude arguments...] |
Run Claude Code instead of Pi in the sandbox. |
pid --reset-state |
Delete volume-backed Pi home and the extension cache; preserve a host-backed Pi home. |
pid --reset-core |
Delete the persistent Pi executable and its update cache. |
pid --reset-all |
Remove configured pid volumes and attached containers; preserve host-backed homes. |
pid --doctor |
Report Docker security/version, paths, limits, storage and external configuration. |
pid --help, pid -h |
Show launcher help. |
pid --web-serve |
Build on demand and run the experimental web server. |
pid --web-local |
Run the web server on loopback without sign-in, for local testing. |
pid --web-config-check |
Validate the web configuration, building the server if needed. |
Wrapper commands are selected by the first argument. --skip-update is a prefix, for example pid --skip-update --shell or pid --skip-update --claude. Maintenance commands reject extra arguments except the documented --if-idle and --no-cache options. --update rejects --skip-update and PID_SKIP_UPDATE=1.
The sidebar uses --rpc, --rpc-info, --rpc-stop and --rpc-sessions; their workspace/owner arguments and lifecycle are documented in the RPC contract.
Plain pid starts a new session if another Pi session is already active in that workspace. Moving/renaming a project changes its session grouping; old /workspace sessions are not migrated automatically. Launching from / or your home directory uses /tmp/pitemp instead.
Configuration
Environment variables
| Variable | Default | Purpose |
|---|---|---|
PID_PI_HOME_DIR |
Unset | Host directory mounted read-write at /pi-home, instead of the state volume. |
PID_CLAUDE_HOME_DIR |
Unset | Host directory mounted at /claude-home for Claude Code. |
PID_SETTINGS_FILE |
Unset | Host settings.json mounted read-write at /pi-home/agent/settings.json. |
PID_PROVIDERS_FILE |
Unset | Host models.json mounted read-write at /pi-home/agent/models.json. |
PID_MODELS_FILE |
Unset | Alias for PID_PROVIDERS_FILE; setting both to different paths is refused. |
PID_AUTH_FILE |
Unset | Host credentials mounted read-write at /pi-home/agent/auth.json. |
PID_MEMORY |
12g |
Session memory limit, with no additional swap allowance. |
PID_PIDS |
1024 |
Session process limit. |
PID_TMP_SIZE |
2g |
Terminal sandbox /tmp tmpfs size. |
PID_SHM_SIZE |
256m |
Shared-memory size. |
PID_UPDATE_MEMORY |
4g |
Pi core/extension updater and Claude installer memory limit. |
PID_IMAGE |
pid-sandbox:latest |
Sandbox image name. |
PID_DOCKER_HOST |
unix://$XDG_RUNTIME_DIR/docker.sock |
Rootless Docker endpoint. |
PID_INSTALL_ROOT |
~/.local/share/pid |
Managed installation root. |
PID_REPO_URL |
Repository URL used above | Git clone URL for installation. |
PID_REPO_REF |
main |
Installation ref; updates otherwise use the recorded ref. |
PID_HOSTRUN |
1 |
0 skips hostrun setup/registration and socket mounting; does not stop existing daemons/sessions. |
PID_HOSTRUN_REPO_URL |
https://git.tsbprodesk.co.uk/localuser/hostrun.git |
Trusted hostrun repository; existing installs retain their origin. |
PID_HOSTRUN_REPO_REF |
main |
Hostrun branch/tag; updates otherwise use the recorded ref. |
PID_IMAGE_DIR |
~/.local/share/pid |
Build-context fallback when no source checkout is detected. |
PID_SKIP_SELF_UPDATE |
0 |
Set to 1 to skip Git launcher updates. |
PID_SKIP_UPDATE |
0 |
Set to 1 to skip Pi core/extension updates and Claude auto-updates. |
PID_SKIP_VSCODE_SYNC |
0 |
Set to 1 to skip automatic sidebar updates, not explicit --install-vscode. |
PID_NO_TOPGRADE |
0 |
Set to 1 to prevent linking the topgrade fragment. |
PID_TRACE |
Unset | 1 records startup timings in $XDG_RUNTIME_DIR/pid-trace.log; an absolute path selects another file. |
PID_WEB_CONFIG |
~/.config/pid-web/config.json |
Experimental web server configuration. |
PID_WEB_PORT |
8787 |
Port for --web-local only. |
PI_HYPERLINKS |
1 |
Forwarded to Pi for terminal links; 0 disables them and auto uses detection. |
Advanced volume overrides:
| Variable | Default volume |
|---|---|
PID_STATE_VOLUME |
pid-pi-home |
PID_CORE_VOLUME |
pid-pi-core |
PID_CORE_CACHE_VOLUME |
pid-pi-core-cache |
PID_EXT_CACHE_VOLUME |
pid-pi-extension-cache |
PID_CLAUDE_STATE_VOLUME |
pid-claude-home |
Persistent state and external files
Host-backed home paths must be absolute, without commas/newlines, and readable, writable and searchable. Missing directories are created with mode 700. PID_PI_HOME_DIR takes precedence over PID_STATE_VOLUME; an existing volume is not copied into a newly configured directory.
External JSON files must already exist, use absolute paths without commas/newlines, and be readable/writable. PID_AUTH_FILE must belong to the current user and have no group/other permissions (chmod 600). Credentials are readable and writable by the sandbox: never commit them, and synchronise them only between trusted devices. Avoid concurrent use of a synchronised Pi home. If synchronisation atomically replaces a mounted file, restart the session to bind the new file.
Preparation synchronises the repository's AGENTS.md into /pi-home/agent/AGENTS.md. Its managed models.json replaces the Pi-home copy on initial setup, repository-source changes and explicit rebuilds, without merging or backing up local edits. Explicit PID_PROVIDERS_FILE/PID_MODELS_FILE mounts take precedence and are not overwritten by this synchronisation. These repository files do not require an image rebuild.
Data loss:
--rebuildand--reset-alldelete configured Docker-backed homes, core and caches, including volume-held credentials and sessions for Pi and Claude. Host-backed homes and external JSON files are not deleted. However,--rebuildreplaces Pi's installed npm/Git packages, removes loose global extensions, resetssettings.packagesto the image list and replaces the managed Pi-homemodels.json. Back up important state first; do not use resets as routine troubleshooting.
Sandbox security model
- Only the selected workspace is mounted at its absolute host path, not its parents or neighbouring projects. Pi home and explicitly configured JSON files are additional writable mounts.
- The root filesystem and session Pi core are read-only. All Linux capabilities are dropped;
no-new-privileges, Docker seccomp, memory/PID limits and disabled core dumps apply. - Terminal sessions use private
/tmpand/runtmpfs mounts. Sidebar connections instead bind a private per-connection host directory over/tmpso temporary-file links work while connected; it is removed on disconnect. - Sessions have outbound network access through Docker bridge networking. The host Docker socket and GUI sockets are not exposed.
- There is no sudo or runtime system-package installation. Put persistent user tools under
/pi-home/.local(/pi-home/.local/binis onPATH).
Review projects before use. Pi is launched with --approve, trusting project-local Pi resources. The sandbox can modify the workspace and persistent state and access its credentials; it is not a workspace-only or offline boundary.
The Dockerfile includes Node.js 24, Pi, Git/Git LFS, GitHub CLI, Python 3, build tools, ffmpeg, yt-dlp, Pandoc and XeLaTeX, plus the seeded Pi package set. Chromium system libraries are included, but no browser binary. Ordinary package changes persist until an explicit rebuild.
Claude Code
pid --claude uses the same workspace/security limits but a separate home (pid-claude-home or PID_CLAUDE_HOME_DIR), without Pi state/core/cache or external Pi JSON mounts. It installs Claude through the official native installer on first use; log in inside the container. Its auto-updater is disabled by --skip-update or PID_SKIP_UPDATE=1. Host credentials and ANTHROPIC_API_KEY are not forwarded. The launcher synchronises AGENTS.md to ~/.claude/CLAUDE.md and runs Claude with --dangerously-skip-permissions.
VS Code sidebar
- Conversation: streaming replies, model/thinking controls, native command discovery, new conversations and session browsing. Enter sends, Shift+Enter adds a line; while busy, use Steer, Follow up or Stop.
- Context and review: Pi: Add Context, file/image attachments, tool activity, sub-agent progress and read-only Changes diffs from bounded run snapshots, not Git HEAD. Existing dirty files and concurrent edits can be included.
- Rendering: Markdown, highlighted code, a bounded TeX/MathML subset, local images and sanitised inline SVG diagrams. This is not full terminal/extension-UI parity.
- Usage: a usage dial beside the model picker, controlled by the Show usage dial setting (
pidSidebar.showUsageDial). - Editor integration: move between sidebar and editor tab with Pi: Open in Editor Tab / Pi: Move to Sidebar. Use Pi: Show Output and Pi: Copy Diagnostics for connection problems. The RPC-only
vscode_get_diagnosticstool reads cached VS Code diagnostics on demand, not as an automatic prompt addition.
Notable settings
Settings use the pidSidebar. prefix. The sidebar's Settings pane also exposes presentation and behaviour controls.
| Setting | Default | Purpose |
|---|---|---|
launcherPath |
pid |
Executable name or absolute launcher path; no shell is used. |
environment |
{} |
Explicit PID_*/XDG_RUNTIME_DIR overrides on top of VS Code's environment. |
autoUpdate |
true |
Run launcher --self-update before Connect, at most once per 10 minutes per window. |
showUsageDial |
true |
Show usage dial. |
cacheRetention |
long |
short or long prompt-cache retention for supporting providers; applies on next connect. |
showCacheMissNotices |
true |
Show prompt-cache re-billing warnings in the transcript. |
dictation.enabled |
true |
Enable composer dictation. |
dictation.engine |
local |
Choose local, remote or mistral speech recognition. |
dictation.postProcess.enabled |
true |
Clean up transcripts through an OpenAI-compatible API when its secret key is present. |
summary.enabled |
false |
Optional short activity labels from thinking, using a local model or API. |
condenseToolCalls |
true |
Condense tool-call details. |
notifications |
off |
Optional whenAway question/error notifications. |
motion.mode |
followSystem |
Follow system motion preferences, always animate or turn decorative motion off. |
See vscode/package.json for the full settings and command catalogue.
Dictation runs through the host extension, with local recognition, a remote server or Mistral realtime transcription. Microphone capture needs host pw-record (PipeWire) or arecord (ALSA). Use Pi: Toggle Dictation (Ctrl+Alt+D when the sidebar is focused) and Pi: Select Dictation Model for setup. Store credentials with Pi: Set Dictation Clean-up API Key, Pi: Set Dictation Remote Token or Pi: Set Dictation Mistral API Key; these use VS Code SecretStorage. Remote and Mistral engines need an extension host running Node.js 24+. Remote recognition sends audio to the selected service; optional clean-up sends transcript text to its configured API. See dictate/README.md for the local recogniser.
Cache expiry comes from the separate cache-warning Pi extension, included in the Dockerfile's seeded packages, not a sidebar estimate. It must run in RPC mode and publish uncoloured cache-expiry status text such as CE: mm:ss. Models without a known cache lifetime do not show the indicator unless configured in that extension's cache-expiry.json.
Shipped skills
| Skill | Purpose |
|---|---|
handoff-plan |
Write a plan, handoff and starting prompt for another agent. |
md-to-pdf |
Compile Markdown with Pandoc/XeLaTeX and visually check the PDF. |
svg-mockup |
Create themed, sanitised SVG diagrams/mockups for the pid sidebar. |
Run pid --install-skills or pid --update to install them under /pi-home/agent/skills. Each shipped directory replaces its same-named installed copy; unrelated skills are preserved. Ordinary launches do not install these skills. missing-tools is not part of this bundle.
Updating
pid --update # Launcher, image if stale/missing, Pi, extensions, skills
pid --update --if-idle # Suitable for scheduled maintenance
Managed launchers normally fetch their recorded ref and accept only fast-forward updates. Active sessions can defer the launcher fast-forward and runtime maintenance. Existing sidebar installations are synchronised automatically; first installation remains explicit. The sidebar offers Reload Window when its installed version changes.
Normal launches build only a missing image; stale/unlabelled images warn but remain usable. --update refreshes a stale image with the layer cache without pulling a newer base. Only --rebuild pulls the base and performs the destructive reset described above. Image freshness is based on the Dockerfile, not AGENTS.md or models.json.
For a one-off launch without update checks, use pid --skip-update. PID_SKIP_SELF_UPDATE=1 skips only the launcher fetch; PID_SKIP_UPDATE=1 skips Pi core/extension updates and Claude auto-updates. These are not guarantees of offline operation.
topgrade
--install and --update link contrib/topgrade/pid.toml into ${XDG_CONFIG_HOME:-$HOME/.config}/topgrade.d/pid.toml if topgrade is on PATH or the fragment directory exists. They do not replace user files or foreign links. Set PID_NO_TOPGRADE=1 to opt out of linking.
The fragment runs pid --update --if-idle and excludes pid-sandbox* from topgrade's container pulls. Add custom image names to your exclusions and avoid pruning Docker's build cache if you want to retain it. Run topgrade in a login environment with XDG_RUNTIME_DIR set. Launcher self-update and VSIX synchronisation are attempted before the idle check; a busy runtime update exits successfully instead of interrupting sessions.
Experimental web server
This is separate from browser VS Code support. It needs host Node.js 22+ and npm and builds on demand. pid --web-local serves loopback on port 8787 by default with no sign-in and separate state under ~/.local/state/pid-web-local; use it only for local testing.
For deployment, start from web/deploy/config.example.json at ~/.config/pid-web/config.json (mode 600). Configure the bind address, public URL, Google OAuth client and email allow-list; register <publicUrl>/auth/callback. Bind to a private/VPN interface and use HTTPS, directly or through a TLS-terminating proxy with WebSocket support. With Nginx Proxy Manager, enable Websockets Support and use a DNS-01 certificate for a VPN-only hostname. Then run pid --web-config-check and pid --web-serve.
A systemd user unit is supplied. The server does not self-update: update deliberately with pid --self-update, then restart it. Each account has a separate Pi home under the server state directory; the server ignores inherited PID_AUTH_FILE/PID_SETTINGS_FILE. Provider OAuth login still requires terminal Pi against that account's Pi home. See the web design notes for architecture and scope.
For standard users, browsing and sessions are limited to ~/pid-web/<lower-cased-email>/ (or the equivalent under the configured workspaceRoot), created with mode 0700 on first use. Existing shared folders are not migrated and are no longer available to standard users unless an admin moves them into the account's root; admin workspace access is unchanged.
The web sidebar has the same Settings tabs as VS Code, stored per account in <stateDir>/users/<id>/settings.json. Keys and tokens entered in the sidebar (ntfy token, summary API key, dictation Mistral key, remote token and clean-up key) go to <stateDir>/users/<id>/secrets.json (mode 600) and never reach the browser. Per-account features:
- Notifications: ntfy pushes from the server, plus browser notifications and an unread count in the tab title when the tab is hidden.
- Thinking summaries: API engine only; there is no local llama.cpp engine on the web.
- Dictation: the browser records the microphone and the server runs the account's engine. Mistral and remote engines need no server setup. The local engine and Bearer-token
/dictateclients need thedictationconfig block (binaryPath,modelPath, optionaltokensandpostProcess, seeweb/deploy/dictation.md); catalogue models are downloaded once into<stateDir>/dictation-modelsand shared. - Standard users may only point dictation and summaries at HTTPS/WSS endpoints that are not local to the server; admins are unrestricted.
- Diagnostics (the VS Code Problems list) are reported as unavailable; statistics and quota work per account.
Development and testing
Work from a source checkout. The sidebar toolchain is Node.js 24.22.0 (.node-version), npm 11.19.1, Python 3 and Chromium's Linux shared-library prerequisites.
cd vscode
npm ci --ignore-scripts --no-fund --no-audit
npx --no-install playwright install chromium-headless-shell
npm run verify
Command (in vscode/) |
Purpose |
|---|---|
npm run build |
Build the extension and webview bundles. |
npm test |
Run unit tests; append -- <file-name substring> to select files. |
npm run test:ui |
Run Playwright UI tests after a build. |
npm run verify |
Typecheck, unit tests, build, diagnostics bundle checks, state/parser checks and Playwright UI tests. |
npm run package |
Run verification and package/verify the VSIX under artifacts/. |
npm run release |
Bump the patch version in both manifests, run the packaging gate and copy the VSIX to release/pid-sidebar.vsix. |
A failed release leaves the version files bumped; restore the bump before retrying. From the repository root, launcher/helper regressions run with:
PYTHONDONTWRITEBYTECODE=1 python3 -B -m unittest discover -s tests -q
bash -n pid tests/run-rpc-host-checks.sh
git diff --check
See vscode/README.md and AGENTS.md for filtered tests, preserved-browser tooling, packaging details and host-test boundaries. Local test passes do not establish full VS Code/provider/extension compatibility.
Troubleshooting
- Start with
pid --doctor. Check the rootless socket, Docker version, seccomp, cgroup driver, resource limits and resolved storage/configuration paths. It fails early if the Docker environment is unsuitable. - Sidebar cannot start: prepare through terminal
pidorpid --prepare-state, check Workspace Trust and use matching launcher/helper/VSIX files. Use Pi: Show Output or Pi: Copy Diagnostics for fixed failure codes. - Authentication differs from terminal: check
pidSidebar.environment, especiallyPID_PI_HOME_DIRand external file overrides. GUI VS Code does not source shell profiles. Use/loginin terminal Pi, not the sidebar. - Image is out of date: run
pid --update; a full rebuild is not required just to refresh a stale image. - Resources are busy: disconnect sidebar sessions and close terminal sessions before maintenance, or use
--update --if-idleto skip. Do not delete unrelated Docker resources. - Previous launcher changed / cleanup unconfirmed: follow exact-owner recovery, retaining the original environment and owner information rather than using broad container removal.
Licence
GPL-3.0-only. See LICENSE. Pi, installed extensions and bundled third-party components retain their own licences; see also the sidebar's third-party notices.