Natural language to shell command.
Project description
autocmd
Natural language to shell command.
Installation
uv tool install autocmd-cli
Quick start
First run triggers setup for shell integration and LLM provider:
autocmd "check git status"
After setup, commands appear on your prompt ready to edit:
autocmd "git fetch all updates from remote"
# → git fetch --all
autocmd "show git log for last 5 commits"
autocmd "find all python files modified today"
autocmd "kill process on port 3000"
Multiline prompts
Use triple quotes for multiline prompts or prompts with quotes:
autocmd '"""find all log files
that contain "ERROR"
modified in the last hour"""'
autocmd '"""search for files with 'important' in the name"""'
Providers
Supports multiple LLM providers:
- Anthropic (Claude) - default
- OpenAI (GPT)
- Groq (Llama)
- Grok (xAI)
- Deepseek
- Openrouter
Configure via autocmd --settings or environment variables:
export AUTOCMD_PROVIDER=groq
export GROQ_API_KEY=your_key_here
export AUTOCMD_MODEL=llama-3.3-70b-versatile # optional
Configuration
autocmd --settings # Configure provider, API key, model, and streaming
autocmd --reset # Reset all configuration
Development
git clone https://github.com/dvirzg/autocmd.git
cd autocmd
./dev-setup.sh
source ~/.zshrc # or ~/.bashrc
# Always uses the local code
autocmd-dev "check git status"
Uninstall
uv tool uninstall autocmd
Then remove the autocmd line from your shell config if you want to fully clean it up.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file autocmd_cli-0.2.2.tar.gz.
File metadata
- Download URL: autocmd_cli-0.2.2.tar.gz
- Upload date:
- Size: 459.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
abba2ed3b7fdaa987b5d97100599f6beaeebbb1432cb3e0bfbb5d501f01d26c9
|
|
| MD5 |
948eb1fa477d5d194c744b5571d7caf2
|
|
| BLAKE2b-256 |
9b6d5e3000a5a7095ba3b1b15938ece5050c5fc343c7cdca801760f0548bbf6f
|
Provenance
The following attestation bundles were made for autocmd_cli-0.2.2.tar.gz:
Publisher:
publish.yml on dvirzg/autocmd
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
autocmd_cli-0.2.2.tar.gz -
Subject digest:
abba2ed3b7fdaa987b5d97100599f6beaeebbb1432cb3e0bfbb5d501f01d26c9 - Sigstore transparency entry: 763494286
- Sigstore integration time:
-
Permalink:
dvirzg/autocmd@36870d72b46cbf4be300475891fabb1b522fe9de -
Branch / Tag:
refs/tags/v0.2.2 - Owner: https://github.com/dvirzg
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@36870d72b46cbf4be300475891fabb1b522fe9de -
Trigger Event:
release
-
Statement type:
File details
Details for the file autocmd_cli-0.2.2-py3-none-any.whl.
File metadata
- Download URL: autocmd_cli-0.2.2-py3-none-any.whl
- Upload date:
- Size: 9.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9e32297c05a25316ed4e5f1dc0da40f3491ce65ba81a169d6946d32157129e9a
|
|
| MD5 |
f483c021385768aab2fc7129036eda0e
|
|
| BLAKE2b-256 |
a64883bd70a2e6b5c0c7d5e8e5a24b8366c6aa34a27fd890f4e68ef3864c0d49
|
Provenance
The following attestation bundles were made for autocmd_cli-0.2.2-py3-none-any.whl:
Publisher:
publish.yml on dvirzg/autocmd
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
autocmd_cli-0.2.2-py3-none-any.whl -
Subject digest:
9e32297c05a25316ed4e5f1dc0da40f3491ce65ba81a169d6946d32157129e9a - Sigstore transparency entry: 763494288
- Sigstore integration time:
-
Permalink:
dvirzg/autocmd@36870d72b46cbf4be300475891fabb1b522fe9de -
Branch / Tag:
refs/tags/v0.2.2 - Owner: https://github.com/dvirzg
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@36870d72b46cbf4be300475891fabb1b522fe9de -
Trigger Event:
release
-
Statement type: