Skip to main content
Code Optimizer is a new beta feature in env zero that scans your Infrastructure as Code and helps you catch issues early, before they cause problems in production. It detects risks, flags inconsistencies, and suggests code-level improvements you can review and apply. Instead of relying on manual reviews or post-incident cleanup, Code Optimizer offers a faster, more proactive path to better infrastructure code.
Code Optimizer provides detailed analysis and lists all detected issues with severity levels

Code Optimizer dashboard showing detected issues

What’s included in the beta

  • Run scans manually from development environments
  • Detect potential issues like hardcoded values, overly permissive access, or weak defaults
  • View which environments may be affected by an issue
  • Generate pull requests with suggested code fixes
  • Track, ignore, or resolve issues with built-in controls
Detailed view of an issue showing the resource, file, repository, severity, and relevant environments

Issue details and affected environments

Powered by familiar tools, enriched with context

Code Optimizer runs scanning tools like Checkov and TFLint under the hood, but with full awareness of your environments, modules, and infrastructure history. That context makes findings more relevant and fixes easier to trust.

Beta limitations

  • Scanning and detection: GitHub, GitHub Enterprise, GitLab Enterprise, and Bitbucket Server are supported
  • Code fix creation: GitHub and GitHub Enterprise are supported
  • Environment mapping is based on code paths (not yet plan or state aware)

What’s coming next

  • More VCS provider integrations
  • Expanded scan coverage
  • Future features like runtime insights and state validation
Learn more in the Code Optimizer documentation or get the details on the blog.