Skip to content

Add the Git tool - #462

Draft
shellicar wants to merge 13 commits into
mainfrom
feature/git-tool
Draft

Add the Git tool#462
shellicar wants to merge 13 commits into
mainfrom
feature/git-tool

Conversation

@shellicar

Copy link
Copy Markdown
Owner

Summary

  • Replaces raw git via Exec/ExecV3 with a dedicated Git tool: one named action per operation instead of a free-text git <args> proposer.
  • Read-only, staging, branching, and remote-sync operations are approvable by default; history-rewriting and force operations always ask; fully destructive operations (discard, force-remove) are opt-in only.
  • Git_Continue/Git_Abort auto-detect whether a merge or rebase is in progress, including inside a linked worktree.
  • Closes a git argument-injection path: ref/branch/remote-shaped fields can no longer be used to smuggle a git flag (e.g. --upload-pack=, --exec=) into the command.

@shellicar shellicar added enhancement New feature or request pkg: claude-sdk-tools The SDK tools package security Security fixes labels Jul 20, 2026
@shellicar shellicar self-assigned this Jul 20, 2026
@shellicar
shellicar requested a review from bananabot9000 July 20, 2026 11:29
@shellicar shellicar added this to the 1.0 milestone Jul 20, 2026
@shellicar
shellicar force-pushed the feature/git-tool branch 2 times, most recently from 8f9138d to cb3faf1 Compare July 21, 2026 10:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request pkg: claude-sdk-tools The SDK tools package security Security fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant