Contextarium Canvas for VS CodeContextarium pairs GitHub Copilot Chat in VS Code with an infinite, zoomable HTML/CSS/SVG/JS spatial canvas. Chat scrolls away; Contextarium holds your evolving architecture maps, interactive labs, live PR dashboards, and guided Story Beats while you hold the camera. Your board persists automatically per VS Code workspace. ▶ Try the live narrated explainer (no install required: pan, zoom, click any panel, or press Quick Start
Everyday Workflows
|
| Command | Cost | What it does |
|---|---|---|
@contextarium <request> |
Copilot model | Compose, explain, diagram, or revise the spatial canvas in plain English. |
@contextarium /brief <topic> |
Copilot model | Build a 4-5 stop guided Story Beat walkthrough ready for ▶ Play. |
@contextarium /lab <question> |
Copilot model | Build an interactive simulation panel with live sliders, controls, and readouts. |
@contextarium /compare <A> vs <B> |
Copilot model | Build a side-by-side spatial contrast with clickable links. |
@contextarium /pr [number\|url\|--once\|status\|stop] |
0 AI | Watch the current branch's GitHub PR (or target PR) live via gh with a status-bar toggle, or pass --once for a one-shot sync. |
@contextarium /bridge [on\|off\|status] |
0 AI | Check or toggle the opt-in loopback /api bridge (127.0.0.1 + 256-bit bearer token). |
@contextarium /boards [list\|save\|load\|delete] |
0 AI | Save, list, switch, or delete named persistent boards under ~/.contextarium/boards/. |
@contextarium /clear |
0 AI | Clear all panels from the canvas. |
Copilot Chat Tools (Agent Mode)
Contextarium also registers four Language Model Tools that Copilot Chat Agent Mode can call directly (or you can reference with #):
| Tool | Reference | What it does |
|---|---|---|
contextarium_inspect_workspace |
#contextariumInspect |
Inspects current panels, beats, links, render diagnostics, and the Contextarium authoring guide. |
contextarium_commit_workspace |
#contextariumCommit |
Creates, updates, renames, or removes panels, Story Beats, and curved spatial links in place. |
contextarium_control_canvas |
#contextariumControl |
Focuses a panel, returns to overview, plays/pauses/steps Story Beats, or clears the canvas. |
contextarium_configure_bridge |
#contextariumBridge |
Checks or toggles the opt-in loopback /api/* bridge for zero-AI CLI watchers. |
Commands
Contextarium: Open Canvas: Open the workspace canvas beside Copilot Chat (automatically restores your saved board for this workspace).Contextarium: Open Example Canvas: Load the interactive self-explainer workspace (about-contextarium.json).Contextarium: Clear Canvas: Clear all panels from the active workspace.Contextarium: Stop Live PR Watcher: Stop an active@contextarium /prlive polling session.
Security & Trust Model
- Serves the spatial renderer strictly on
127.0.0.1:<ephemeral-port>inside a CSP-locked Webview<iframe>(portMapping) with exactHost(421) andOrigin(403) checks. - Authored panels never receive VS Code APIs, Copilot credentials, or native command dispatch.
- The external
/api/*bridge is disabled by default, requires a per-session 256-bit bearer token, and rejects browserOriginheaders (403).
