Introduction
What Straitjacket is, where everything lives in the docs, and the fastest way to a first scan.
Straitjacket is a fast, deterministic scanner that flags the weird code and text LLMs produce. It sweeps your files against a set of rules — with snobby yet configurable defaults — and flags anything it finds. It's a single static Rust binary with no runtime dependencies, so it drops into almost any environment or repo's CI, regardless of language or stack.
If you're new here, start with the Getting started tutorial: install, first scan, first finding, end to end. From there:
How-to guides
Recipes for specific jobs: wire it into CI, suppress a false positive, exclude generated files, tune the rules.
Reference
Every rule, every CLI flag, every Action input, and the exact suppression-marker syntax.
About
Background & philosophy, how to contribute a new smell, and the license.
In a hurry?
# install (Linux x86_64/aarch64, macOS arm64/x86_64)
curl -fsSL https://raw.githubusercontent.com/PowderworksCode/straitjacket/main/install.sh | sh
# or, from source
cargo install straitjacket
# scan the current directory (honors .gitignore)
straitjacketEverything is on by default — Straitjacket runs at its max, and you ratchet down
with --skip. A first run against an established repository will find a lot;
add --no-fail to read the report without failing your shell. See the
Getting started tutorial for a guided
walkthrough.