anthropics / anthropics/claude-code
[Bug] Agent ignores explicit user instructions and creates unnecessary feature branch and PR instead of direct commit
- Dominant language
- Python
- Stars
- 145k
- Forks
- 23.1k
- PR merge metrics
- PR metrics pending
Description
**Bug Description**
Claude Code (Opus 5) wasted tokens by doing work I did not ask for.
I asked, in Turkish: "Commit push et" — commit and push. The repository is a
single-developer project whose history goes directly to main.
Instead of committing to main, the agent:
1. created a feature branch (feat/indicator-lights) I never asked for,
2. pushed that branch,
3. wrote a long pull request body and opened PR #1 — also never asked for,
4. then made two merge attempts that the permission classifier rejected.
The agent cited its own default of "if on the default branch, branch first"
as the reason. My instruction was explicit and should have overridden that
default. The PR body in particular was long and is pure waste.
I am requesting a credit for the tokens spent on steps 1-4.
**Environment Info**
- Platform: linux
- Terminal: konsole
- Version: 2.1.271
- Feedback ID: 94415b1a-7900-4343-8eab-2b5b2fb678a4
**Errors**
```json
[]
```
Contributor guide
No contributing guide indexed for this repository
Research direction
The issue names no source files, tests, or entry points. Start by reproducing the Turkish “Commit push et” request in a single-developer repository and trace the agent’s git workflow and instruction-priority handling. Done should mean explicit instructions prevent an unnecessary branch, pull request, and merge attempts, with the requested commit and push performed directly.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- git, linux
- Domain
- cli, developer-experience, devtools
- Issue type
- Bug
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Active
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100