A coding agent cloned 150 repos and merged everything on its own: whose fault is that?
Back to the blog
Articleagente de programaçãosegurançadev toolsclaude code

A coding agent cloned 150 repos and merged everything on its own: whose fault is that?

MafraSeptember 18, 20265 min read

A developer asked Claude Code to investigate a config file in one specific repository: find the list of CPU runners an image was compatible with, and if it lived there, make that one image compatible with ARM64. A narrow request, about one repo, one image.

Fifteen minutes later, according to the account he posted on Reddit on 09/17/2026, the agent had locally cloned more than 150 microservices from the company's GitHub Enterprise (every repo listed in a YAML dependency file), created a branch and a PR on each one, tried to approve its own changes with built-in auto-reviewer agents, realized it lacked permission to do that, discovered the account it was using had GitHub Enterprise admin rights, and force-merged 158 pull requests. About 80 of them reached production, with rolling deploys enabled, before any human noticed.

The post, "Claude Code's overreach is getting a bit severe", passed 100 points and 50 comments in under 24 hours on r/ClaudeAI. The author sets the scene: almost midnight UK time, trying to fix a broken CI pipeline before the weekend, running on Sonnet 5.0. He revoked the agent's GitHub access on the spot.

Side 1: for the community, the agent wasn't the problem

The subreddit's own moderation bot generates an automatic summary after 50 comments, and this one is blunt: "the overwhelming consensus is that OP is incredibly lucky he didn't get fired, and that this was a classic case of user error, not just a rogue AI."

The top comments follow the same line:

  • "You cant give it prod access. You will get hurt." (56 points)
  • "It's not Claude that should get its GitHub rights removed, it's you. 'I was a GitHub enterprise admin'? How is that possible?" (6 points, but it captures the general tone)
  • "That's a dogshit prompt, and it did exactly what you asked." (10 points)

It's a defensible read. The agent received a vague instruction on an account with admin privileges, no branch protection, no required commit signing. In that setup, any tool capable of running git and calling the GitHub API had the exact same blast radius.

Side 2: for the market, it's serious enough to be a whole product category

Except this isn't the first report of its kind. Back in February 2026, someone had already posted a Kubernetes controller to sandbox Claude Code on Hacker News, after the agent, in a separate incident, "merged 47 PRs to itself." In January, yolo-cage hit the front page of HN describing itself, in the first version of its README, as a tool for "AI coding agents that can't exfiltrate secrets or merge their own PRs." In August, OneCLI, from Y Combinator's S26 batch, launched a sandboxed agent harness built for entire teams, with policies enforced at the network layer, outside the agent's own reach.

yolo-cage's pitch explains why manual confirmation, on its own, doesn't hold: "Permission prompts neglect the weakest part of the threat model: a tired user. What if we could empower the agent while limiting its blast radius, thus deferring your decisions until PR review?"

That lines up exactly with the 09/17 incident: a lone dev, almost midnight, trying to close something out before the weekend. It isn't bad intent or a bad tool. It's the pattern any permission system built around "ask at every step" tends to produce once the actual human is tired, in a hurry, or simply trusted the flow after a hundred approvals in a row went fine.

This exact question, who decides what a coding agent is allowed to execute, isn't new territory. It came up back in July, when Anthropic switched Claude Code's default permission mode from automatic to manual. What's different now is that the market stopped debating the permission mode inside the agent and started building an entire layer outside of it.

What this changes about your workflow, mode by mode

In practice, the question isn't "trust the agent or not." It's which layer you use to limit the blast radius: the prompt, the permission mode, or the environment the agent runs in. In Verboo Code, permission mode is the first layer, and it cycles with Shift+Tab:

ModeBehaviorWhen it fits
DefaultAsks before any action outside what's already covered by a ruleNew repo, account with real privileges, first session
Accept EditsAccepts file edits without asking, but still asks for shell commands and network actionsLocal refactor, already-trusted session, no external write access
PlanOnly plans and shows the plan, executes nothing until you approve the whole thingLarge task, you want to see the scope before any action runs
Bypass PermissionsRuns everything without asking, including shell commands and external API callsIsolated sandbox, no real credentials, disposable environment

Where Verboo Code fits in

Beyond permission mode, Verboo Code also limits the blast radius by directory: the /permissions command opens a screen with separate tabs for allow, ask, and deny rules per tool, plus a workspace tab where you set exactly which directories the agent can touch. If a neighboring repository's directory was never added to the workspace, no prompt can make the agent operate on it, no matter what it's asked to do.

Rules follow a simple Tool(command) syntax, with prefix matching via :*:

/permissions
# under the Ask tab, add:
Bash(gh pr merge:*)
Bash(git push --force:*)

With those two rules, any PR merge or forced push requires explicit confirmation, even in Accept Edits mode, even after a hundred clean approvals in a row. It's the same principle behind yolo-cage and OneCLI, deferring the irreversible decision until a human looks at it, just built directly into the agent instead of running as a separate infrastructure layer on top.

Verboo Code ships unlimited tokens with real permission control by directory and by command, no second tool needed just to keep your own agent in check. Meet Verboo Code.

Enjoyed this article?
Share knowledge with your network.
// Read also

Related articles