Skip to main content

Craftsman

Craftsman

CI PyPI Version Agent Skills Python 3.10–3.13 Dependencies: stdlib only License: MIT

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

Craftsman 5: build freely, review hard

  1. Freeze and plan. The diff is frozen and split by size and risk signals into mandatory review slices and lenses.
  2. Bug hunt. Each slice goes to a separate fresh-context agent that records suspected bugs with concrete triggers.
  3. Verification. Separate verifiers try to disprove every suspicion and reproduce survivors; confirmed bugs trigger follow-up waves.
  4. 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

Contributing & License

Contributions: CONTRIBUTING.md · Citation: CITATION.cff · License: MIT (LICENSE, NOTICE).

Metadata

Release files for craftsman-gate 5.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for craftsman-gate 5.3.0
File Size Uploaded Provenance Actions
craftsman_gate-5.3.0.tar.gz 2.2 MB With provenance Details for craftsman_gate-5.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for craftsman-gate 5.3.0
File Interpreter ABI Platform Actions
craftsman_gate-5.3.0-py3-none-any.whl Python 3 none any Details for craftsman_gate-5.3.0-py3-none-any.whl

Total release size: 4.0 MB

Release files / craftsman_gate-5.3.0.tar.gz

Download URL craftsman_gate-5.3.0.tar.gz
Size 2.2 MB
Tags Source
SHA-256 checksum
How to use checksums
79df0c311dec0ef4253fdf72686273f56da4bb4514b7435ecf3851cd7472f308
BLAKE2b-256 checksum
How to use checksums
8445992e645b29c211d869dc08affe568ab9482a51b8df8b81e80ef60685cf84
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 26, 2026.

Transparency log

Release files / craftsman_gate-5.3.0-py3-none-any.whl

Download URL craftsman_gate-5.3.0-py3-none-any.whl
Size 1.8 MB
Tags Python 3
SHA-256 checksum
How to use checksums
e5f26ffd9ce619b85655db0ef5ffd9e1b171056b12bbc59c9a89e991b1dcfa1e
BLAKE2b-256 checksum
How to use checksums
2023a02334e1f83b7de6e0d8683ae1b3aec358c64605373b22d927abd025e45d
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 26, 2026.

Transparency log

Security for craftsman-gate 5.3.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.

Select from 2 files

Attestation for craftsman_gate-5.3.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 26, 2026.

Transparency log

A 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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page