Principle 01
Specification-Driven Generation
- Each instance provides a specification and build config.
- The model must implement the stubbed library: source, build files
- No partial credit: the library must compile and pass its held-out suite
Can a coding agent build a complete, functional library from a specification it is never tested against?
01 · Overview
Kaiju is a reinforcement-learning environment, not a static Q/A set, for agentic code generation. It ships from-scratch library-generation tasks across Go, Python, C++, C, TypeScript, JavaScript, Java, and Rust. Each drops a coding agent into a hermetic container with a specification and build config and no test code, asks it to implement a complete open-source stubbed library from scratch, and grades the result against a held-out test suite. The module-level pass fraction is the reward. Every task is drawn from a real open-source project, so the environment rewards genuine implementation over recall. Builds run in isolated, offline containers with a per-project test command (pytest, go test, cargo test, etc.).
02 · Key metrics
Three numbers that define the scope of the Kaiju delivery, across three languages.
Library Tasks
16
5 Go · 2 Python · 9 Rust
Average Modules Modified
32
across 20 libraries
Calibration Model
1
Claude Opus 4.8
03 · Methodology
How the reward is computed. Four principles govern the Kaiju grading system.
Principle 01
Principle 02
Principle 03
Principle 04
04 · Evaluation pipeline
The method
Phase 01
Phase 02
Phase 03
05 · Results
Claude Opus 4.8 was run end-to-end against all 16 tasks (pass@1).
Reward spans the full range: from 0% on several Rust and Go libraries to 100% on jsonrpc-core, with a graded mean of 29.7% across the 10 scored instances. Python leads (48.0% mean) ahead of Rust (25.1%); the five Go tasks remain ungraded.
Pass rate by language, and task distribution across languages.
06 · Dataset Viewer
Total Tasks
16
Languages
3
Average Modules Modified
32
Opus Mean Reward
29.7%
| Task | Language | Difficulty | Opus 4.8 | Tests |
|---|
07 · Language comparison
The three languages side by side. Python leads on reward; Rust is the largest slice and runs longest; the Go tasks remain ungraded.
08 · Resources
GitHub
kaiju-samples
github.com/EtharaOrion/kaiju-samples
Hugging Face
kaiju-samples
huggingface.co/datasets/ethara/kaiju-samples
Ethara builds held-out, reproducible agent environments and datasets for frontier teams.