Get a second opinionBook
Menu

AI coding tools ward

Code review for apps written with Cursor, Claude Code, Copilot, Codex, Windsurf, Antigravity and v0

Cursor, Claude Code, Copilot, Codex, Windsurf (now Devin Desktop), Antigravity and v0 all write code faster than anyone can read it. Each works one chat, task or suggestion at a time, so after a few weeks your repository holds the work of dozens of sessions that never saw each other’s code.

I read the codebase as a whole, after whatever review tool you already ran, and check what should be true for your app: who may see what, who may change what, who may pay what. You get a ranked list, critical problems proven on your live app, each with a fix prompt your agent can act on.

US dollars, no tax added. See both prices.

X-raysrc/lib/auth.ts1 fracture
const JWT_SECRET = process.env.JWT_SECRET || 'secret'

export function signToken(userId: string) {
  return jwt.sign({ sub: userId }, JWT_SECRET, { expiresIn: '7d' })
}
  1. Line 1: If the variable is missing in production, every session token is signed with the word secret and anyone can mint one for any user.

Your first opinion

Cursor’s Bugbot, Copilot code review, Claude Code’s /security-review and Codex can review your changes. If you use one, paste what it found; anything it already reported does not count toward my guarantee. Editing an app you started in Lovable or Bolt? The builder’s own scan no longer sees what you change in your editor, so every problem I find there counts.

What AI coding tools usually generates

  • Next.js
  • React
  • TypeScript
  • Express
  • Prisma
  • Drizzle
  • PostgreSQL
  • Vitest

Reviewed:

Common problems in apps written with AI coding tools

Not every one of the apps written with AI coding tools I review has all of these; the report says which yours has, where and what to do.

“Slop” is what the AI left behind, not you. Every AI tool skips the same things, whoever is at the keyboard.

  1. Critical

    API routes that forgot to ask who is calling

    A route added in one session copies the shape of its neighbors but not their auth check. I find every Next.js route handler, server action and Express endpoint that reads or writes user data without verifying the session.

  2. Critical

    Logged in, therefore allowed

    The handler checks that there is a session, then loads whatever record id the request names. Any customer can read any other customer's data by changing a number in the URL. I check every lookup for a where clause that includes the user.

  3. Critical

    Fallback secrets that never got replaced

    process.env.JWT_SECRET || 'secret' is a common completion. In production, one missing variable turns it into a password everyone knows. I check every secret, session key and signing key for a default value.

  4. Critical

    Server actions anyone can call

    A server action your app uses anywhere is a public HTTP endpoint that anyone can call with a POST request, not just your form. Ones generated from a UI prompt tend to take an id and update the record, with no check on who is asking. I list each action and what it lets an outsider do.

  5. High

    Errors caught and thrown away

    try/catch blocks that log and carry on, or return null, so the task finishes without a red error in the terminal. The payment that failed looks exactly like the one that succeeded. I trace each one to what it hides.

  6. Medium

    Tests changed to match the bug

    When a test fails, an agent told to make it pass will sometimes change the assertion instead of the code. I compare what the tests claim with what the product is supposed to do, and tell you which ones to trust.

Case history

How this usually happens with AI coding tools

These tools work one chat, task or suggestion at a time, and none of them remembers the last one. The session that added login on Monday never met the session that added the team page on Friday, so the team page may use the old login helper, or none. A rename that ran out of context halfway leaves two versions side by side, and the code compiles either way.

Agents also aim for green. When the goal is passing tests, one quick way there is to change the test. When the goal is no errors in the terminal, one quick way is a catch block that logs and moves on. When a lint rule gets in the way, switching it off makes the run pass. Each step is reasonable on its own; together they add up.

The agent’s own check proves the happy path only: it opens the app signed in as its own test user and reports success. It does not try the page signed out, or as someone else.

X-raysrc/lib/pricing.test.ts1 fracture
it('gives two months free on the annual plan', () => {
  const price = annualPrice({ monthly: 20 })
  // was: expect(price).toBe(200)
  expect(price).toBe(240)
})
  1. Line 4: Twelve months at $20 with two free should be $200. When the discount broke, the test was changed to match the bug instead of the code being fixed, and the old expectation is still in the comment.

The PATCH route that writes whatever it is sent

A handler takes req.json() or a server action argument and passes it to Prisma as the update payload. A zod schema exists somewhere in the repo; it was never applied here. The route below checks that someone is signed in, which makes it look safe.

I list each unvalidated entry point like this one and what a caller can change through it.

X-rayapp/api/projects/[id]/route.ts1 fracture
export async function PATCH(req: Request, { params }: Props) {
  const { id } = await params
  const body = await req.json()
  const user = await requireUser()
  const updated = await prisma.project.update({
    where: { id, ownerId: user.id },
    data: body
  })
  1. Line 7: Whatever the request sends is written to the row, including ownerId, plan and every other column on the model; the zod schema in lib/validation.ts was never wired up here.

The walkthrough is not the code

Agents such as Antigravity plan a task, write the code, open it in a browser to check that it works and hand you a walkthrough of what they did. The walkthrough tells you what the agent believes it did, not what the code does when it meets a real user.

The browser check is real, but it is the agent’s browser, signed in as the agent’s test user, on the agent’s machine. The walkthrough is written by the same agent that wrote the code, so read it as a summary of what was intended. I read the code instead.

Review tools exist, but only for diffs

Claude Code’s /security-review reviews the changes between your branch and the remote’s default branch. GitHub Copilot code review looks at one pull request at a time, and GitHub says it is “not guaranteed to spot all problems” and recommends a human review on top. Cursor’s Bugbot reviews pull requests, and Codex can review pull requests too.

None of them is built to tell you that the route added today has no auth because auth was never set up for that part of the app. I read the system first, then the diff.

The rules file your agent reads

Each tool reads its own file before it starts work: CLAUDE.md for Claude Code (run /init to create one), AGENTS.md for Codex, .cursor/rules for Cursor and .devin/rules for Devin Desktop, which still reads .windsurf/rules and .windsurfrules. Antigravity reads AGENTS.md or GEMINI.md and the .agents/rules folder.

My report ends with rules to drop into whichever one your tool reads.

v0: the part a preview cannot show

v0 judges its work by the preview, so the preview is what comes out right. A form needs to save, so a server action appears that saves whatever it is sent, and a server action is a public endpoint.

A component needs data from an API, so the key gets a NEXT_PUBLIC_ prefix and the call runs in the browser. Anything with that prefix is copied into the JavaScript every visitor downloads.

X-raycomponents/ask-ai.tsx1 fracture
'use client'

const key = process.env.NEXT_PUBLIC_OPENAI_API_KEY

export function AskAi() {
  async function ask(question: string) {
    const res = await fetch('https://api.openai.com/v1/responses', {
      method: 'POST',
      headers: { Authorization: `Bearer ${key}` },
  1. Line 3: Anything starting with NEXT_PUBLIC_ is copied into the JavaScript every visitor downloads. Anyone can take this key from the browser and spend your OpenAI credit.

Self-exam

Five checks for apps written with AI coding tools

Five things you can look at today in apps written with AI coding tools. If one of them turns something up, fix it or let me look at the rest.

  1. Open a private page while signed out

    Copy the address of a page you only see when signed in, open a private window and paste it. If it shows data instead of sending you to the login page, a page or API route is missing a login check.

  2. Check whether a .env file was ever committed

    In your project folder, run git log --all --oneline -- .env (and again with .env.local). Any output means the file is in your history, and every key in it should be rotated, even if the file is gone now.

  3. Search for secrets with a fallback

    Search for process.env and look at every line with || or ?? after it. process.env.JWT_SECRET || 'secret' means the app quietly uses a known value when the real one is missing. A missing secret should stop the app from starting instead.

  4. Search your project for NEXT_PUBLIC_

    Every variable with that prefix is visible to anyone who opens your site. A URL or a publishable key is fine. Anything with SECRET, PRIVATE or SERVICE in the name, or an OpenAI or Stripe secret key, is not.

  5. Change the id in an address

    Sign in with a second test account and open a page that shows one record, like /invoices/12. Change the number to a record from your first account. If it opens, the route checks login but not ownership.

Want a longer list your AI can run for you? Get the free self-check prompt.

Pharmacy

Prices

Same fixed prices for AI coding tools, whichever tool wrote the code.

  • Full exam

    Launch Review

    $999

    Launching, raising or selling? Every problem proven, and a signed report you can show.

    AI coding tools apps: ready in 4 business days. Up to 30k lines (50k: +$299).

    Book Launch Review for AI coding tools

Prices in US dollars, no tax added, paid once by card. A fix list or Aftercare is offered in your report, never sold by card. See everything each tier includes.

AI coding tools questions

How do I share code written in my editor?

These tools work on a normal local project, so push it to a GitHub repository (or GitLab or Bitbucket) and give me read-only access (I send you a key to paste in; it takes a minute). If it is not in version control yet, now is a good time, and I can walk you through it.

Can I apply the fixes with my agent?

Yes. Each finding comes with a fix prompt written for an agent, naming the files and the exact change. Paste it into your tool, read the diff before you accept it and run the tests.

Will you read my rules file?

Yes, if you have one: CLAUDE.md, AGENTS.md, .cursor/rules, .devin/rules or the .agents/rules folder. The report ends with a short list of rules for your project, so the next session does not reintroduce the same findings.

Is Windsurf the same as Devin Desktop?

Windsurf is now Devin Desktop, and its local agent Devin Local took over from Cascade. Projects built in Windsurf open in Devin Desktop as they were, so everything Cascade wrote is still there to check.

Questions about price, privacy or refunds for AI coding tools? All questions and answers.

Built with AI coding tools? Ask me.

A question about your app, the price or how this works? I answer myself, by email. Replies within 2 business days.

I use your email only to answer. Privacy policy.

Find out what AI coding tools skipped.

Replies within 2 business days.