Skip to content

Epic: Agent Flow, the fifth analysis type (watch an AI agent program on the XR table) #319

Backlog
6 of 15 issues completed

Description

@aMonteSl

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.

Sub-issues

Sub-issues

6 of 15 Issues completed
Loading 15 sub-issues

Activity

  1. added
    tfm
    epic
    on Nov 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    epicstream: agent-flowtfm

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions