semantic-release-ai-notes
v0.3.0
Published
AI-powered release notes for semantic-release
Maintainers
Readme
semantic-release-ai-notes
AI-powered release notes for semantic-release, using Claude.
Instead of reformatting commit messages, this plugin gives a Claude agent read-only access to your codebase. It explores the actual code changes, understands what was done, and writes release notes a human would write.
Install
npm install -D semantic-release-ai-notesUsage
Replace @semantic-release/release-notes-generator in your config:
{
"plugins": [
"@semantic-release/commit-analyzer",
"semantic-release-ai-notes",
"@semantic-release/npm",
"@semantic-release/github"
]
}Set ANTHROPIC_API_KEY in your CI environment.
How it works
- Gets the list of commits since the last release
- Runs
git diff --statto see which files changed - Reads the most important changed files to understand what was done
- Reads
brand.md(if present) to match your project's voice - Generates clean, grouped release notes
If the AI call fails for any reason, it falls back to basic commit-list notes. A release is never blocked.
Configuration
["semantic-release-ai-notes", {
"model": "claude-haiku-4-5",
"brandFile": "brand.md",
"style": "concise",
"maxTurns": 15
}]| Option | Default | Description |
|--------|---------|-------------|
| model | claude-haiku-4-5 | Claude model to use |
| brandFile | brand.md | Path to a voice/tone guide (optional) |
| style | concise | "concise" (bullet points) or "detailed" (short paragraphs) |
| maxTurns | 15 | Max agent tool-use rounds (caps cost) |
All options are optional. Zero config works.
Voice & tone
If your project has a brand.md (or any voice guide), the agent reads it and matches the tone. This is optional — without it, the agent writes clean, neutral developer-facing notes.
See brand.md for the open standard.
Requirements
ANTHROPIC_API_KEYenvironment variablesemantic-release >= 20.0.0gitavailable in PATH (forgit diff)
License
MIT
