Developer productivity · AI agents · 2026

Making API tests the AI agent's verify step

As AI coding agents took on more of our engineering work, they produced changes faster than humans could verify by hand—and unit tests alone don't exercise live services or real data. I started the team's Bruno API test repository and built the guardrails for agents to run it safely: read-only defaults, runtime secret injection, and a single pass/fail verdict. Running the suite against a local or sandbox deployment is now the final gate before I open a pull request.

1command per environment, one pass/fail verdict
~80mutating requests tagged on day one and excluded by default
Read-onlydefault run against live nonprod and production
Team-wideI started it, teammates add suites, and I trained the team on the CLI

Context

The team's services (product feeds, product search, a GraphQL API and an admin tool) had their API calls in Postman collections. In early 2026 I moved those collections into one Bruno repository in git. Bruno stores each request as a plain text file and has a CLI, so the same tests run from the desktop app, from a shell script or from an agent.

Where the tests sit in an agent change An AI coding agent makes a change, starts the service locally or deploys it to a sandbox, runs the tagged Bruno suite with secrets injected from a password manager and mutating requests excluded, reads one pass or fail verdict, and only then opens a pull request for human review. Agent makes a change Local run or sandbox deploy Bruno suite via the CLI Verdict Pull request, then review fail: the agent fixes the change and runs again unsafe tag excluded secrets injected at run time from a password manager environment files for sandboxes and feature work
In my workflow, the pull request comes after the suite passes against the running service.

What made it safe to hand to an agent

What it caught

What didn't work at first

My part: I started the repository, migrated the team's Postman collections, set the tagging and secrets conventions, wrote most of the suites and the agent guide, and trained the team on the CLI and on using Bruno for fast iteration. Teammates add their own suites, including ones for merchant and affiliate APIs. The team's per-pull-request environment build was a teammate's. AI coding agents (Claude Code) helped write the newer suites and run them under my direction; I review the results.

What I carry forward

An agent is only as trustworthy as the check at the end of its loop. Give it a test it can run safely against real services, make the safe run the default, and make the result one word. Then the human review is about the design, not about whether the endpoint works.