ccline — zsh plugin: type a thought at your prompt, LLM answers and runs the command #1484
jianshuo
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I built ccline — a zsh plugin that uses the
claude(orcodex) CLI as a natural language shell assistant.The approach is different from other AI shell tools: instead of adding a new command, ccline hijacks
command_not_found_handler. When you type something that is not a valid shell command:Any shell commands in the response appear in an interactive arrow-key menu; selecting one runs it in your live shell (so
cd,export, and history persist — unlike a subprocess).The simonw/llm project is exactly the kind of backend this could use too (with a small adapter). Currently supports
claudeCLI (preferred) andcodexCLI (fallback), auto-detected.Install:
curl -fsSL https://raw.githubusercontent.com/jianshuo/ccline/v0.2.2/install.sh | bashGitHub: https://github.com/jianshuo/ccline
All reactions