Skip to main content

You have no idea what to write? We've got you.

Project description

noidea

Because you shouldn't have to think about commit messages.

Stages your diff, sends it to an AI, and pre-fills your commit editor — so you never have to write a commit message again.

PyPI Downloads Stars License


noidea demo

Quick Start

pipx install noidea
noidea init

That's it. Every git commit now opens your editor with a suggested message pre-filled.

Requires pipx. Alternatively: pip install noidea

API Key Setup

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

Method Command
Keyring (recommended) noidea keys add
Environment variable export ANTHROPIC_API_KEY=sk-ant-...
.env file ANTHROPIC_API_KEY=sk-ant-... in a .env file

Commands

Command Description
noidea init Install the prepare-commit-msg hook. Backs up any existing hook. Respects core.hooksPath.
noidea suggest Generate a commit message from the staged diff and print it.
noidea status Show current config, API key status, and hook installation.
noidea keys Manage API keys in the system keyring (show / add / remove).
noidea test Send a test message to Claude to verify connectivity.
noidea update Upgrade noidea via pipx (falls back to pip).
noidea --version Print the current version.

noidea suggest options

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

Config

Two optional config levels — both are config.json files:

  • User: ~/.noidea/config.json — applies everywhere
  • Repo: <repo>/.noidea/config.json — overrides user config

Precedence: built-in defaults → user config → repo config.

{
  "llm": {
    "max_tokens": 1024,
    "small_model": "claude-haiku-4-5",
    "large_model": "claude-sonnet-4-6",
    "context_limit": 600000,
    "temperature": 1.0,
    "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). temperature controls output creativity (0.0–1.0); the default of 1.0 maximises variety.

Contributing

See CONTRIBUTING.md for development setup and guidelines. This project follows TigerStyle for coding standards.

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-1.0.2.tar.gz (15.3 kB view details)

Uploaded Source

Built Distribution

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

noidea-1.0.2-py3-none-any.whl (19.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for noidea-1.0.2.tar.gz
Algorithm Hash digest
SHA256 ee657384ce8655b27e6af7c9e7555ed8f38505fdf7ea13eaef161ad28436242b
MD5 668a44bcbed93189a13b99c75f9ebcd5
BLAKE2b-256 87397b6814fe2694f1b19b12e719831ba25850e059050bf944c03d606435b1fd

See more details on using hashes here.

Provenance

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

File metadata

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

File hashes

Hashes for noidea-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 3b82ab3da7600c7be8c3761c5aeb0728485020134d216a39fc77548dfce3a1c2
MD5 767411bc3e5096df852dee926680ace6
BLAKE2b-256 7bf14b262f0fb017f981e0989c1b2c14d6c5174b4e38cb5a8e680a39e0d62119

See more details on using hashes here.

Provenance

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