# Agentic autofix for code scanning alerts in public preview

DevFeed: [Agentic autofix for code scanning alerts in public preview](<https://devfeed.tech/articles/agentic-autofix-for-code-scanning-alerts-in-public-preview-71606.md>)

Original publisher: [Read original article](<https://github.blog/changelog/2026-07-10-agentic-autofix-for-code-scanning-alerts-in-public-preview>)

Author: Allison

Published: 2026-07-10T15:49:21Z

Content type: release

Language: en

Sources: [GitHub Changelog](<https://devfeed.tech/sources/github-changelog.md>)

Topics: [trivy](<https://devfeed.tech/topics/trivy.md>), [Pull Request](<https://devfeed.tech/topics/pull-request.md>), [ai code review](<https://devfeed.tech/topics/ai-code-review.md>)

Tags: [agentic](<https://devfeed.tech/tags/agentic.md>), [ai-credits](<https://devfeed.tech/tags/ai-credits.md>), [alerts](<https://devfeed.tech/tags/alerts.md>), [all](<https://devfeed.tech/tags/all.md>), [api](<https://devfeed.tech/tags/api.md>), [autofix](<https://devfeed.tech/tags/autofix.md>), [cloud-agent](<https://devfeed.tech/tags/cloud-agent.md>), [code-scanning](<https://devfeed.tech/tags/code-scanning.md>), [code-security](<https://devfeed.tech/tags/code-security.md>), [codeql](<https://devfeed.tech/tags/codeql.md>), [copilot](<https://devfeed.tech/tags/copilot.md>), [github-actions](<https://devfeed.tech/tags/github-actions.md>), [preview](<https://devfeed.tech/tags/preview.md>), [public](<https://devfeed.tech/tags/public.md>), [pull-request](<https://devfeed.tech/tags/pull-request.md>), [scanning](<https://devfeed.tech/tags/scanning.md>), [security](<https://devfeed.tech/tags/security.md>), [third-party](<https://devfeed.tech/tags/third-party.md>)

## AI overview

Agentic autofix assigns Copilot cloud agent to remediate code scanning alerts from CodeQL and third-party tools. It explores relevant files, proposes a fix, reruns CodeQL to validate it, iterates if needed, and opens a draft pull request with a fix summary and validation steps for review. Fix generation typically takes 2-4 minutes. Alerts can be assigned individually or in batches from repository security alerts or a security campaign, or through the Update a Code Scanning Alert REST API. Public preview requires GitHub Code Security or Advanced Security plus a Copilot license with cloud agent enabled. Admins can disable it; enterprise policy disabling it also disables classic Autofix. The feature replaces the free "Generate Fix" option and consumes AI Credits when a fix runs, as well as GitHub Actions minutes; preview usage is not itemized separately from other Copilot activity.

## Source excerpt

Agentic autofix is now in public preview for all code scanning alerts. It remediates alerts generated by CodeQL and third-party scanning tools by working across your codebase the way a...