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 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-local

with pipx :

$> pipx install gitsage-local

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.5.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.5-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file gitsage_local-0.1.5.tar.gz.

File metadata

  • Download URL: gitsage_local-0.1.5.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.5.tar.gz
Algorithm Hash digest
SHA256 b4eec02137909fd73e659e6a4a5033610841eb15c8ebb7da3a0ebacddfda1849
MD5 7a1d5fe7d853c310629f363435217200
BLAKE2b-256 e6c8c84076d233ccc384029ed6c3f3a7202363311319734694546f098ba258cf

See more details on using hashes here.

File details

Details for the file gitsage_local-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: gitsage_local-0.1.5-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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 1ef479c1f5e78476406dd1de771057b7ede3b405f4423c2f75bc05f6482cdceb
MD5 c9a7a98884cad03ecccf1e48a307042f
BLAKE2b-256 5cf7693d140191f58b0a8c86f38d291cbe1e551b7382dc0b30590e5310ac964e

See more details on using hashes here.

Release history Release notifications | RSS feed

0.1.6

2 files

This release

0.1.5 This release

2 files

0.1.4

2 files

0.1.3

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