Open source project · Linux CLI
dale Ask in plain words. Get the command.
You say dale. It asks if you're sure.
dale turns a request in English or Spanish into one bash command. It explains it, code rates its risk and it only runs once you confirm. Everything happens on your machine: my own models, from 0.8B to 9B, fine-tuned for this one task, inside a native C++ binary that runs on the CPU or, through Vulkan, on the GPU.
- CPU or GPU (Vulkan)
- No connection
- No account or API key
- English and Spanish
- One 51 MB binary
- Models from 529 MB to 5.6 GB
-
dale@demo:~$ dale "list the contents of backup-docs.tar.gz without extracting it"
tar -tzf backup-docs.tar.gzLists the tarball's contents without extracting
safe Run it? [Y/n/e(dit)/c(opy)]
-
dale@demo:~$ dale "show the 5 largest files in this folder"
find . -type f -printf '%s\t%p\n' | sort -rn | head -n 5Shows the 5 largest files here
safe Run it? [Y/n/e(dit)/c(opy)]
-
dale@demo:~$ dale "delete every file in my home directory without asking"
find ~ -type f -deleteDeletes every file in your home
███ DANGER ███ This action may be irreversible.
- · find ~ -type f -delete: mass deletion
To run it, type "run". e = edit, c = copy, Enter = cancel:
-
dale@demo:~$ dale "make it work again"
I'm not sure: Which command should be re-run?
By the numbers
Accurate on a GPU, light on a CPU
Measured on 471 test requests never seen by the training data, with two independent LLM judges and the same llama.cpp for every model.
-
89.2 %
test accuracy
dale-9b: 420 of 471 cases it had never seen
-
+ 26.3 pts
over its own base model of the same size
Qwen3.5-9B base stays at 62.8%
-
79.4 %
with no GPU, from a 529 MB model
dale-0.8b beats untuned 9B models (+16.6 pts)
-
1.2 s
median per request on GPU
dale-4b (87.0%); dale-0.8b on a laptop CPU: 1.72 s
-
51 MB
one binary for CPU and GPU
no Python, no server; Vulkan only loads when the GPU is used, and on CPU it is as fast as 1.0
-
0
invalid JSON responses
4 models × 471 cases: 1,884 responses the program can read
Test v2: 471 cases written before dale was trained and never seen by the data; every model in Q4_K_M. GPU: reference desktop with a 16 GB GPU; CPU: mid-range 2020 laptop (4 cores / 8 threads), p90 of 2.19 s; warm medians.
In action
Real, unedited recordings
No mock-ups: this is dale with its CPU model, dale-0.8b, on a desktop computer, exactly as you will see it in your terminal. On a GPU the flow is the same, with a more accurate model.
Ask, read, confirm
Risk, refusal and doubt
No network
Before and after
How it works
The model proposes. Code decides.
Each piece has a single job. The model only translates; safety comes from deterministic, tested code that is independent of the model.
100% local: no server and no network when answering
Input
Request
in Spanish or English
System context
distro, package manager and installed tools
The model translates
Prompt
fixed template, checked by a golden file
llama.cpp on CPU or GPU (Vulkan)
GGUF Q4_K_M: 0.8B (529 MB), 4B or 9B
JSON
{type, command, explanation}
refusal or “unsure”: it explains and there is nothing to run
The code decides what is safe
Validation
strict parser
invalid JSON: a warning, never run
Risk checker
deterministic C++ rules
safe caution danger
Mode
suggest · confirm · auto
Action
run · edit · copy
-
Reads your system
Distribution, package manager and installed tools. If you have fd it proposes fd; if not, find. This information never leaves your machine.
-
Translates locally
llama.cpp is linked into the binary: no server, no port, no Python. On the CPU or, through Vulkan, on the GPU. The model answers with strict JSON that is validated before it is shown.
-
Rates the risk
A shell lexer and a table of C++ rules classify every command. Anything it cannot analyse counts as caution at least.
-
You decide
Run, cancel, edit or copy. Without an interactive terminal it runs nothing.
Safe by design
Built not to ruin your day
A tool that runs commands on your machine has to be careful. That is why the risk level is never decided by the model.
-
dale "show the 5 largest files in this folder"
find . -type f -printf '%s\t%p\n' | sort -rn | head -n 5safeRead-only. Runs after a simple “y”.
-
dale "install htop"
sudo apt install htopcautionWrites or uses sudo. It tells you why before asking.
-
dale "delete every file in my home directory without asking"
find ~ -type f -deletedangerProminent warning. It only runs if you type “run”, in every mode.
And when it shouldn't answer, it doesn't
-
dale "write me a poem about autumn"
refuse Writing a poem is not a shell task
Anything that is not a terminal task is refused.
-
dale "make it work again"
unsure Which command should be re-run?
When a request is ambiguous it asks instead of guessing.
Three modes, your choice
-
mode = suggestShows the command and never runs it.
-
mode = confirmdefaultAsks before running. This is the default.
-
mode = autoRuns only safe commands directly; everything else asks.
Results
89.2% on a GPU, 79.4% on a CPU from 529 MB
Against 62.8% for the best untuned models, Qwen3.5-9B and Gemma 4 E4B. Every dale size, measured the same way: each one clearly beats its own base model, and even the smallest beats the untuned 9B models.
- Untuned Qwen3.5, same size
- dale (fine-tuned)
- Goal 85%
- Best untuned model of any size (62.8%)
View data
| Size | Untuned Qwen3.5 | dale | Gain | Correct, × | dale GGUF |
|---|---|---|---|---|---|
| 0.8B | 14.9% (70) | 79.4% (374) | +64.5 pts | ×5.3 | 529 MB |
| 2B | 32.3% (152) | 81.7% (385) | +49.5 pts | ×2.5 | 1.3 GB |
| 4B | 54.6% (257) | 87.0% (410) | +32.5 pts | ×1.6 | 2.7 GB |
| 9B | 62.8% (296) | 89.2% (420) | +26.3 pts | ×1.4 | 5.6 GB |
Source: test v2 (471 cases), every model in Q4_K_M served with llama-server through the same evaluation harness; untuned models with the 8-example prompt, dale with its 2-line prompt.
- dale fine-tuned: 0.8B, 2B, 4B and 9B
- Untuned models
- 95% confidence interval (Wilson)
- Goal 85%
- Best untuned (62.8%)
- 27B teacher + LoRA (bf16, not deployable)
View data
| Model | Correct | Accuracy | 95% CI | GGUF |
|---|---|---|---|---|
| dale-9b | 420 / 471 | 89.2% | 86.0–91.7% | 5.6 GB (×10.6) |
| dale-4b | 410 / 471 | 87.0% | 83.7–89.8% | 2.7 GB (×5.1) |
| dale-2b | 385 / 471 | 81.7% | 78.0–85.0% | 1.3 GB (×2.4) |
| dale-0.8b | 374 / 471 | 79.4% | 75.5–82.8% | 529 MB (×1.0) |
| Gemma 4 E4B-it | 296 / 471 | 62.8% | 58.4–67.1% | 5.0 GB (×9.4) |
| Qwen3.5-9B base | 296 / 471 | 62.8% | 58.4–67.1% | 5.7 GB (×10.7) |
| Qwen3.5-4B base | 257 / 471 | 54.6% | 50.0–59.0% | 2.7 GB (×5.2) |
| Gemma 4 E2B-it | 254 / 471 | 53.9% | 49.4–58.4% | 3.1 GB (×5.9) |
| Qwen3.5-2B base | 152 / 471 | 32.3% | 28.2–36.6% | 1.3 GB (×2.4) |
| Qwen3.5-0.8B base | 70 / 471 | 14.9% | 11.9–18.4% | 533 MB (×1.0) |
| 27B teacher + LoRA (bf16, not deployable) | 436 / 471 | 92.6% | 89.8–94.6% | — |
Source: final benchmark on test v2 (471 cases), every model in Q4_K_M on the same llama.cpp build; untuned models with the 8-example prompt, dale with its 2-line prompt.
Models
Choose: CPU or GPU
One binary and the same safety, with the model that best fits your machine. On the first run dale looks at your GPU and suggests one; it always asks before downloading.
- CPU default and fallback
dale-0.8b
79.4% accuracy on the test set
374 of 471 cases best untuned: 62.8%
- Download
- 529 MB
- VRAM in use
- not needed: it runs on the CPU
- Per request
- 1.72 s mid-range 2020 laptop CPU
Hugging FaceWhen dale picks it
When there is no dedicated GPU, when it has less than 4 GiB of free VRAM or when you say no. And, if it's already downloaded, as the fallback when the GPU fails.
- GPU default on a GPU
dale-4b
87.0% accuracy on the test set
410 of 471 cases best untuned: 62.8%
- Download
- 2.7 GB
- VRAM in use
- ≈3.2 GiB
- Per request
- 1.2 s reference desktop with a 16 GB GPU
Hugging FaceWhen dale picks it
A dedicated GPU with 4 GiB or more of free VRAM. With 8 GiB or more it is the default answer (Enter): the fastest on a GPU.
- GPU if you pick it
dale-9b
89.2% accuracy on the test set
420 of 471 cases best untuned: 62.8%
- Download
- 5.6 GB
- VRAM in use
- ≈5.4 GiB
- Per request
- 1.7 s reference desktop with a 16 GB GPU
Hugging FaceWhen dale picks it
A dedicated GPU with 8 GiB or more of free VRAM, if you pick option 2: a little slower, the most accurate.
There is one more size, dale-2b (81.7%, 1.3 GB), for use with llama.cpp directly. The CLI does not download it, but you can pass it with --model. All 4 models on Hugging Face
First run
or dale --setup to choose again
Finds the dedicated GPU with the most free VRAM
105 ms. An integrated GPU or llvmpipe is never picked on its own.
free VRAM
≥ 8 GiB
Lets you choose
dale-4b (Enter, faster) or dale-9b (more accurate)
≥ 4 GiB
Offers dale-4b
[Y/n]
no GPU, integrated or < 4 GiB
dale-0.8b on the CPU
as in 1.0
Asks before downloading
529 MB, 2.7 GB or 5.6 GB; checks the SHA-256
- If you say no: CPU is saved
- If the download fails: CPU this time, nothing saved
Saves the choice
~/.local/state/dale/setup
Safety net. If the GPU fails to load or to answer, that same request is answered on the CPU; if the process crashes, the next run detects it and switches to the CPU. With device = auto it stays on the CPU; dale --setup tries the GPU again.
Without a terminal or with --json, it never asks or downloads.
Source: dale 1.1.0 rules (src/infer/hardware.cpp); detection measured on the reference desktop with a 16 GB GPU.
- Model load
- Prompt read
- Generation
- Rest
- Up to p90
- Limit 3 s
dale-0.8b stays on the CPU: on the GPU it only saves 0.15 s, because loading the weights eats almost all of it, and on the CPU it runs on any machine. With a GPU that can take it, dale offers dale-4b, which gets more right.
View data
| Model and device | Median | p90 | Cold (median / p90) | Load | Prompt | Generation | Rest | tokens/s |
|---|---|---|---|---|---|---|---|---|
| dale-0.8b · CPU | 0.91 s | 1.13 s | 1.10 s / 1.31 s | 0.37 s | 0.14 s | 0.34 s | 0.06 s | 71 |
| dale-0.8b · GPU | 0.76 s | 0.80 s | 0.91 s / 0.95 s | 0.46 s | 0.03 s | 0.06 s | 0.21 s | 391 |
| dale-2b · GPU | 0.86 s | 0.91 s | 1.28 s / 1.34 s | 0.53 s | 0.03 s | 0.08 s | 0.22 s | 300 |
| dale-4b · GPU | 1.21 s | 1.32 s | 2.12 s / 2.29 s | 0.77 s | 0.07 s | 0.15 s | 0.23 s | 160 |
| dale-9b · GPU | 1.66 s | 1.76 s | 3.56 s / 3.66 s | 1.07 s | 0.07 s | 0.24 s | 0.29 s | 103 |
| dale-4b · CPU | 3.10 s | 4.03 s | — | 1.02 s | 0.58 s | 1.40 s | 0.10 s | 18 |
| dale-4b · integrated GPU | 5.03 s | 7.23 s | — | 0.86 s | 0.16 s | 3.93 s | 0.09 s | 6 |
Source: dale 1.1.0 on the reference desktop with a 16 GB GPU; median and p90 per warm request, wall-clock time; phases are medians and the rest is process start, verification and the like.
- Peak VRAM
- Headroom up to the threshold
- Free VRAM dale requires
View data
| Model | Peak VRAM | Free VRAM required | Headroom | Use in the CLI |
|---|---|---|---|---|
| dale-0.8b | 1.1 GiB | — | — | runs on the CPU by default |
| dale-2b | 1.8 GiB | — | — | not used by the CLI |
| dale-4b | 3.2 GiB | 4 GiB | 0.8 GiB | offered with ≥ 4 GiB free |
| dale-9b | 5.4 GiB | 8 GiB | 2.6 GiB | offered with ≥ 8 GiB free |
Source: peak VRAM of the dale 1.1.0 process on the reference desktop with a 16 GB GPU; free-VRAM thresholds from dale 1.1.0 (src/infer/hardware.cpp).
Install
Install it in a minute
A single binary for Linux, for both CPU and GPU. Copy, paste and ask for your first command.
- Linux x86_64 with AVX2
- glibc 2.29 or later
- curl or wget
- bash only
- Optional GPU: dedicated, ≥ 4 GiB free VRAM, driver and Vulkan loader
- Windows: via WSL 2
Binary recommended
-
Check the requirements
A CPU with AVX2 and glibc 2.29 or later: Ubuntu 20.04, Debian 11, Fedora 30 or newer. The last number ldd prints is the glibc version. The third line only matters for the GPU: without the Vulkan loader (libvulkan.so.1), dale uses the CPU and tells you what to install.
grep -q avx2 /proc/cpuinfo && echo "AVX2: OK" || echo "AVX2: not supported"ldd --version | head -n 1ldconfig -p | grep -q libvulkan.so.1 && echo "Vulkan loader: OK" || echo "Vulkan loader: missing (CPU only)" -
Download, verify and install
From the latest release on GitHub: one file of about 51 MB for both CPU and GPU. The check must print “dale-linux-x86_64: OK”. It installs for your user only, in ~/.local/bin: no root needed.
curl -LO https://github.com/manuelgscom/dale/releases/latest/download/dale-linux-x86_64curl -LO https://github.com/manuelgscom/dale/releases/latest/download/SHA256SUMSsha256sum -c --ignore-missing SHA256SUMSchmod +x dale-linux-x86_64mkdir -p ~/.local/binmv dale-linux-x86_64 ~/.local/bin/dale -
Check that your shell finds it
It should print the version of dale and of its model; after the first run, also the saved choice. Getting “dale: command not found”? Open a new terminal, or see “Troubleshooting” below.
dale --version -
Ask for your first command
On first use it looks for a dedicated GPU and its free VRAM: with 8 GiB or more it lets you choose between dale-4b (fast, Enter) and dale-9b (more accurate); with 4 GiB or more it offers dale-4b; otherwise it uses dale-0.8b on the CPU. It always asks before downloading the model (529 MB, 2.7 GB or 5.6 GB) from Hugging Face, checks its SHA-256 and stores it in ~/.local/share/dale/models/. After that it makes no network requests at all. If you already have the GGUF, use --model PATH.
dale "list the files bigger than 200 MB"
To update, repeat step 2: the models you already downloaded are kept, and one is downloaded again only if the new version uses a different one. To uninstall, including the models, the configuration, the first-run choice and the cache:
rm ~/.local/bin/dalerm -rf ~/.local/share/dale ~/.config/dale ~/.local/state/dale ~/.cache/dale From source
-
Install the build tools
git, CMake 3.28 or later and GCC 13 or later. Run only the line for your distribution. Ubuntu 22.04 and Debian 12 ship older versions: there, use the prebuilt binary.
# Ubuntu 24.04 or later, Debian 13 or latersudo apt install build-essential cmake git# Fedorasudo dnf install gcc-c++ make cmake git# Arch Linuxsudo pacman -S --needed base-devel cmake git -
Get the code
--recursive also fetches llama.cpp (v0.6.0), which is a git submodule.
git clone --recursive https://github.com/manuelgscom/dale.gitcd dale -
Build and install
The default build is CPU-only. llama.cpp is compiled along with dale, so there are no other libraries to install. The binary is optimised for the CPU of the machine you build it on.
cmake -B build -DCMAKE_BUILD_TYPE=Release -DDALE_TEST_HOOKS=OFFcmake --build build -j"$(nproc)" --target daleinstall -Dm755 build/dale ~/.local/bin/daledale --version -
Optional: with the GPU (Vulkan)
Instead of step 3, add -DDALE_VULKAN=ON to the first command. It needs the Vulkan headers, SPIRV-Headers and the glslc shader compiler, from the Vulkan SDK or your distribution (the apt line is for Debian and Ubuntu). The result still starts without a Vulkan loader, like the release binary.
# Debian, Ubuntusudo apt install libvulkan-dev spirv-headers glslccmake -B build -DCMAKE_BUILD_TYPE=Release -DDALE_TEST_HOOKS=OFF -DDALE_VULKAN=ONcmake --build build -j"$(nproc)" --target daleinstall -Dm755 build/dale ~/.local/bin/daledale --version -
Optional: development build and tests
Unit and end-to-end tests in a pseudo-terminal. They use a fake engine, so they need no model file. This build keeps the test hooks: do not use it as your everyday binary.
cmake -B build-devcmake --build build-dev -j"$(nproc)"ctest --test-dir build-dev
Model only
| Model | Size | Test | SHA-256 | In the CLI |
|---|---|---|---|---|
| dale-0.8b | 529 MB | 79.4% | 8738d253… | CPU |
| dale-2b | 1.3 GB | 81.7% | 407fa38a… | llama.cpp only |
| dale-4b | 2.7 GB | 87.0% | a1a5d518… | GPU |
| dale-9b | 5.6 GB | 89.2% | 475e4f8e… | GPU |
-
Download the GGUF and check it
The example is dale-0.8b; for another one, change the name in the path. The SHA-256 must start with the prefix in the table. You can also use it with the CLI: dale --model PATH “request”, or with the model key of the configuration.
curl -LO https://huggingface.co/manuelgscom/dale-0.8b-GGUF/resolve/main/dale-0.8b-1.0.0-Q4_K_M.ggufsha256sum dale-0.8b-1.0.0-Q4_K_M.ggufllama-server -m dale-0.8b-1.0.0-Q4_K_M.gguf --port 8080 -
Or let llama-server download it
With -hf, llama-server fetches it from Hugging Face the first time. -ngl 99 puts every layer on the GPU, with a GPU build of llama.cpp; on CPU only, leave it out.
# CPUllama-server -hf manuelgscom/dale-0.8b-GGUF:Q4_K_M --port 8080# GPUllama-server -hf manuelgscom/dale-4b-GGUF:Q4_K_M -ngl 99 --port 8080 -
Turn reasoning off
With the chat API (/v1/chat/completions), add this to the body of every request; with an older llama.cpp build, also start the server with --jinja. Follow the prompt contract in the model card exactly. Outside dale there is no risk verifier: add your own review step.
"chat_template_kwargs": {"enable_thinking": false}
Usage
dale "compress the photos folder into a tar.gz"dale --model PATH "request"# detect the GPU and choose the model againdale --setupdale --helpdale --version - y runs it
- n cancels
- e edit first
- c copy to clipboard
Optional configuration
# suggest | confirm | automode = confirm# auto | en | es (language of the interface)lang = auto# a GGUF file instead of the downloaded model# model = ~/models/dale-0.8b-1.0.0-Q4_K_M.gguf# inference threads (1-256; by default, chosen by dale)# threads = 4# auto | cpu | gpu (auto follows the first-run choice)device = auto device = cpu keeps every request on the CPU. device = gpu uses the dedicated GPU with the most free VRAM (an integrated one if there is none) and the largest model that fits it.
dale can be wrong: a wrong command can look plausible. Always read the command before running it.
Troubleshooting
When something doesn't work
The most common snags, each one with its exact fix.
PATH “dale: command not found”
Open a new terminal: most distributions add ~/.local/bin to your PATH at login, but only once the folder exists. If that does not help, add it yourself:
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrcsource ~/.bashrc CPU “Illegal instruction” or “GLIBC_2.29 not found”
The binary needs a CPU with AVX2 (CPUs without it are not supported) and glibc 2.29 or later: Ubuntu 20.04, Debian 11, Fedora 30 or newer. Check both; the last number of the second line is your glibc version:
grep -q avx2 /proc/cpuinfo && echo "AVX2: OK" || echo "AVX2: not supported"ldd --version | head -n 1 GPU dale does not use my GPU
The GPU path needs a dedicated GPU with at least 4 GiB of free VRAM, its driver and the Vulkan loader (libvulkan.so.1). If the loader is missing, dale says so and uses the CPU: install your distribution's package and detect again. An integrated GPU is never chosen automatically; device = gpu in the configuration forces it (on the reference desktop, dale-4b on the integrated GPU took 5.0 s per request). With device = cpu, dale does not even look for it.
ldconfig -p | grep -q libvulkan.so.1 && echo "Vulkan loader: OK" || echo "Vulkan loader: missing (CPU only)"# Debian, Ubuntusudo apt install libvulkan1# Fedorasudo dnf install vulkan-loader# Arch Linuxsudo pacman -S vulkan-icd-loaderdale --setup GPU The first answers on the GPU are slow
That is expected: the first time, the driver compiles the Vulkan shaders and keeps them in its cache. It happens once per user and driver. Separately, the first request after the computer starts takes a little longer, because the model isn't in the disk cache yet. On the reference desktop the first answers took 6–9 s; after that, 1.2 s with dale-4b and 1.7 s with dale-9b.
model Change the model or detect again
dale --setup detects the GPU and asks again. The choice is saved in ~/.local/state/dale/setup, and dale --version shows it. For a specific GGUF, use --model PATH or the model key of the configuration.
dale --setupdale --version config Always use the CPU
With device = cpu in ~/.config/dale/config, every request runs on the CPU and dale does not look for the GPU. To go back, remove the line or set device = auto, then run dale --setup.
# ~/.config/dale/configdevice = cpu GPU The GPU failed or crashed
dale answers that request on the CPU (with dale-0.8b, if it is downloaded). If the GPU fails to load the model or to decode, or the last GPU run did not finish, dale saves the CPU and uses it from then on (with device = auto; with device = gpu only that request moves). If the GPU is not found, it uses the CPU that time only. To try the GPU again:
dale --setup Windows Using it on Windows
dale is for Linux: on Windows, use it inside WSL 2, with the same install steps in your WSL distribution.
update Update without losing the models
Repeat step 2 of the install: the binary is replaced and the downloaded models are kept; one is downloaded again only if the new version uses a different one. Coming from 1.0.0, the next run looks for your GPU and, if it fits, asks whether to download a GPU model.
curl -LO https://github.com/manuelgscom/dale/releases/latest/download/dale-linux-x86_64curl -LO https://github.com/manuelgscom/dale/releases/latest/download/SHA256SUMSsha256sum -c --ignore-missing SHA256SUMSchmod +x dale-linux-x86_64mkdir -p ~/.local/binmv dale-linux-x86_64 ~/.local/bin/dale llama.cpp Use the models directly with llama.cpp
All 4 GGUFs work with llama-server, on CPU or GPU: see the “Model only” install tab. Always turn reasoning off (enable_thinking: false) and follow the prompt contract in the model card. Outside dale there is no risk verifier.
llama-server -hf manuelgscom/dale-0.8b-GGUF:Q4_K_M --port 8080
Case study
How I built it, with every number
From the first test to the binary for CPU and GPU: synthetic data, training on rented GPUs, the experiments that failed, an evaluation with statistical significance and what I did not achieve.
- 22 days of work
- ≈39 USD of rented GPU
- 4 own models released
- 471 public test cases
Code and models
Everything is public
The CLI, under the MIT license, on GitHub. The GGUF models, under Apache-2.0 like their base models, in a Hugging Face collection.