Provide explicit context to guide commit message framing.
Usage
# Direct text
hunknote --intent "Fix race condition in session handling"
# From file
hunknote --intent-file ./context.txt
# Both combined
hunknote --intent "Primary reason" --intent-file ./details.txt
How It Works
- Intent is injected into the LLM prompt
- Guides framing, not technical facts
- Diff content takes precedence over intent
- Different intents generate different messages (cached separately)
When to Use
| Scenario | Example |
|---|---|
| Non-obvious fix | "Fix memory leak under high load" |
| Business context | "Requested by security team" |
| Refactor motivation | "Prepare for API v2 migration" |
| Bug reference | "Fixes support ticket #1234" |