judgev0.7.1

Use cases

Five jobs judge gets used for. Each one names the commands and where to read on.

02Coding agents

Review what a coding agent changed

judge reads only the checked-out tree, never Git history or authorship, so code from a person and code from an agent get the same findings. The agent can ask for them itself through the local MCP adapter.

Command
cargo judge --format json
MCP
judge-mcp, stdio, runs the local binary
Patches
None: judge ranks candidates, it never edits code

03Deep Tier · Dead code

Find the public API a crate split left behind

After moving code between crates, some pub items have no caller left in the workspace. With the Deep Tier, judge finds them from rust-analyzer’s reference data and shows the route by which anything that is still live gets reached.

Build
cargo install cargo-judge --features deep
Commands
cargo judge dead-code, cargo judge explain <path> --why-live
Generated code
--expand counts calls from proc macros and build scripts

04judge.toml

Adopt the rules your team agrees with

Not every rule fits every workspace. Switch a rule off, demote it to advisory or promote it to gating in judge.toml; every report names the changed rules in its header, so a verdict is never relaxed silently.

Setting
[rules.<id>] level = "off" | "advisory" | "gating"
Visible in
Every report header, every output format
Starter file
cargo judge init

05Cargo profiles

Ship the release build you meant to ship

A debugging leftover in [profile.release] builds an unoptimised binary, keeps debug_assert! in production, or aborts on panic while the code relies on catch_unwind. judge reads the effective release profile and reports each one at the line that sets it.

Rules
release-profile-hazard, panic-strategy-conflict
Reads
Workspace Cargo.toml and .cargo/config.toml
Show it
cargo judge inspect

What judge does not do

  • It does not repeat the compiler or Clippy. Anything they already report is out of scope.
  • It writes no patches. Refactoring candidates are ranked, the change stays yours.
  • It reads no Git history and no authorship, only the tree as it is checked out.
  • Heuristic findings are hints. They are listed, but never fail a verdict.