Skip to content
← Projects

ProjectNo. 072026

claude-qa

A Claude Code plugin that sets other agents to break what the first one just wrote, and only lets through the failures they can reproduce.

Summary

Programming with an agent is fast; the expensive part is finding out late that something broke. claude-qa is the testing policy I work with and the plugin that enforces it in every Claude Code session: other agents attack each change and only what reproduces counts, no turn ends with verification failing, and it decides what deserves a test and what doesn’t.

Stack

  • Bash: the hooks and each project’s contract.
  • Python: the hooks’ decision logic and coverage of the change.
  • Claude Code: hooks, commands, skills and subagents.
  • jq: reads the JSON that Claude Code passes to the hooks.

Architecture

  1. Adversarial panel. /focus launches two agents that try to break the change and a third that only lets through what it can reproduce.
  2. Verb contract. Each project declares how it’s verified in .claude/code/run.sh <verb> (tipos, humo, test…); the plugin knows nothing about stacks.
  3. End-of-turn hook. It detects which projects were touched, runs tipos → humo → test and, at the first failure, hands the turn back to the agent. Three attempts and it gives up.
  4. Criteria. Three levels per project and an anti-criterion: a test that can’t fail on a real bug doesn’t get written.

Notes

  • The first thing /focus reviewed was the plugin itself: twenty real defects, all fixed.
  • Since August, 823 checks across 26 projects; 35 handed the turn back to the agent. Median of 3 s per check.