AI writes code faster than you can review it. See where you're needed and where AI can handle the rest.
Know which code would hurt the most if it broke.
HighStakes combines static analysis with LLM blast radius assessment to score every file in your repo. It tells you where human review is needed and where AI can handle the rest.

go install github.com/zanetworker/highstakes/cmd/highstakes@latest
export OPENROUTER_API_KEY="sk-or-..."
cd /path/to/repo
highstakes init && highstakes analyze
highstakes dashboard
| Posture (tier) | Quadrant | Before merge | Backlog |
|---|---|---|---|
| Harden now (CRITICAL) | Likely and impactful | Senior owner sign-off, regression and contract tests, a smaller PR when the change is large, auto-merge off | Split oversized files, add a CODEOWNERS line, document invariants |
| Protect (HIGH) | Impactful, stable | Owner review, tests when none sit next to the file, contract tests, block auto-merge | Add a CODEOWNERS line, open a test-gap issue |
| Stabilize (MEDIUM) | Likely, low impact | Regression tests when fixes recur, refactor what you touch, a second reviewer for single-owner files; never blocks | Issues to cut complexity or spread ownership |
| Routine (LOW) | Neither | Normal review; agents may auto-merge (autonomy L3) | Nothing |
Likely means the top 20% of the repo by likelihood; impactful means impact in the top 20% of the repo’s assessed files, and never below 61. Without an LLM, tiers come from the heat score (86, 61 and 31 thresholds).
Dashboard that opens on the Action inbox (one before-merge card per Harden now or Protect file, backlog fixes grouped by kind), with treemap, explorer, architecture and quadrant views behind tabs:
highstakes dashboard
Terminal TUI with keyboard navigation:
CLI with JSON output for CI:
highstakes list --tier high --json
highstakes get src/auth/oidc.rs
highstakes pr check --base main --json
Any OpenAI-compatible endpoint. No vendor lock-in.
| Setup | Cost | Data stays |
|---|---|---|
| OpenRouter | $0.15/repo | Cloud |
| Self-hosted vLLM on OpenShift AI | Free | On-prem |
| Local Ollama | Free | Your laptop |
# Cloud
export OPENROUTER_API_KEY="sk-or-..."
# Self-hosted
export HIGHSTAKES_API_KEY="$(oc whoami -t)"
export HIGHSTAKES_API_URL="https://your-model.apps.cluster.dev/v1/chat/completions"
# Local
export HIGHSTAKES_API_KEY="ollama"
export HIGHSTAKES_API_URL="http://localhost:11434/v1/chat/completions"