situation
Find and fix bugs in Go, with a failing test as proof
Perfloop finds Go code that gives the wrong result, such as lost writes and size limits counted wrong, or failed writes that leave files behind. It brings back a fix only with a check that fails on the original code and passes with the fix.
The workflow
- Connect your repos in Setup. A model build reads them, and hypotheses worth testing appear as Cases.
- Open a Case and select Work this case. Your coding agent can also submit a branch for review through the MCP server.
- Perfloop states what the code must do, writes the fix and a check of that statement, such as a test, and runs the repo's builds and tests for the code it touches.
- An independent verifier checks the proof. The Case page shows the verdict and the evidence.
Bugs explains what Perfloop looks for. A passing check covers the behavior it states, not the whole program. Blocked goroutines and tasks, and slow waits, have their own page, Concurrency bugs in Go and Rust, and Find performance problems, bugs and security flaws covers all three kinds of work.
Public Cases
Each Case below passed that check and merged upstream.
- parquet-go: writing floats to fixed-length decimal columns dropped every non-null value without an error.
- klauspost/compress: with a memory limit set, DecodeAll rejected valid Zstandard frames when it appended to a buffer that already held data, because it counted that data against the limit.
- Zoekt: repo listing matched results by name, so a repo that did not match but shared a name with one that did, in the same shard, was listed too.
- Distribution: when the registry's filesystem storage driver failed to commit a write, its temporary file stayed on disk.
What it cannot do
Perfloop opens pull requests, or an issue when a result suits one better. It cannot approve, merge, or deploy. A proven result opens nothing until a member selects Allow & open PR or Allow & open issue in Inbox, unless an Admin set that repo's Pull requests control to Open. When your repo's rules hold a result, the hold shows on its Case page instead. A hypothesis the evidence disproves stays on its Case as refuted. Start with the Quickstart.