GitSage
Local AI powered commit generator based on ur repository local change.
Installation
Prerequirements
- Python>=3.10
- Python3-pip or Python3-pipx
- Python3-venv (optional if using pipx)
- Ollama
Start Ollama
$> ollama pull qwen3:8b (or the model of your choice)
Create your virtual environnent (if using pip)
$> python3 -m venv .venv
Use your virtual environnement
$> source .venv/bin/activate
Install GitSage
with pip :
(.venv) $> pip install gitsage
with pipx :
$> pipx install gitsage
Usage
$> gitsage <command> <options>
Commands
help Show this help message
commit Generate a commit message based on the staged changes
version/-v/--version Show the version of GitSage
Options
--copy Copy the output to the clipboard
Configuration
The default configuration file is located at ~/.config/gitsage/config.toml. If the file does not exist, it will be created with default values when you run the tool for the first time.
Default Configuration :
model = "qwen3:8b"
prompt = """You generate Git commit messages.
Analyze the following staged git diff.
Return ONLY a single Conventional Commit message.
Format:
type(scope): description
Rules:
- Use feat, fix, refactor, docs, test, chore, or perf
- Keep the description concise
- Use imperative mood
- Do not invent changes
- Do not include markdown
"""
ollama_url = "http://localhost:11434"
You can modify the model, prompt, and ollama_url values in the configuration file to customize the behavior of GitSage according to your needs.
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 gitsage_local-0.1.3.tar.gz.
File metadata
- Download URL: gitsage_local-0.1.3.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.14.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
362d17df2349df7e1fd1abd13c28bfbf4e047657ae9a057c919778aab6ba1b10
|
|
| MD5 |
d130b8f66073e26b302b8ffae747895d
|
|
| BLAKE2b-256 |
64deec9c8ab6d84305143c67ab3712dafe77363d41081eae05075c2eabec08e2
|
File details
Details for the file gitsage_local-0.1.3-py3-none-any.whl.
File metadata
- Download URL: gitsage_local-0.1.3-py3-none-any.whl
- Upload date:
- Size: 5.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.14.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d3eafa9341bc3cedfc349226157a3e3e5b00c4d0940ec83832d01bd7f61d52fd
|
|
| MD5 |
5725c98ebd27f54c2bd1810b8bd15163
|
|
| BLAKE2b-256 |
f0263875fa8a676e41483100a4a14e15bde04ed8de6aff9b5a79bd3e67e9891a
|