Skip to content

Tjiba/claude-commit-jetbrains

Repository files navigation

Claude Commit Message — JetBrains Plugin

Generate meaningful, conventional Git commit messages straight from your IDE.

image


Features

  • One-click generation from the commit dialog toolbar or the VCS menu
  • Conventional Commits format by default (type(scope): summary)
  • Three generation modes — no internet? No problem
    • AUTO — tries local Claude CLI first, falls back to the Anthropic API
    • LOCAL — runs any local command (e.g. claude -p "{prompt}")
    • API — calls the Anthropic API directly with your key
  • Latest Claude Models — Opus 4.7, Sonnet 4.6, Haiku 4.6 + more
  • Effort Level Control — Choose from MINIMAL to MAXIMUM effort (100-500 tokens, 0.0-0.7°C)
  • Smart diff scoping — uses staged changes, selected files, or the full working-tree diff
  • Customizable prompt — edit the system prompt and use {diff} as a placeholder
  • Live model list — refresh available Claude models directly from the settings panel
  • Secure key storage — API key stored in the IDE's Password Safe (never in plain text)
  • i18n — English and French supported

image


Requirements

Requirement Version
JetBrains IDE IntelliJ IDEA 2024.2+ (and other JetBrains IDEs)
JDK 17+

Installation

Install from the JetBrains Marketplace (coming soon), or build from source:

./gradlew runIde

Configuration

Open Settings → Tools → Claude Commit.

Setting Description
API Key Your Anthropic API key (stored securely in Password Safe)
Model Select from latest Claude models (Opus 4.7, Sonnet 4.6, Haiku 4.6, etc.)
Effort Level Control computational investment: MINIMAL → MAXIMUM (100-500 tokens)
Refresh models Fetches the latest model list from the Anthropic API
Generation mode AUTO, LOCAL, or API
Local command Command template with {prompt} placeholder
Max diff size Maximum number of characters sent to the model (1 000 – 100 000)
Custom prompt System prompt template — use {diff} to inject the Git diff

Local command examples

# macOS / Linux
claude -p '{prompt}'

# Windows (cmd.exe)
claude -p "{prompt}"

# Any other CLI tool
my-llm-tool --prompt "{prompt}"

AUTO mode behavior

Local Claude CLI available?
  ├── Yes → generate locally (fast, no API cost)
  └── No  → fall back to Anthropic API

Default prompt template

You are an assistant that writes professional Git commit messages.

Constraints:
- Reply only with the commit message.
- Preferred conventional format: type(scope): summary
- One title line <= 72 characters.
- Optional: one blank line then 2-4 short bullets.
- Base your response strictly on the provided diff.
- Do not invent changes that are not present.

Git Diff:
{diff}

What's New in v0.1.7?

🤖 Latest Claude Models

  • Claude Opus 4.7 (2025) - Most capable model, now default
  • Claude Sonnet 4.6 - Latest balanced model
  • Claude Haiku 4.6 - Latest fast model
  • Plus 6+ additional models from 2024-2025 releases

⚡ Effort Level Control

Choose how much computational effort Claude invests in your messages:

Level Tokens Temp Use Case
MINIMAL 100 0.0°C Fastest, most deterministic
LOW 150 0.1°C Quick & focused
MEDIUM 220 0.2°C Balanced (default)
HIGH 350 0.4°C Thorough & creative
MAXIMUM 500 0.7°C Most detailed & nuanced

🎯 Key Improvements

  • Better model naming (e.g., "claude opus 4.7" instead of machine IDs)
  • Enhanced settings UI with effort level dropdown
  • Improved API error handling with model fallback
  • Live model refresh from Anthropic API
  • Temperature control for creativity based on effort level

Development

# Run tests
./gradlew test

# Launch a sandboxed IDE instance
./gradlew runIde

License

MIT

About

Jetbrain Plugin - Generate high-quality Git commit messages in JetBrains IDEs using Claude

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages