CodeGuard AI — Real-Time AWS Cost Detection in VS Code for Terraform
CodeGuard AI catches expensive AWS Terraform patterns directly inside VS Code, before infrastructure is applied and before cost mistakes reach production.
Real-Time Terraform Cost Detection
CodeGuard AI is a VS Code extension that analyzes Terraform files in real time and flags AWS cost issues through the editor's DiagnosticCollection API.
It uses a 14-pattern rule engine, debounced document analysis, CodeActionProvider quick fixes, and a webview results panel for readable cost guidance.
AWS 10,000 AIdeas Competition semi-finalist
DiagnosticCollection-powered inline warnings
CodeActionProvider Quick Fixes
Demo: https://youtu.be/-epMTSDVvH4
TypeScript Extension Flow
The extension watches Terraform documents, waits for edits to settle, runs cost-pattern detection, then publishes diagnostics and quick fixes back into the editor.
const diagnostics = vscode.languages.createDiagnosticCollection("codeguard-ai");function analyzeTerraform(document: vscode.TextDocument) { const findings = ruleEngine.scan(document.getText()); diagnostics.set( document.uri, findings.map(toDiagnostic) );}Roadmap
Phase 1 is the live VS Code extension. Phase 2 expands the product into a SaaS web app for team-level scans and reports. Phase 3 adds premium subscriptions, policy packs, and organization-wide cloud cost workflows.
Work with Prabhat
Build production-grade backend systems, AI workflows, cloud automation, and high-signal engineering products with a developer who ships from architecture to deployment.
Work with PrabhatContact