Skip to main content

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 --yes to auto‑run, and see --allow-unsafe to permit risky commands.

Install

pip install gerg

Quick start

  1. Make sure Ollama is running locally (default http://127.0.0.1:11434).
  2. Run gerg:
gerg "list all files in my Downloads directory"
  1. Approve the plan or run automatically:
gerg -y "compress the Downloads folder into downloads.zip"
  1. Need multi-step planning and commands. Enable the --think flag for Chain of Thought planning and execution.
  2. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gerg-0.0.1.tar.gz (11.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gerg-0.0.1-py3-none-any.whl (11.7 kB view details)

Uploaded Python 3

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

Hashes for gerg-0.0.1.tar.gz
Algorithm Hash digest
SHA256 acc72d18a7830da545ff34c8725e4e580b6bdb3230510d695b3bdbaded4c590a
MD5 11464b8298e9b00df9ca6a749d3c701b
BLAKE2b-256 75fb7258a827b86f78d6b421522898583f8efc4a31b0978d6b62ddd1a1eae448

See more details on using hashes here.

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

Hashes for gerg-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 680b8653d6af115490ba2fa7ac403fed8ae324aa32e6a83e5c4f1377fce78785
MD5 96a1f03fabbc4652ecd660667aa3967f
BLAKE2b-256 398d6c57524ef2b1f607de7d3840256bf91c01bc3f4d0c99445d007ca230ddef

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page