You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
AG1 Shared trace model, dataset builder and city layout #320
area: extensionVS Code extension host (TypeScript): commands, launcher, servers, servicesarea: ideThe Electron + Monaco IDE (apps/ide)stream: agent-flowtfmAdds the issue to the TFM board automatically. Do not removeuser-storySub-issue of an epic ([Story] title prefix)
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.
area: extensionVS Code extension host (TypeScript): commands, launcher, servers, servicesarea: ideThe Electron + Monaco IDE (apps/ide)stream: agent-flowtfmAdds the issue to the TFM board automatically. Do not removeuser-storySub-issue of an epic ([Story] title prefix)
Activity