Skip to main content

GitSage

logo

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

gitsage_local-0.1.3.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

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

gitsage_local-0.1.3-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

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

Hashes for gitsage_local-0.1.3.tar.gz
Algorithm Hash digest
SHA256 362d17df2349df7e1fd1abd13c28bfbf4e047657ae9a057c919778aab6ba1b10
MD5 d130b8f66073e26b302b8ffae747895d
BLAKE2b-256 64deec9c8ab6d84305143c67ab3712dafe77363d41081eae05075c2eabec08e2

See more details on using hashes here.

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

Hashes for gitsage_local-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 d3eafa9341bc3cedfc349226157a3e3e5b00c4d0940ec83832d01bd7f61d52fd
MD5 5725c98ebd27f54c2bd1810b8bd15163
BLAKE2b-256 f0263875fa8a676e41483100a4a14e15bde04ed8de6aff9b5a79bd3e67e9891a

See more details on using hashes here.

Release history Release notifications | RSS feed

0.1.6

2 files

0.1.5

2 files

0.1.4

2 files

This release

0.1.3 This release

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page