Agent Brain
Agent Brain turns local Claude Code, Codex, and GitHub Copilot Chat activity into a live map of your workspace inside VS Code.
Open your workspace
- Open a project folder in VS Code.
- Open Agent Brain from the Activity Bar.
- Select Start, then Open in VS Code.
The graph honors the workspace's files.exclude and search.exclude settings. It maps up to 1500 files and skips common generated folders, binary files, and files larger than 1 MB.
Open in a browser
Use Open in Browser or Copy URL in the Agent Brain sidebar. The server listens only on 127.0.0.1. It tries agentBrain.port first (default 5173), then up to nine following ports when that port is busy; use the URL shown in the sidebar instead of assuming a fixed port.
Closing the VS Code panel does not stop the server. Use Stop when you are done. If starting fails or the page does not update, select Show Logs in the sidebar and inspect the Agent Brain Output channel for server startup, scan, and agent-event messages. Each line reads time [LEVEL] [component] message. The log also names the Claude Code, Codex and Copilot folders being watched, the session files picked up, and lines or tools that were skipped, which is the first place to look when an agent shows no activity.
Features
- Live workspace graph — Browse folders and files as Sphere Network (the default), a 3D ball of dense coloured folder clusters around the core that you can orbit, zoom and pan (drag to orbit, right, middle or Shift drag to pan), or pick another view from the dropdown: a flat force-directed map, or Constellation, each top-level folder as its own constellation (a glowing hub, stars round it and a thin mesh of lines, with faint lines to its neighbours and a name box above it) on a starfield, other files appearing as specks when you zoom in (drag a node to move it, double-click to focus it), or Matrix Grid, folders as coloured blocks on a grid with orthogonal links. Search files, open node details, inspect links, and open a file in VS Code.
- Local agent activity — Watch observed searches, reads, edits, terminal commands, and failed Claude Code or Codex tool calls move across the graph. Activity is read from local logs. Observed reads outside the workspace appear under External files for the active session, with their full path and no file content. Copilot Chat terminal calls show their recorded command when its session log provides one.
- Replay and focus controls — Replay the last 150 steps, run the demo tour when no steps exist, isolate a folder from the legend (up to 10 rows with External files last, and the remaining folders in a collapsible "more folders" row; every folder has its own colour), show files needing attention, or scatter the Sphere Network ball with Big bang. Hide sidebar removes the left information panel and lets terminal cards use both side columns. Press D to start or stop the demo tour (even with recorded steps), H for Headlines, S to show or hide the sidebar, Z for Zen, T for Light/Dark, and J to switch between jumping arcs and graph-line tracing; viewer preferences are remembered. Zen leaves the interactive graph and view controls on screen while hiding overlays, and Z restores the full display.
- Low-power mode — Reduce drawing work on machines without a GPU. This preference, the selected view, and other page controls are remembered per viewer.
- Shared browser view — The VS Code panel and browser page use the same local server and receive the same live events while it runs.
Agent Brain reads local session logs and does not send that data outside your machine. The graph and terminal cards can show workspace file content plus observed command, activity, and error details. Visibility depends on the local logs each supported agent writes; the extension does not send messages or start AI jobs.
| |