Metadata-Version: 2.4
Name: noidea
Version: 0.1.0
Summary: AI powered commit suggestions
License: MIT
License-File: LICENSE
Author: AccursedGalaxy
Author-email: robinbohrer7@gmail.com
Requires-Python: >=3.13
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Requires-Dist: anthropic (>=0.85.0,<0.86.0)
Requires-Dist: python-dotenv (>=1.2.2,<2.0.0)
Requires-Dist: typer (>=0.24.1,<0.25.0)
Description-Content-Type: text/markdown

# noidea

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

## Install

```bash
pipx install noidea
export ANTHROPIC_API_KEY=sk-ant-...
noidea init
```

> Requires [pipx](https://pipx.pypa.io). 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.

## Commands

### `noidea init`
Installs the git hook. Backs up any existing `prepare-commit-msg` as `.bak`. Respects `core.hooksPath`.

### `noidea update`
Updates noidea to the latest version via `pipx upgrade noidea` (falls back to `pip install --upgrade noidea`).

### `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)
```

## Config

Optional config at `~/.noidea/noidea.toml`:

```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.

## Requirements

- Python 3.13+
- `ANTHROPIC_API_KEY` env var

