Natural language to shell command.
Project description
autocmd
Natural language to shell command.
Installation
# Install from PyPI (recommended)
uv tool install autocmd-cli
# Or directly from git
uv tool install git+https://github.com/dvirzg/autocmd.git
Quick start
The first time you run autocmd, it will:
- Ask for your Anthropic API key – saved to
~/.config/autocmd/config. - Offer shell integration (recommended) – adds a small wrapper to
.zshrc/.bashrcso commands appear on your prompt, ready to edit before running.
Trigger setup with any command:
autocmd "check git status"
After setup:
autocmd "git fetch all updates from remote"
# → git fetch --all (lands on your prompt, you hit Enter or edit)
More examples:
autocmd "show git log for last 5 commits"
autocmd "find all python files modified today"
autocmd "kill process on port 3000"
Configuration
Model selection
By default autocmd uses claude-haiku-4-5-20251001. To change it, set AUTOCMD_MODEL:
# One-time use
AUTOCMD_MODEL=claude-sonnet-4-20250514 autocmd "your command here"
# In your shell config (~/.zshrc or ~/.bashrc)
export AUTOCMD_MODEL=claude-sonnet-4-20250514
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.1.4.tar.gz.
File metadata
- Download URL: autocmd_cli-0.1.4.tar.gz
- Upload date:
- Size: 52.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7962785b54a3a6e3373fdd36a4348388ae0f7c9e9ab61f901f9b53ae4e910c6f
|
|
| MD5 |
d169f24f0c35d2e5c8cea39ba2ae6d04
|
|
| BLAKE2b-256 |
d70adee2c6f5269808cdab0d017aec35d4e42bdd498574281882bb792058facc
|
Provenance
The following attestation bundles were made for autocmd_cli-0.1.4.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.1.4.tar.gz -
Subject digest:
7962785b54a3a6e3373fdd36a4348388ae0f7c9e9ab61f901f9b53ae4e910c6f - Sigstore transparency entry: 725673880
- Sigstore integration time:
-
Permalink:
dvirzg/autocmd@7f8ede13286e0c8c904bddccf218e7f4b424c756 -
Branch / Tag:
refs/tags/v0.1.4 - Owner: https://github.com/dvirzg
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@7f8ede13286e0c8c904bddccf218e7f4b424c756 -
Trigger Event:
release
-
Statement type:
File details
Details for the file autocmd_cli-0.1.4-py3-none-any.whl.
File metadata
- Download URL: autocmd_cli-0.1.4-py3-none-any.whl
- Upload date:
- Size: 5.8 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 |
291ad334b9ed6dd7d9b91b085eaf7b8005b19d4e5cd1ed8acf7242ee9cb1317a
|
|
| MD5 |
5076a92688362fd3e54866dfbce457cd
|
|
| BLAKE2b-256 |
0dd983f080f5813d4478cc5da37fd567baeed0346833daaaa586078aab2e8c25
|
Provenance
The following attestation bundles were made for autocmd_cli-0.1.4-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.1.4-py3-none-any.whl -
Subject digest:
291ad334b9ed6dd7d9b91b085eaf7b8005b19d4e5cd1ed8acf7242ee9cb1317a - Sigstore transparency entry: 725673882
- Sigstore integration time:
-
Permalink:
dvirzg/autocmd@7f8ede13286e0c8c904bddccf218e7f4b424c756 -
Branch / Tag:
refs/tags/v0.1.4 - Owner: https://github.com/dvirzg
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@7f8ede13286e0c8c904bddccf218e7f4b424c756 -
Trigger Event:
release
-
Statement type: