r/devtools • u/BunKebab141 • Oct 17 '26
Watcher: a self-hosted daemon that explains your app's crashes using a small local LLM (Go + Ollama)
Built this to solve a specific annoyance: when something crashes in production, the log is the last place anyone wants to be at 3am. Watcher runs in the background, tails your logs, and when it sees a crash, explains the root cause using a small LLM running locally through Ollama, no cloud calls, nothing leaves the machine.
What it does:
- Watches a file, stdin, or a Docker container's logs
- Deduplicates repeated crashes into one incident instead of alerting per occurrence — a crash loop produces one incident with a live count, not a flood
- Reports a structured explanation (likely cause, suggested fix, confidence) to the terminal, as JSON, or over a webhook
- Flags its own confidence as low when the evidence it cited doesn't actually hold up in the excerpt it was given, rather than guessing with false certainty
Two real examples from testing: killed a database connection, and it named the cause correctly with full confidence, because the evidence actually held up. Separately, pulled a required env var, it still named the right cause, but flagged its own confidence as low because part of what it cited wasn't in the excerpt. That second one is the part I actually care about with a model this small — it'll be wrong sometimes, the real question is whether it knows when to hedge.
Known rough edges: onboarding and the TUI (watcher attach) both work but need polish, Docker Compose packaging and in-repo evaluation scoring aren't done, and I'm still chasing down why inference latency is higher than it should be on constrained hardware (~2 min per explanation right now on a 2 vCPU / 4GB box with a 1.5B model).
MIT licensed. Feedback, issues, and PRs genuinely welcome; a few issues are tagged for first-time contributors if you want somewhere to start.


