@ethanolivertroy: Had the idea for the compliance version of @cursor_ai bugpot last night and started pulling the pieces together with cu…
Summary
ControlBot is an open-source tool that reviews Terraform PRs for NIST 800-53 compliance using Checkov and Cursor SDK, providing inline comments and merge gates.
View Cached Full Text
Cached at: 05/27/26, 07:03 AM
Had the idea for the compliance version of @cursor_ai bugpot last night and started pulling the pieces together with cursor sdk https://github.com/ethanolivertroy/controlbot… It checks the terraform in PRs and aligns them to nist 800-53 controls
ethanolivertroy/controlbot
Source: https://github.com/ethanolivertroy/controlbot
ControlBot
Bugbot for compliance on infrastructure code.
ControlBot reviews Terraform PRs like Cursor Bugbot reviews code — inline comments on the exact lines, NIST 800-53 control mapping, control intent, and a merge gate when findings block your baseline.
Built on Checkov (deterministic facts) + Cursor SDK (assessor-grade narratives).
Today: IaC → controls → PR reviews
Tomorrow: SSP narratives, POA&M seeds, risk scoring, audit packages — one bot, growing into full GRC
Demo
Repo: https://github.com/ethanolivertroy/controlbot
Sample PR: https://github.com/ethanolivertroy/controlbot/pull/1
How it works
PR with Terraform
→ Checkov (deterministic scan)
→ NIST 800-53 mapping
→ ControlBot (inline PR comments + merge gate)
→ Optional: Cursor agent (full report artifact)
The agent never invents findings — it enriches Checkov output with control intent and remediation language.
Quick start
npm install
pip install checkov
npm run scan
npm run review -- --scan-only
npm run controlbot
cat review-payload.json # Bugbot-style inline comment payload
Full agent report (optional):
export CURSOR_API_KEY="cursor_..."
npm run review
GitHub Actions
- Add
CURSOR_API_KEYsecret (optional — inline bot works without it) - PRs touching
*.tftrigger.github/workflows/controlbot.yml - ControlBot posts inline NIST comments and fails the check on blocking findings
Configure
baseline: fedramp-moderate
inherited_controls: [PE-1, PE-2] # CSP-inherited — skip
block_on_severity: [HIGH, CRITICAL]
inline_comments: true
bot_name: ControlBot
Extend mappings/checkov-to-nist.yaml for your rule → control mappings.
Example Terraform
fixtures/terraform/main.tf — intentionally weak config for demos.
Commands
| Command | Purpose |
|---|---|
npm run scan | Checkov → findings.json |
npm run review | Agent or scan-only → report.md |
npm run controlbot | Build PR review payload, exit 2 if blocking |
npm run post-review | Post to GitHub (CI) |
Exit codes
| Code | Meaning |
|---|---|
0 | Pass |
1 | Tooling error |
2 | Blocking control findings |
License
MIT
Similar Articles
Faster Code Review with Cursor's Bugbot (3 minute read)
Cursor's Bugbot code review tool is now over 3x faster, 22% cheaper, and finds 10% more bugs, with most runs finishing under three minutes. The update also adds new features like running reviews before pushing and only reviewing new changes.
@mattpocockuk: Cursor shipped a /thermo-nuclear-code-review for the TOUGHEST AI code review possible. But is it any good? Let's dive i…
Cursor has shipped a new 'thermo-nuclear' code review feature for aggressive AI code review. Matt Pocock reviews its effectiveness.
@RayFernando1337: The bugs that cause churn almost never show up in a diff, and you only really catch them when you stop reviewing code a…
A developer shares a workflow using Cursor's Opus 4.8 Max Thinking model with subagent harness, and introduces a GitHub repository with installable skill files for AI coding agents, including a 'running-bug-review-board' skill that performs live QA testing.
@cursor_ai: Auto-review mode is now available in Cursor. It allows agents to run tool calls with fewer approval prompts and safer e…
Cursor has released an auto-review mode that allows agents to execute tool calls with fewer approval prompts while maintaining safety.
@mattpocockuk: Here's the skill:
A GitHub repository containing official Cursor plugins for developer tools, including agent workflows, code review, documentation, and CI integration.