Terraform Review Agent for Smarter PR Reviews
Built a Terraform Review Agent that combines tfsec, Checkov, Infracost, and LangGraph to generate cleaner AI-assisted Terraform PR review summaries directly inside GitHub pull requests by Georgios Spanos
Built a Terraform Review Agent for Smarter PR Reviews
I recently built a small project that I’m genuinely excited about:
A Terraform Review Agent that reviews Terraform pull requests and converts the usual wall of CI/CD logs into a cleaner and more readable PR summary.
The goal was simple:
Make Terraform reviews faster, easier to understand, and more actionable.
What the agent currently does:
- Runs security scans using tfsec and checkov
- Shows infrastructure cost impact using Infracost
- Checks Terraform formatting and linting
- Uses LangGraph to coordinate the review workflow
- Posts a single sticky PR comment with the most important findings
The interesting part for me was combining traditional DevOps tooling with an AI-assisted review workflow.
Instead of digging through multiple CI logs and tool outputs, the PR gets a cleaner summary of:
- What changed
- What matters
- What might need attention before merge
A lot of Terraform reviews today are technically correct but still difficult to quickly understand at scale.
This project was an attempt to improve that developer experience a bit.
One thing I especially enjoyed while building it was orchestrating multiple tools into a single review pipeline instead of treating them as separate CI steps.
Tech Stack:Terraform | GitHub Actions | tfsec | Checkov | Infracost | LangGraph | Python
Links:
Repo: Github Link
Project breakdown: Website Link
Curious:
Would you use something like this in your Terraform PR workflow?
Post by : Georgios Spanos
What's Your Reaction?
Like
1
Dislike
0
Love
0
Funny
0
Wow
0
Sad
0
Angry
0
Comments (0)