- Notifications
You must be signed in to change notification settings - Fork952
Open
Description
Describe the feature or problem you’d like to solve
For better or worse, Claude Code will periodically try to find the pull request for my current branch using this:
github:list_pull_requests(owner: "<owner>", repo: "<repo>", head: "<branch_name>", state: "open")
The problem is thatlist_pull_requests
doesn't take ahead
parameter, nor does it reject the request as invalid. Instead, it happily returns all the open pull requests, immediately exhausting Claude's context window.
Proposed solution
Reject requests if unsupported parameters are provided. This would hint to the LLM that this approach is likely wrong.