I built drift, a terminal tool that monitors code health in real-time across 8 languages (Go, TypeScript, Python, Rust, Java, Ruby, PHP, C#). It tracks cyclomatic complexity, dependency freshness, architecture boundary violations, and dead code — all in a live TUI dashboard.
The interesting part: `drift fix` calls GitHub Copilot CLI programmatically to suggest refactorings. It extracts the function source, builds a context-rich prompt, and runs `copilot -p "<prompt>" -s --add-dir <project>` as a subprocess. You review each suggestion before doing anything.
I also created a custom Copilot agent (`.github/agents/`) that gives Copilot domain expertise about code health metrics, and a GitHub Action that uses Copilot to turn raw health reports into friendly PR comments.
Go analysis uses full AST parsing via go/ast. Other languages use heuristic regex. TUI is built with Bubble Tea + Lip Gloss.
Repo: https://github.com/greatnessinabox/drift Site: https://drift.marquis.codes