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
Give the AI agent 'eyes': make build → view → iterate efficient for AI-driven development #16
When an AI agent (e.g. Claude, Copilot) is authoring a Reactor app, the build → view → iterate loop is lopsided: the AI can write code fluently, but it has no effective way to see what the running app looks like or behaves like. We have the early --preview feature (launches the app, captures frames, surfaces them to the VS Code extension), but:
There's no complete story for how an AI agent consumes preview output.
In practice the AI isn't effective at using what's there today — it can't reliably reason about layout, overflow, state transitions, or interaction outcomes from a single image.
The loop "make a change → verify visually → correct" requires a human in the middle, which defeats the point of agentic coding.
Goal
Close the perception gap so an AI agent can iterate on a Reactor app roughly as well as a developer sitting in front of the preview window — ideally better, because the agent can also inspect structured state the human can't.
Ideas to explore
Screenshots on demand — harden what --preview already captures. Per-component snapshots, snapshots after a specific interaction, deterministic framing.
Visual tree / semantic tree dump — expose the live WinUI tree (element types, names, bounds, text, bindings) as structured text the agent can grep and reason about. Often more actionable than pixels.
Automation / driver surface — let the agent click, type, scroll, navigate, and assert, not just look. Something UI-Automation-shaped but scoped for agents.
State inspection — surface the current values of hooks / reactive state at a given moment, so the agent can correlate visual output with underlying state.
Deterministic scenarios — a way to say "render component X with props Y" and get back (image + tree + state) without having to script navigation.
Diffing — before/after visual + tree diffs so the agent sees the delta its edit caused, not just the final frame.
Feedback channel to the agent — standardized tool/MCP surface so any agent (Claude Code, Copilot, etc.) can call into these capabilities uniformly.
Out of scope (for this issue)
Picking a final design. This issue is to think through the shape of the "eyes" story end-to-end and decide what belongs in the platform vs. the VS Code extension vs. a separate agent-facing tool surface.
Related
Existing --preview capture in src/vscode-reactor/src/extension.ts
Activity
docs(024): add AI agent devtools spec
codemonkeychris commentedon Apr 19, 2026
addressed by PR#32
fix(045): address §2.29 review feedback (P2 docking)
fix(045): address §2.29 review feedback (P2 docking)
fix(045): address §2.29 review feedback (P2 docking)
perf: address PR review findings (behavior-parity hardening + tests)
perf: coalesce COM-interop reads + allocations in reconcile path
perf: address PR review findings (behavior-parity hardening + tests)