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

Uploaded Python 3

File details

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

File metadata

  • Download URL: gitsage_local-0.1.4.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.4.tar.gz
Algorithm Hash digest
SHA256 4ff806b9b4163fc3c3295bc622e15f891d8e14802c18b75d4831d0db853b64e9
MD5 7c52eaa5f2eda0dd0e24f6d633f26156
BLAKE2b-256 eb90f3a1dbb9f0eb448a404604f10e24cc6a69d5c212a48ed5c1e0a6c9247dc2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gitsage_local-0.1.4-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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 c95809b8482add4f254a10bf026bca5ad5b85efd02d60c3fd73450f0f67fc3cd
MD5 52ce36d86f176a42b558a1a8f2fb52b9
BLAKE2b-256 8b7b2c67814022abad5d8a3f5d804803c50610756c2d59c3a50ecf0ec9b52eff

See more details on using hashes here.

Release history Release notifications | RSS feed

0.1.6

2 files

0.1.5

2 files

This release

0.1.4 This release

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