
Correctless
AI coding agents are velocity machines. Correctless is the correctness system around them.
It does not try to make one agent smarter, faster, and more confident. It makes wrong answers harder to merge. A spec agent defines what correct means, a reviewer attacks the spec, a test agent writes failing tests without seeing the implementation plan, an auditor checks whether those tests would catch real bugs, a separate implementer makes them pass, QA hunts for defects, and verification checks the final code against the original rules.
Most AI workflows optimize for throughput. Correctless optimizes for trust.
Why This Exists
Fast AI development has a recurring failure mode: the same model plans the work, writes the code, writes the tests, reviews the result, and then reports that everything looks good. That is not review. That is self-confirmation with extra steps.
Correctless breaks that loop.
| Velocity-first workflow | Correctless workflow |
|---|
| "Build the feature and test it." | "Define correctness before code exists." |
| One long-lived agent accumulates assumptions. | Fresh agents run each phase with different instructions. |
| Tests often mirror the implementation. | RED tests are written before the implementation plan. |
| Reviews happen after code exists. | Specs are attacked before code can bias the reviewer. |
| Prompt discipline fades as context fills. | Bash hooks enforce phase gates and log violations. |
| Escaped bugs become tribal memory. | Escaped bugs become antipatterns, spec rules, tests, and future review checks. |
The point is not ceremony. The point is to create independent pressure from multiple angles before bad code reaches main.
What Correctless Gives You
A spec-to-merge correctness pipeline. /cspec -> /creview -> /ctdd -> /cverify -> /cdocs turns vague requests into testable rules, adversarial review, enforced TDD, verification, and documentation.
Agent separation by design. The spec author, reviewer, test writer, implementer, QA agent, mini-audit agents, and verifier are different agents with different lenses. The test writer does not know the implementation plan. The QA agent did not write the code. The verifier checks against the spec, not against the implementer's story.
Mechanical enforcement where prompts are weak. workflow-gate.sh blocks source edits during RED and all writes during QA. audit-trail.sh records what actually happened. sensitive-file-guard.sh catches naive Edit/Write tool calls to protected paths. workflow-advance.sh owns phase transitions.
Adversarial depth when risk is high. High intensity adds 6-agent spec review, convergence audits, architecture adherence checks, review-driven mini-audit lenses, mutation/config probes, and architecture maintenance. Critical intensity adds Alloy modeling and live red-team assessment.
A memory loop that compounds. Postmortems, QA findings, audit findings, deferred review items, and antipatterns feed back into future specs and reviews. Correctless gets more project-specific over time.
Autonomy with brakes. /cauto can run from approved spec to PR. /cchores can pick one suitable issue, fix it via /cdebug, run a regression oracle, redact outbound text, and open one PR. Both are bounded by explicit gates, manifests, decision logs, and fail-closed behavior.
Visibility into the workflow itself. /cstatus, /csummary, /cmetrics, /cdashboard, and /cwtf show current phase, cost, findings, shortcuts, stale artifacts, and whether agents actually followed the process.
Quick Start
You need Claude Code, a Claude Max subscription, jq, Bash 4+, and a project with a test runner.
Install
/plugin marketplace add joshft/correctless
/plugin install correctless
/csetup
Alternative: Git clone
git clone https://github.com/joshft/correctless.git .claude/skills/workflow
.claude/skills/workflow/setup
/csetup
Start a Feature
git checkout -b feature/my-feature
/cspec