Local VS Code companion for Guardex-managed repos.
Quick Start
Use the dedicated Active Agents sidebar icon to create or inspect Guardex sandboxes quickly.
- Install from a Guardex-wired repo:
node scripts/install-vscode-active-agents-extension.js
- Reload the VS Code window.
- In the Activity Bar, open the
Active Agentshive icon under Source Control. UseStart agentto enter a task + agent name and launch the repo Guardex agent runner. The companion prefersbash scripts/codex-agent.shwhen present, falls back tonpm run agent:codex --, and only usesgx branch startas a last resort.
What it does:
- Bundles a local GitGuardex icon so repo installs show branded extension metadata inside VS Code.
- Bundles the optional
GitGuardex File Iconstheme for OpenSpec, agent worktree, and hook files in Explorer. - Adds a dedicated
Active AgentsActivity Bar container with a hive icon and live badge count for active sessions. - Renders one repo node per live Guardex workspace with grouped
ACTIVE AGENTSandCHANGESsections. - Splits live sessions inside
ACTIVE AGENTSintoBLOCKED,WORKING NOW,THINKING,STALLED, andDEADgroups so stuck, active, and inactive lanes stand out immediately. - Mirrors the same live state in the VS Code status bar so the selected session or active-agent count stays visible outside the tree.
- Shows one row per live Guardex sandbox session inside those activity groups, with changed-file rows nested under sessions that are touching files.
- Labels session rows with provider identity and snapshot context; snapshot-backed rows use a one-letter snapshot badge such as
Nfor[email protected]. - Shows raw agent branch groups with the
git-branchicon instead of the generic folder icon. - Shows repo-root git changes in a sibling
CHANGESsection when the guarded repo itself is dirty. - Derives session state from dirty worktree status, git conflict markers, heartbeat freshness, PID liveness, and recent file mtimes, surfaces working/dead/conflict counts in the repo/header summary, and shows changed-file counts for active edits.
- Uses distinct VS Code codicons for each session state, including animated
loading~spinforWORKING NOW. - Reads repo-local presence files from
.omx/state/active-sessions/, expectslastHeartbeatAtfreshness, and falls back to managed worktree-rootAGENT.locktelemetry when the launcher session file is absent. - Publishes
guardex.hasAgentsandguardex.hasConflictscontext keys for other VS Code contributions.