[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-117251":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":14,"contributorsCount":15,"subscribersCount":15,"size":15,"stars1d":16,"stars7d":17,"stars30d":17,"stars90d":15,"forks30d":15,"starsTrendScore":18,"compositeScore":19,"rankGlobal":10,"rankLanguage":10,"license":20,"archived":21,"fork":21,"defaultBranch":22,"hasWiki":23,"hasPages":21,"topics":24,"createdAt":10,"pushedAt":35,"updatedAt":36,"readmeContent":37,"aiSummary":10,"trendingCount":15,"starSnapshotCount":15,"syncStatus":38,"lastSyncTime":39,"discoverSource":40},117251,"lxask","arxhr007\u002Flxask","arxhr007","Offline Linux command assistant: a 1.5B model on your machine (About 1 GB disk, 1 GB RAM, no GPU, ~2 s per answer) that checks every command against the man pages and tldr. No cloud, no API key. Rust + llama.cpp","https:\u002F\u002Farxhr007.github.io\u002Flxask\u002F",null,"Python",171,13,1,0,14,48,76,88.04,"MIT License",false,"main",true,[25,26,27,28,29,30,31,32,33,34],"ai","cli","linux","llm","llm-agent","local-llm","lora","reinforcement-learning","rust","shell","2026-11-23 18:53:17","2026-11-23 20:50:35","\u003Cp align=\"center\">\n  \u003Cimg src=\"docs\u002Fassets\u002Flogo.svg\" width=\"120\" alt=\"lxask logo\">\n\u003C\u002Fp>\n\n\u003Ch1 align=\"center\">lxask\u003C\u002Fh1>\n\n\u003Cp align=\"center\">\n  \u003Cb>Forgot the command? Just ask.\u003C\u002Fb>\u003Cbr>\n  A Linux command assistant that runs on your own machine:\u003Cbr>\n  no Ollama, no Docker, no root, no API key, no cloud, no account.\n\u003C\u002Fp>\n\n\u003Cp align=\"center\">\n  \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Farxhr007\u002Flxask\u002Factions\u002Fworkflows\u002Ftest.yml\">\u003Cimg src=\"https:\u002F\u002Fgithub.com\u002Farxhr007\u002Flxask\u002Factions\u002Fworkflows\u002Ftest.yml\u002Fbadge.svg\" alt=\"tests\">\u003C\u002Fa>\n  \u003Ca href=\"LICENSE\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Flicence-MIT-blue\" alt=\"MIT licence\">\u003C\u002Fa>\n  \u003Ca href=\"docs\u002Finstall.md#platforms\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Flinux-x86__64%20%7C%20arm64-lightgrey\" alt=\"Linux x86_64 and arm64\">\u003C\u002Fa>\n  \u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Fafter%20install-no%20network-brightgreen\" alt=\"no network after installing\">\n  \u003Ca href=\"https:\u002F\u002Fhuggingface.co\u002Farxhr007\u002Flxask\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002F%F0%9F%A4%97-model%20on%20Hugging%20Face-yellow\" alt=\"model on Hugging Face\">\u003C\u002Fa>\n\u003C\u002Fp>\n\n\u003Cp align=\"center\">\n  \u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FRust-2025?logo=rust&logoColor=white\" alt=\"Rust\">\n  \u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Fllama.cpp-GGUF-black\" alt=\"llama.cpp, GGUF\">\n  \u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FQwen2.5--Coder-1.5B-orange\" alt=\"Qwen2.5-Coder-1.5B\">\n  \u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Ffine--tuning-LoRA%20%2B%20RL-blue\" alt=\"fine-tuned with LoRA and reinforcement learning\">\n  \u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FSQLite-docs%20index-blue?logo=sqlite&logoColor=white\" alt=\"SQLite documentation index\">\n  \u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FPython%203.12-build%20%26%20eval-yellow\" alt=\"Python 3.12 for build and evaluation\">\n  \u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Fbenchmark-Docker%20%2B%20InterCode--ALFA-lightgrey?logo=docker&logoColor=white\" alt=\"Docker and InterCode-ALFA benchmark\">\n\u003C\u002Fp>\n\n\u003Cp align=\"center\">\n  \u003Cimg src=\"docs\u002Fassets\u002Fdemo.gif\" width=\"760\" alt=\"lxask answering everyday requests, keeping a restriction, and asking back on a vague one\">\n\u003C\u002Fp>\n\n```\n$ lxask \"show disk usage of each folder here, biggest first\"\n$ du -h --max-depth=1 . | sort -hr\n```\n\n- 🔒 **Private and offline.** Everything runs locally on your CPU. Nothing you ask leaves your machine.\n- ⚡ **Small and fast.** About 1 GB, no GPU needed; about 2 seconds per answer once loaded (the installer offers to keep it loaded).\n- ✅ **Checks its own work.** Every command is checked against the man pages and tldr, and anything it can't confirm is flagged. The check proves the programs and options exist and the line can run, not that it does what you meant ([what it can't tell you](docs\u002Fhow-it-works.md#what-the-check-cannot-tell-you)).\n- ⌨️ **Right on your prompt.** Type what you want, press **Ctrl+G**, and the line becomes the command.\n- 💾 **Runs on very little RAM.** About 1.3 GB at its peak, measured while answering questions.\n\n## Quick start\n\n```sh\ncurl -fsSLO https:\u002F\u002Fgithub.com\u002Farxhr007\u002Flxask\u002Freleases\u002Flatest\u002Fdownload\u002Finstall.sh\nsh install.sh                                   # about 1.1 GB, once; no root needed\n\nlxask \"find files bigger than 1GB in my home folder\"\n```\n\nFor Ctrl+G, add one line to `~\u002F.bashrc` (or `zsh` in `~\u002F.zshrc`):\n\n```sh\neval \"$(lxask --shell-init bash)\"\n```\n\nFor fish, add `lxask --shell-init fish | source` to `~\u002F.config\u002Ffish\u002Fconfig.fish` instead.\n\n64-bit Linux on x86_64 or ARM64 with glibc 2.28+: Debian, Ubuntu, Fedora, Arch,\nopenSUSE and most others, and a Raspberry Pi 4 or 5 with 2 GB or more\n([which boards](docs\u002Finstall.md#raspberry-pi-and-other-small-boards)). More in\n[docs\u002Finstall.md](docs\u002Finstall.md), including how to check the installer against the\nrelease checksums first.\n\n### Install by hand\n\n`install.sh` only downloads files and puts them in place, so you can do the same yourself:\n\n1. From the [latest release](https:\u002F\u002Fgithub.com\u002Farxhr007\u002Flxask\u002Freleases\u002Flatest), download\n   one program (`lxask-x86_64-v3` for x86 PCs since about 2015, `lxask-x86_64` for older\n   ones, `lxask-aarch64-dotprod` for ARM64 with dot product such as the Pi 5, `lxask-aarch64`\n   for other ARM64), plus `lxask-round4-Q4_K_M.gguf`,\n   `restrict-round4.gguf`, `precision-round4.gguf`, `embed.gguf`, `docs.sqlite` and\n   `SHA256SUMS`. Check them with `sha256sum -c --ignore-missing SHA256SUMS`.\n2. Put the program on your PATH as `lxask`:\n\n   ```sh\n   install -D -m 755 lxask-x86_64-v3 ~\u002F.local\u002Fbin\u002Flxask\n   ```\n\n3. Put the rest in `~\u002F.local\u002Fshare\u002Flxask\u002F` under these names:\n\n   ```sh\n   mkdir -p ~\u002F.local\u002Fshare\u002Flxask\n   mv lxask-round4-Q4_K_M.gguf ~\u002F.local\u002Fshare\u002Flxask\u002Fmodel.gguf\n   mv restrict-round4.gguf     ~\u002F.local\u002Fshare\u002Flxask\u002Frestrict.gguf\n   mv precision-round4.gguf    ~\u002F.local\u002Fshare\u002Flxask\u002Fprecision.gguf\n   mv embed.gguf docs.sqlite   ~\u002F.local\u002Fshare\u002Flxask\u002F\n   echo \"serve = auto\" > ~\u002F.local\u002Fshare\u002Flxask\u002Fsettings   # optional: keeps it loaded, ~2 s answers\n   ```\n\nAlready downloaded the files? `sh install.sh --from DIR` does steps 2 and 3 from that\nfolder, without the network.\n\n## What it can do\n\nExplains every part of a command, handles several steps in one request, keeps restrictions\nlike \"without lsof\", asks back when a request is vague, and flags what it can't confirm.\nReal answers, mistakes included: [docs\u002Fexamples.md](docs\u002Fexamples.md).\n\n## How good is it\n\nOn questions it was never trained on, lxask picks the right tool for **96-99%** of\neveryday tasks. Run for real in a sandbox, **87%** of its commands for hand-written file\nand text tasks work as they are (75% on a harder generated set). When it misses, it is\nusually by a detail, a flag or a field number, which is why it explains every part and\nflags what it can't confirm.\n\nOn the public [NL2SH-ALFA](https:\u002F\u002Fhuggingface.co\u002Fdatasets\u002Fwestenfelder\u002FNL2SH-ALFA) test\n(300 shell tasks run in Docker by the InterCode-ALFA harness), lxask solves **62%**\n(95% CI 57-68%) against **54%** (CI 48-60%) for the untuned Qwen2.5-Coder-1.5B it was\ntrained from, given three worked examples (paired McNemar p = 0.003). Restricted to the\n237 tasks with no overlap with its training sources: **61% vs 54%** (p = 0.02). The\nbenchmark authors publish 73% for GPT-4o, a hosted model; that number is theirs and was\nnot re-run here. The gain over the untuned model comes from fine-tuning, not from the\nretrieval and retries around it, which change nothing on this set\n([details](docs\u002Faccuracy.md#the-public-benchmark-nl2sh-alfa)).\n\nWhy this base model: newer small models were tested untuned on the same benchmark, with\nthe same three examples. Gemma 4 E2B solves **58%** (not a significant difference) but\nneeds about 2.6 times the memory and is almost twice as slow; Ternary Bonsai 2 9B\nties at **54%** but takes about 9 s per answer against 1 s on CPU; Qwen3.5-2B solves\n**43%** and LFM2.5-1.2B **21%** ([the numbers](docs\u002Faccuracy.md#why-qwen25-coder-15b)).\n\nWe publish the misses too: [the mistakes from the examples run](docs\u002Fexamples.md#where-it-slipped-same-run)\nand [every measurement](docs\u002Faccuracy.md).\n\n## What it was trained on\n\nQwen2.5-Coder-1.5B fine-tuned on tldr-pages, NL2Bash and questions and answers written by\nlanguage models (every command validated), then reinforcement learning on commands run in a\nsandbox. The data: [docs\u002Fdevelopment.md](docs\u002Fdevelopment.md#training-data).\n\n## Why lxask\n\n| | lxask | hosted AI assistants | tldr | man |\n|---|---|---|---|---|\n| no network, account or API key | ✅ after installing | ❌ | ✅ | ✅ |\n| ask in plain words | ✅ | ✅ | ❌ look up by name | ❌ |\n| checks its answer against the docs | ✅ flags what it can't confirm | not as a rule | (it is the docs) | (it is the docs) |\n| keeps \"without X\", asks back on vague requests | ✅ | varies | ❌ | ❌ |\n| runs commands for you | never | some can | no | no |\n| local size | 1.1 GB disk, 1.3 GB memory at peak | none, or a large model | small | built in |\n\nIt is a 1.5B-parameter model, not a giant hosted one: a fast, private first answer\nfor everyday Linux work, not a replacement for knowing your system.\n\n## Compared with similar tools\n\n| | runs offline after installing | needs an account or API key | checks its answer against the docs |\n|---|---|---|---|\n| **lxask** | ✅ | none | ✅, and says when it cannot confirm |\n| [Ollama](https:\u002F\u002Follama.com) and a prompt | ✅, after you install Ollama and pull a model | none | ❌ |\n| [GitHub Copilot CLI](https:\u002F\u002Fdocs.github.com\u002Fen\u002Fcopilot\u002Fusing-github-copilot\u002Fusing-github-copilot-in-the-command-line) | ❌, it is an online service | a GitHub account and a Copilot plan | ❌ |\n| [aichat](https:\u002F\u002Fgithub.com\u002Fsigoden\u002Faichat) | only against a local server, such as Ollama | an API key for the cloud providers | ❌ |\n| [shell-genie](https:\u002F\u002Fgithub.com\u002Fdylanjcastillo\u002Fshell-genie) | ❌, it is an online service | an OpenAI key, or the author's own backend | ❌ |\n| tldr, man | ✅ | none | it is the docs |\n\nOllama and aichat are general chat CLIs: you can ask either one for a command, but\nneither is tuned for the job, knows your distribution or checks what it answers\nagainst the manual. Copilot CLI and shell-genie send your question to a service.\nlxask is a small model fine-tuned on this one task, keeps a \"without X\" restriction\nyou state, and asks back when a request is too vague to answer.\n\n## More\n\n- The model files are on Hugging Face: [arxhr007\u002Flxask](https:\u002F\u002Fhuggingface.co\u002Farxhr007\u002Flxask) (the 986 MB chat model, the\n  37 MB adapters, checksums and a model card). The installer downloads them for you;\n  you only need that page to run the model in your own llama.cpp setup.\n- Kept loaded between questions (the installer asks; on by default), answers take about\n  2 s instead of about 7; it frees its memory after 30 idle minutes. `serve = off` in\n  `~\u002F.local\u002Fshare\u002Flxask\u002Fsettings` turns that off.\n- `lxask --bad \"what was wrong\"` saves a wrong answer on your machine; `lxask --share`\n  turns it into a GitHub issue you can submit. Nothing is sent otherwise.\n- `lxask --command-only \"...\"` prints just the command, for scripts.\n- `lxask --explain \"tar -xzvf logs.tar.gz\"` explains a command you already have, part by\n  part, from the man pages and tldr, and checks it; no model is loaded, so it is instant.\n- One model for a homelab: `lxask --serve --listen 0.0.0.0:7871` on one machine, and\n  every other machine or container needs only the program, with `LXASK_SERVER` and the\n  token ([usage](docs\u002Fusage.md#one-model-for-several-machines-or-containers)).\n\n| docs | |\n|---|---|\n| [Install](docs\u002Finstall.md) | platforms, checksums, offline install, upgrade, uninstall |\n| [Examples](docs\u002Fexamples.md) | real answers, and the mistakes from the same run |\n| [Usage](docs\u002Fusage.md) | reading an answer, options, Ctrl+G, the server, feedback |\n| [Configuration](docs\u002Fconfiguration.md) | files and environment variables |\n| [How it works](docs\u002Fhow-it-works.md) | retrieval, the checks and retries, explanations |\n| [Architecture](docs\u002Farchitecture.md) | diagrams of the components and the build |\n| [Accuracy and limits](docs\u002Faccuracy.md) | every measurement, where it goes wrong, speed |\n| [Development](docs\u002Fdevelopment.md) | building, training data, measuring |\n\nFound a wrong answer or a bug? [CONTRIBUTING.md](CONTRIBUTING.md) ·\nSecurity: [SECURITY.md](SECURITY.md)\n\n## Author and licence\n\nMade by Aaron Thomas ([arxhr007](https:\u002F\u002Fgithub.com\u002Farxhr007), [website](https:\u002F\u002Farxhr007.github.io)).\n\nCode: MIT ([LICENSE](LICENSE)).\n\nModel weights: a fine-tune of Qwen2.5-Coder-1.5B-Instruct (Apache 2.0).\n\nTraining data: human-written tldr-pages (CC BY 4.0) and NL2Bash (GPL-3.0), plus questions and\nanswers written by language models. Evaluation: hand-written sets (46 execution tasks, 10 multi-part\nrequests, 70 everyday questions), human-written NL2Bash and tldr held-out pairs, and held-out parts of the\nmodel-written data.\n\nThe weights, the training pipeline, the training data and the evaluation sets are all published.\nThe model-written data was kept out of the public repository when it first opened (2026-10-19) and\nadded on 2026-10-21, so the model can now be retrained and every number re-measured from a clone.\nHow it was made and filtered: [Development](docs\u002Fdevelopment.md).\n\nDocumentation index used for answers: tldr-pages (CC BY 4.0) and the man pages on your\nmachine, each under its own licence.\n\nDetails for each part: [NOTICE](NOTICE).\n\n\n",2,"2026-11-24 04:55:11","CREATED_QUERY"]