Jitse Lambrichts

What The Fix-CLI - Prepend 'wtf' to failing commands for an instant AI fix.

byβ€’
Stop copy-pasting terminal errors. WTF-CLI is a lightweight, Rust-based CLI wrapper that intercepts failing commands and provides instant, actionable AI-generated fixes right in your terminal. Just prepend wtf to any command (e.g., wtf npm run build). If it succeeds, it passes the output normally. If it fails, WTF-CLI catches the error and asks an AI for the solution. Check it out on GitHub: https://github.com/JitseLambrich...

Add a comment

Replies

Best
Jitse Lambrichts
Maker
πŸ“Œ
Hi Product Hunt! πŸ‘‹ I'm Jitse, the creator of WTF-CLI. Like many of you, I was wasting too much time context-switching. Every time a terminal command threw a vague error, I had to copy the stderr output, switch to my browser, open ChatGPT or Stack Overflow, and paste it in. I wanted a way to fix errors right where they happen: in the terminal. So, I built WTF-CLI. It’s a dead-simple wrapper. You just run wtf [your command]. If things go wrong, it intercepts the error and gives you an instant diagnosis and the exact command to fix it. I built this in Rust to keep it fast, and my main focus was privacy. That's why WTF-CLI defaults to using Ollama, meaning you can run the AI analysis entirely locally on your own hardware without paying for API keys or leaking sensitive data. (Though fallbacks for OpenAI, Gemini, and OpenRouter are fully supported!). I'd love for you to try it out (cargo install wtf-cli) and let me know what you think. Does it fit well into your daily workflow? What other AI providers or features would you like to see added? I'll be hanging out in the comments all day to answer your questions and hear your feedback! Cheers! πŸš€