feat: enhance review_pending_changes tool visibility and triggers

- Update tool description to strongly encourage Claude to use it before commits
- Add 'ALWAYS use this tool before creating any git commit\!' emphasis
- Add comprehensive trigger words in TOOL_TRIGGERS including:
  - 'before commit', 'about to commit', 'ready to commit'
  - 'review pending changes', 'check my changes'
  - 'pre-commit', 'before I commit', 'should I commit'
- Make it clear this is essential for code quality and preventing bugs
- All tests pass (65 tests), ruff linting clean, black formatting applied
This commit is contained in:
Fahad
2025-06-09 14:12:55 +04:00
parent c5ac7a08df
commit b179c0ad48
2 changed files with 24 additions and 6 deletions

View File

@@ -67,4 +67,21 @@ TOOL_TRIGGERS = {
"analyze file",
"analyze these files",
],
"review_pending_changes": [
"review pending changes",
"check my changes",
"validate changes",
"pre-commit review",
"before commit",
"about to commit",
"ready to commit",
"review my git changes",
"check git changes",
"validate my changes",
"review staged changes",
"review unstaged changes",
"pre-commit",
"before I commit",
"should I commit",
],
}