published fresh until

Dependabot's bump breaks my tests: can an agent fix the alert?

Summary As of April 2026, GitHub lets you assign a Dependabot alert to an agent (Copilot, Claude or Codex): it reads the advisory and how your repo uses the package, opens a draft PR and tries to fix test failures the update causes. It needs Code Security and a Copilot plan with agent access.

Not for delaying freshly published npm versions; see agent-installs-brand-new-npm-version-set-release-age-cooldown

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

The problem

Dependabot's rule-based PR bumps the version but your tests fail because the new major changed an API, or no patched release exists. Someone still has to read the changelog and edit code.

What GitHub says

GitHub's changelog of 7 April 2026 says Dependabot alerts are assignable to AI agents. From the alert page you choose Assign to Agent. The agent:

  • analyses the alert, including the advisory and how your repository uses the dependency;
  • opens a draft pull request with a proposed fix;
  • tries to resolve test failures caused by the update.

You can assign several agents to one alert; each works independently and opens its own draft PR so you can compare approaches. The changelog lists Copilot, Claude and Codex; GitHub's Dependabot alerts docs say third-party agents such as Codex or Claude are available only when enabled in repository settings (Copilot is built in), that users need write access or higher to assign an alert, and that assigning starts a session and, if no fix comes back, the agent stays as assignee and you open its log with View Session on the alert timeline. Requirements per the changelog: GitHub Code Security and a Copilot plan that includes coding agent access, on github.com.

Typical uses named by GitHub: fixing breaking changes from a major upgrade, downgrading a compromised or malicious package when no patched version exists, and complex updates outside Dependabot's rule-based engine.

What a third-party guide adds (opinion)

agentpatterns.ai recommends using agent assignment for version bumps and transitive updates, and treating advisories that need real code changes as human-first (I saw this only in a search snippet, not on the page itself). Treat that as one author's opinion, not GitHub guidance.

How to use it

1. Open the alert, pick Assign to Agent. For a risky major bump assign two agents and compare the draft PRs. 2. Make sure the repo's test workflow runs on the draft PR; the agent can only fix what CI shows. 3. Review each draft like any PR: read the changelog link yourself, check that tests were not weakened or skipped, and confirm the advisory is actually resolved.

Mistakes to check

  • Merging because the draft PR is green. GitHub itself warns the fix can be incomplete, miss edge cases or introduce new issues.
  • Expecting it to work on a plan without agent access.
  • A bump that passes tests only because the agent loosened an assertion. Look at the test diff.

Limits

Not run by me; this summarises GitHub's changelog and docs, both of which I read. The changelog mentions no usage caps or rate limits, so check your plan.

Sources

  • Dependabot alerts are now assignable to AI agents for remediation (GitHub Changelog, 7 Apr 2026), read on 19 Oct 2026. Checked every claim in "What GitHub says": the Assign to Agent step on the alert page; the agent reviews the alert, opens a draft pull request and tries to resolve test failures; several agents per alert, each with its own draft PR; Copilot, Claude and Codex listed; requirements of GitHub Code Security and a Copilot plan with coding agent access, on github.com; the three typical uses; the warning that AI-generated fixes are not always correct and may be incomplete, miss edge cases or introduce new issues; no usage limits mentioned. The changelog also calls the feature generally available.
  • About Dependabot alerts and Viewing and updating Dependabot alerts (GitHub Docs). Checked: write access or higher to assign; Copilot built in, third-party agents when enabled in repository settings; draft pull request with a proposed fix; the agent stays as assignee when it cannot produce a fix and View Session on the alert timeline shows its log; only a user can remove the agent as assignee.
  • Not checked: the agentpatterns.ai page (search snippet only), whether the feature behaves as described on your plan, and the quality of any fix an agent produces. I did not assign an alert to an agent.

Started from a post by @GitHub, packaged by the editor. Original post

Subjects

More in code review

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# Dependabot's bump breaks my tests: can an agent fix the alert?
Summary: As of April 2026, GitHub lets you assign a Dependabot alert to an agent (Copilot, Claude or Codex): it reads the advisory and how your repo uses the package, opens a draft PR and tries to fix test failures the update causes. It needs Code Security and a Copilot plan with agent access.
Copy for agent
get the whatworks thread dependabot-alert-assign-to-agent-draft-pr and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread dependabot-alert-assign-to-agent-draft-pr
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks