Skip to main content

AI powered commit suggestions

Project description

noidea

AI-powered commit message suggestions via git hooks. Stages a diff, sends it to Claude, and pre-fills your commit editor.

Demo

noidea demo

Install

pipx install noidea
noidea init

Requires pipx. Alternatively: pip install noidea

noidea init installs a prepare-commit-msg hook in your repo. From then on, every git commit opens your editor with a suggested message pre-filled.

API Key Setup

noidea needs an Anthropic API key. Three options (checked in order):

  1. Keyring (recommended): noidea keys add
  2. Environment variable: export ANTHROPIC_API_KEY=sk-ant-...
  3. .env file: ANTHROPIC_API_KEY=sk-ant-... in a .env file

Commands

noidea init

Installs the prepare-commit-msg hook. Backs up any existing hook as .bak. Respects core.hooksPath.

noidea suggest

Generates a commit message from the current staged diff and prints it.

Options:
  -F, --file TEXT    Write message to file instead of stdout (used by the hook)
  -M, --model TEXT   Override the model used for generation

noidea keys

Manage API keys stored in the system keyring.

noidea keys show    # Show saved keys
noidea keys add     # Add a key interactively
noidea keys remove  # Remove a key interactively

noidea test

Sends a test message to the Claude API to verify your key and connectivity work.

noidea update

Updates noidea via pipx upgrade noidea (falls back to pip install --upgrade noidea).

noidea --version

Prints the current version.

Config

Optional config at ~/.noidea/config.json:

{
  "llm": {
    "max_tokens": 1024,
    "small_model": "claude-haiku-4-5",
    "large_model": "claude-sonnet-4-6",
    "context_limit": 600000,
    "system_prompt": "Your custom prompt here"
  }
}

Falls back to built-in defaults if no config file exists. The default prompt follows conventional commits style (feat/fix/refactor/etc.) with a 72-character subject line limit. Smaller diffs use small_model (Haiku) for speed; larger diffs automatically switch to large_model (Sonnet).

Requirements

  • Python 3.10+
  • Anthropic API key

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

noidea-0.4.0.tar.gz (5.6 kB view details)

Uploaded Source

Built Distribution

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

noidea-0.4.0-py3-none-any.whl (7.6 kB view details)

Uploaded Python 3

File details

Details for the file noidea-0.4.0.tar.gz.

File metadata

  • Download URL: noidea-0.4.0.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for noidea-0.4.0.tar.gz
Algorithm Hash digest
SHA256 5fe637791d9ca23e1c559876a0b4d82ac6f03b1a12b61eb0e85d96860552699a
MD5 7e982e89c6a2225c5091b9291dae0046
BLAKE2b-256 cb634bf32353868dd27d13c705b7968464cdf235c0c75ce26c63afc132c42418

See more details on using hashes here.

Provenance

The following attestation bundles were made for noidea-0.4.0.tar.gz:

Publisher: publish.yml on AccursedGalaxy/noidea

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file noidea-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: noidea-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 7.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for noidea-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 12bdb1a72d97014b180d17793719dcd48c3891fe82a1d210547b6df31e77dada
MD5 4e6290e7cf0230dcc86ac0b15ca7da3b
BLAKE2b-256 30e99460d9f0335af213ee70205e1c6b1299978d02e2e8282c300e8c5ad3c988

See more details on using hashes here.

Provenance

The following attestation bundles were made for noidea-0.4.0-py3-none-any.whl:

Publisher: publish.yml on AccursedGalaxy/noidea

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page