openai / openai/codex-plugin-cc
Feature: infra-aware adversarial review prompts + auto-scaling by diff size
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 33.3k
- Forks
- 2.3k
- PR merge metrics
- No merged PRs in 30d
Description
Problem
/codex:adversarial-review uses a single generic security-focused prompt regardless of what's being reviewed. Infrastructure-as-Code (Terraform, Helm, K8s manifests, CI/CD pipelines) has fundamentally different failure modes than application code -- state corruption, blast radius, provider drift, and dependency ordering matter more than OWASP Top 10.
Additionally, the review depth is static. A 10-line config change gets the same treatment as a 300-line module rewrite, wasting tokens on small changes and potentially under-analyzing large ones.
Proposal
1. Domain-specific prompt templates
Auto-detect file types in the diff and select the appropriate adversarial template:
- Infrastructure-first (
.tf,.hcl,values.yaml,Chart.yaml,.github/workflows/): Focus on STATE CORRUPTION, BLAST RADIUS, IAM/PERMISSIONS, PROVIDER DRIFT, DEPENDENCY ORDERING, ROLLBACK, RACE CONDITIONS, COST - Application-focused (
.ts,.py,.go, etc.): Focus on EDGE CASES, SECURITY, CONCURRENCY, FAILURE MODES, DATA INTEGRITY, ROLLBACK - Mixed diffs: Combine both templates
2. Auto-scaling depth by diff size
| Diff size | Depth | Behavior |
|---|---|---|
| <50 lines | Light | Top 3 focus areas only, skip style/cost |
| 50-199 lines | Standard | All focus areas |
| 200+ lines | Deep | Full analysis + flag that this is a large change warranting extra scrutiny |
Why this matters
IaC reviews have different stakes. A missed race condition in Terraform can corrupt state for an entire environment. A permissive IAM policy grants access across accounts. Generic security prompts miss these domain-specific risks entirely.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the implementation of /codex:adversarial-review and how it reads the diff. Trace where prompts are selected and diff size is calculated, then define coverage for infrastructure, application, mixed, and each size tier. Done means the review selects the stated focus areas and scales depth according to the table.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- github-actions, helm, javascript, kubernetes, terraform, yaml
- Domain
- ci-cd, devops, infrastructure, security
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100