Open-weight vs frontier models: the economics of an AI security harness
Model choice is only part of the cost equation. An efficient security harness uses lower-cost models for broad discovery, then reserves expensive models for verification and the hardest decisions. Differential AI SAST lowers costs further by scanning new code instead of the whole repository. In our AI-assisted development scenario, it reduces the workload from 4.86x to 0.06x, or over 98%.
The short answer
Open-weight models change the marginal cost of AI code review, but the cheapest credible design is not an open model running alone. Normalized to one million lines of code, our tiered harness routed about 718 million input tokens and 127 million output tokens: three pooled discovery passes, verification over 15 percent of the workload, and frontier adjudication over the top 5 percent.
- 1M
- Lines in the normalized workload
- 718M
- Tiered input tokens
- 127M
- Tiered output tokens
- 845M
- Total routed tokens
These are normalized workload figures, not customer pricing or a quality benchmark. They are derived from the token profile of a completed harness run and mapped to a relative cost index using August 2026 AWS Bedrock rates in us-east-1. Engineering, evaluation, storage and review labor sit outside the index.
One equivalent scan has a wide model cost range
A single model pass over one million lines routes about 224 million input tokens and 40 million output tokens, using 11 tokens per line, a 24 times harness reread multiplier, and an 85 to 15 input-output split. Applying that common workload to each model makes the relative rate-card difference visible.
- 0.11x
Nemotron 3 Nano 30B
- 0.27x
gpt-oss-120b
- 1x
DeepSeek v3.2
- 1.65x
GLM 5
- 1.79x
Grok 4.3
- 3.98x
Sonnet 5
- 9.94x
Opus 4.8
- 19.9x
Mythos tier
Models
DeepSeek v3.2 is the 1x baseline. Higher values mean higher model cost for the same token workload. Indexes use published Bedrock rates.
A lower index does not establish detection quality. Our earlier runs showed that model configurations specialize by language and vulnerability class, and that their findings overlap very little. A pass at 0.11x only matters if it finds the class you asked it to hunt. The economic advantage comes from buying several different discovery views before paying for expensive judgment. It does not come from treating the lowest-cost model as interchangeable with the highest.
Spend frontier tokens where judgment matters
The tiered design separates recall from confidence. Discovery pools three models because different models surface different defects. Verification uses a separate model whose job is to challenge the candidate rather than defend it. Frontier adjudication is limited to the small set that survives both stages.
No token flow selected.
Discovery bands start equally because every model gets the same normalized full-corpus pass. They narrow as 15 percent reaches verification and 5 percent reaches frontier judgment. Model rates still differ.
| Stage | Models | Scope | Input tokens | Output tokens |
|---|---|---|---|---|
| Discovery | DeepSeek v3.2GLM 5GLM 4.7 | One full-corpus pass each | 224.4M224.4M224.4M | 39.6M39.6M39.6M |
| Verification | Kimi K2.5 | 15% of workload | 33.7M | 5.9M |
| Adjudication | Opus 4.8 | Top 5% | 11.2M | 2.0M |
| Total | Five routed models | Complete tiered pass | 718.1M | 126.7M |
Derived from 11 raw tokens per line, a 24 times reread multiplier and an 85 to 15 input-output split.
Scoping is a larger lever than model choice
Using the tiered model mix above, incremental PR scans analyze new code as it is introduced and reuse cached dependency context. At 600 net-new lines per PR across 100 PRs, they analyze 60,000 lines. A release-only gate analyzes those changes plus the unchanged 4.8 million-line repository, for 4.86 million lines in total. That means the incremental path analyzes over 98% less code. Both paths grow with new code, but only the release gate keeps paying to reread the existing repository.
Incremental PR scans
100 PRs × 600 changed lines
60K LOC
Full release scan
4.8M existing + 60K changed lines
4.86M LOC
Over 98% less code analyzed
Incremental scans analyze changed lines instead of rereading the full repository.
Based on the tiered model mix above. Adjust the controls to model your release.
The practical decision
Use open-weight models when scan volume, source control, model rotation or deployment boundaries make marginal cost and replaceability important. Use frontier models directly when volume is low, their measured capability on the target defect class justifies the premium, or review labor dominates the bill. For a continuous security harness, the stronger default is mixed: cheap and diverse discovery, an independent validator, and frontier escalation for the narrow set that deserves it.
In the next note, we will go inside that system: what we learned from assigning different models to discovery, verification and judge work, where CDM-based models and Jev-like classifiers fit, and how our model router chooses the right inference path for the task, evidence requirement, deployment boundary and budget.
Open weight makes repeated analysis affordable. Frontier models remain useful for hard judgment. Scoping determines whether either can run continuously. The cost comparison only becomes meaningful when all three are designed as one system.