docs(faq): correct rebase FAQ to match actual behavior#1370
Open
bymle wants to merge 1 commit into
Open
Conversation
The "Why won't Claude rebase my branch?" FAQ told users they could enable rebasing by passing `--allowedTools "Bash(git rebase:*)"` via claude_args. This does not work: the system prompt built in src/create-prompt/index.ts unconditionally instructs Claude that it cannot merge, rebase, or perform branch operations beyond creating and pushing commits, so Claude declines rebase requests regardless of the allowed tools. Update the FAQ to describe the actual behavior and point users to the real workaround (rebase locally or via the Claude Code CLI). Closes anthropics#1286
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
The Why won't Claude rebase my branch? FAQ entry tells users they can enable rebasing by adding
--allowedTools "Bash(git rebase:*)"toclaude_args. This doesn't work in practice.The system prompt built in
src/create-prompt/index.tsunconditionally lists rebasing under "What You CANNOT Do":There is no condition on the contents of
--allowedTools, so Claude follows the system prompt and declines the request even when the git tool is explicitly allowed. As reported in #1286, users (including the reporter) followed the FAQ's guidance and assumed it was working when it was not.Change
Docs-only. Update the FAQ to:
Bash(git rebase:*)does not override this, andNo code or behavior changes.
Closes #1286