Two words aren't enough for an agent that hasn't read your code.
So it guesses. It picks a framework, invents a pattern and calls the job done when it compiles. You spend the next three messages correcting it, and paying for the tokens.
For “add login”Your agent guessesRefine tells it
FrameworkAssumes plain React and a pages folderNext.js 14 with the app router
AuthWrites a JWT helper from scratchNextAuth, already in package.json
DataCreates a second users tableThe existing Prisma User model
PatternInvents its own route structureFollow app/api/signup/route.ts
Done meansIt compilesSign-in works, /login redirects, signup tests pass
Off limitsNothing, so migrations get rewrittenprisma/migrations/ and app/api/billing/