Review the evidence, not the diff.

Claude Code, Cursor and Codex open more pull requests than your team can read. Currents puts every Playwright run on the pull request it tested. Your agent fixes what failed. You read only what's risky.

feat(checkout): one-tap pay with a saved card #482

agent wants to merge 8 commits intomainopened 02:14

41 files · 1,596 lines · about 4 hours to read

41 files changed, with 1,284 lines added and 312 removed.

Viewed 2 of 41 files

About 4 hours to go at 400 lines an hour

Currents Tests1,204 passed · 0 flaky · 6m 12s

RequiredPassed
Before · Run #1Run #1 · Card declined, with its video and trace
After · Run #2Run #2 · Order confirmed, with its screenshot

checkout › pays with a saved card

Last 30 days

29 of the last 30 runs passed. The one failure was Run #1 at 02:15, before the fix.

agent commented at 02:31

The saved card was charged before its token loaded. Fixed in pay.ts.

The fix is three lines in src/checkout/pay.ts: two added, one removed.

Touches payments, so it waits for a human read.

Review required · 11 files, about 45 minutes

  • Cursor
  • Red Hat
  • Autodesk
  • Snowflake
  • n8n
  • ServiceNow
  • LangChain
  • US EPA
  • Palo Alto Networks
  • Canadian Red Cross

Code got cheap. Checking it didn't.

A year after companies adopt coding agents, pull requests per engineer are up 36%, and review takes 56% longer.

Stripe merges over 1,300 pull requests a week with no human-written code. Nobody reads that much, so reviews turn into skims.

One dot for each of the 1,300 pull requests Stripe merges in a week. The first row, 53 of them, is what one reviewer can read line by line in a 40-hour week:40 hours × 400 lines an hour ÷ 300 lines a pull request ≈ 53

The work of checking code didn't go away. It moved.

The checking moved to CI. The merge stays with you.

Agentic testing means your agents write, run and fix the code and its tests, and a record from CI that the agents didn't write decides whether it works. Before agents, the slow step was a person reading every line. Now it's the CI run, and reading what it recorded. You still decide what to build and what merges.

Sumit Saurabh calls this verification engineering.

Before agents

  1. Decide what to build
  2. A person writes the code
  3. The old bottleneckA person reads every line
  4. Merge

With agents

  1. You decide what to build
  2. Your agent writes the code
  3. The new bottleneckCI runs the tests. You or your agent read the results.
  4. You decide what merges

Fails? Your agent fixes it and pushes again.

Red to fixed, by your agent

An agent opens pull request #482 at 02:14, and CI fails. Step by step, it checks whether the failure is real, fixes it and posts the before and after.

  1. CI fails on the agent's pull request

    One test fails on Run #1: checkout › pays with a saved card. The Currents Tests check is required, so the pull request can't merge.

  2. It checks the history, then reads the trace

    Left alone, an agent adds a wait until the check goes green, and the bug stays. With Currents it sees the test passed 29 of its last 30 runs and never flaked, so the change broke it. It reads the error and the trace over MCP and the Trace API.

  3. It fixes three lines and re-runs

    The saved card was charged before its token loaded. The agent adds the missing await in src/checkout/pay.ts and re-runs the test: 1 passed.

  4. It posts the before and after

    Run #1's declined card sits beside Run #2's confirmed order. Run #2 passes all 1,204 tests and the check turns green. Reviewers open both without a Currents login, until the link expires.

Ask your agent

Ask

CI failed on #482. Is pays with a saved card flaky, or did I break it?

Calls
  • currents-get-test-results
  • currents-get-context
Answer
Real failure: 29 of the last 30 runs passed, none flaky. The card is charged before its token loads in src/checkout/pay.ts.
Try it on your agents' pull requests (opens in a new tab)

You decide what merges

You choose which files a person reads and what the rest must pass. GitHub holds the review rules. Currents holds the test rules.

CODEOWNERS

People read only what's risky

11 of #482's 41 files need a person: payments, the migration and the tests. About 45 minutes instead of 4 hours.

  • Paths you name.

    CODEOWNERS and branch protection hold the paths that wait for their owners' review.

  • Test edits are risky edits.

    Put your test folders in CODEOWNERS, so a person approves every change to a test.

  • The rest merges on its tests.

    #482's other 30 files merge on 1,204 passing tests, each run one click from the pull request.

GitHub App

Red can't merge, for agents or people

Make the Currents Tests check required, and a failing run blocks the merge button until the tests pass.

  • Pending, then a verdict.

    The check shows Pending while the tests run, then Failed or Passed.

  • The failure, on the pull request.

    The run comment lists each failed test with its error and its history.

  • GitLab and Bitbucket too.

    Each has its own integration in the docs.

Currents Actions

Flaky tests don't decide

Quarantine a flaky test with a rule. With Playwright, it still runs, and its failure doesn't fail the run.

  • Quarantined, not hidden.

    The test still runs and its results stay in Test History.

  • Rules expire.

    Give a rule an end date, and Currents alerts Slack or email before it lapses.

  • Admins write rules.

    Only an Admin or Actions Admin creates one, by hand or through an agent they connected.

Connected Applications

Your agent gets only what you approve

You approve what an agent asks for when it connects, up to what your role allows.

  • Capped by your role.

    An agent never gets more access than the person who connected it.

  • Revoke it in one place.

    Remove an agent from Connected Applications, and it loses access on every machine.

  • Read-only, if you like.

    A personal access token has fixed scopes, such as results:read, and expires within a year.

Faster verdicts. Fewer false reds.

Every number comes from a published case study, with what produced it.

“It’s easy to go in, see what’s trending as flaky, line it up with traces, and understand when and why it was introduced.”
Declan Carroll / Senior Quality Engineer at n8n

Set up in three steps

Minutes from signup to your first recorded run.

  1. Record every run

    Start a trial, then add the reporter and your project's keys to CI.

    Start a 14-day free trialRead the setup guide (opens in a new tab)
    Prompt for your agent
    Set up this repository to report test results to Currents. Read https://docs.currents.dev/getting-started/setup-with-an-agent.md and follow it.
  2. Gate the merge

    Install the GitHub App and make the Currents Tests check required. A red run blocks your agent’s pull request. GitLab and Bitbucket too.

    GitHub App docs (opens in a new tab)
    Pull request
  3. Connect your agent

    Add the Currents MCP server and sign in. Your agent reads each failure’s error, history and trace.

    Connect Cursor, Codex or ChatGPT (opens in a new tab)
    Terminal
    claude mcp add --transport http --scope user currents https://mcp.currents.dev/mcp

Works with your agents and the CI you already run

Your tests keep running in your CI. Currents records each run, puts the check and the failures on the pull request, and gives your agent the same record over MCP.

Questions teams ask

Stop reading every line