Warden
beta · v4.12.0
beta · v4.12.0
Documentation

Rule Packs

Warden ships with 7 bundled rule packs — pre-configured sets of safety patterns, thresholds, and output filters tailored to specific development workflows. Packs are modular and composable: install any combination, and they merge cleanly with your existing rules.

Available Packs

PackUse CaseWhat It Adds
security-strictHigh-security environmentsFile protection, credential scanning (AWS/GitHub/Slack/OpenAI keys), injection detection, netcat blocking
frontend-devReact, Vue, Svelte projectsNode module protection, .env.local/.env.production guards, pnpm/yarn dlx warnings, Vite/Webpack output filters
backend-rustRust projectsCargo patterns, unsafe block warnings, cargo audit/cargo deny output filters
infra-opsDevOps, cloud, infrastructureDocker/K8s patterns, Terraform state + auto-approve protection, privileged container blocking, Ansible/Pulumi filters
data-sciencePython, notebooks, MLNotebook deletion protection, conda environment guards, pip install compression
databaseSQL, migrations, ORMsDROP/TRUNCATE/DELETE safety, migration guards (Prisma, Diesel), Redis flush protection, connection string scanning
enterpriseRegulated environmentsBranch protection, secret scanning (AWS/GitHub/Slack tokens), audit trail, --no-verify blocking, sudo prohibition

Managing Packs

warden init detects what kind of project it is standing in — a Cargo.toml, a package.json, a Dockerfile, a migrations/ directory — lists the packs that match, and offers to install them. Answer yes and they are written to ~/.warden/packs/.

To add a pack init didn’t suggest, or to pick up packs for a project you set up earlier, run init again from that project’s root.

Installed packs are stored at ~/.warden/packs/ and are automatically merged into the active rule set alongside your global and project rules.

Custom Packs

You can create your own packs to share team conventions. A pack is a standard rules.toml file with any combination of safety patterns, thresholds, and output filters. Drop it into ~/.warden/packs/ and the next rule merge picks it up.

Pack Precedence

Packs follow the same merge order as other rules:

  1. Compiled defaults — always active
  2. Global rules (~/.warden/rules.toml)
  3. Installed packs (~/.warden/packs/*.toml)
  4. Project rules (.warden/rules.toml)

Project rules always win. Packs extend but don’t override unless explicitly configured.