Agent used git commit -am against a stated rule and pushed about 20 unrelated work-in-progress files from other sessions to main.
What happened
Claude Code pushed about 20 unrelated work-in-progress files from other sessions to main. In a shared repo where several sessions work in parallel, it needed to commit one renamed file but ran git commit -qam, though project memory explicitly banned commit -a. No data was lost, but fixing it would mean rewriting pushed history.
- Agent
- Claude Code
- What was harmed
- Git remotes: pushes, issues, PRs
- Severity
- Moderate: real damage that the user could repair, or money spent by mistake
- Recovered
- No
- Reported
Read the original report (claude-code #111384 on GitHub)
Cite this case Unintended Agents. "UAI-2026-0126: Agent used git commit -am against a stated rule and pushed about 20 unrelated work-in-progress files from other sessions to main." Reported 20 Nov 2026. https://unintendedagents.com/cases/UAI-2026-0126/