VV Pi Agent - A simple, useful pi agent for VS Code
A VS Code sidebar extension for the pi coding agent. VV Pi Agent runs the installed pi executable in RPC mode, giving you full access to pi's normal authentication, model catalog, session history, skills, extensions, and prompt templates directly inside VS Code.
Current working candidate: 0.7.5 (not yet an accepted desktop install), migrating both web clients to VV Air Drop, collapsing phone model controls by default, and simplifying Share's PIN pairing and automatic receive actions. Pi error/model support and two-minute future-clock tolerance remain. Sharing/control/request deadlines and desktop priority remain authoritative. Qualification is specific to the host OS/version and exact
artifact; see the test record and
platform status. The all-platform native
matrix remains incomplete. Nothing is published automatically to the Marketplace. The all-English
mobile client 20261026-air1: Pi error notices and model selection, computer/tab context, clear access/recovery states,
safe Markdown and code copying, stable reading position, keyboard-aware composer,
tool activity and appearance preferences. Existing direct-path and expiry safeguards
remain unchanged. Mobile handoff requires the matching deployed page
and the original-URL Chrome acceptance gate.

Installation
Install the extension from the VS Code Marketplace, or install a packaged .vsix file from the command line:
# Accepted desktop release; 0.7.5 remains blocked on its exact-artifact gate.
code --install-extension vvpipi-0.7.4.vsix
After installation, open any workspace and click the VV Pi Agent icon in the Activity Bar.
The Universal package has no platform installation filter; it is a desktop Node
extension, not a VS Code Web extension. The current cross-platform Mobile
Companion candidate includes Linux x64/glibc plus macOS/Windows x64 and ARM64
bindings, selected only inside a guarded worker. The earlier 0.7.4 archive passed on local macOS 26.6.2 Apple Silicon; 0.7.5 requires its own exact-artifact gate. Windows and other macOS versions are
not qualified by those results. Earlier Linux and Intel Mac gates apply only to their
recorded artifacts. The upstream Intel Mac binary requires macOS 26; the
candidate CI genuinely rebuilds pinned sources for a macOS 14 deployment target.
Apple Silicon's upstream minimum is macOS 14. Actual CI OS versions, not the
build target alone, determine qualification. Remote hosts remain unsupported. See the
native platform status and validation plan.
Features
- Real
pi CLI Integration — Runs pi --mode rpc in the background, streaming text, thinking processes, tool calls, compaction, retries, and errors in real time. Provider, tool, runtime, and nested API errors are shown in the transcript with expandable details.
- Multi-Agent Tabs — Run up to 20 isolated pi agents side by side with independent sessions, drafts, attachments, streaming state, and model settings (6 by default). Use
Ctrl+Shift+1–9 to select tabs by position, or Ctrl+Shift+Left/Right to cycle them while the sidebar is focused.
- Agent-Style Composer — Press Enter to send, Shift+Enter for a new line, and Stop to abort a running turn. Messages can also be steered while pi is working. The zoom controls affect only the transcript and composer; extension chrome stays at 115%.
- Input History, Undo & Copy Actions — Use Up/Down arrows at input boundaries to navigate previous prompts, including correctly within wrapped input lines. Use Ctrl/Cmd+Z to undo composer edits; redo with Ctrl/Cmd+Shift+Z (or Ctrl+Y on Windows/Linux). Bare HTTP(S) URLs in pi responses open in your browser. Handy copy buttons are available for messages, thinking output, tool activity, and notices.
- Transcript Search — Press Ctrl/Cmd+F to search rendered messages; use Enter or F3 for the next match, Shift+Enter or Shift+F3 for the previous match.
- Prompt Navigation — Use the unobtrusive lower-left ↑/↓ controls, or Ctrl/Cmd+Shift+↑/↓, to jump between user prompts.
- Live Tool Progress — Long-running bash/write/edit cards show elapsed status and, when available, the number of lines being processed.
- Tool Result Images — View images returned by tools alongside their text, click to enlarge and navigate multiple images, or save to a location you choose. Images also appear in resumed sessions and restored tabs. PNG, JPEG, GIF, WebP, and BMP are supported, with limits of 20 MB per image, 8 images and 40 MB per result; invalid or omitted images have a visible note.
- Whole-Turn Timing — Shows the total elapsed time from user prompt submission through the complete AI turn beneath each pi response.
- Model & Thinking Pickers — Quickly search/switch models and select thinking levels right below the input box.
- Model Relay — Optionally configure an ordered fallback chain that continues a turn after an explicit credit/quota exhaustion, with visible switching progress, cancellation, success, recovery notices, and an optional timed loop.
- Rich Context Footer — Displays active context window usage, cumulative input/output token counts, session message count, cost, queued messages, provider, and current thinking level.
- Usage Details — Open Usage in the footer for Pi-reported input/output/cache tokens and cost, model/category breakdowns, and the latest 20 recorded prompts. Missing values stay unknown; older Pi versions fall back to retained messages. These are Pi's reported USD costs, not subscription charges or guaranteed invoices. Use Refresh while a run is active; totals and detail records may be read at slightly different times.
- Session Forks — Use Fork… in the footer, select a text prompt, and open a new independent agent tab with the conversation before that prompt. Its text becomes an editable draft; nothing is sent automatically. The original tab remains unchanged. Workspace files are shared, not rolled back; reattach files/images before sending. Forking is unavailable during streaming, compaction, queued work or Model Relay, and unsupported runtimes get an explained disabled entry.
- Resource Settings Menu — The top-right gear icon instantly opens
models.json, global/project settings.json, auth.json, and global/project skill/extension folders.
- Editor & File Context — Automatically attaches active file contents (or selections) and diagnostics. Type
@ in the composer to search and reference workspace files. File paths and line references in pi replies are clickable.
- Image Attachments — Paste one or more images directly into the sidebar input, drag them from VS Code Explorer, File Explorer, or Finder, or use + File; see compact thumbnail previews with per-image remove actions and click a thumbnail to inspect the full-size image. PNG, JPEG, GIF, WebP, and BMP images are supported.
- Slash Commands — Type
/ to search sidebar actions such as /model, pi skills, prompt templates, and extension commands. Use arrow keys and Enter (or Tab) to complete without clicking.
- Session Resume — Browse saved sessions with visible, copyable session IDs, or switch directly with
/resume <session-id> (a unique ID prefix is accepted).
- VS Code Commands & Keybindings — Quick access for new chats, model/thinking controls, context compaction, file attachments, and an optional native
pi terminal.
Requirements
- Install Node.js &
pi — Ensure the pi command is available on your system PATH:
npm install -g --ignore-scripts @earendil-works/pi-coding-agent
- Authenticate — Log in using
/login, configure auth.json, or set a provider API key environment variable.
- Open Workspace — Open a workspace in VS Code and open the VV Pi Agent sidebar.
Custom Binary Path: If pi is installed in a non-standard location, configure vvpipi.binaryPath in VS Code settings with the command name or absolute path.
Usage
Mobile companion (native desktop preview)
The GitLab client allows anonymous access. Version 20261026-air1
shows automatic handshake status first, then a compact chat screen after desktop
approval, with diagnostics/manual tools collapsed at the bottom. A missing
invitation is reported before any handshake. Installed-VSIX tests open the QR's actual
GitLab URL in fresh, unlogged Chrome by default; localhost fixtures must be
explicitly opted into and are not remote-entry acceptance.
The self-contained VSIX includes the mobile native worker; use a host/artifact
qualified in the platform status above. Run
VV Pi Agent: Start Mobile Companion, select an existing running tab, then choose
Start 1 day, Start, or Cancel before creating the private QR. Both Start
choices enable plain-text prompts, Stop and idle model selection: Start 1 day is limited to 24 hours;
Start uses the longest supported duration, up to 7 days. That is a fixed maximum,
not unlimited access. Scan once: device proof/direct-path verification automatically
applies the selected access; there is no second code-confirmation dialog.
The QR's fixed public ?v=20261026-air1 build label avoids stale HTML caches;
private invitation/key data stays only in the fragment. The origin is unchanged.
The first authenticated QR holder is authorised, so never share the QR or its
full URL. A fresh QR replaces the prior connection in the same phone tab; repeated
or malformed invitations cannot reset the existing session. Complete signaling
must finish before the chat UI becomes ready. With STUN enabled, the initial
answer waits for a mapped phone candidate or genuine gathering completion, within
the existing 30-second deadline; it never publishes an empty candidate set.
The QR/bootstrap window remains at most 15 minutes. The selected 1-day or maximum
7-day share expiry also bounds phone control, with live countdowns. The separate
Start Mobile Read-only Preview command remains available when a read-only share
is specifically desired. Phone prompts are plain text and can invoke Pi file/shell
tools; the phone cannot send attachments/context. Phone requests appear once in the desktop transcript, leaving desktop
drafts/attachments unchanged. Desktop actions reclaim control; revoke does not
stop an already dispatched Pi turn. Within the same authorised share, foreground,
network return and reload reconnect without another QR. Revocation, expiry or
host/session restart still requires a new QR; reconnect never renews control.
The new mobile entry is https://vvair-drop.gitlab.io/vvpipi/. Moving origin requires a fresh authorised QR after the desktop update; old browser keys are not copied, and the old site is not redirected or disabled. Model controls default to a compact collapsed row and open only when needed; a confirmed switch collapses them again.
The phone shows bounded, redacted Pi error messages, including quota/credit failures with no response text. With a live control lease and an idle Pi, choose Pi model → Switch to change this same tab's configured model. The desktop rechecks its fresh catalog/state before dispatch; provider cost can differ. Only labels/IDs (up to 50 models) are projected, not credentials, headers or endpoint settings. Read-only, expired/revoked control and active turns/relay cannot switch models. Reconnect only queries receipts; it never replays a model change.
GitLab serves only the static client; ntfy exchanges encrypted signaling, then
conversation and commands use a verified direct DataChannel. No Azure, TURN
or app-data relay. STUN cannot guarantee traversal on every NAT. Keep the phone
page in the foreground. Remote VS Code and other platforms remain unverified.
npm run mobile:pair is still an independent echo-only lab.
See the current GitLab/ntfy/P2P design and handoff gate
and the complete test guide for
installation, controls, re-pairing, privacy and failure reporting. The older
0.7.0 computer-to-computer/Azure proposal is not this mobile architecture;
the 0.7.0 release consolidates the existing implementation, not that proposal.
Browser-to-browser personal sharing preview
Deployed 20261101-share31-adaptive-lanes uses adaptive1/2/3 direct associations: primary starts immediately, lane2 joins opportunistically, and lane3 is considered only when receiver-committed measurements show a clear gain with enough work left. Current root/source hashes and tests are in §78a. Public three-profile full and PWA gates pass, but default-off/one-time sharing and diagnostics/layout gates failed without HTTP429; qualification is blocked, not ready. The lane3 SHA-verified native64MiB test used synthetic offer delay/pacing; it is not a cross-host speed result. The Add a device panel follows the device list. See lane policy; no physical-device/NAT/long-soak guarantee.
Previously deployed 20261101-share30-one-time-unbounded-text added default-off introduction consent, one-time pairs and acknowledged long-text streaming; its exact original-root full, sharing/one-time and PWA gates passed (§77). Share31 retains these behaviors.
The user-reported Mac-to-Linux Share28 1.7GB transfer was about4.5MB/s, but was not independently captured. More lanes may help or may add setup/CPU/congestion overhead; no speedup claim or Linux comparison exists. Physical findings and rejected optimizations remain explicit.
Previously accepted 20261030-share27 adds a bounded file pipeline: event-driven ACK/backpressure,256KiB reads/64KiB writes and an authenticated optional512KiB window, while8KiB wire chunks/exact64KiB credit/integrity checks stay unchanged. Actual old26 HTML interoperates at64KiB; both endpoints need27 for the larger window. Matched native local26~2.1MiB/s improved to original-root27 18.56–19.66MiB/s (receiver6xCPU 4.70–4.72), same Mac—not a physical-Ubuntu/30MB/s promise. Safe Diag now includes read/hash/write/credit/buffer timings. Exact27 perf, full40MiB/6x/mesh/UI/revoke, seven/eight-profile scheduling, policy/both-role resume/local-first/Diag/duplicatePIN/PWA passed (§61). Fair reconnect/durable Cancel remains: offline contacts do not reserve transport turns,12s demotes to passive shared-inbox wait, Cancel keeps trust across reload until explicit Reconnect. Update participating pages normally, without clearing storage or Unpair; no all-NAT/soak/F1 SLA claim.
Historical Share24's transport baseline, retained unchanged in25, releases WebSocket when direct P2P is healthy. Four short-lived setup-host slots are shared on demand; guests and remembered wake inboxes use bounded, signed short HTTPS requests, so the limit is no longer four resident devices. Exact original-root/real-Azure native Chrome gates passed: eight profiles in both deterministic roles, four held setup slots/fifth queued, zero healthy sockets, direct text/file/all-page wake; full mesh/40MiB/6x/targeted UI, signed private-pair downgrade/order, actual130s freeze/+39s clock and PWA. Share19 permits only one fresh pre-auth connection retry before any publish, never an ambiguous publish/PIN replay. Existing users paused for the maintenance window; no user was evicted. Private UDP host/mDNS candidates are actually tried alone for up to3s before fallback (not merely sorted first); a working path keeps its unused fallback in memory. Valid signed/SRP replies can prove receipt after a lost setup ACK without re-publishing. Exact24 public gates passed; preserved failures/F1 announced-PIN socket-drop limits are explicit in test record §58 and on-demand design. This is not an unlimited-user, phone/background, F1 CPU/day or cold-start guarantee.
The preserved Share17 change adds a default-checked Share my paired devices with this device option under Have a code?. Uncheck for a persisted private pair: direct text/files work, but both signed endpoints disable automatic introductions on that link across reload/resume. Existing independent pairs are not revoked. Connected devices sort first; offline names are gray with stable ordering. Its unshipped-candidate history is §51, current policy acceptance §61 and sharing consent design, not inferred from prior versions.
Historical Share16 adds default-unchecked recipients, device-card drop, right-click/touch Send actions for targeted files/text/reviewed clipboard, selected direct-route badges and a redesigned light/dark responsive UI. Local candidates are tried first, all mapped fallbacks retained; native per-frame selected-pair checks avoid full stats on every8KiB chunk without caching an unsafe path. Clipboard is read once only on the explicit shortcut, previewed before Send, with paste fallback—never background monitoring. Exact local/native and original-root three-profile targeted UI/40MiB/6x/PWA gates passed; §50 preserves the initial public handshake timeout and explicitly instrumented followup, not a claim that F1 never stalls. See device UI/route design; prior Share15 results below are historical, not a substitute.
Share15 fixes a reproduced Android-style resume EXPIRED path caused by a hidden30s inner clock check when the reconnect offerer is39s ahead. Share now consistently allows at most120s future clock difference while enforcing real expiry before/after decrypt; stored keys and Pi are unchanged. Both offerer roles passed real130s local freeze/restart/text, original-root real-Azure asymmetric-clock resume, full three-profile40MiB/6x public mesh/Unpair and PWA gates. Exact versions/failures/limits are in test record §49; this is not physical Android or all-NAT qualification.
Historical Share14–16 used the user-authorised Python Azure WebSocket service with one resident authenticated socket per active device and four connections maximum, no ntfy fallback. That was per-device multiplexing, not cross-device slot reuse; Share18 changes this model as described above. SRP, permanent nonexportable trust, independently keyed B–C introductions, PWA and direct text/file DataChannels remain; Azure never becomes the application payload relay. A coalesced recovery timer fixes dropped fast offline/online wakes. The exact real-Python delayed-inbox/process-crash gate and original-root public Azure/native-P2P gate passed, including three fresh profiles, 40MiB/multi-file/6x, freeze/reload and isolated Unpair. Public PWA/offline checks also passed. Actual versions, preserved failures and limits are in test record §48; health/local/backend-only checks are not substituted for public acceptance. See WebSocket design/capacity/gates, mesh/PWA design and contract/limits. Prior ntfy quota/transport failures remain in §43–47. F1 CPU/sleep/cold-start, four-slot availability and physical-device/NAT/background limits still apply. Pi's normal accepted0.7.4 and still-pending exact0.7.5 VSIX gate are unchanged.
VV Air Drop is a separate,
all-English static page: create a six-digit code on computer A and enter it on B.
The first verified PIN peer connects automatically; no redundant Allow/Accept dialogs, token copying, account or Pi installation.
A bounded directory on the pinned Azure signaling service and SRP authenticate the short
code before encrypted signaling; files/text use direct WebRTC, never the cloud
broker. The separate Python app
deploys main through the user-created Azure OIDC workflow.
This personal prototype automatically requests clipboard writes for received text while focused/active, and streams multiple files through disk-backed temporary storage with full SHA256 verification before requesting download. There is no product file-size cap; browser support/quota and disk capacity still apply. Pick checked devices to send to; each has its own queue/cancel controls. Explicit image paste/drop is supported. Browser clipboard/download policies remain authoritative, with honest Copy/Save fallbacks. Files are never opened or executed automatically.
A code lasts five minutes for one new trusted device. Repeat for additional devices without disconnecting existing peers. Saved non-exportable keys have no product expiry, surviving reload/network return until Unpair or browser/site-data loss. Reconnect establishes fresh authenticated direct P2P, never automatically resending text/files. Offline Unpair rejects the old peer even if its disconnected browser still retains a stale record. Pause keeps trust. No background/closed-browser guarantee.
It is not a security-audited public service, background clipboard daemon or
all-NAT guarantee. The two pages share an origin, not an origin security boundary;
Share does not read Pi pairing storage or grant Pi access. See the
preview guide and limits. Source HTML lives in vvair; the independent Group publisher deploys only checksum-bound files at that exact source commit. The Group is listed separately from the personal namespace: open vvair-drop.
Automatic recovery (0.6.43+, receive pacing in 0.6.44)
After the first authorised QR, the paired browser can recover on foreground,
network return or reload within the original share. It establishes fresh P2P and
re-authenticates; it never resends a prompt/Stop/model change or renews a revoked/expired lease.
Host VS Code and the same Pi tab/session must stay running. Desktop priority
while the phone is away still returns it to read-only.
The browser stores non-exportable identity/resume keys and bounded metadata, not
QR credentials, SDP, leases or conversations. The host keeps per-share trust in
worker memory and one bounded idle HTTPS signaling subscription (not continuous
polling). Clearing site data, expiry, revocation or host/session restart requires
a new QR. Public ntfy remains best-effort; HTTP429 stops automatic retries.
Conversation snapshots use one in-flight transfer and one coalesced latest update.
The phone acknowledges only a completely verified/rendered snapshot; slow CPUs
cannot make the host continuously fill its receive queue. Missing receipts time
out after 15 seconds. Repeated visible/online notifications do not re-handshake
or resync a healthy connection. This pacing never drops/retries Pi commands.
See the resume security/implementation contract
and test record. Local Chrome fixtures
are development evidence, not permission to skip deployed anonymous entry tests
or claim physical-phone/background reliability.
Pi version compatibility
VV Pi Agent detects CLI options before starting Pi and handles missing optional
RPC queries without requiring an upgrade. Unsupported startup thinking levels
keep Pi's default. Read-only RPC queries have a bounded wait; prompts and other
state-changing operations are never automatically resent after a timeout.
The runtime integration was smoke-tested on Linux with a local mock model on
2026-10-02:
| Pi package |
Version |
Verified |
@mariozechner/pi-coding-agent |
0.57.1 |
Chat, read tool, model/thinking settings, independent runtimes, resume, abort; legacy event and optional-query handling. |
@earendil-works/pi-coding-agent |
0.99.1 |
The same basic runtime workflows with native settlement events. |
@earendil-works/pi-coding-agent |
1.0.0 |
The same basic runtime workflows with native settlement events. |
This is a tested-version list, not a promise that every intervening release or
provider has been validated. Pi 0.57.1 lacks project trust flags: it uses its
normal resource loading only in trusted workspaces with
vvpipi.approveProjectResources enabled. If project resources must be disabled
and the executable does not advertise --no-approve, startup is blocked with an
explanation. Project trust does not sandbox tool execution.
See the improvement and compatibility plan
for upcoming features and validation limits.
- Chatting: Type your prompt in the sidebar and press Enter (or Shift+Enter for a newline). Use Ctrl/Cmd+Z to undo accidental edits; redo with Ctrl/Cmd+Shift+Z (or Ctrl+Y on Windows/Linux). Use the top-right zoom controls to resize only the agent transcript and composer.
- Agent Tabs: With the VV Pi Agent sidebar focused, use Ctrl+Shift+1 through Ctrl+Shift+9 to select tabs by their current position, or Ctrl+Shift+Left / Ctrl+Shift+Right to cycle between tabs. These shortcuts use the same keys on every platform.
- Images: Paste an image into the composer, drag an image from VS Code Explorer, File Explorer, or Finder onto the composer, or click + File and select an image. The selected model must support image input. Sent images remain visible as bounded enlarge/save previews in You messages and restored history.
- File drops: Drag ordinary files such as
.log files onto the composer. If the OS does not expose a file path, the extension accepts a tab-scoped in-memory upload (20 MB per file; bounded aggregate). File text is included in the next prompt using the configured context-character limit. Uploads are cleared on send, removal or session change; no temporary disk copy is created.
- Tool Images: Click a tool-result thumbnail to enlarge it; use the arrows to navigate and Escape to close. Use Save below a thumbnail or Save image in the preview to choose a destination. Text-only tools continue to work on older Pi versions; this display feature does not enable image generation or image input on models that lack them.
- Fork: Click Fork…, select the prompt to retry, confirm the shared-workspace warning, then edit and send the draft in the new tab. Saved sessions up to 64 MiB are supported. A private
.vvpipi-fork-*.snapshot copy is retained beside the session as the fork's parent; it is excluded from the Resume list and adds roughly one source-session file of disk usage per fork. Closing a tab does not remove it. Empty forks may not be saved by Pi until their first assistant response, so send the draft before relying on restart/resume. Composer drafts are not persisted across VS Code reloads.
- File References: Type
@ to select workspace files, or let the extension automatically attach active editor contents, selections, and diagnostics.
- Model Control: Switch models or adjust reasoning/thinking levels using the controls below the composer.
- Model Relay: Open the model picker, choose Configure, enable relay, and add fallback models. Relay is off by default and only handles explicit credit/quota exhaustion; each fallback is attempted at most once. Enable the optional loop to retry the fallback chain after the configured interval when the chain is exhausted.
- Slash Commands: Type
/ to invoke sidebar actions such as /model, pi skills, custom prompt templates, and extension commands. Press Enter to accept the highlighted completion.
- Prompt Navigation: Use the lower-left ↑/↓ buttons to jump between user prompts; the selected prompt is briefly highlighted.
- Sessions: Use the welcome screen to pick up previous chat sessions.
- Settings & Config: Click the gear menu in the header to open
models.json, settings.json, auth.json, skills, and extensions.
Extension Settings
| Setting |
Type |
Default |
Description |
vvpipi.maxAgentTabs |
Number |
6 |
Maximum number of isolated pi agent tabs (1–20). |
vvpipi.binaryPath |
String |
"pi" |
Command name or absolute path for the pi executable. |
vvpipi.thinkingLevel |
String |
"medium" |
Default thinking/reasoning level (off, minimal, low, medium, high, xhigh, max). |
vvpipi.agentDir |
String |
"" |
Optional replacement config directory (PI_CODING_AGENT_DIR). |
vvpipi.approveProjectResources |
Boolean |
true |
Allow pi to load project-local .pi settings, skills, and extensions in RPC mode. |
vvpipi.attachActiveEditorContext |
Boolean |
true |
Automatically include active editor contents, selection, and diagnostics with prompts. |
vvpipi.maxContextCharacters |
Number |
20000 |
Maximum character limit per file attached as context. |
vvpipi.modelRelay.enabled |
Boolean |
false |
Automatically continue with configured fallbacks after explicit credit/quota exhaustion. |
vvpipi.modelRelay.chain |
Array |
[] |
Ordered fallback { provider, modelId } references. |
vvpipi.modelRelay.maxAttempts |
Number |
3 |
Maximum fallback models attempted for one logical turn (1–20). |
vvpipi.modelRelay.stayOnFallback |
Boolean |
true |
Keep the successful fallback model for subsequent prompts. |
vvpipi.modelRelay.randomFallback |
Boolean |
false |
Choose fallback models randomly instead of sequentially. |
vvpipi.modelRelay.loopFallback |
Boolean |
false |
Start another fallback round after all fallback attempts fail. |
vvpipi.modelRelay.loopIntervalMinutes |
Number |
5 |
Minutes to wait before starting the next fallback round. |
Development
To build the extension locally:
npm install
npm run build
Run automated regression checks with npm test and type-check with
npx tsc --noEmit. Real CLI smoke tests are opt-in and use isolated temporary
workspaces/configuration plus a local mock model, without provider API charges:
VVPIPI_PI_CLI_PATHS=/absolute/path/to/pi/dist/cli.js npm run test:pi-smoke
Use comma-separated CLI entry paths to test several installed versions. The
runner invokes these JavaScript entries with Node; some releases use
dist/bundle/cli.js. Temporary smoke-test artifacts are retained under the
system temporary directory for diagnosis.
npm test also runs tool-image, usage-panel and fork-draft UI checks in headless Chrome when
google-chrome is available. Set VVPIPI_CHROME_PATH to another Chrome/Chromium
executable if needed; the browser test explicitly skips when it is unavailable.
Before handing mobile changes or a phone-test VSIX to the user, the agent must
run the local Chrome acceptance gate (Linux x64, Node22+, Chrome, VS Code, xvfb):
VVPIPI_PI_CLI_PATH=/absolute/path/to/real/pi/cli.js npm run test:mobile:acceptance
# To build and test the actual Universal artifact on this host instead:
VVPIPI_MOBILE_PACKAGE_TARGET=universal \
VVPIPI_PI_CLI_PATH=/absolute/path/to/real/pi/cli.js npm run test:mobile:acceptance
It type-checks, runs unit/native/Chrome tests, builds and installs the current
VSIX in an isolated profile, then opens the actual QR's deployed GitLab URL in
fresh unlogged Chrome. It checks live/packaged HTML byte equality, prompt/Stop,
revocation, foreground/network/reload recovery and three same-tab pairings.
It rejects a stale deployed client before creating a new public QR. A private temporary directory retains
JSON evidence, stage logs and a synthetic chat screenshot. Localhost/login
fixtures are rejected; failures stop the gate, not the user's next test round.
It uses a local mock model without user credentials or paid API calls. Physical
phone, double-NAT and long-running stability remain separate, explicit limits.
To package a .vsix locally (packaging alone is not acceptance):
# Candidate: fetch/verify all five pinned native payloads at build time.
# Packaging is not macOS/Windows qualification; see the native platform status.
npm run package:universal # vvpipi-0.7.0.vsix, no TargetPlatform
npm run package:linux # vvpipi-0.7.0-linux-x64.vsix
License
MIT License