Discover MCPs & agents
Loading MCPs and agents…
Loading MCPs and agents…
AI-powered Zsh plugin for intelligent CLI command completion using LLMs with LoRA fine-tuning.
Jump to setup instructionsFetched from the repository for this visit.
Inline command completion for Zsh:
> key on a US layout) to accept — Tab stays normal Zsh completionThis project ships a ready-to-use runtime and also includes training utilities for custom adapters.
https://github.com/user-attachments/assets/a5f967e6-716a-45a2-895a-26e8a53e452f
Download Trailer.mov (raw file) · Try the demo in your browser — same flow as the trailer; press Space to advance, ← to go back.
POSTDISPLAY + region_highlight)git push force flags unless explicitly typed~/.cache/zsh-autocomplete.sock)All runtime inference is local on your machine.
git clone https://github.com/duoyuncloud/zsh-llm-cli-autocomplete-tool.git
cd zsh-llm-cli-autocomplete-tool
./install.sh
source ~/.zshrc
Then type in your shell; when a grey suggestion appears, press Shift+. (>) to accept it. For example:
git ad → git add ...git co → smart commit suggestionnpm r → history/model-aware completioninstall.sh Doesvenvduoyuncloud/zsh-autocomplete-lora)~/.zshrcpython -m model_completer.daemoninstall.sh edits your shell config. If you want completions off without uninstalling, use ai-disable (see below).
src/scripts/zsh_autocomplete.plugin.zshpython -m model_completer.daemonsrc/model_completer/autocomplete_daemon.pyThe plugin gathers lightweight context (cwd, git info, scripts/targets, recent commands) and sends it to the daemon for completion.
After sourcing the plugin:
ai-help — list available ai-* commands and what they doai-setup — install/download/start helpersai-status — show daemon/model/enabled stateai-enable / ai-disable — turn completions on or off (no need to comment out ~/.zshrc lines)ai-restart — restart daemonai-debug — quick diagnosticsCommit intent is detected early (for partial prefixes like git c, git co, git com).
When commit intent is detected:
git commit -m "type: subject"This repo uses both:
git commit, short ambiguous git ... inputs can prefer git push when transition confidence is strong)This keeps strong personalized prefix matching while reducing repetitive wrong-next-command loops.
~/.cache/zsh-autocomplete.log~/.cache/zsh-autocomplete.sock~/.cache/zsh-autocomplete.pidIf completions do not appear:
ai-status
ai-debug
ai-restart
Training-related files are intentionally kept in this repository:
src/training/*requirements-training.txtrun_training.shupload_to_huggingface.shTypical flow (advanced):
pip install -r requirements-training.txt
./run_training.sh
./upload_to_huggingface.sh
You can override base/repo through environment variables in scripts:
BASE_MODEL_ID=...HF_REPO_ID=...ADAPTER_DIR=...src/scripts/ — Zsh pluginsrc/model_completer/ — daemon/runtime/CLIsrc/training/ — training and adapter utilitiesdocs/ — usage and behavior docsconfig/default.yaml — default config valuesMIT. See LICENSE.
GitHub checked 160h ago - refresh overdue. Recently viewed repositories target hourly refresh.
Find a documented setup for your client. No sign-in, installation, or tool execution.
If this MCP is also published on mcpchannel.ai, you can subscribe from Browse and use the gateway config there instead.