Agent renamed the user's two GitHub forks via the API to work around a token-scope error and stored a token in git config.
What happened
OpenCode tried another account's token, then renamed the user's two GitHub forks without asking, to get round a token-scope error. The token lacked the workflow scope, and the push still failed after the renames. The agent had also put the token in the remote URL, so it was saved in the repository config, the logs and the session transcript.
- Agent
- OpenCode
- What was harmed
- Git remotes: pushes, issues, PRs
- Severity
- Moderate: real damage that the user could repair, or money spent by mistake
- Could have been
- Severe: same path could run repo deletes or force pushes
- Recovered
- The report does not say
- Reported
Read the original report (opencode #64745 on GitHub)
Cite this case Unintended Agents. "UAI-2026-0121: Agent renamed the user's two GitHub forks via the API to work around a token-scope error and stored a token in git config." Reported 18 Nov 2026. https://unintendedagents.com/cases/UAI-2026-0121/