Agent Visualizer for Claude Code

A live view of what Claude Code is doing: steps, tool calls, subagents,
reasoning time and tokens, drawn as a neural map, a timeline and an event
stream in a VS Code panel next to the chat.
Maintained by atlas, a self-evolving agent project run by Alex Adamopoulos at
assert.gr.
Note: This is an independent community extension, not an official Anthropic
product. It is not made, endorsed or supported by Anthropic. It reads the
session logs Claude Code already writes on your machine. We would be glad
to see this kind of live view become an official Claude Code feature one
day; until then, this is our take on it.

Why visualize an agentic flow
Visualizing an agentic flow is more than eye candy. A coding agent's session
is a long chain of reasoning, tool calls and delegations, and in a chat window
it scrolls past as prose. Laid out as a map, a timeline and an event stream,
the same session becomes something you can debug: where the time went, which
step failed and what the agent tried next, where it reread the same file three
times, when it handed work to a subagent and waited.
That matters most where the work is hardest. In the session shown here, a
numerical integrator fails its manufactured-solution test with an observed
order of 1.03 instead of 2, a Bayesian sampler reports 212 divergent
transitions, and a global sensitivity analysis is still running. Each detour
is visible as it happens, together with the change that resolved it: the
reasoning trail a reviewer would otherwise reconstruct from scrollback.
The same views make models comparable. Run one prompt with two models and
the timelines and distilled skeletons show how many steps each took, how long
each tool ran, which tools each chose and where each went wrong.
Visuals only earn their keep when they clarify state and causation rather
than adding clutter. That is why long sessions fold into prompts and plan
phases that open on click, why reasoning appears as time and tokens instead
of invented text, and why any run can be distilled into a plan the next agent
can follow. Done that way, they make complex multi-step autonomy far easier
to evaluate and steer.
How it works

Claude Code has no event API that other extensions can use, so the extension
follows the session logs Claude Code writes to disk. The CLI, the VS Code
extension and the desktop app all write them:
~/.claude/projects/<project>/<session>.jsonl
~/.claude/projects/<project>/<session>/subagents/agent-<id>.jsonl (+ .meta.json)
The extension watches the folder (fs.watch, plus a 1 s poll as a fallback),
reads each line as it is written, and turns it into the graph.
CLAUDE_CONFIG_DIR is respected, and claudeAgentVisualizer.projectsDir
changes the folder.
|
|
 |
 |
Every step: tools fan out from their step, subagent calls orbit the Agent node |
WebGL: the same constellation in 3D, steps climbing a helix in time |
 |
 |
| Timeline and inspector: durations, tokens, subagents indented |
Stream: say, think, tool and error events as they happen |
Features
- Sessions. AUTO follows the most recently written session; PIN keeps one.
By default the list shows sessions whose working folder is inside the open
workspace; a toggle shows all of them.
- Grouped view. Each earlier prompt is one node, and the current prompt is
split into plan phases (explore, change, verify, run, delegate, …) coloured
by kind. A node marked + opens on click; Close this phase / prompt in
the inspector folds it again, ⊟ closes everything you opened, and ▦
switches to every step. The live phase always stays open.
- Continuity. A new prompt does not clear the graph: the whole session is
one spiral. Older steps fold into checkpoint nodes (25 steps each, merged
further if they pile up), so memory stays bounded and token totals stay exact.
- Large logs. Opening a session reads only its last 20 prompts (at most
32 MB), scanning backwards from the end. A 450 MB log opens in about 0.1 s.
- Subagents, skills and MCP tools. Subagents orbit the call that started
them and get their own agent card. Skill calls show the skill's name. MCP
tools (
mcp__<server>__<tool>) have their own colour, and the inspector
names the server.
- Reasoning. Thinking is redacted in the logs, so reasoning nodes show
duration and token count, never content. Cost is not logged, so it is not
shown.
- The heart of the spiral. A pair of compasses inside a glass sphere draws
the first circle when the map opens, and the Seed of Life grows inside it in
gold, with light falling from above: an allegory of creation measured out
in geometry, where every session starts.
- Colours follow your VS Code theme (light, dark, high contrast; live when
you switch). The neural map keeps its dark neon look. Set
claudeAgentVisualizer.appearance to neon for the original look everywhere.
- Second monitor. Open in New Window in the panel's title bar moves the
visualizer into its own window; Maximize fills the current one.

From a run to a reusable skill
A run is one prompt and the work it triggered.
1. Distill (local)
Select a step and click Distill this run as Markdown, or run Agent
Visualizer: Distill Last Run as Markdown. The skeleton is built from the raw
log with fixed rules, without an LLM:
- the prompt and the outcome (the agent's final text)
- phases: consecutive tool calls grouped as explore, change, verify, run,
version control, delegate, ask, plan, web, MCP or skill. Shell commands are
classified by the program at the start of each command segment.
- pitfalls: failed calls and the call that came next
- files changed and read, commands run, subagents and skills used, and the
agent's notes between steps
- duration, steps, tool calls and tokens
It opens as an unsaved document. Values that look like secrets (tokens, keys,
passwords, JWTs, credentials in URLs) are redacted on a best-effort basis, so
review it before sharing.
2. Generalize (with consent)
Generalize into a reusable plan asks an LLM to turn the skeleton into a
plan for similar tasks: When to use, Inputs, Steps, Decision points, Pitfalls,
Verification. Choose the LLM with claudeAgentVisualizer.generalize.provider:
| Provider |
What it uses |
Setup |
claude (default) |
The local Claude Code CLI (claude -p), with no tools, no MCP servers and no saved session |
None: the CLI bundled with the Claude Code extension is found automatically. Optional: generalize.claude.model |
custom |
Any OpenAI-compatible chat-completions endpoint: hosted, or Ollama / LM Studio / vLLM on this machine |
generalize.custom.baseUrl, generalize.custom.model, then Agent Visualizer: Set Custom LLM API Key |
off |
— |
— |
For example, in your user settings:
"claudeAgentVisualizer.generalize.provider": "custom",
"claudeAgentVisualizer.generalize.custom.baseUrl": "https://atlas.assert.gr/v1",
"claudeAgentVisualizer.generalize.custom.model": "atlas-fast"
Before anything is sent, a dialog shows the destination, the model, the size,
the run and the project. You can send once, always trust that destination, or
review the skeleton first (Agent Visualizer: Ask Again Before Sending to an
LLM resets the choice). Only the redacted skeleton is sent, never the log.
These settings come from user settings only; the API key is kept in VS Code's
secret storage, bound to the endpoint's origin; HTTPS is required except for
localhost; redirects are refused; remote images in the answer are removed.
3. Save as Skill
Click Save as Skill when the plan is ready (or use the save icon on an
unsaved Markdown document, or Agent Visualizer: Save Plan as Claude Code
Skill). Choose a name (it becomes /name), a description (prefilled
from the plan; Claude reads it to decide when to load the skill), and where:
.claude/skills/<name>/SKILL.md in the project, or ~/.claude/skills. The
skill is saved with your edits; review generated instructions before saving.
Install
From the Visual Studio Marketplace: search for Agent Visualizer for Claude Code in
the Extensions view, or run:
code --install-extension ASSERT-PC.agent-visualizer-for-claude-code
In Cursor, Windsurf, VSCodium and other editors that use
Open VSX:
search for the same name in their Extensions view.
Or download the .vsix from the latest release
(the same file both registries serve), then in VS Code: Extensions → ⋯ →
Install from VSIX…, or:
code --install-extension agent-visualizer-for-claude-code-<version>.vsix
Open it with Agent Visualizer: Open or the Claude item in the status bar.
Privacy and security
Session logs contain private conversations. The extension:
- makes no network requests, except the generalization above, which runs only
when you start it and confirm. The webview has a strict CSP (
default-src 'none', scripts by nonce from the extension only, connect-src 'none'), and
everything is bundled locally, including three.js.
- never writes log content anywhere except into its own webview.
- only reads files under the projects folder, and ignores network paths and
workspace-level overrides of that setting.
Every change is reviewed against the checklist in
.claude/agents/security-reviewer.md.
Report vulnerabilities privately to info@assert.gr
(see SECURITY.md).
Languages (i18n)
The source language is English, and every user-visible string is
localizable. VS Code's display language picks the translation; anything not
translated falls back to English.
| What |
English source |
Translation |
| Manifest (commands, settings) |
package.nls.json |
package.nls.<lang>.json |
| Extension messages |
vscode.l10n.t("…") in src/ |
l10n/bundle.l10n.<lang>.json, keyed by the English text |
| Webview UI |
gui/i18n/en.ts (message ids) |
l10n/bundle.l10n.<lang>.json, keyed by the id |
Translators work in one file per language. l10n/bundle.l10n.json is the
generated English source to copy from. Placeholders are {0}, {1}, …;
plurals use suffixed ids (agent.steps.one, .other, plus .few, .many
where a language needs them).
npm run l10n # regenerate the English bundle and validate translations
npm run l10n:check # CI: unknown keys, placeholder mismatches, non-English text in src/ or gui/
Development
npm install
npm run build # esbuild (extension) + Vite (webview) → dist/
npm test # vitest, on sanitized fixtures and synthetic sessions
npm run typecheck
npm run screenshots # README images, from the synthetic demo session
npm run demo-gif # the README animation (WebGL map), same demo session
Press F5 for an Extension Development Host. To add a test fixture from a
real session (all conversation content replaced by placeholders):
node scripts/sanitize-fixture.mjs ~/.claude/projects/<project>/<session>.jsonl <name>
src/extension.ts activation, commands, status bar
src/watcher.ts session list, following the active session
src/logfiles.ts line tailing, backward scan, cheap metadata
src/reducer.ts log lines → VizState (steps, tools, subagents, checkpoints)
src/panel.ts webview panel, CSP, debounced messages
src/classify.ts tool call → plan phase (shared by grouping and distill)
src/distill.ts run → Markdown plan skeleton, with redaction
src/generalize.ts skeleton → reusable plan (Claude Code CLI or OpenAI-compatible)
src/skill.ts plan → SKILL.md
gui/ Solid UI, grouping, theme styles, i18n
scripts/ BOMs, l10n checks, fixtures, demo session, screenshots
CI, supply chain and BOMs
Only the build gates a change; every security job is non-blocking.
| Workflow |
When |
What |
ci.yml |
push and PR |
Build (gate): typecheck, l10n check, tests, build, .vsix. Non-blocking: CVE scan (npm audit, OSV-Scanner to code scanning), dependency review on PRs, SBOM/CBOM artifacts |
security-remediation.yml |
daily, after CI on master, manual |
Upgrades vulnerable dependencies; if the build then breaks, Claude fixes the code. Opens a PR for review, never merges |
security-review.yml |
PRs, weekly, manual |
Claude runs the security-reviewer agent: a PR comment, or an issue for the weekly review |
release.yml |
tag vX.Y.Z |
Builds the .vsix and publishes a GitHub release with the SBOMs and CBOM of that version |
publish.yml |
after a successful release, manual |
Publishes that release's .vsix to the Visual Studio Marketplace and Open VSX by trusted publishing (OIDC); no token is stored |
Bills of materials per version (npm run bom → sbom/<version>/):
sbom.cdx.json (what ships in the .vsix), sbom-build.cdx.json (the build
toolchain) and cbom.cdx.json (cryptographic assets found by a static scan of
the source and the shipped bundles, with file and line evidence), all
CycloneDX 1.6. The Claude jobs need an ANTHROPIC_API_KEY repository secret
and are skipped with a notice without it.
Contributing and ideas
Ideas and contributions are very welcome, whether that is a sketch of a
view you wish you had, a bug report, a translation or a pull request. Start
with CONTRIBUTING.md, open an
idea or a
bug report, and please never
attach real session logs (there is a sanitizer for that).
Ideas we'd love help with
- Compare two runs side by side: the same prompt on two models, aligned
step by step (time, tokens, tools, failures).
- Exact timing from Claude Code hooks (
PreToolUse, PostToolUse,
SubagentStop, Stop) alongside the log, for tools that finish faster than
a log line.
- Cost estimates from a per-model price table, clearly marked as estimates.
- Translations of the UI (one JSON file per language).
- Export a run as an image or a self-contained HTML page for a review or
a paper.
- Loop and detour detection: highlight files read again and again, or
edits that undo earlier edits.
- A standalone browser mode for a wall screen, without VS Code.
- Other agents: the reducer is the only part that knows the log format.
Not an official Anthropic product
Agent Visualizer for Claude Code is an independent, community-built extension. It is
not developed, endorsed, sponsored or supported by Anthropic, and it uses no
private Anthropic interface: only the session logs that Claude Code writes to
your disk, whose format is undocumented and may change. Claude and Claude
Code are trademarks of Anthropic, used here only to say what the extension
works with.
A live view of an agent's steps, tools and subagents seems a natural part of
Claude Code itself. If it ever becomes an official feature, that would be the
best outcome for this project; feedback and ideas toward that are welcome.
info@assert.gr · assert.gr
License
MIT © 2026 Alex Adamopoulos, assert. See LICENSE.