Model or dataset
ThorOdinson246/whatisit-nl2sh avatar
ThorOdinson246/whatisit-nl2sh

whatisit-nl2sh: a 941 MB local model that writes your shell command and refuses to run it

Local natural-language-to-shell command generator. A 941 MB fine-tuned Qwen2.5-Coder-1.5B running on CPU in ~1s.

652 stars34 forksPythonApache-2.0

At a glance

What is it?
whatisit-nl2sh turns plain English into shell commands using a fine-tuned 1.5B coder model quantised to a 941 MB file and served by llama.cpp on the CPU. The first call starts a resident server, later calls skip model loading, and the tool will not execute anything unless asked: a command its checker flags as dangerous is refused, including by the shell integration that otherwise puts results on your prompt.
Who is it for?
The design problem in a tool like this is not generating the command, it is deciding when to stop trusting yourself with it, and this one answers that with layers rather than a warning. Nothing runs unless you pass a flag.
Can I use it commercially?
Yes. Apache-2.0 is a permissive licence: you can use, modify and sell software built on it, as long as you keep its copyright and licence notices.
Is it still maintained?
Yes. The repository last received commits 57 days ago.
What is it written in?
Mainly Python, according to GitHub's language statistics.

Answers come from the project's GitHub data, last synced on November 24, 2026, and from our analysis. They are not legal advice.

From daily snapshots

Star history

  • ThorOdinson246/whatisit-nl2sh652 ★ · +52
Star history
Repository2026-09-172026-11-24
ThorOdinson246/whatisit-nl2sh600652

52 Stars in the last 68 days, measured from the daily GitHub snapshot. Compare with other projects

Editorial analysis

Three separate paths to execution, and the dangerous one is closed

The tool's whole safety argument is that it will not run anything on its own, and it enforces that at three different levels rather than once. The default path prints a command and stops. A flag makes it run the command after you confirm. A second flag opens the command in an editable prompt and runs whatever you submit instead, so the model's output is a suggestion you edit rather than a thing you approve. On top of that, a generated command the checker has flagged as dangerous is refused rather than offered with a confirmation step, and the example in the readme shows the shape of the refusal: a request to delete everything in the root directory comes back labelled as a recursive force-delete of a critical path, with the command underneath. The fifth flag is the one that makes the tool composable, printing only the bare command so it can be used inside a substitution, and the documentation is careful to say the refusal applies there too. Nothing is executed, prefilled or substituted without a flag, which is the correct default for something that writes into a shell.

The shell integration behaves differently in bash, and says so

The most convenient feature is a line in your shell configuration file that evaluates a generated initialisation snippet. After that, asking for a command puts it on your next prompt instead of printing it, so you can edit it and run it with Enter in a shell you already trust. A directory change sticks and the command lands in your history, which means the tool never has to execute anything to be useful. Then there is the honest caveat, and it is the kind that only gets written after someone tried it. Bash cannot prefill a prompt, so in bash the command is printed and put in history and you press Up to retrieve it. Same command, two interaction models, different muscle memory. Two more details make this feature safe to keep enabled: subcommands and flags work exactly as before, including asking for several alternatives at once, and a command flagged as dangerous is not put anywhere at all, neither on the prompt nor into your history. So the shell hook cannot become the hole in the safety argument, which is where a hook like this usually fails.

One and a half gigabytes resident for a nine-hundred-megabyte file, with a watchdog

The performance numbers are given for a named machine, a four-core laptop processor using four threads, and they are the numbers worth reading. Generation runs at about forty tokens per second, a warm answer takes six tenths of a second as a median over twelve queries, a cold start takes just over two, and resident memory is one point six gigabytes against a model file of nine hundred and forty-one megabytes. That ratio is the whole cost model: you are trading roughly seventy percent more memory than the file size for the difference between a two-second and a six-tenths-of-a-second answer, because the server stays alive between calls. The idle timeout is how you give that memory back. You can set a deadline for a single invocation or persist one, and a watchdog stops the server when the deadline arrives, freeing what it was holding, with the next query paying a cold start:

bash
whatisit --idle-timeout 300 show disk usage   # this invocation only
whatisit config --set idle_timeout=300        # persist it (0 = never, default)

The deadline is re-armed on every query, including one that is still running, so a long generation does not get interrupted by its own idle timer.

Three pieces, zero dependencies, and a compatibility build for old C libraries

Installation is described as three pieces: the command line tool, the model file and a build of the inference runtime. The tool itself has no dependencies of its own, needs Python 3.9 or newer, and runs on Linux or macOS, which means the only thing the installer has to fetch is inference and weights. The setup command works out what the machine needs, tells you the size of each download and asks before starting, then checks the files it fetched, which is a nicer contract than most installers offer. One compatibility detail is worth knowing: on Linux with an older C library than the one the upstream runtime binaries need, setup picks a compatibility build instead, because the upstream releases will not start there. If you would rather assemble the pieces yourself, the readme gives each step, including the note that the download directory flag wants the directory containing the server binary rather than the binary itself, which is the classic version of this trap. A separate diagnostic command names which of the three pieces is missing. A Nix flake wires the runtime in from the package set so that setup only fetches the model.

Remote mode is opt-in, reversible, and warns on every single call

The local-first claim has an escape hatch and the escape hatch is documented as carefully as the default. To point the tool at a hosted API, a local runtime, or a server you already run, you set a base URL and a model name, and optionally an API key through an environment variable, which the documentation says to prefer over the config file. An empty base URL returns you to local mode, so the switch is reversible without uninstalling anything. Two extra knobs exist for remote calls: a timeout defaulting to two minutes and a token cap defaulting to a value small enough for reasoning models, which tells you the defaults were chosen against a model family that thinks before it answers. The behaviour that matters is the warning: every remote call prints to standard error, every time, rather than warning once at configuration time. That is the right choice for something whose main selling point is that your requests do not leave the machine, because it makes the exception visible at the moment you make it rather than at the moment you configured it. The documentation also tells you to prefer encrypted transport.

A daily version check that asks a package index and nothing else

Once a day, in the background, the tool asks the Python package index for the latest version and reports afterwards if there is a newer release, or if a newer model has shipped that setup would fetch. The sentence that makes the design defensible is the next one: your requests are never sent. So the outbound traffic is one request to a well-known package index carrying no query content, no command and no shell context, and it happens at most once a day. That is a much narrower claim than most software makes, which is either a version ping that also reports which features you use. The switch is a configuration key, and the readme tells you how to set it. Two other configuration surfaces exist: one command shuts the resident server down when you want the memory back immediately rather than waiting for the deadline, and another sets options such as the thread count. The idle timeout can be set for a single invocation or persisted, with zero meaning never, which is the default.

Greedy decoding at temperature zero, which is a feature for a shell tool

The generation settings are stated as a property rather than a default. Decoding is greedy at temperature zero, so the same question always gives the same command. For a tool whose output you might paste into a shell, that is exactly right: determinism means the thing you reviewed yesterday is the thing you get today, and a nondeterministic temperature would make every invocation a fresh thing to read carefully. The flag that asks for several alternatives at once is the escape hatch for when you want options rather than a repeat. The training recipe behind the model is also written down for anyone who wants to reproduce or fork it. The base is a 1.5B coder model, then a low-rank fine-tune with rank 32, alpha 64 and dropout 0.05, merged into the base weights in bfloat16, converted to a half-precision GGUF file, and finally quantised to a four-bit mixed format. Four steps, each named, so the fork point is obvious. The measured machine is named down to the processor and the thread count, which is more than most latency claims give you.

Apache 2.0 with a notice file, three releases in a month, and no test directory

The repository inventory is short and tells you what kind of project this is. There is a licence file and a separate notice file, which is the correct pairing when a release bundles a third-party runtime. There is a security policy, a contributing guide and a code of conduct. There is a code-review bot configuration, a Nix flake with a lock file, a demonstration animation, and the package itself in a single directory at the root, with no separate tests directory visible. The absence of a test suite in the tree is the one thing to weigh, given that the project ships a 941 MB model and asks people to paste its output into a shell; its answer is the checker, the refusal and the three execution paths rather than a test corpus. The release record is three tags in about a month, ending with a release published on the same day as the last commit, which says the project ships rather than accumulates. Five open issues against six hundred stars and a fork count around thirty is a quiet, healthy-looking repository for something this young.

Editorial conclusion

The design problem in a tool like this is not generating the command, it is deciding when to stop trusting yourself with it, and this one answers that with layers rather than a warning. Nothing runs unless you pass a flag. A command the checker flags as dangerous is refused outright rather than confirmed. A third path opens the command in an editable prompt and runs only what you submit. And the shell integration, which is the most convenient feature, refuses to put a dangerous command on your prompt at all, so the convenience and the guard do not contradict each other. Two things to know before you rely on it. Decoding is greedy at temperature zero, so the same question always produces the same command, which is the right property for something that writes into a shell and also means you cannot get a second guess by asking again; the alternative flag exists for that. And the resident server costs about one and a half gigabytes of memory against a model file just under a gigabyte, with a watchdog that unloads it on an idle deadline and charges you a cold start next time. Confirm three things before you install: whether your Linux has a C library new enough for the upstream binaries, since older ones need a compatibility build, whether your shell can prefill a prompt, because bash cannot and the interaction differs, and whether you are content with a daily outbound request to a package index for the update notice, which sends no query content but is still a request.

Frequently asked questions

What does whatisit-nl2sh do?

It turns plain English into shell commands. The model is a 1.5B coder model fine-tuned for the task, quantised to a 941 MB file and served locally through llama.cpp on the CPU, so nothing you type leaves the machine by default. It can also be pointed at any OpenAI-compatible endpoint instead, which is opt-in and warned about on every call.

Does whatisit-nl2sh run the commands it generates?

Not unless you ask. The default prints the command and stops. One flag runs it after you confirm, another opens it in an editable prompt and runs only what you submit, and a third prints just the bare command for use inside a substitution. A command the checker flags as dangerous is refused outright and is not placed on your prompt by the shell integration either.

What do I need to install whatisit-nl2sh?

Python 3.9 or newer on Linux or macOS, and three pieces: the command line tool, which has no dependencies of its own, the model file, and a build of the inference runtime. The setup command reports each download size and asks first, and on Linux with an older C library than the upstream binaries need it selects a compatibility build instead.

How much memory does whatisit-nl2sh use?

About 1.6 GB resident on the reference laptop, against a 941 MB model file, because the first call starts a server that stays alive so later calls skip model loading. You can set an idle deadline, for one invocation or persistently, and a watchdog stops the server when it arrives, with the next query paying a cold start of just over two seconds against a warm six tenths of a second.

Does whatisit-nl2sh send my requests anywhere?

Not by default. Once a day it asks the Python package index for the latest version and tells you afterwards, including when a newer model ships, and your requests are never included in that check. You can turn the check off in the configuration. Switching to a remote endpoint is a separate, explicit step that is reversible and prints a warning on every call.

Official sources

  1. Issues
  2. License: Apache-2.0
  3. README
  4. Releases
  5. ThorOdinson246/whatisit-nl2sh on GitHub
Add this badge to your README

If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.

Add this badge to your README

markdown
[![Hysen Labs](https://hysenlabs.com/badge/thorodinson246-whatisit-nl2sh.svg)](https://hysenlabs.com/projects/thorodinson246-whatisit-nl2sh)

Star history chart for your README

markdown
[![Star history](https://hysenlabs.com/chart/thorodinson246-whatisit-nl2sh.svg)](https://hysenlabs.com/projects/thorodinson246-whatisit-nl2sh)

Was this useful?