Repository navigation
Description
Goal
Give developers context on what an AI coding agent does inside the code while it works. Agent Flow is the fifth Code-XR analysis type, next to classic, dependency graph, historical comparison and project evolution. On the XR analysis table it draws the project as a city (folders are districts, files are buildings) and replays or follows live an agent session on top of it:
- a probe that hops from file to file, with a fading light trail (the agent's path);
- one visual verb per action: reads (cool pulse), searches (scanning rings over every hit), edits (warm growth with scaffolding; created files rise from the ground), commands (a console pillar that flashes green or red);
- per-turn rings on each building (revisits show without playing anything), a heat view of the session footprint, metric delta caps (Code-XR's own metrics from the live re-analysis), and the blast radius of the edits over the dependency graph, with dependents the agent never read highlighted;
- a timeline along the table edge (turn segments, one tick per step, failures marked), play/step/speed, and "follow live";
- process metrics: footprint, read/write ratio, revisit rate, blind writes, unverified edits, unread dependents, delta in code lines and complexity.
Research and design rationale: docs/agent-flow/research.md.
Data sources (shared core, both hosts)
Normalized trace events (apps/vscode-extension/src/core/agent-flow/, vscode-free, imported by the IDE as @codexr/core/agent-flow/*):
- Code-XR IDE: every ACP chat (Claude Code, Codex, Gemini, local models), pushed live.
- VS Code extension and IDE: Claude Code transcripts (
~/.claude/projects/...) and Codex rollouts (~/.codex/sessions/...) of the analysed folder, followed live while they grow. An agent running in a terminal next to the scene moves the scene.
Local only: nothing is uploaded. In a shared room, only the host picks which session is shown.
Stories
- AG1 Shared trace model, dataset builder and city layout
- AG2 Agent session sources: Claude Code transcripts, Codex rollouts, live host sources
- AG3 Fifth analysis type wired end to end (descriptor, server feature, room protocol, entity, mode lists)
- AG4 XR scene: agent city, probe and trail, visual verbs
- AG5 Timeline, replay and follow live
- AG6 Insight overlays: heat, metric deltas, blast radius, session metrics
- AG7 IDE: live feed from ACP chats and "Watch in XR"
- AG8 VS Code extension: entry point in the AI agents section
- AG9 Research document, test guide and screenshots
Branches
Core, browser runtime and plugin parts go to v1.3.0. The IDE adapter goes to ide, after merging v1.3.0 into it.
Activity
Agent Flow: no "No chart detected" over the city; the IDE scene pane …