Skip to content

AG1 Shared trace model, dataset builder and city layout #320

Backlog

Description

@aMonteSl

As a Code-XR developer, I want one host-neutral model of an agent session and one builder that turns it into the dataset the scene draws, so that the IDE and the VS Code extension show the same Agent Flow from the same code.

Acceptance criteria

  • core/agent-flow/agentFlowModels.ts defines the normalized AgentTraceEvent (turn-start, turn-end, step with kind read/write/search/execute/think/fetch/other, metric-delta) and the AgentFlowDataset schema (v1), with zero imports.
  • The builder folds events into turns, steps (tool updates merge by id), per-file touches, the agent's path (transitions), metric deltas (live re-analysis first, host per-turn deltas second, diff line counts last), blast radius from the dependency graph and process metrics (footprint, read/write ratio, revisit rate, blind writes, unverified edits, unread dependents).
  • The city is a squarified treemap of the analysed files (folders as districts) fixed for the session; files outside the analysis go to a reserved strip, so no building ever moves during a session.
  • Paths outside the analysed folder are dropped with a warning; projects over 900 files keep every touched file.
  • Pure and vscode-free; the IDE imports it through @codexr/core/agent-flow/*. Unit tests cover all of the above.

Activity

  1. added
    tfm
    on Nov 28, 2026
  2. added
    user-story
    area: ide
    area: extension
    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

    area: extensionarea: idestream: agent-flowtfmuser-story

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions