sPi (Simple Pi Agent GUI) is an Electron + React desktop client for your existing Pi Coding Agent. Each open session runs an independent Pi RPC process and reuses your Pi models, authentication, skills and extensions.
- Directory/recent-session navigation, pinned history, independent tabs and drafts; repeated clicks activate the same session.
- Streaming replies, thinking/tool output and Pi extension interaction.
- Linux desktop 0.1.2 feature: a session-local YOLO checkbox. On: reply Allow once to compatible Pi tool approvals. Off: follow Pi's session settings without an added sPi approval layer. Published v0.1.1 does not include this.
- Model/thinking selectors, image attachments and file/command completion.
- Embedded real PTY terminal per session, dark/light/high-contrast themes and English/Chinese UI.
- Native precompiled desktop archives: no AppImage, FUSE, or end-user C++ build.
Linux desktop 0.1.2 workspace improvements: resizable sidebar split, active-session highlighting, ~ path labels and an editable/cancellable outbox. Busy Send queues messages in a fixed composer overlay: follow up appends to its tail, while every new steer inserts at the front of the unexecuted buffer. Already handed-off work is not rolled back.
Linux desktop/npm 0.1.4 published and clean-install verified: desktop/nvm Node detection and an optional manual Node path in Settings. The old 0.1.3 packaged GUI was reproduced failing with no Node on desktop PATH; the new real-GUI regression checks fresh/history sessions, manual fallback and persistence. This source change is not a hot-update of an existing 0.1.3 window.
Linux desktop/npm 0.1.5 published: session health checks, state reconciliation, fault alerts and explicit recovery, preserving drafts and a paused outbox without automatically replaying work. Older immutable archives are unchanged. Also included: terminal visibility/context menus, manual/AI session naming, confirmed history deletion and window-placement restoration.
Linux desktop/npm 0.2.0 published: optional end-to-end encrypted remote access. A window on one computer drives sPi on another, even behind NAT/firewalls, relayed through Microsoft Dev Tunnels and encrypted by sPi itself. It requires the GitHub CLI (gh) signed in to the same GitHub account on both computers; local use never needs gh, GitHub or Dev Tunnels. A paired device has full control of the host's sPi, including terminals and YOLO. Verified on Linux (including the live Dev Tunnels service); macOS/Windows unverified. Also fixes AI naming on reasoning models and stale session-health alerts.
Desktop 0.3.8 is public: sending /compact (optionally with instructions) now executes the compact RPC instead of sending the text to the model. All 11 public assets verified anonymously against SHA256SUMS. Existing 0.3.7 installations can upgrade in-app directly through GitHub, without npm. npm spi-agent-gui@0.3.8 is public; latest is 0.3.8. The public payload matches the reviewed tarball, and the pinned isolated Pi install passed.
Desktop 0.3.7 is public: the directory path title is editable for jumping to a typed directory, and right-clicking selected text in the main window copies it. All 11 public assets verified anonymously against SHA256SUMS. Existing 0.3.6 installations can upgrade in-app directly through GitHub, without npm. npm spi-agent-gui@0.3.7 is public; latest is 0.3.7. The public payload matches the reviewed tarball, and the pinned isolated Pi install passed.
Desktop 0.3.6 is public: directory tree refreshes on re-expand, and Ctrl/Cmd+click multi-select deletes several sessions at once. All 11 public assets verified anonymously against SHA256SUMS. Existing 0.3.5 installations can upgrade in-app directly through GitHub, without npm. npm spi-agent-gui@0.3.6 is public; latest is 0.3.6. The public payload matches the reviewed tarball, and the pinned isolated Pi install passed.
Desktop 0.3.5 is public: steer cuts in line through Pi's native steering queue, slash-command completion keeps its leading '/', and the build-only audit exception is retired after upstream withdrew the picomatch advisory. All 11 public assets verified anonymously against SHA256SUMS; every high/critical audit finding now blocks for all versions. Existing 0.3.4 installations can upgrade in-app directly through GitHub, without npm. npm spi-agent-gui@0.3.5 is public; latest is 0.3.5. The public payload matches the reviewed tarball, and the pinned isolated Pi install passed.
Desktop 0.3.4 is public: visible recovery confirmation, ordered health snapshots clearing stale exit banners, and an official latest-manifest fallback for GitHub API 403/429. All four native/extracted-runtime recovery and updater/relaunch gates passed. Existing 0.3.3 installations can upgrade in-app directly through GitHub, without npm. npm spi-agent-gui@0.3.4 is public; latest is 0.3.4. The public payload matches the reviewed tarball, and pinned/latest isolated Pi installs passed downloaded-runtime checks. The explicitly approved build-only advisory exception extends to 0.3.4 with unchanged artifact/other-high gates.
Desktop 0.3.3 is public: pending messages can minimize into a lower-left counter and restore editing without losing unsaved text/images or covering Up/Down and Return to latest. All four native runtime inventories and GUI/relaunch gates passed. Previous npm spi-agent-gui@0.3.3 publication was verified. The public payload matches the reviewed package; pinned/latest isolated Pi installs and downloaded-runtime checks passed. The one user-approved build-only audit exception is disclosed in the release notes; other high/critical findings remain blocked. Acceptance evidence.
Historical desktop 0.3.2 publication: GitHub-only update checks, a clickable ! beside Settings, matching-architecture download/install and confirmed restart. Four native targets share one canonical manifest: Linux x64/ARM64 and macOS Apple Silicon/Intel. No npm publication is required. The old 0.3.1 launcher has a latest-API HTTP 415 bug: use the one-time 0.3.2 GitHub bootstrap, then use GUI updates or the corrected spi update. Mac remains ad-hoc signed and unnotarized. Update behavior and limits. All four native targets, real cross-runtime restart, anonymous asset verification and a fresh public GitHub-only install passed.
Historical desktop 0.3.1 publication: context usage ring/percentage beside Thinking, used/max on hover, click to compact and right-click for custom instructions. Reading usage is passive; compaction may make a model request. Drafts/outbox are preserved and read-only viewers cannot compact. Linux x64/arm64 and manual Mac Apple Silicon/Intel downloads passed native and extracted-runtime context/compaction acceptance. Mac is ad-hoc signed, not notarized. Historical npm spi-agent-gui@0.3.1 publication was verified. The public seven-file payload is byte-identical to the reviewed package. Pinned/latest public Pi installs passed in two isolated local profiles, including downloaded-runtime PTY/GUI/Pi RPC checks. Existing Linux installations can use spi update; fully quit old windows before reopening.
Desktop 0.3.0 is public: pending/connected device list, one remote controller with read-only viewers, and floating Previous/Next question navigation. Remote protocol v2 requires both computers to update together; saved pairings are retained. Linux x64/arm64 and manual Mac Apple Silicon/Intel downloads passed native and installed-runtime acceptance, including the new GUI tests. Mac packages are ad-hoc signed, not notarized. Local startup no longer probes Keychain when hosting is off. Previous npm spi-agent-gui@0.3.0 publication was verified. The public seven-file tarball matches the reviewed payload byte-for-byte, and pinned/latest public Pi installs passed in two isolated local profiles with packaged PTY/GUI/Pi RPC checks. Existing Linux desktop installs can use spi update; fully quit old windows before reopening.
Desktop 0.2.1 is public: configurable pairing code lifetime, default 1 hour, up to 60 days; codes remain single-use and valid only until cancelled, remote access disabled or sPi restarted. Includes verified manual Apple Silicon and Intel Mac downloads (ad-hoc signed, not notarized). Both Mac native builds passed loopback remote GUI and installed-ZIP checks; live-service Mac remote access remains unverified. Previous npm spi-agent-gui@0.2.1 publication was verified; the public seven-file tarball matches the reviewed payload byte-for-byte. See Mac verification and limitations.
Source: DiamondGo/spi. The npm package is spi-agent-gui; the executable is spi. These public defaults are stored in release.config.json.
Linux desktop Release v0.2.0 and npm spi-agent-gui@0.2.0 remain public; npm latest was 0.2.0 at that release. Both native targets passed the new remote access unit, two-instance GUI and packaged-runtime checks alongside all existing installed-runtime suites, plus anonymous asset checksum verification. The public seven-file npm tarball is byte-for-byte identical to the reviewed payload. Two independent fresh non-root x64 containers passed public fixed-version/latest Pi installs, the packaged remote access check and all five GUI suites, with the renderer sandbox enabled and no host credentials/configuration/binaries mounted. Release verification.
Previous desktop/npm 0.1.5 acceptance: Both native targets passed all additional installed-runtime interaction/recovery suites and anonymous asset checksum verification. The public seven-file npm tarball is byte-for-byte identical to the reviewed payload. Two independent fresh non-root x64 containers passed public fixed-version/latest Pi installs and all five GUI suites (workspace, Node recovery, session controls/window placement, passive RPC recovery and terminal menus), with the renderer sandbox enabled and no host credentials/configuration/binaries mounted. Release verification.
Previous desktop/npm 0.1.4 clean-install acceptance: Both native Linux architectures passed installed-runtime acceptance. Two fresh non-root x64 containers independently installed the public pinned/latest package through Pi in about 7 minutes, then passed all 9 sparse-desktop-PATH/manual-Node session checks and all 8 workspace/outbox checks, plus GUI/PTY/Pi RPC, icon/desktop ownership, single-instance and enabled renderer sandbox verification. The percentage/slow-download/resume improvements are retained. No host credentials/configuration/binaries were mounted. Older immutable releases remain unchanged.
For current desktop 0.3.7, use pi install npm:spi-agent-gui@0.3.7, the version-bound GitHub bootstrap, or update an existing 0.3.6 desktop directly in sPi. From 0.3.2 onward, use Settings → Check for updates, the ! notification, or spi update. Reinstalling an older immutable npm package selects that older desktop version, not 0.3.7. Installation does not hot-update a running window: save unfinished text and confirm Restart to apply. Saved Pi history, authentication and sPi preferences are preserved.
The runtime/build tools use Electron 45.2.3 and electron-builder 26.18.0. Current full audit reports 0 high / 0 critical, 8 moderate: upstream withdrew the picomatch advisory GHSA-fc5q-39xc-vjpf (2026-11-19), the 0.3.3/0.3.4 build-only exception is retired, and any high/critical finding now blocks for every version. Each runtime/installer must still prove the build-only modules absent. See security scope.
The 0.3.2 GitHub installer/update matrix is Linux x64/ARM64 and macOS Apple Silicon/Intel, gated by four native builds and a complete canonical manifest. Windows remains deferred. Older npm versions and historical Linux-only manifests are immutable; supplemental old Mac downloads below do not change them. Linux archives state their build glibc baseline; a graphical desktop, system Electron libraries and a working Chromium sandbox are required. Ubuntu 24+ AppArmor policies may require an administrator-provided user-namespace allowlist; the installer never disables the sandbox or changes host security policy. Windows/macOS releases are not notarized/Developer-ID signed by default (macOS uses ad-hoc signing); OS security warnings are possible. Do not disable OS protections.
macOS 0.1.5 manual downloads are public: Apple Silicon ZIP · Intel ZIP · checksums, native verification and limits. Both passed native architecture/PTY/GUI/Pi RPC/signature-integrity checks. They are ad-hoc signed, not Developer ID signed or notarized; Gatekeeper trust is not claimed. The existing Linux manifest/npm payload remain unchanged, so normal pi install does not automatically install these Mac ZIPs.
Install Pi first and configure authentication/models using Pi itself. The bootstrap/Pi installer requires Node.js 22.19+; the installed spi launcher can use its private Electron runtime for its installer commands. sPi does not install or upgrade Pi for you.
curl -fL https://github.com/DiamondGo/spi/releases/download/v0.3.7/install.sh -o /tmp/spi-install-0.3.7.sh
# Review the downloaded script first.
bash /tmp/spi-install-0.3.7.sh --version 0.3.7Save drafts and quit the old window, then use the launch command printed by the installer (normally spi). This also replaces the old 0.3.1 HTTP-415 launcher without npm. Later use GUI updates or spi update.
pi install npm:spi-agent-gui
spinpm remains a supported first-install entry. Future stable releases should publish a matching lightweight npm package after GitHub verification; subsequent GUI/CLI updates primarily use GitHub and do not depend on npm. GitHub and npm 0.3.7 are public; npm latest is 0.3.7. The public payload is byte-identical to the reviewed package, and the pinned isolated Pi install selected CLI/runtime 0.3.7. Release-channel policy.
A verified personal install downloads the desktop release matching the npm package version and creates spi next to the Pi launcher when writable. Loading the extension never starts a GUI. Use /spi to open the current project, or /spi-install for explicit installation. No active TUI session is transferred to the GUI.
Project-local/temporary/CI installs do not register a user-wide command automatically. If lifecycle scripts are disabled:
npx --package spi-agent-gui spi installIf another spi exists, or Pi's directory is read-only, explicitly choose --bin-dir. The installer does not overwrite unknown commands, request sudo or edit shell profiles/PATH.
Download install.sh from the Release assets, review it, then run:
bash install.sh --version 0.3.7
# Optional:
bash install.sh --version 0.3.7 --install-dir /path/to/user-install --bin-dir /path/to/user-binThe published bootstrap contains the repository/tag; it downloads and checks the standalone installer, then the matching runtime. The source checkout uses the same repository by default; forks can override it with SPI_RELEASE_REPOSITORY. Windows distribution remains deferred.
For an offline install, first download and verify the matching Release's standalone installer, archive, manifest and checksums, then run:
node spi-installer.cjs install --version 0.3.7 --archive /path/to/spi-0.3.7-linux-x64.tar.gz --manifest /path/to/release-manifest.jsonSHA-256 detects mismatched/corrupt downloads; it is not an independent publisher-signature guarantee.
spi
spi --cwd /path/to/project
spi --version
spi doctor
spi update
spi rollback
spi uninstallspi focuses the existing instance; --cwd activates an existing session in that directory or opens an independent one. Drafts and approvals are preserved. Updates keep old runtimes and take effect after restarting the GUI; they do not kill running agents. Close the GUI before uninstalling. User preferences and Pi sessions are preserved. pi update npm:spi-agent-gui updates the plugin; pi remove npm:spi-agent-gui removes the plugin but deliberately does not delete the independently installed desktop app.
Old AppImage installs are not deleted or blindly overwritten. Use a separate --install-dir/--bin-dir, or review and move the old launcher yourself. Existing sPi userData is retained.
| Content | Location |
|---|---|
| Linux runtime | ${XDG_DATA_HOME:-$HOME/.local/share}/spi/releases/<version>/<target>/ |
| macOS runtime | ~/Library/Application Support/sPi/releases/<version>/<target>/ |
| Windows runtime | %LOCALAPPDATA%\sPi\releases\<version>\<target>\ |
| User command | Pi launcher's PATH directory, or an explicit/fallback user bin directory |
| Preferences, layout and whitelist | Electron userData (~/.config/spi on this Linux setup) |
| Pi auth/models/sessions | Remain managed by Pi, not copied into sPi installation files |
SPI_INSTALL_ROOT, SPI_BIN_DIR, SPI_SKIP_INSTALL=1 override installation behavior. No credentials are required for public downloads. See configuration and privacy. Never commit local settings, auth, logs, screenshots of real sessions, private keys or internal endpoints. Safe examples are tracked; real files are ignored. Git ignore rules do not erase already committed secrets.
npm ci
npm run typecheck
npm run build
npm start
npm run test:sessions
npm run test:settings
npm run test:yolo
npm run test:terminal
npm run test:launch
npm run test:installer
npm run check:privacyDevelopment installs compile node-pty for the pinned Electron version and need the appropriate Python/C++ toolchain. End-user Release archives already contain it. Do not rebuild Pi's shared dependency tree for Electron.
npm run dist # Native runner only; output: dist/release/
npm run test:distribution # Complete Linux install/Pi-package checks when a local release exists
node scripts/with-display.cjs scripts/portable-smoke.cjs dist/linux-unpacked/spiThe deterministic YOLO/settings/terminal GUI suites are also available. Basic/advanced smoke tests use real configured model providers and are not public CI defaults. Tests use temporary profiles and only clean up their own processes. Linux GUI tests require Xvfb (SPI_XVFB_BINARY can select a private copy), never the shared desktop. End-user installs do not require Xvfb.
See publishing and verification. Runtime archives belong to GitHub Releases, never Git or the lightweight npm tarball. No source open-source license has been selected; project metadata is UNLICENSED. Distributed third-party licenses are retained.