← nousix.ai

AI-written Rust, measured against human code

The Nousix stack is about 300,000 lines of Rust, written end to end by AI under the method. I ran the static analysis a serious team gates CI on, and compared it to hand-written projects. Lower is better on every bar.

Baselines: tokio and ripgrep (elite human libraries, pre-ChatGPT) and OpenFang (a contemporary ~199K-line human-team project in the same domain). "Nousix" is the code written under the method.

Nousix (AI, under the method) human projects

Code duplication

% duplicated blocks (jscpd, ≥5-line). The defect generic AI code is accused of.

Nousix0.63%
ripgrep3.37%
tokio4.78%
OpenFang7.33%

Memory safety — unsafe

unsafe blocks per 1,000 lines. Fewer is safer.

Nousix0.0
OpenFang0.08
ripgrep0.26
tokio15.5

Cyclomatic complexity

average per function (lizard). Human-grade is the bar.

tokio1.8
Nousix2.0–2.2
ripgrep2.3
OpenFang3.2

.clone() density

per 1,000 lines. The honest gap: the method halves it, and it beats the human team, but the elite libraries are tighter.

tokio5.3
ripgrep7.8
Nousix12.7
OpenFang17.2
90% line coverage on HAL (the engine workspace), measured there and not extrapolated to the rest. More test code than production code.

Same models everyone else uses. The published literature says generic AI code carries up to 8x the duplication of human code and is ~1.7x buggier; this does not. The variable is the method, not the model: plan, verify in the run, review independently, record every decision. Measured with jscpd (duplication), lizard (complexity), cargo-llvm-cov (coverage), and cargo audit. The repo is not open yet, so these are our measurements and the exact tools behind them, laid out so you can see what was run and check every number the day the code opens. The method-on sample is small so far (the larger work is still on pull-request branches); the engine is the large sample. No number here is one I did not measure.