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
- utilitaire de commande pour gérer le presse-papier (ex: wl_clipboard, xclip, pbcopy, clip, etc..)

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: gitsage_local-0.1.6.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.6.tar.gz
Algorithm Hash digest
SHA256 0958732dcfde215d2dcec1fe772c5baa5af3c29bd7cd0525184bc94910dc4ac3
MD5 eace18953832e5fe449044593bca77ae
BLAKE2b-256 523908a190b4ca74ab8641205b89f9def69638e910f8474e4df399a54a1c7468

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gitsage_local-0.1.6-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.6-py3-none-any.whl
Algorithm Hash digest
SHA256 76465617441da1b58f965b55c473b66750bf9b10c790390a55864f5527170950
MD5 dc933fcf028ebb2c6346941f39565dbc
BLAKE2b-256 987bab5194142ae44d520805ecc9485a6c08f72dc821ce8f64348d32ae79d45c

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.6 This release

2 files

0.1.5

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