Correctless

/caudit — Cross-Codebase Quality Audit (Olympics)

Run convergence-based audits using parallel specialist agents with hostile lenses. The loop runs until no critical or high findings remain.

When to Use

How It Fits in the Workflow

Runs independently of the main spec-to-merge pipeline. The TDD cycle catches “does this feature work?” bugs. The Olympics catch “how does this feature break everything else?” and “how does an attacker abuse this feature?” bugs. Operates on a dedicated audit branch; fixes never go directly to main.

Requires high intensity or above.

What It Does

Example

You run /caudit qa after landing a connection pool feature.

Round 1: 6 agents spawn. The Concurrency Specialist finds a race condition in pool resize (confirmed/critical). The Error Handling Auditor finds 3 silent error swallows in retry paths (confirmed/high). The Resource Lifecycle Tracker finds 2 unclosed connections in error branches (confirmed/high). The Input Boundary Tester finds 2 edge cases with zero-length payloads (probable/medium). The triage agent validates all 8, rejecting 0. You see: “Round 1: 8 findings. Running token cost: ~45k tokens. Continue to round 2?”

Round 2: Fresh agents spawn, told the previous round was sloppy. They check whether round 1 fixes introduced new issues. The Concurrency Specialist finds the mutex fix from round 1 created a potential deadlock under shutdown (confirmed/high). The Regression Hunter confirms a previously-fixed error pattern reappeared (confirmed/high, double bounty). Triage validates both. “Round 2: 2 findings.”

Round 3: Fresh agents find nothing new. “Round 3: 0 findings. Converged.” Regression tests are written, antipatterns updated, audit branch merged to main.

What It Reads / Writes

Reads Writes
Source code (scoped by preset) Per-round findings (.correctless/artifacts/findings/audit-{preset}-{date}-round-{N}.json)
ARCHITECTURE.md Persistent history (.correctless/artifacts/findings/audit-{preset}-history.md)
AGENT_CONTEXT.md Regression tests
.correctless/antipatterns.md Updated antipatterns (.correctless/antipatterns.md)
Previous findings history Token log (.correctless/artifacts/token-log-{slug}.json)
QA findings from TDD Checkpoint (.correctless/artifacts/checkpoint-caudit-{slug}.json)

Options

Invoke with: /caudit [preset] [scope]

Preset Purpose Agents Max Rounds
qa Incorrect behavior, silent failures, data corruption Concurrency, Error Handling, Input Boundary, Resource Lifecycle, API Contract, Regression Hunter 5
hacker Security vulnerabilities — bypass, escalation, exfiltration, DoS Encoding/Normalization, Protocol Abuse, Auth/AuthZ, Config Manipulation, Injection, Regression Hunter 7
perf Performance bottlenecks, memory waste, algorithmic inefficiency Allocation Hunter, Algorithmic Complexity, I/O Bottleneck, Concurrency Efficiency, Regression Hunter 5
custom Project-specific lenses (rate limiting, data integrity, compliance) User-defined Configurable

Scope options: all, changed (default — git diff against main), or a specific path.

Common Issues