Visual feedback and layout
Visual feedback for coding agents with element annotations, React/Vue/Svelte source resolution, layout mode and design checks.
Luci Feedback turns clicks, text selections and layout edits in the running app into structured prompts pinned to exact source files.
Annotate elements and text
Run luci serve and open Feedback in the dev toolbar:
- Click Annotate, then click any element on the page to write a note with an intent (
fix,change,questionorapprove) and priority. - Select text anywhere on the page and press Add feedback to attach a note to those words.
In development mode for React, Vue 3 and Svelte, Luci resolves the component hierarchy and exact source file location for each note. In production builds, notes keep the selector and text context.
Multi-page prompts with stable IDs
Notes stay numbered on screen and grouped by page in .luci/feedback/. Each note gets a stable ID such as P1-A1.
When you press Copy prompt, or when your agent calls get_feedback_prompt over MCP, Luci bundles pending notes from every visited page into one prompt and asks the agent to report back on every ID.
list_feedback, get_feedback_prompt, watch_feedback) but cannot mark them done or delete them.Ask your agent to watch for new notes while you review the app; watch_feedback waits until you save a note and delivers only the new items.
Layout mode
Switch to Layout in the dev toolbar to test structural changes visually before asking your agent to edit code:
- Change existing elements: select an element to resize it with its 8 handles, drag its grip to reorder siblings, or edit width, height, margin, padding, flex and grid settings snapped to your spacing scale.
- Insert parts: insert an existing component found on the page, a saved capture from
.luci/design/or a layout block (section,heading,text,button,image slot,card,card grid,navigation,footer,form field). - Sketch a new page: open New page, set a route and build rows and columns on a canvas, then copy the page prompt or save it as a feedback note.
Layout mode previews changes without altering your app's underlying DOM; when you copy the prompt, the page resets to match your code until your agent applies the edits.
Design check
In Check, pick a saved .design.md file (or paste one) and click the built component. Luci captures it the same way and compares parts, styles, state changes, motion and accessibility.
Each difference is listed as one sentence and can be turned into a feedback note with one click. Turn on automatic re-check to run the check again whenever edits reload the page.