Test a local app in Chrome and fix browser errors
A developer used Claude Code and Claude in Chrome to open a local app, exercise the UI, catch a routing bug, and repair it without manual browser work.
- What they did
- They connected the Claude in Chrome extension to Claude Code with `claude --chrome` or `/chrome`, which let the agent use their existing Chrome session and approved domains once. After asking it to add a dashboard table filter, the agent built the component, loaded the localhost page, tried the filter, and checked the browser for errors. When it saw that the URL query parameters were not changing, it adjusted the router logic and reloaded the page to verify the fix.
- How it went
- The filter example took three rounds to get right, and the developer never had to drive the browser themselves. The setup only works on the developer’s own machine with a visible Chrome window, and it is not meant for CI or headless runs. It also works in Chrome and Edge only.
- Tips
- Use it for local QA on your own workstation, not automated CI. Browser actions can burn through context quickly, so keep the task focused and ask the agent to pause before anything irreversible.
Try it yourself with Claude Code
I’m running a local app in Chrome. Start it with [start command], open [localhost URL], and walk through [feature or flow] as a real user would. Watch for console and network errors, trace any bug back to the code, and make the smallest fix needed. After each change, reload and retest until the flow works cleanly. Before you do anything irreversible, such as submitting a form, deleting data, or making a payment, stop and ask me to approve it. Then summarize what you changed and what you checked.
Fill in the [brackets]. Agents can make mistakes, so review anything before it is sent, paid or deleted.
3 more reports of this
Get 3 agent uses like this every morning
With the day's top AI news. Free, and one click to unsubscribe.
Related agent uses
Use Claude Code to maintain NixOS server configs
A developer uses Claude Code to edit one NixOS config repo for several self-hosted machines, then reviews the diff and applies changes by hand.
Use a browser agent to find and fix UI bugs
A frontend developer uses a browser agent and a coding agent together to spot UI issues, trace them in Chrome, and patch the code.
Use Claude Code from a phone with a remote VM
They accessed Claude Code on an iPhone by pairing a Tailscale-only Vultr VM with Termius, mosh, and tmux.
Move Claude Code skills into Codex
Charlie Hills used Claude Code and Codex to migrate 201 skills in an afternoon, then checked which parts worked in both tools and which still needed fixes.
Rebuild Claude hooks as a pi extension
A developer had an agent convert a folder of Claude Code hooks into a pi extension after switching tools.
Set up Claude Code to manage Tangled issues
They built a Tangled MCP server so Claude Code could check branches and handle issues for repos in owner/repo form.