How it works
- Playwright captures the target page with screenshots while scrolling.
- A vision-capable LLM reviews the screenshots and returns strict JSON.
- Feedback is reviewed by the user, who can reject unwanted suggestions.
- A coding agent is given the relevant files and feedback JSON and applies the patches via diff.
- An algorithm reads each proposed edit to verify code integrity.
- The updated page is rendered, and this process iterates.
Add an API key and model to .env or your shell:
OPENAI_API_KEY=...
UI_REVIEW_MODEL=...OPEN_AI_KEY is also supported
Create a new directory containing the UI to be reviewed.
Then execute npm run dev
