Skip to content

Add default permissions for create-pull-request#290

Merged
dsyme merged 3 commits intomainfrom
def
Sep 3, 2025
Merged

Add default permissions for create-pull-request#290
dsyme merged 3 commits intomainfrom
def

Conversation

@dsyme
Copy link
Copy Markdown
Collaborator

@dsyme dsyme commented Sep 3, 2025


When `create-pull-request` or `push-to-branch` are configured, these Claude tools are automatically added:

- **Edit**: Allows editing existing files
- **MultiEdit**: Allows making multiple edits to files in a single operation
- **Write**: Allows creating new files or overwriting existing files
- **NotebookEdit**: Allows editing Jupyter notebook files

Along with the file editing tools, these Git commands are also automatically whitelisted:

- `git checkout:*`
- `git branch:*`
- `git switch:*`
- `git add:*`
- `git rm:*`
- `git commit:*`
- `git merge:*`

@dsyme dsyme merged commit 62395b7 into main Sep 3, 2025
8 checks passed
@dsyme dsyme deleted the def branch September 3, 2025 11:51
}

// Add Git commands and file editing tools when safe-outputs includes create-pull-request or push-to-branch
if safeOutputs != nil && needsGitCommands(safeOutputs) {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should moved into the ActionEngine interface to allow this kind of customization on other engines.

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