Skip to content

Conversation

@vavasilva
Copy link
Owner

Summary

  • Added file categorization (added, deleted, modified) to DiffResult type
  • Updated getStagedDiff, getFileDiff, and getLastCommitDiff to detect file operations
  • Updated context building to show categorized files, helping LLM generate better commit messages

This improves commit message quality for file deletions and renames by giving the LLM explicit context about what operations were performed.

Test plan

  • All tests pass
  • Build succeeds
  • Manual test: delete a file and verify commit message is appropriate (e.g., "chore: remove file" instead of "fix: update file")

🤖 Generated with Claude Code

@vavasilva vavasilva merged commit 15da942 into main Jan 5, 2026
3 checks passed
@vavasilva vavasilva deleted the feat/improve-prompt-context branch January 5, 2026 18:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants