Craftsman
Craftsman locks an AI coding agent in a quality loop: build freely, review hard. The agent codes normally, and only when it thinks it is done does Craftsman freeze the diff, send fresh-context bug hunters and disproof-oriented verifiers over the change, record verdicts and real test runs under .git/, and block completion in platform hooks until confirmed bugs are fixed and tests pass.
It works with Claude Code, GitHub Copilot, and Google Antigravity via Stop hooks, and runs without hooks in Codex and Cursor.
How It Works
- Freeze and plan. The diff is frozen and split by size and risk signals into mandatory review slices and lenses.
- Bug hunt. Each slice goes to a separate fresh-context agent that records suspected bugs with concrete triggers.
- Verification. Separate verifiers try to disprove every suspicion and reproduce survivors; confirmed bugs trigger follow-up waves.
- Fixes and tests. Root-cause fixes are re-checked by fresh hunters, and tests pass on the final code through
craftsman run.
/craft-review runs the same review on an existing change and fixes only when asked. Full protocol: docs/how-it-works.md · Interactive walkthrough: catalog pagination demo.
Where It Fits Best
Craftsman works best for:
- non-trivial changes and tricky bug fixes,
- legacy refactors and migrations,
- changes touching security, concurrency, or public contracts,
- code where failing silently is expensive.
It is overkill for prototypes and small greenfield tasks — for lightweight daily checks, you can install individual skills standalone via skills.sh below.
Platforms
| Platform | What blocks completion |
|---|---|
| Claude Code | Stop hook |
| GitHub Copilot in VS Code | Stop hook |
| GitHub Copilot CLI | agentStop hook |
| Google Antigravity | Stop hook |
Codex, Cursor, and AGENTS.md tools |
craftsman gate --complete |
Where a host does not expose subagent hooks (Codex, Cursor, or unhooked sessions), the review stays advisory once every hunk is covered and marks the report SELF-REVIEWED.
Measurements
Tested on gemini-3.8-flash-low via Antigravity CLI (2 full passes each):
| What we tested | Without Craftsman | With Craftsman 5.2 |
|---|---|---|
Finding bugs in existing PRs (evals/)8 repos, 27 planted bugs, green unit tests |
24 / 27 bugs caught (89%)12 min · 3.3M tokens |
26.5 / 27 bugs caught (98%)143 min · 86.6M tokens |
Building features from scratch (evals/build_cases/)6 multi-file specs graded by hidden tests |
8 / 12 runs passed 100% (67%)3 min · 404k tokens |
9 / 12 runs passed 100% (75%)34 min · 21.7M tokens* |
*In the build-from-scratch test, 7 / 12 Craftsman runs hit the 40-minute timeout while re-checking fixes (5 after already passing 100% of hidden tests). Full breakdown and limits: docs/benchmark.md.
Installation
Requires Python 3.10+ with zero external dependencies (stdlib only):
pipx install craftsman-gate # or: uv tool install craftsman-gate
craftsman install # detects Claude Code, Copilot, and Antigravity
Or install as a platform plugin:
/plugin marketplace add BuczynskiRafal/craftsman # Claude Code
/plugin install craftsman@craftsman
agy plugin install https://github.com/BuczynskiRafal/craftsman # Antigravity
codex plugin marketplace add BuczynskiRafal/craftsman # Codex
codex plugin add craftsman@craftsman
Cursor installs from a local checkout — see Cursor plugin setup.
Or install individual Agent Skills standalone without Python (11 run standalone; /craft-review runs ungated):
npx skills add BuczynskiRafal/craftsman
Usage
Describe the task in plain words — no flags to remember:
/craftsman add pagination to the catalog search
/craftsman migrate the session store to Redis, this is critical
/craft-review review my staged changes and fix what you find
/craft-review review PR 42
/craft-review be thorough, this touches authentication
The agent infers scope, whether to fix findings, and review depth (scaling up on risky signals or words like critical and ultracraft; see docs/usage.md and Depth in craft-review). Run craftsman status at any time to check coverage and missing evidence.
Documentation
- Usage · How it works · Installation · Guards · Skills · Benchmark · Demo · Architecture
Contributing & License
Contributions: CONTRIBUTING.md · Citation: CITATION.cff · License: MIT (LICENSE, NOTICE).
Metadata
Release files for craftsman-gate 5.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| craftsman_gate-5.2.0.tar.gz | 2.5 MB | With provenance | Details for craftsman_gate-5.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| craftsman_gate-5.2.0-py3-none-any.whl | Python 3 | none | any | Details for craftsman_gate-5.2.0-py3-none-any.whl |
Total release size: 4.5 MB
Release files / craftsman_gate-5.2.0.tar.gz
| Download URL | craftsman_gate-5.2.0.tar.gz |
|---|---|
| Size | 2.5 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b3f6e2b4ab240218b7b5bf0573a9da398bce0d6bf3fc40a8e88ea8214f4adcc5
|
|
BLAKE2b-256 checksum How to use checksums |
218edd499f63ae77bf2ba0baf7c1a92068b0997241343733f5944a49c6d0639d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 25, 2026.
Transparency logRelease files / craftsman_gate-5.2.0-py3-none-any.whl
| Download URL | craftsman_gate-5.2.0-py3-none-any.whl |
|---|---|
| Size | 2.1 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a9629c022f68c33abce8b70d0a0900ce37780973f296daa6e0e3bad3bb2445d0
|
|
BLAKE2b-256 checksum How to use checksums |
26cc3ca519eeccfee32986b1505577bb1d7de0174a8ba807b6ebbaf9d2443d7c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 25, 2026.
Transparency logSecurity for craftsman-gate 5.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for craftsman_gate-5.2.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 25, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.