Skip to content
Sym-jayPublic

About

A local, offline-first helper for people new to Linux. Say what you want in plain English, see the real command before it runs, and learn the shell as you go. AI is optional.

Topics

Resources

Contributing

Security policy

Stars

5 stars

Watchers

1 watching

Forks

Latest commit

 

History

269 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Clishe

Say what you want. Learn the command. Keep your shell.

An offline-first command-line companion for Linux beginners. Type plain English, get a real shell command, and see exactly what will run before it does. AI assistance is optional, and when you use it, it runs on your own machine.

Tests License: MIT Python 3.9+ Platform: Linux and macOS Status: alpha

Quick start · What it does · Install · Using it · Docs · Contributing


Clishe demo: plain English to a command with Ctrl+G, flags explained, "what does this mean", the safety check and the thinking orbs

Or skip the session entirely: type plain English at your normal prompt and press Ctrl+G. The words turn into the command, right there on your line, ready to read, edit and run.

$ show me disk usage        ← press Ctrl+G
$ df -h                     ← press Enter when you're ready

Quick start

pipx install clishe   # Linux or macOS (Windows: inside WSL)
clishe                # then type what you want, e.g. "show me disk usage"

Other ways to install are under Install.

What it does

Most command-line tools assume you already know the command you want. Clishe assumes you don't, and treats that as normal.

  • Plain English in, real command out, offline: your phrases, 100+ built-in ones and 31,000 tldr-pages examples, with "did you mean...?" when it's close. No account, no network.
  • Every part labelled, so you see what each flag does before anything runs. explain does the same for any command, from your own man pages.
  • Ctrl+G in your normal shell (bash, zsh or fish) turns a line of English into the command, without running it.
  • Safe by default: destructive commands need a typed YES and say why; rm can go to the Trash; undo that reverses the last change.
  • fix that explains a failed command and offers a fix, and clishe check says what a command or script would do before you run it.
  • Learn as you go: after a few asks it's your turn to type it; practice lessons for basics, text tools and more, your own cheat sheet and progress; tour explains your computer.
  • AI is optional and local (Ollama, llama.cpp, LM Studio...). Nothing leaves your machine unless you turn on a cloud provider.
  • It learns from you: what you teach or approve is remembered once it has worked. A command that fails is never saved.
Each part labelled Is this safe to run?
compress a folder: tar -czvf with each part labelled clishe check on curl piped into sudo bash
fix that clishe tour
fix that after cd Documnets offers cd Documents clishe tour: your Linux and your computer

Every feature, with examples: Using Clishe.

Install

Requirements: Linux or macOS, bash (any version, including the 3.2 that macOS ships) and Python 3.9+ (standard library only).

macOS: works with the built-in bash, zsh and fish. Install hints use Homebrew, deleted files go to the Trash, and clishe tour explains your Mac. Most commands work the same as on Linux; where macOS's BSD tools differ, explain reads your Mac's own man pages. Windows: use WSL.

With pipx (recommended)

pipx installs command-line tools in their own space, and most distros package it (sudo apt install pipx, sudo dnf install pipx, sudo pacman -S python-pipx). On a Mac: brew install pipx.

pipx install clishe

Update with pipx upgrade clishe. (uv tool install clishe works too, and pipx install git+https://github.com/Sym-jay/clishe gets the latest unreleased code.) There's also a man page: man clishe.

With the install script

curl -fsSL https://raw.githubusercontent.com/Sym-jay/clishe/main/install.sh | bash

This needs git. It clones the repo into ~/.clishe-src and links a clishe launcher into ~/.local/bin. If that directory isn't on your PATH, the installer tells you what to add. To read the script first, view install.sh, or once you have Clishe, clishe check install.sh.

From a clone

git clone https://github.com/Sym-jay/clishe.git
cd clishe
./clishe.sh

Uninstall

pipx uninstall clishe                       # if you used pipx
rm -rf ~/.clishe-src ~/.local/bin/clishe    # if you used the install script
# Optional: also remove your saved data and config
rm -rf ~/.local/share/clishe ~/.config/clishe

Using it

Start a session with clishe and type what you want. Type help for tips, and exit (or Ctrl-D) to leave.

For Ctrl+G at your normal prompt, add one line to your shell's startup file, then open a new terminal. It also turns on Tab completion for clishe.

eval "$(clishe --init bash)"   # in ~/.bashrc
eval "$(clishe --init zsh)"    # in ~/.zshrc
clishe --init fish | source    # in ~/.config/fish/config.fish

Session commands

Type What it does
help Show tips
learned List the phrases you've taught
teach Teach a phrase and its command, or fix a wrong one
forget <phrase> Forget a phrase you taught
practice [lesson] Hands-on exercises in a throwaway folder (try practice text, or practice list to see all lessons)
progress The commands you've learned to type yourself
setup Find or set up a local AI model
tour A quick tour of your own computer
doctor Check your setup, and how to fix anything wrong
sheet Your own cheat sheet of the commands you've learned
explain <command> Explain a command and its flags
what does this mean Explain the output of the command you just ran
fix that Explain why the last command failed, and offer a fix
undo that Reverse the last change (shows the command first)
check <command> / is this safe: <command> What a command or script would do, without running it
exit / Ctrl-D Leave

One-shot mode

clishe explain "tar -xzvf"        # explain a command, then exit
clishe "show me disk usage"       # look up a phrase in your KB / seed KB (does not run it)
clishe --list                     # the phrases you've taught, tab-separated
clishe practice [lesson]          # try clishe practice text, or use --list to see all lessons
clishe progress                   # what you've learned
clishe setup                      # find or set up a local AI model
clishe tour                       # a quick tour of your computer
clishe doctor                     # check your setup (exit 1 if something's broken)
clishe sheet                      # your cheat sheet (clishe sheet > cheatsheet.txt)
clishe check '<command>'          # is it safe to run? (or a script: clishe check setup.sh)
clishe orbs                       # the nine thinking orbs Clishe shows while it waits
clishe --init bash                # the Ctrl+G shortcut, for your ~/.bashrc
clishe --init zsh                 # the same, for your ~/.zshrc
clishe --init fish                # the same, for ~/.config/fish/config.fish (pipe it to source)
clishe --plain ...                # words instead of symbols and drawings (screen readers)
clishe --version
clishe --help

Learn more

  • Using Clishe: every feature, with example sessions, and the Ctrl+G shortcut in detail.
  • Configuration: where Clishe keeps its files, plain mode for screen readers, and every setting.
  • AI providers: clishe setup, Ollama, llama.cpp, LM Studio and the opt-in cloud provider.
  • How it works: the steps Clishe takes, security, and the project layout.
  • Troubleshooting: start with clishe doctor.
  • Changelog and issues: what's new and what's planned.

Contributing

Contributions are welcome, and there are good first issues, many of them data only. CONTRIBUTING.md covers where things go and how to test them:

pip install -e ".[dev]"
python -m pytest tests/ -q && ruff check .
bash tests/test_shell_functions.sh

Security: Clishe runs commands with eval, and its safety check is not exhaustive, so read what you're about to run and don't run it as root. Details: How it works. To report a way around the checks, see SECURITY.md.

License

MIT. See LICENSE.

Command summaries and examples come from tldr-pages, © the tldr-pages team and contributors, CC BY 4.0. See NOTICE.md for details and what was changed.

About

A local, offline-first helper for people new to Linux. Say what you want in plain English, see the real command before it runs, and learn the shell as you go. AI is optional.

Topics

Resources

Contributing

Security policy

Stars

5 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages