ThorOdinson246/whatisit-nl2sh
Local natural-language-to-shell command generator. A 941 MB fine-tuned Qwen2.5-Coder-1.5B running on CPU in ~1s.
What it solves
It allows users to request shell commands in plain English without needing to remember complex syntax or search online. It specifically addresses the need for a local, private, and fast way to generate commands, avoiding the need to send shell context to cloud APIs.
How it works
The tool uses a fine-tuned version of the Qwen2.5-Coder model (available in 1.5B and 3B sizes) running via llama.cpp. It starts a resident local server to minimize latency for subsequent queries. Users can input requests as plain arguments in the terminal, and the tool generates the corresponding command. It also includes a safety checker that flags dangerous operations (like recursive deletes of critical paths) before they are displayed or executed.
Who it’s for
It is designed for developers and system administrators who want a quick way to generate shell commands locally on their CPU, especially those working in environments where network access or cloud API usage is restricted.
Highlights
- Fully Local: Runs on CPU with no GPU or network required, ensuring privacy and speed.
- Safety First: Includes a built-in checker that flags
DANGERorCAUTIONfor risky commands. - Flexible Execution: Supports direct execution after confirmation, quiet mode for command substitution, and alternative command generation.
- Customizable: Users can switch between a lightweight 1.5B model for speed or a 3B model for higher accuracy on complex tasks.
- Remote Support: Optionally supports OpenAI-compatible endpoints for those who prefer hosted models.
Related
- Project
- Project
- Project
- Project
- Project