Dev.to
7/19/2026

Building a Small Terminal Command Helper with an LLM
Short summary
nudge is an open-source terminal helper that suggests corrections for failed commands using a combination of local typo matching and LLM-backed suggestions. It supports PowerShell, bash, zsh, and fish, requires confirmation before running suggestions, and flags destructive commands for explicit approval. The tool can use cloud providers or local Ollama models depending on privacy and cost needs.
- •Open-source Go tool that suggests fixes for failed terminal commands via LLM
- •Local matcher handles simple typos without a model call; complex cases use LLM
- •Supports PowerShell, bash, zsh, fish; destructive commands require explicit typed confirmation
Generated with AI, which can make mistakes.
Is this a good recommendation for you?



