[next-dev-loop] Fix some papercuts (#95153)
Alternative to https://github.com/vercel/next.js/pull/95135. ## Summary This fixes a bunch of papercuts I discovered by running this skill repeatedly and analyzing logs: - Set the min version to https://github.com/vercel-labs/agent-browser/pull/1483 which fixes `--wait`. - Push the agent to read the docs so it doesn't guess browser commands incorrectly. - Ask agent to derive session name from CWD so that it doesn't conflict for git worktrees or same-named directories. - Explain the daemon warning better so the agent doesn't restart sessions for no reason. - The `mcp` prefix was confusing the agent and it was invoking the commands wrong. - Add a few more gotchas that the agent often runs into. ## Test Plan ### Harness I've been running this in an eval that runs a small next project and navigates around it. The eval penalizes the score if the log shows the agent stumbling, waiting unnecessarily, getting errors, etc. This version was most successful so far: <img width="801" height="78" alt="Screenshot 2026-06-25 at 05 14 43" src="https://github.com/user-attachments/assets/9c1c8744-2fe9-4c88-ab49-a44966f7515d" /> ### Real Project I've also tried it with a real project as a part of CC migration skill. It started the browser and later was able to talk via MCP and do edits seemingly without problems. More real testing would be nice — I don't have much experience with skills. --------- Co-authored-by:Jude Gao <jude.gao@vercel.com>
Showing
Please
register
or
sign in
to comment