Skip to content

Agent trace view for Spec-Driven Agent runs #649

Open

Description

@ArmenSl

Is your feature request related to a problem?

Users can't see what the agent did during a generation run: which files it read and changed, which checks failed and how it fixed them. The progress card shows the current step, but not an inspectable history of the run.

Describe the solution you'd like

A trace view in the editor for a Spec-Driven run, built on data the run already records (the run event log and, since #631, the Agent Trace record):

  • A timeline of phases and steps, with the tool calls (files read, written, edited) and their results.
  • Validation findings and the repairs that followed.
  • A per-file view of which lines the AI wrote and which came from the generator.
  • Cost, turns and duration per phase.

It should be available while the run is in progress and afterwards from the run's results.

Describe alternatives you've considered

Downloading the trace files and reading the JSON. That's possible, but not usable for most users.

Additional context

Related: #620.

Activity

  1. added
    enhancementNew feature or request
    agenticModeling assistant and Spec-Driven Agent
    agentic_demoRaised during the agentic interface demo sessions
    traceabilityLinks between requirements, models and generated code
    uxUser experience
    on Oct 19, 2026
  2. ArmenSl commented on Oct 22, 2026

    @ArmenSl
    CollaboratorAuthor

    A model → code map was prototyped during #659: each generator records, per model element id, the file and symbol it emitted (for example Book → sql_alchemy.py: class Book, routers/book.py: create_book), and a tree-sitter resolver finds those symbols again after agent edits (99.4% resolvable). It did not help the Spec-Driven Agent itself, so it was dropped from #659. It is the link this issue needs. Lessons for building it here:

    • Rebuild it at each generation and resolve symbols on demand, instead of maintaining it, so it never goes stale.
    • Store it outside the app folder (next to the run record), so it does not leak into zips or pushes and the agent cannot edit it.
    • Add the tree-sitter grammar wheels to the requirements and fail loudly without them.
    • Key entries by element id, which v8.3.0 now keeps through the converters (feat: stable element ids across converters, cross-diagram references and the Spec-Driven agent #674).
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

    agenticModeling assistant and Spec-Driven Agentagentic_demoRaised during the agentic interface demo sessionsenhancementNew feature or requesttraceabilityLinks between requirements, models and generated codeuxUser experience

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions