r/CLI • • 2h ago

I fine-tuned a 1.5B model into an offline Linux command helper that runs on CPU and checks its own answers against the man pages and tldr

11 Upvotes

lxask turns plain English into a shell command, entirely on your own machine:

$ lxask "show disk usage of each folder here, biggest first"

$ du -h --max-depth=1 . | sort -hr

Setup:

- Fine-tuned Qwen2.5-Coder-1.5B, Q4_K_M GGUF

- llama.cpp inside one Rust binary. No Ollama, no Python, no API key

- ~1.1 GB on disk, ~1 GB RAM, ~2 s per answer on a laptop CPU

- No GPU, no network after install

How it keeps a 1.5B model honest:

- Retrieves relevant tldr pages and your own man pages before answering

- Checks every program and option in the answer against the man pages

- Retries if a check fails. Anything it still can't confirm is marked `unverified:`

- Asks back on vague requests ("add a proxy": for git? apt? docker?) instead of guessing

Bonus

- `lxask --explain "tar -xzvf logs.tar.gz"` breaks down a command you already have

- Ctrl+G in bash, zsh or fish turns what you typed into the command

Code, weights, data and evals are all open.

GitHub: https://github.com/arxhr007/lxask

Hope someone finds it useful! If you do, consider leaving a ⭐ on GitHub. Feedback and contributions are welcome

Model: https://huggingface.co/arxhr007/lxask


r/CLI • • 21h ago

therapist 0.2.0: a terminal log viewer - just in case your system needs some therapy

4 Upvotes

For those who aren't familiar with it yet: The therapist app can act as a “therapist” for your system. It helps diagnose system problems by analyzing the app's logs - so it is basically a log viewer in the terminal (but at least it has cool features and is pleasant to use).

When I was developing therapist, I thought I would be the only one using it. To my surprise, it turned out that a few other people had tried it as well. They even sent me their feedback (lol). So I decided to make a few improvements.

Most important stuff in the new in 0.2.0:

  • Inverted grep. Space v opens a tab with the lines that don't contain a phrase, so you can drop the noise before you start reading. It cascades like a normal grep.
  • The terminal is restored when the app is killed (SIGTERM, SIGHUP, SIGINT), even while it's suspended with Ctrl-z.
  • Lower memory use and faster grep on large files.
  • A more user-friendly README.

Repo: https://github.com/M-Komorek/therapist


r/CLI • • 48m ago

TTP 0.5.1: route all Linux traffic through Tor with nftables

Thumbnail github.com
1 Upvotes

I maintain TTP (Transparent Tor Proxy). It's a small CLI tool that sends all of your system's traffic through Tor using nftables rules, so you don't have to configure each application one by one.

With the 0.5 releases I wanted TTP to report only what it can actually verify. Status and checks now tell you what was observed and when, instead of assuming everything is fine. If the watchdog can't prove it's running, ttp start fails. If something goes wrong during a session, traffic stays blocked until you stop it yourself.

To test the release, I ran it in VMs and captured packets from outside the guest. That turned up a few leaks I hadn't seen before, for example some FIN/RST packets that left in cleartext after stopping. They're fixed now.

If you try it, I'd like to hear how it goes.

https://github.com/onyks-os/TransparentTorProxy


r/CLI • • 49m ago

Agents_control: Independent agents control from telegram bot (your own). No opened ports into internet. Open sourced. Free.

1 Upvotes

I’ve built the tool for myself and am using it every day.

All the tabs from iTerm or Tmux will be shown in your own Telegram bot (you should create it and set it up). Nobody can access your terminal because it will answer only to your Telegram account.

/tabs for tabs list
/run N make this feature for me
/screen N to see what happened

You can also use it without any ai agents:
/run N ls (context switched to tab N here and you can continue without command)
git st
git log
cd ../
…

You can send files, voice messages, screencasts, logs, files directly to your agent (any agent, not only claude or openai)

But for Claude it will automatically continue after limits reset. And automatically will trigger the limits window.

You can install it yourself or ask your ai agent to do it for you. Also it available as a ruby gem.

https://agentscontrol.278labs.co.uk
https://github.com/saparjohnick/agents_control


r/CLI • • 2h ago

made a termux tool that checks your code for llama.cpp 1.0 breaking changes before you get burned by them

1 Upvotes

llama.cpp hit 1.0 a few days ago and quietly dropped a bunch of stuff people's scripts depend on, a few functions gone, a flag removed, a header that moved. went looking for something that'd just scan my code and tell me what's gonna break and couldn't find anything, so i built it instead.

its called llamadoctor, one python file, no deps, runs fine in termux since thats literally where i wrote the whole thing on my phone. point it at a folder and it tells you whats broken, severity sorted, links to the actual github PR for each one so your not just trusting some random script. if theres an easy mechanical fix it offers to do it for you, asks first obviously, and refuses to touch anything if your git tree is dirty unless you force it.

install is just(after cloning ofc.):

pip install -e .

llamadoctor yourfolder

repo's here if anyone wants to poke at it or tell me what i missed, pretty sure theres edge cases i haven't hit yet since i only had my own stuff and some test projects to throw at it

github.com/hunzo1/llamadoctor


r/CLI • • 4h ago

Terminal Clubhouse Update! Watch live NetHack / DCSS / Brogue runs, Zork, new daily puzzles, and YouTube inside your terminal :)

Thumbnail gallery
1 Upvotes

As always, first a reminder of what we are ;) A clubhouse inside the terminal. A place to take a break, chat with people around the globe, listen to music and play a game.

ssh late.sh

Three biggest things since my last post:

1. New games, and you can watch them live

  • Spectate: watch anyone's NetHack, DCSS or Brogue run live, read-only. Every player has their own watch chat, so you can backseat them while they die.
  • Zork I, II and III. Microsoft open-sourced them, so we added them. (100% done by a contributor)
  • Realm, a slow strategy game for 2 to 10 players on one shared map. Real Earth one season, a generated world the next. You write your orders during the day and they all resolve at night. (also a contributorr)
  • cribbage and gin rummy, one move a day, next to chess, backgammon and pool

2. The Arcade got daily puzzles

  • four new ones: Netwalk, Chess Puzzle (real Lichess puzzles), Word Wheel and Quartets
  • a puzzle of the day, the same one for everyone. Solve it and you get a star next to your name
  • streaks: win any daily and you get a moon next to your name. It grows at 3, 7, 30 and 100 days

3. Watch and read in the terminal

  • YouTube links play inside the terminal now, from chat or from the news feed. Pause, seek, fullscreen, and it remembers where you stopped. (needs our CLI, mpv and a Kitty graphics terminal)
  • press Enter on a news story and it opens as plain text in a full-screen reader

And the smaller stuff: Home is all tiles now with nine saved layouts, 21 radio stations instead of 5, a world map of where everyone is from, a shared calendar, and a bartender who remembers your usual.

Hop in, chill and enjoy :)

License: FSL-1.1-MIT

Code: https://github.com/mpiorowski/late-sh

Landing: https://late.sh


r/CLI • • 5h ago

brepl: browse the web from a REPL, together with your AI agent

0 Upvotes

There are tons of browser automation tools out there, yet I couldn't find a plain, simple REPL to browse the web from the shell. So I built one, and it feels a lot like a debugger: brepl.

Here's how it works: you start it with ./brepl.py (you just need uv installed) and you get a command line. Under the hood it runs a headless Chrome, which you normally never see.

Most of the time you browse without looking at anything, straight from the command line. For the cases where you do need to interact, the @ command shows the browser window, which is handy for logging in to the various services. brepl keeps a browser profile, so your logins persist across sessions.

Say I want to browse Reddit from the command line: I run ./brepl.py reddit.com, type @ right away and log in. From then on, I can do everything from the command line.

I go to g /r/commandline and grab the page with p. If your terminal supports graphics, the page is shown inline, and it's also saved as page1.png (that's the first part; p 0 gives you all of them, p 3 the first three). Feeling lazy? G is a g immediately followed by a p.

The screenshot highlights links (green) and buttons (red), both numbered, and input fields (blue) labeled with their name.

So you can follow a link by its number: g 13 opens the link marked 13. You can also click buttons and fill in fields: c 3 clicks button 3, c login user=me pw=secret fills in the login form and clicks "login", and s q=python types "python" into the q field and submits it.

All of this makes it really easy to build automations interactively and then have an AI run them. The REPL is also an MCP server that agents can talk to: on startup it writes a .mcp.json and an AGENTS.md that tell the agent how to use it.

So the same commands can be run by an AI agent like Claude.

I usually run it in a VS Code terminal: I browse, mixing commands I type myself with the AI handling the repetitive work, and then I write specs that use those commands to describe the automations.

NOTE the repl is an http agent so it must be active to use it from your agent. I usually have it open and work together command line and on the agent in parallel, an I use vscode as glue and to see easily images.

This lets me build scrapers, checkers and other tools in a fraction of the time, just by trying things out. And example is in folder check where I built a tool to check frequent accounts.

There are many other features, just check the README on github.

The project is on github.com/msciab/brepl, and it is released under the Apache 2.0 license.


r/CLI • • 9h ago

vibecoded SIMPLE text editor

Thumbnail reddit.com
0 Upvotes