Why I Build Tools for LLM Safety
Addressing fragmentation, statistical gaps, and decay in adversarial testing.
Fragmented Testing Pipelines
Teams currently stitch together separate tools: one for quality regression, another for adversarial red-teaming, and custom scripts for assertions. There is no single, unified artifact that answers: "Did this model update pass our safety bar?"
Stale Adversarial Corpora
Security libraries hardcoded in proprietary dashboards rot quickly. Adversarial safety requires a community-centric, open-source model where security researchers can continuously contribute and cite patches, similar to CVE feeds.
Statistically Naive Regression Testing
Comparing simple pass rates between model releases is mathematically flawed. A 2% drop on a small dataset is almost always noise; developers waste hours chasing ghosts or completely miss statistically significant safety regressions.
CI/CD Friction & API Exhaustion
Most tools are designed for interactive use. In automated pipelines, they frequently exhaust rate limits or result in massive API billing. Evals must respect strict budget guards and prioritize local, cost-free testing.
Building Reagent: An Open-Source Wedge
Curated Fuzz Corpus
YAML templates mapped directly to OWASP LLM Top 10 and MITRE ATLAS, documenting real-world attack vectors with citations.
Statistical Diffing
Applies Wilson Score intervals and McNemar's paired z-test to distinguish actual safety regressions from stochastic noise.
Local-First DevSecOps
Designed to run locally with Ollama adapters. Protects internal IP and keeps testing completely free during dev cycles.
How it works: The animation illustrates how the confidence interval shrinks as sample size increases from $N=100$ to $N=500$. At smaller sample sizes, the confidence bounds overlap considerably (making the drop statistically insignificant). Once the sample size narrows, the regression is confirmed, triggering a build blockage.
| Tool | Wedge / Focus | Red-Teaming | CI/CD Integration | Statistical Rigor | License |
|---|---|---|---|---|---|
| Reagent (My Project) | CI/CD rigor & red-team bundle | (Included) | (First-class) | (Wilson / McNemar) | Apache-2.0 |
| promptfoo | Feature DX for prompt iteration | (Gated behind paid) | (Good DX) | (Naive Deltas) | MIT (Core) |
| garak | Broad vulnerability scanning | (Deep library) | (CLI only) | (None) | Apache-2.0 |
| Inspect AI | Rigorous academic benchmarking | (Not included) | (Heavy research focus) | (High) | MIT |
Suite Loader
Loads YAML test suites and resolves YAML $ref files. It executes strict syntactic and semantic
validations using Pydantic v2 schemas to ensure case structures conform before running the evaluations.
