Senior
Save a file, know what you broke—before you run the tests. Cursor/VS Code extension that analyses git diff on every save and surfaces a blast-radius report via a local Rust daemon and Cactus on-device LLM.
Overview
Senior analyses your git diff on every save and surfaces a blast-radius report beside your editor: what changed, what it affects, how risky it is, and what to look at next. The extension (TypeScript) talks to a Rust daemon over a Unix socket; the daemon runs Cactus LLM inference locally. No data leaves your machine.
What I built
- VS Code/Cursor extension (TypeScript): save-triggered diff, Impact Panel webview, command palette (Senior: Explain Last Change)
- Rust daemon (Tokio): NDJSON over Unix socket (/tmp/senior.sock), git diff parser, Cactus FFI for on-device LLM, SQLite audit log
- Impact Panel: summary bullets, risk level (low/med/high), impacted files (click to open), suggested next actions
- Voice loop (⌘⇧V): SoX mic + Cactus ASR (moonshine-base) for on-device STT; LLM response spoken via system TTS; ⌘⇧S to hear last analysis
Highlights
- Local-first: all inference via Cactus; no code or diffs sent to the cloud
- Save → diff → LLM → Impact Panel with 1.5s debounce; daemon stays warm between saves