AI writes a lot of my code now, and a lot of my tests. The tests pass. That tells me almost nothing.

A test that runs a line isn't a test that would notice if that line were wrong. With AI-written tests this gap gets worse, because the model is very good at writing tests that pass and not especially motivated to write tests that fail when the code breaks.

So I built Breakwater, an open-source QA layer for Claude Code (it also works with any MCP client, or from the terminal). It's free and MIT-licensed: https://github.com/saadrupai/breakwater

What it does

It answers the questions a senior QA engineer would ask, with numbers instead of vibes:

  • Where should I test first? Every project in the workspace (one repo, a monorepo, or a folder of microservices), what has no tests, real line coverage, and a risk score from file size, recent git churn, missing tests and money/auth/data/concurrency code.
  • What did my change break? It finds the tests your change actually affects (Go package graph, import chains for Node and Python, jest related tests, JVM test classes) and runs only those. Then it shows diff coverage: the lines you changed that no test executes.
  • Do the tests catch bugs? Mutation testing in any language. It plants one small bug at a time (== to !=, < to <=, && to ||) in a temporary copy of the project, runs your tests, and lists every bug they missed, with the line.
  • Did the API contract break? Breaking changes in OpenAPI or protobuf, the code in other services that calls what changed, and Pact consumer contracts checked against the provider's OpenAPI spec and replayed against a local provider. No broker needed.
  • Can we ship? E2E route coverage, Playwright/Cypress runs with screenshots and traces, a smoke crawl, reproducible bug reports, and a GO / GO WITH RISKS / NO-GO verdict.

It works in Go, JavaScript/TypeScript, Python, Java/Kotlin, .NET, Rust, PHP, Ruby, Scala, Swift, C/C++, Elixir and Dart. For Go, Python and most Node setups you don't need to install a coverage tool.

"Can't Claude just do this?"

Partly, and for a small single-language repo, plain Claude is honestly enough. Where it falls short:

  1. Consistency. Ask "what's untested and risky?" twice and you get two different partial answers, depending on which files it happened to read. Breakwater computes it, and Claude reasons over the result.
  2. It happens without asking. Hooks show QA status when a session starts, remind you once when a task changed untested code, and make Claude ask before writing any test file.
  3. Scale. Mapping thousands of files, an import graph or coverage across five services takes seconds here and a lot of tool calls and context for the model.
  4. Things you don't want re-improvised every time: mutation runs, line-level diff coverage against git, Pact matching rules, and docker-compose environments that always get torn down.

The short version: Claude writes the tests; Breakwater proves they catch bugs and tells Claude where to look.

A real example

I generated real pact files with Pact JS, then pointed Breakwater at a small Go provider with two planted bugs:

## billing → orders-service: 1 interactions, 1 BROKEN - ✗ "order for invoice" GET /orders/7 broken: the consumer reads response field discount_code, the contract doesn't have it ## web → orders-service: 0 passed, 1 failed - ✗ "get an order" GET /orders/1 → 200 total = "9.50", the consumer expects a number 

The first one comes from comparing the pact with the OpenAPI spec. The second can only be found by replaying the pact against the running provider: the spec says total is a number, and the code sends a string.

Safety

It never edits your source files, only sends requests to localhost and has no telemetry. Tools that run your code are declared as such, so Claude Code asks first, and nothing that changes data is sent unless you allow it. It's written in Go with only the standard library.

Try it

In Claude Code:

/plugin marketplace add saadrupai/breakwater /plugin install breakwater@breakwater /qa-init 

Or go install github.com/saadrupai/breakwater/cmd/breakwater@latest and breakwater scan ..

It's version 0.2, built by one person, so I'm sure it has rough edges on codebases I haven't seen. Issues and blunt feedback are very welcome.