Refactor git tools: replace 4 tools with 11 focused implementations#339
Merged
will-lamerton merged 15 commits intomainfrom Feb 5, 2026
Merged
Refactor git tools: replace 4 tools with 11 focused implementations#339will-lamerton merged 15 commits intomainfrom
will-lamerton merged 15 commits intomainfrom
Conversation
…onents for better consistency and error handling, simplified error handling across git tools, improved user feedback messages, removed redundant code in git-add and git-status, standardized parameter handling across all git operations, fixed typos and improved command descriptions
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Replaced the existing 4 git tools with 11 focused, well-designed tools that cover core git operations needed by a coding agent. A viable closing of #98 - I know this PR pulls away from that, but testing this PR makes git operations intelligent, automatic and easy to understand.
Changes
Deleted Tools:
git_smart_commit- Over-engineered, models can write commit messages directlygit_create_pr- Only generated templates, replaced with actual PR creationgit_branch_suggest- Unnecessary, models can suggest branch namesgit_status_enhanced- Replaced with simplergit_statusNew Tools (11):
git_status- Show repository status, branch, sync stategit_diff- Show unstaged, staged, or branch diffsgit_log- View commit history with filtersgit_add- Stage files for commitgit_commit- Create commitsgit_push- Push to remotegit_pull- Pull from remote with rebase optiongit_branch- List, create, switch, or delete branchesgit_stash- Save, list, apply, pop, or clear stashesgit_reset- Unstage files or reset commitsgit_pr- Create, view, or list GitHub PRs (via gh CLI)Improvements
Testing
Updated
git-tools.spec.tsxto individual test files for all tools improving coverage.Bonus: If git is not installed, tools won't be registered, saving ~2,000-4,000 tokens.