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
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.
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.
Activity
ArmenSl commentedon Oct 22, 2026
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:feat(spec-driven): trace view for agent runs (#295)
feat(spec-driven): stream what the run card's trace view needs (#803)