Monitoring active

Your codebase
has a heartbeat.

drift watches your code, detects health degradation, and uses AI to diagnose problems—like Datadog for your codebase, right in your terminal.

$ brew install greatnessinabox/tap/drift
0 Health Score
complexity: low
deps: 42/42 fresh
Scroll
Auto-detects your stack
Go
Go go.mod
TS
TypeScript package.json
Py
Python pyproject.toml
Rs
Rust Cargo.toml
Jv
Java pom.xml

Three commands. Zero config.

01
$ brew install greatnessinabox/tap/drift

Install

One command via Homebrew, shell script, or go install. No config needed.

02
$ drift

Analyze

Auto-detects your language and runs full health analysis instantly.

03
$ drift

Monitor

Live TUI dashboard updates as you code. Health trends over commits.

drift — ~/project — 80x24
drift terminal dashboard showing real-time code health metrics including complexity scores, dependency freshness, and architecture boundary violations

Five dimensions of
code health

Each metric is scored, weighted, and trended over your last 10 commits.

Cyclomatic Complexity

Full AST analysis for Go, heuristic pattern matching for TypeScript, Python, Rust, and Java.

WEIGHT 30%
model.Update()
25
parseConfig()
8
handleRequest()
5

Dependency Freshness

WEIGHT 20%

Checks every dep against Go proxy, npm, PyPI, crates.io, and Maven Central.

42/42 up to date

Architecture Boundaries

WEIGHT 20%

Define import rules like “api cannot import db” and catch violations instantly.

api → db  BLOCKED

Dead Code Detection

WEIGHT 15%

Finds exported functions with zero callers across your entire codebase.

3 unused exports found

AI Diagnostics

CLAUDE / GPT-4o

Press d for AI-powered refactoring suggestions.

Sparkline Trends

Visualize health over the last 10 commits. Spot regressions before they compound.

HEAD
+12% 10 commits
Copilot Integration

GitHub Copilot native

Three levels of integration: interactive fixing, custom agents, and CI automation.

drift fix INTERACTIVE
$ 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)]
@drift-dev CUSTOM AGENT
$ 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"
GitHub Action CI/CD
- uses: actions/setup-go@v5
- run: go install github.com/greatnessinabox/drift/cmd/drift@latest
- run: drift check --fail-under 70

Start monitoring in
10 seconds

No config files. No setup wizards. Just run it.

terminal
$ brew install greatnessinabox/tap/drift
$ cd your-project
$ drift
codebase health monitor — 93/100