Skip to main content

Add your description here

Project description

gut

Trust your guts on git🫀

gut is an AI-powered CLI tool that executes all the git/gh commands you want from natural language queries.

Set-up and Execution

User settings

gut is available as a python package, and cna be easily installed with:

pip install gut-ai

You then just need to set GROQ_API_KEY as an environment variable, either exporting it on the console or in a .env file in the root folder where you are executing gut, and then you can simply launch it via:

gut

Developer settings

You can clone this repository:

git clone https://github.com/AstraBert/gut
cd gut/

And then install the needed dependencies with uv:

uv sync

You then just need to set GROQ_API_KEY as an environment variable, either exporting it on the console or in a .env file in the root folder where you are executing gut, and then you can simply launch it via:

uvx --from . gut

How Does It Work?

gut leverages an AI-powered workflow (designed with llama-index-workflows), whose steps are:

  • Choose the main command to execute between git and gh based on the user's requirements
  • Choose the command/subcommand and options to employ with the main command (e.g. add . for git if the user asked to add local changes to git)
  • Produce an explanation for the command
  • Expose the command and the explanation to the user, asking fot their feedback (human-in-the-loop or HITL approach).
  • If the feedback is positive, the command gets executed, otherwise the workflow restarts from the beginning, re-using the initial instructions and the feedback that the user provided.

The whole workflow runs in a Rich console and leverages structured inputs (through XML/JSON representations of Pydantic models) and outputs.

Contributing

Contributions are always welcome - make sure to read the contributions guide before submitting yours!

License

This project is provided under an MIT License.

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

gut_ai-0.1.0.tar.gz (71.6 kB view details)

Uploaded Source

Built Distribution

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

gut_ai-0.1.0-py3-none-any.whl (9.3 kB view details)

Uploaded Python 3

File details

Details for the file gut_ai-0.1.0.tar.gz.

File metadata

  • Download URL: gut_ai-0.1.0.tar.gz
  • Upload date:
  • Size: 71.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.0

File hashes

Hashes for gut_ai-0.1.0.tar.gz
Algorithm Hash digest
SHA256 1781e6c2fad58c6967cd5ab1d7f411a6ad3d75c3b67d9ffa0ad6403d7e62e42a
MD5 a437b62921b270f9f07bbd248c207520
BLAKE2b-256 933c8f1953c2dadfec89085618a1aa8df26dcb8cb89d69cb1435ac91a9f8ec51

See more details on using hashes here.

File details

Details for the file gut_ai-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: gut_ai-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 9.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.0

File hashes

Hashes for gut_ai-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c695ef5f28db279ef8b6b63152769a9fc597e21c4fb0a820046f5a6439930933
MD5 208d7afda40fc3d8a037d1b89812c886
BLAKE2b-256 55f13ce214ccb6df49335f6a5700c2e74775deb688929e0c6f46328ea74aa242

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