CLI agent that collaborates with you by planning and running shell commands via a local Ollama model
Project description
gerg is a command‑line agent that uses your local Ollama model to plan shell commands for a natural‑language task. It can either output the command to help, or execute it for you.
Safety-first: by default gerg asks before running anything. Use
--yesto auto‑run, and see--allow-unsafeto permit risky commands.
Install
pip install gerg
Quick start
- Make sure Ollama is running locally (default
http://127.0.0.1:11434). - Run gerg:
gerg "list all files in my Downloads directory"
- Approve the plan or run automatically:
gerg -y "compress the Downloads folder into downloads.zip"
- Need multi-step planning and commands. Enable the --think flag for Chain of Thought planning and execution.
- Change default model with:
export GERG_MODEL="DESIRED MODEL"
Examples
# Only print commands (never execute)
gerg --print "find the 5 largest files under ~/Downloads"
# Use a different model just for this run
gerg -m llama3:8b "init a git repo, make first commit"
# Work from another directory (without cd'ing first)
gerg --cwd ~/Projects/website "build the site and serve locally"
gerg --think "create a .txt file in my Documents folder with a simple rhyme"
Project details
Release history Release notifications | RSS feed
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 gerg-0.0.1.tar.gz.
File metadata
- Download URL: gerg-0.0.1.tar.gz
- Upload date:
- Size: 11.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
acc72d18a7830da545ff34c8725e4e580b6bdb3230510d695b3bdbaded4c590a
|
|
| MD5 |
11464b8298e9b00df9ca6a749d3c701b
|
|
| BLAKE2b-256 |
75fb7258a827b86f78d6b421522898583f8efc4a31b0978d6b62ddd1a1eae448
|
File details
Details for the file gerg-0.0.1-py3-none-any.whl.
File metadata
- Download URL: gerg-0.0.1-py3-none-any.whl
- Upload date:
- Size: 11.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
680b8653d6af115490ba2fa7ac403fed8ae324aa32e6a83e5c4f1377fce78785
|
|
| MD5 |
96a1f03fabbc4652ecd660667aa3967f
|
|
| BLAKE2b-256 |
398d6c57524ef2b1f607de7d3840256bf91c01bc3f4d0c99445d007ca230ddef
|