An oh-my-zsh plugin that transforms natural language requests into executable shell commands using Claude Code. Inspired by iafan.
Your request is converted to a ready-to-run command and placed in the zsh buffer so you can review (and optionally edit) it before pressing Enter.
- oh-my-zsh
- Claude Code CLI installed and authenticated (
claude) jq(brew install jq/apt install jq)
-
Clone or copy the
at-commanddirectory into your oh-my-zsh custom plugins folder:git clone https://github.com/zizzfizzix/zsh-ai-plugin \ ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/at-commandOr manually copy
at-command.plugin.zshinto a new folder~/.oh-my-zsh/custom/plugins/at-command/. -
Add
at-commandto the plugins list in~/.zshrc:plugins=(... at-command)
-
Reload your shell:
source ~/.zshrc
git -C ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/at-command pull
source ~/.zshrc@ <natural language request>@ list all jpg files larger than 5mb
@ show my ipv4 address
@ find and kill the process on port 3000
@ compress this directory into a tar.gz
@ show disk usage sorted by sizeThe generated command appears in your zsh buffer — review it, then press Enter to run (or edit it first).
| Variable | Default | Description |
|---|---|---|
AT_COMMAND_MODEL |
haiku |
Claude model to use |
AT_COMMAND_PROMPT |
~/.at_prompt |
Path to the system prompt file |
Set these in your ~/.zshrc before the plugins=(...) line, e.g.:
export AT_COMMAND_MODEL=opus
export AT_COMMAND_PROMPT=~/.config/at_promptOn first use, a default system prompt is created at ~/.at_prompt. You can customize it to tailor command generation for your environment (e.g. preferred tools, aliases, or coding style). Your platform and shell are detected and injected automatically.
Always review the generated command before running it. LLMs can make mistakes, especially with file operations or deletions.