ARGV Extension
ARGV brings the ARGV engineering workflow into VS Code compatible editors. It is the
shared project intelligence and orchestration layer around coding agents, not a chat
assistant or a replacement coding agent.
The extension provides a unified ARGV sidebar with project context, compact Task Pack accordions,
and a last local execution card, alongside workspace linking, exact-revision Agent
Handoff, and exact Execution starts through the local ARGV CLI. Editor sign-in
still uses an opaque editor session kept in VS Code SecretStorage. Linking stores
only the folder URI and project ID in workspaceState; it writes nothing into the
repository. The CLI retains independent authority over local workspace binding,
preflight, runner execution, and reconciliation. Local change paths and runner output
stay in the editor and are never sent to argv-api for this view.
The ARGV sidebar uses one theme-aware WebviewView for the project, Task Packs, and
last editor-managed local Execution. It shows the exact revision, runtime phase,
elapsed time, validation result, and available actions. Active work has an animated
indeterminate indicator, one status bar item, and non-blocking progress. The display
timer updates locally; server polling remains bounded. View → Output → ARGV holds
technical diagnostics.
During a local run, Changes during this execution shows Git-aware workspace
changes observed after the run baseline. It excludes untouched pre-existing dirty
files, and may include manual edits made while the run is active. Click a file to
open it or compare it with its execution-start state. Show live output opens
the local ARGV Runner terminal. Runner output is not retained after editor reload;
the bounded local change list is retained in workspaceState without file contents.
Execution tab. Starting a run, a queued run or Check & Resume opens one editor tab per
Execution (ARGV · <Task Pack>); Open Execution reopens it. The tab shows a structured
activity timeline built from the CLI's editor-events v1 output (lifecycle steps, commands with
bounded output previews, provider-reported edits, warnings and the final result), the runner and
reported model and usage when the CLI prints them, validation, and locally observed changes with
diffs. Stop interrupts the local runner after confirmation; ARGV then reconciles the
Execution and Check & Resume can continue it. Closing the tab never stops the run. Live
activity exists only in the window that runs the Execution and is not stored: after a reload or
in another window the tab shows ARGV's recorded state and never invents earlier events. Reopening
a tab never creates, claims or restarts an Execution.
Run queued Execution. When an approved revision's latest attempt is QUEUED, the sidebar asks
ARGV, with this workspace's binding, whether that exact attempt is claimable here. Only then is
Run queued Execution enabled; it runs argv run --execution-id <id> --editor-events and the
CLI's server claim revalidates authorization, environment and binding. Attempts queued for another
workspace, with an inactive binding, or by someone else explain why they cannot run here.
Development
Use Node 22, pnpm 10, and Python 3 from the monorepo root:
pnpm install --frozen-lockfile
pnpm --dir packages/argv-extension typecheck
pnpm --dir packages/argv-extension test
pnpm --dir packages/argv-extension build
pnpm --dir packages/argv-extension package
The package command produces packages/argv-extension/artifacts/senkytech.argv-0.8.0.vsix
and checks its contents. It includes a bundled extension host entrypoint, the pinned
runtime signing public key, and no runtime node_modules. No publishing credential is
needed for development, tests, or packaging.
Manual editor check
In both Cursor and VS Code, use Extensions: Install from VSIX... and select the
generated file. Confirm that ARGV appears in the Activity Bar and its single sidebar
shows honest project, Task Pack, and Execution states. Confirm ARGV · Not connected
appears in the status bar.
Run ARGV: Open ARGV and confirm https://argv.app opens in the browser. Click the
status item and confirm that the ARGV view opens. For authentication, follow the
manual plan in docs/17-editor-authentication.md against a matching deployed web/API.
For local Extension Development Host testing only, set
ARGV_EDITOR_API_ORIGIN=http://localhost:5080 in the extension host environment.
That exact value is accepted only in VS Code Development mode; a packaged VSIX
always uses https://api.argv.app. No workspace setting can redirect credentials.
For a repeatable Cursor or VS Code debug launch, open
packages/argv-extension as the workspace folder, run pnpm build from that
folder once, choose Run ARGV Extension Host (Local API) in Run and Debug, and
press F5. The launch configuration passes the override directly to the Extension
Development Host, so it does not depend on an already-running Cursor process
inheriting environment from the shell. In the Extension Development Host, open
View → Output → ARGV and confirm the logged extension path ends in
packages/argv-extension, mode is Development, and API origin is
http://localhost:5080. The installed Marketplace/VSIX copy remains in the parent
Cursor profile; it is not the target window for this debug run. The development
window's startup log proves which copy was loaded.
The single VSIX is intended for Open VSX, Microsoft Visual Studio Marketplace, and
retention as a versioned artifact. Distribution details are in the monorepo's
docs/16-extension-distribution.md.
Workspace and execution
Open a repository folder, sign in, and choose Link this workspace in PROJECT.
The picker lists projects the signed-in editor session can access. You can change
or unlink the editor mapping without changing the server project or CLI binding.
TASK PACKS lists the project's current packs and shows the exact approved revision
where one exists. Collapsed rows show authoritative Execution status; expanding one
shows its approved objective and reveals Run, linked Retry, or View as appropriate. Readiness comes from the editor-authorized
GET /api/v1/editor/projects/{projectId}/execution-readiness endpoint, which reads the latest
attempt for every approved revision independently of bounded project history. Missing readiness
disables execution. Use in editor opens ARGV's deterministic handoff content in
an untitled Markdown document; it does not modify files or invoke an agent.
Running with live editor output requires a compatible ARGV CLI (0.3.0+, editor
protocol v1) connected to this same folder and project. On first use the extension
downloads a verified platform binary from the signed runtime catalog into editor
global storage (Preparing ARGV Runtime). The extension verifies the signed catalog
and installed executable on every managed launch, including offline reuse, and does
not replace a separately installed global argv. After editor sign-in and project
linking, use Sign in CLI environment and Connect workspace in the sidebar.
These actions launch the selected CLI with the established browser approval flow;
no global CLI is needed. Editor sign-in and CLI environment authorization use
separate credentials. Approve the browser requests, then press Refresh if the
sidebar has not updated. Run with ARGV creates a server Execution for the
exact approved revision, then invokes argv run --execution-id <id> --editor-events
in the folder. That local NDJSON transport is separate from the clean --json
result contract. EXECUTION shows the server state, a bounded summary of persisted
validation evidence, and individual check results when available. Active attempts
refresh every 15 seconds without overlapping requests; Refresh remains available.
A temporary API failure keeps the last known state marked as potentially stale. The
ARGV Output channel records safe execution stages, while the web execution page has
full detail.
For an AWAITING_RECONCILIATION attempt, the view points to the authoritative
server Execution. The exact argv resume --execution-id <id> --json command
remains available through the CLI when its local journal and server state permit
continuation. The sidebar does not claim resume eligibility without that check.
FAILED or CANCELLED attempts offer Retry with ARGV only when the server marks the exact
latest attempt eligible. Retry creates a new immutable Execution linked by retryOfExecutionId.
Active, completed, and reconciliation attempts offer View Execution. The extension does
not inspect the local SQLite journal or offer an unverified Continue action.
Runtime selection uses an explicit argv.cliPath first, a verified extension-managed
CLI second, and a compatible global install on PATH or common user directories last.
An explicit external path is a user-trusted executable; it is not checked against ARGV's
signed managed catalog. A compatible global CLI can be used if managed setup is
unavailable. First installation needs network access to download the signed catalog
and runtime.
On later starts, a locally verified runtime is ready without waiting for the network.
The extension checks for signed updates in the background at most every few hours;
active local work defers binary downloads and activation. A signed disabled release
is rejected when the newer authenticated catalog is received, and stays rejected if
the local catalog cache is later corrupted. If signed catalogs with the same
timestamp disagree, the managed runtime is not launched until a newer signed catalog
resolves the conflict. A managed integrity failure is shown even
if a compatible global CLI is available as fallback; without one, the integrity
failure itself blocks running. Editor windows sharing one profile install the runtime
one at a time under an operating-system lock that is released when a window exits.
If the system cannot enforce that lock, set argv.cliPath to a trusted ARGV CLI.
Installing the ARGV runtime does not install or authenticate third-party coding
providers. Workspace linking can proceed while runtime preparation is pending;
execution stays disabled until the runtime and workspace binding are ready.
CLI 0.3.6 still requires a hosted Git origin for repository identity; local-only
Git identity support needs a later CLI release (at least 0.3.7).
Editor Sign out ends the editor session; it does not revoke the separate CLI
environment credential. Use the CLI's logout command or Connected environments
settings when that environment should be disconnected.
For local development, the extension host uses ARGV_EDITOR_API_ORIGIN=http://localhost:5080.
The CLI uses its existing ARGV_API_BASE_URL setting; set that to the same local
API origin when testing local execution. The local web app at http://localhost:3000
is required for browser authorization. Production extension API origin remains fixed.