Idea · Aug 22, 2026
Dotfile Surgeon
A CLI that diagnoses years of accumulated shell-dotfile config debt and regenerates a clean, annotated setup using a local LLM.
What it would do
Most developers accumulate hundreds of lines of dead aliases, duplicate PATH exports, deprecated settings, and conflicting environment variables across .zshrc, .bashrc, .gitconfig, .vimrc, and related files. Dotfile Surgeon scans those files, runs static analysis to flag problems (unused aliases, duplicate exports, deprecated syntax), then calls a local Ollama model or Claude API to generate a merged, annotated replacement with a short comment on every kept block explaining why it is there. An optional Vite dashboard shows a color-coded diff between the old and proposed config. Because the tool works offline by default, sensitive tokens never leave the machine.
Key features
- Static analysis pass: detects dead aliases, duplicate exports, deprecated shell syntax, and unreachable conditional blocks
- LLM-powered merge and annotation: produces one consolidated file with inline comments
- Privacy-first: uses Ollama locally by default; Claude API is opt-in
- Optional Vite diff dashboard showing old vs. new side-by-side with color coding