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.

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)

noidea keys

Manage API keys stored in the system keyring.

noidea keys list    # List 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/noidea.toml:

[llm]
model = "claude-sonnet-4-6"
max_tokens = 1024
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.

Requirements

  • Python 3.13+
  • 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.3.0.tar.gz (5.2 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.3.0-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for noidea-0.3.0.tar.gz
Algorithm Hash digest
SHA256 2face7d007762a18dfef1f4031b22ef55d92b74adb9f5f995d22b6146bc575e9
MD5 06d963c9f7b12790778204e2c7225701
BLAKE2b-256 21b7f7dfc421b18a4abe949dd0a799ee5ea40106e7aca5a1e19521650bf1ae2c

See more details on using hashes here.

Provenance

The following attestation bundles were made for noidea-0.3.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.3.0-py3-none-any.whl.

File metadata

  • Download URL: noidea-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 7.1 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.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a5250864ca31c34899c0c57c688e3b50de7d4eb584ba5656f0f44013dd781ce2
MD5 74dde98169cba42d9e3115b5450d32be
BLAKE2b-256 c8bf84efd9dd1d06c55e1ea3e2d9ddda049b2b14d6a6545232050d6d3ea129ec

See more details on using hashes here.

Provenance

The following attestation bundles were made for noidea-0.3.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