Skip to main content

Cursor Writes, Claude Reviews: A Two-AI Code Review with Receipts

A live receipted review that got one finding wrong and missed a spec bug, and how the second AI catches both with a record nobody can quietly edit.

Updated 7 min readMarkdown

Using two AIs on the same code is one of the best habits you can pick up. Cursor writes it, Claude reviews it, or the other way round. The second model catches things the first one talked itself out of.

The weak spot is the review itself. When Claude says "the first reviewer was wrong about line 4," you're comparing two chat messages with nothing behind either one. Which review actually ran on which version of the code? Did anyone change the findings before you saw them?

This walkthrough adds receipts to a two-AI code review: the first review is recorded with a hash of its exact output, and the second AI checks it against the code and the spec. I ran the review on December 1, 2026 against the live Zambo MCP server. The result is a good example of why the second check matters, because the first review got one thing wrong and missed another.

Setup

Add https://zambo.dev/mcp as an MCP server in both tools:

  • Cursor: add it in your MCP settings (one-click and config steps at zambo.dev/add).
  • Claude: add it as a custom connector, or in Claude Code as a remote MCP server.

No API key, no account.

Step 1: Cursor writes the code

Here's the code Cursor produced for MCP Streamable HTTP session handling. It's short on purpose:

const sessions = new Map<string, number>();
export function handle(req: Request): Response {
  const sid = req.headers.get("mcp-session-id");
  if (!sid) {
    const id = Math.random().toString(36).slice(2);
    sessions.set(id, Date.now());
    return new Response("{}", { headers: { "Mcp-Session-Id": id } });
  }
  if (!sessions.has(sid)) return new Response("unknown session", { status: 400 });
  return new Response("{}");
}

Step 2: Run a receipted review from Cursor

In Cursor's chat:

Use Zambo code_review on this file. Focus on security and MCP spec
compliance. Keep the receipt link.

The review came back with a score of 45 out of 100 and the verdict "Needs improvement". Trimmed:

critical  security  lines 5-6
  Session IDs are generated using Math.random(), which is not
  cryptographically secure and can be predicted.
  fix: Replace Math.random() with crypto.randomUUID()

high      bug       line 10
  The response body is a JSON string but no Content-Type header is set.
  fix: Add Content-Type: application/json

medium    bug       lines 3-4
  The code accepts an empty string as a valid session ID because !sid
  only checks for null/undefined, not empty strings.

security_flags: Insecure session ID generation; potential memory leak
                due to unbounded session store
receipt: zambo.dev/run/e7099e9c-…

The receipt stores a SHA-256 hash of that exact output. From here on, nobody can quietly soften "critical" to "low" before it reaches a teammate or a client without the hash failing to match. Anyone can check it at zambo.dev/verify.

Step 3: Hand the review to Claude, and ask Claude to review the review

Now switch to Claude. You can hand over with Zambo's handover tool (one free wrap-up a day; see the handover docs), or for a single review just paste the code and the receipt link. The prompt is what matters:

Here is code and a code review with its Zambo receipt. Check the review
against the code and the MCP Streamable HTTP spec. For each finding, say
"agree", "disagree" or "unsure" with one line of reasoning. Then list
anything the review missed. Don't rewrite the code yet.

What the second check finds

I did this cross-check by hand against the spec so I could be sure of the result. Here's what a careful second reviewer should come back with:

Finding 1, Math.random() IDs: agree. The spec says a session ID should be globally unique and cryptographically secure, for example a securely generated UUID. This is the real headline.

Finding 2, missing Content-Type: agree. A JSON body should say it's JSON.

Finding 3, empty string accepted: disagree. In JavaScript, an empty string is falsy, so !sid is already true for "". The code treats an empty header like a missing one and starts a new session. The finding is wrong.

Missed: 400 instead of 404. The MCP 2025-06-18 transport spec says that once a session is gone, the server must answer requests carrying that ID with HTTP 404, and a client that gets a 404 must start a new session. Line 9 returns 400 for an unknown ID. A client following the spec reads that as an ordinary error and won't re-initialise. The review never mentions it.

So the first review was mostly right, wrong once, and missed the one bug that breaks real clients. That's normal. It's also exactly why the receipt matters: you can show that the false finding and the miss were in the original review, not something someone introduced or dropped later.

Step 4: Save the decisions so the next AI doesn't relitigate them

Once you've settled it, save the outcome as a project rule. I did this from Claude:

Remember this for the project with Zambo: our MCP server returns 404 (not
400) for an unknown Mcp-Session-Id; session ids via crypto.randomUUID().
status       saved
retention    This private memory expires 2026-12-08.
receipt      zambo.dev/run/d9813ea0-…

I then read it back from a separate client with the private memory code, and it returned the rule with source_agent: Claude. Next time Cursor touches this file, it can recall the rule instead of you re-explaining it.

If you review code for a client every day, handover_series gives one durable link that lists each day of the job. I created one for this test; its page reads: "Send this one link to your client. New days appear here on their own." Each day shows its step count, and the client can seal a day to keep a fixed copy. Creating the series is free; sealing a day is $0.99.

Where free stops

I ran all of the above on the free tier, which covers this loop once a day:

  • Each metered tool gets one free call per network per UTC day, plus 3 continuation calls shared across tools. That's one receipted code_review a day, plus a couple of extra calls.
  • One free wrap-up handover a day. Pickup is always free.
  • Free memory expires after 7 days. My saved rule showed an expiry one week out.

A real review day is "review, fix, review again, fix, review again." The second code_review uses a continuation call, and by the fourth or fifth you're out. When that happens, the refused call is still recorded, the job is saved, and nothing is charged for it.

From the live pricing page:

  • Day Pass, $0.99 for 24 hours: lifts the standard daily limits, so you can review every iteration, not just the first. Also includes ProvibeCode audit access, with product-specific allowances.
  • Zambo Pass, $29 for 30 days: the same access for a month. Notes follow you across AI apps for the pass plus 30 days. For a team, one owner's pass covers invited participants in private shared jobs.
  • Lifetime, $250 once, bought by a person at checkout.

If you only want a second opinion on a big PR now and then, stay free. If two-AI review is your daily habit, the Day Pass pays for itself the first time a second pass catches a bug the first one missed.

Limits worth knowing

  • The receipt proves what the review said. It doesn't prove the review was right. Finding 3 above passed every receipt check and was still wrong.
  • A zambo.dev receipt doesn't authenticate who issued it. The verify page says so.
  • Don't paste secrets into a review. Public receipts are public.

A ready-made version for client work: prove a code audit to a client.

About the author

  • Trust layer for AI work. Verifiable receipts for every AI tool call. MCP at https://zambo.dev/mcp

No comments yet. Be the first to comment.