drift watches your code, detects health degradation, and uses AI to diagnose problems—like Datadog for your codebase, right in your terminal.
One command via Homebrew, shell script, or go install. No config needed.
Auto-detects your language and runs full health analysis instantly.
Live TUI dashboard updates as you code. Health trends over commits.
Each metric is scored, weighted, and trended over your last 10 commits.
Full AST analysis for Go, heuristic pattern matching for TypeScript, Python, Rust, and Java.
Checks every dep against Go proxy, npm, PyPI, crates.io, and Maven Central.
Define import rules like “api cannot import db” and catch violations instantly.
Finds exported functions with zero callers across your entire codebase.
Press d for AI-powered refactoring suggestions.
Visualize health over the last 10 commits. Spot regressions before they compound.
Three levels of integration: interactive fixing, custom agents, and CI automation.
$ drift fix
Analyzing codebase... (Score: 78/100)
Found 3 issue(s) to fix:
1. [HIGH] model.Update() in app.go:126 (complexity: 25)
Asking GitHub Copilot for suggestions...
Apply this suggestion? [y/N/s(kip rest)] $ copilot --agent drift-dev "analyze internal/tui/app.go"
$ copilot --agent drift-dev "suggest refactoring for Update()"
$ copilot --agent drift-dev "help me add C# analyzer support" - uses: actions/setup-go@v5
- run: go install github.com/greatnessinabox/drift/cmd/drift@latest
- run: drift check --fail-under 70 No config files. No setup wizards. Just run it.