# API Collection Runner: Bruno Run, Diff and Fix Loop

> Runs your Bruno API collection, checks every response against its asserts and the last good run, and drives a fix loop until the collection passes.

API Collection Runner: Bruno Run, Diff and Fix Loop is a paid AI agent skill on Agensi by Maulik Sompura, in APIs & Backend. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $14.29 (one-time purchase)
- Creator: [Maulik Sompura](https://www.agensi.io/creators/maulik-sompura)
- Category: [APIs & Backend](https://www.agensi.io/skills/apis-backend)
- Version: 1.0
- Last updated: 2026-10-16
- Security: scan passed (2026-10-16); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/api-collection-runner-bruno-run-diff-and-fix-loop
- Tags: testing, api, automation, bruno, api-testing, regression-testing, curl, rest-api

## About this skill

Ask your coding agent to run the collection and fix whatever broke. The agent sends every request in your Bruno collection and reads a pass and fail table. It traces each failure to the code that caused it, fixes it, and restarts the server. Then it reruns the failures, and finally the whole collection. It stops when everything passes.

### What it does

- Runs the collection with the Bruno CLI (bru) when it is installed, and with curl when it is not. The curl engine runs a documented subset of Bruno. Anything it could not check shows as SKIP or PARTIAL, never PASS.
- Checks each response against its assert block and against an approved baseline or the last passing run. Timestamps, uuids and request ids are masked, so the diff shows only real changes.
- Reruns only what failed, plus the setup requests each failure needs, such as the login that sets the token.
- Checks rows from a sheet. Export them as CSV or JSON, and each row gets its own line in the table.
- Catches a stale server. When a request returns exactly the response that failed last time, it asks whether the server really restarted.

### Safety

- Secrets come only from environment variables. No secret value goes on a command line, into a file, or into the chat.
- Secrets, Authorization and cookie headers, and captured login tokens are masked in everything the tool prints or saves. That includes their URL-encoded, JSON-escaped and base64 forms.
- It will not send POST, PUT, PATCH or DELETE to a host other than localhost until you say yes for that host. A config file in the repo cannot grant that permission.

### What's inside

- `SKILL.md`, the fix loop the agent follows and how to read the output.
- `scripts/acr.py`, a Python 3.9+ tool with no dependencies. `run` sends and judges the requests, `approve` pins a baseline, and `show` prints one exchange or a curl command that reproduces it.
- `references/`, the full CLI, the config file, what each engine runs, and troubleshooting. The agent reads these only when it needs them.
- `agents/openai.yaml`, which adds the `$api-collection-runner` command in Codex.
- `LICENSE.txt`, the license terms.

### Requirements

Python 3.9 or newer and curl, which ship with macOS and most Linux systems. The Bruno CLI is optional (`npm i -g @usebruno/cli`) and tested with bru 3.3.0.

## Requires

- Python 3.9+
- curl
- Git
- Optional: Bruno CLI

## Known limitations

- Reads Bruno `.bru` collections only. OpenCollection YAML, Postman and Insomnia collections are not supported yet.
- Without bru, requests that need scripts, multipart uploads or OAuth2 are skipped, and `tests` blocks are not run. The table marks each one.
- macOS and Linux only. Windows is not supported yet.
- It runs and fixes existing collections. It does not write new collections or load test.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the API Collection Runner: Bruno Run, Diff and Fix Loop skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### Do I need the Bruno CLI?

No. Python and curl cover plain requests, auth headers, asserts and variables. Install bru when your collection uses scripts, `tests` blocks or OAuth2.

### Will it send writes to my staging server?

Not without asking. A run that would POST, PUT, PATCH or DELETE to a remote host stops before anything is sent, and the agent asks you per host.

### Where do my secrets go?

Nowhere new. You export them in your shell, the tool reads them from the environment, and it masks them in every line it prints or saves.

### Which agents does it work with?

Claude Code and Codex, and any agent that reads the `SKILL.md` format.

### What's in the download?

One skill folder with `SKILL.md`, the Python tool, four reference files, the Codex metadata and `LICENSE.txt`.

### Can I use it at work?

Yes. You may install, run and modify it for your own projects, including commercial ones. You may not share, redistribute or resell the skill itself. Reports and code changes it produces are yours.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
