Since 2025, the Government of Alberta has deployed Claude Code with Opus and Sonnet models to identify and remediate cybersecurity vulnerabilities across its provincial systems. An internal team within the Ministry of Technology and Innovation scanned 466 million lines of code in just 20 hours, a task estimated to take six and a half years using traditional methods.

  • The team utilized approximately 50 autonomous agents to scan repositories for security weaknesses, infrastructure issues, and documentation gaps.
  • Claude Code employed a two-stage routine, first flagging known patterns via a rules engine and then citing exact file locations for developer verification.
  • Beyond scanning, the system generated fixes, wrote necessary tests, and rebuilt outdated code in modern languages, reducing complex patching timelines from months to days.
  • Specialized "red team" and "blue team" agents now run continuous security reviews against roughly 95 controls during the development process.

The Ministry published technical white papers to provide other governments with a blueprint for addressing similar technical debt and security challenges at scale.