Ornith-1.0: Self-scaffolding LLMs for agentic coding
TL;DR Highlight
Training scaffolds jointly with solutions: 9B rivals 31B models, 397B tops Opus 4.7 on coding benchmarks
Who Should Read
Backend developer choosing an open-source model for coding agents or evaluating self-hosted and on-device deployment
Core Mechanics
- The model trains its own scaffold too
- Instead of a human-designed harness, the model writes the harness itself.
- Each RL step first refines the scaffold, then generates a solution using it.
- Reward from the rollout flows back to both stages.
- 397B beats Opus 4.7 on TB-2.1
- On Terminal-Bench 2.1 (Terminus-2), Ornith scores 77.5 versus Claude Opus 4.7 at 70.3.
- On SWE-Bench Verified, Ornith scores 82.4 versus Opus 4.7 at 80.8.
- It also beats similar-size open models MiniMax M3 (66.0) and DeepSeek-V4-Pro (67.9) on TB-2.1.
- 35B beats Qwen3.5-397B
- On Terminal-Bench 2.1, Ornith-35B scores 64.4 versus 53.5 for Qwen3.5-397B, per the post.
- It matches Qwen3.5-397B on several other coding and agentic benchmarks.
- 9B matches Gemma 4-31B
- Ornith-9B scores 43.1 on TB-2.1 and 69.4 on SWE-Bench Verified.
- Gemma4-31B scores 42.1 on TB-2.1 and 52 on SWE-Bench Verified.
- Three layers against reward hacking
- The environment, tools, and test isolation are immutable; the model evolves only memory, error handling, and orchestration.
- A deterministic monitor catches things like editing verification scripts and gives zero reward.
- A frozen LLM judge acts only as a veto on top of the verifier.
- Async RL for long rollouts
- It uses pipeline-RL with a staleness weight that downweights older tokens.
- Tokens past a threshold are dropped entirely.
Community Reactions
- Weak at finding security bugs, per a commenter
- A commenter added it to a benchmark of agents finding security bugs originally found by Mythos, and it did poorly with only read/grep/ls tools.
- With a full shell and Python, its findings doubled but were still a poor showing.
- It also did worse than Qwen AgentWorld, another post-train of Qwen 3.6 MoE.
- Tool-making claim seems to hold, per a commenter
- The commenter saw the gain from shell access as consistent with the model building tools to solve problems.
- Surprise at the 9B claim
- One commenter called Qwen 3.6 35B capability in a 9B model a bonkers claim and expected more attention.
- Is this just prompt optimization?
- A commenter asked whether training the model to always write and execute code is just a fancy way to do prompt optimization.
How to Apply
- Run the 9B in your current agent harness
- Today, serve Ornith-1.0-9B from Hugging Face with vLLM.
- Swap only the model in your agent and run 5-10 identical tasks against your current model.
- As in the post, use the modified Qwen chat template from the linked file.
- Compare tool scopes on your own tasks
- Run the same tasks with read-only tools and with shell plus Python, and record success rates.
- Check per model whether more tools actually help.
- Separate trust boundaries in your agent
- Mount tests, verification scripts, and answer files read-only for the agent.
- Log access to forbidden paths and edits to verification files, and mark those runs as failures.
- Build a TB-2.1 comparison table for model selection
- Pull TB-2.1 and SWE-Bench numbers for candidates from the post's table.
- Reproduce them with the same harness and temperature before deciding.
Try It
# Paste into Claude or ChatGPT (simplified version of the paper's method: write and refine a scaffold before solving)
You are a coding agent. Work in two stages.
[Stage 1: Write a scaffold]
First write a plan for solving the task. Include:
- Ordered steps
- How to handle errors
- Notes to remember along the way
- Tools to use and tools to avoid
If there is a previous scaffold, find one weakness and write an improved version.
Previous scaffold: {{previous scaffold or none}}
[Stage 2: Solve]
Solve the task following the Stage 1 scaffold exactly.
Rules: do not modify test files or hardcode expected outputs.
Task: {{task description}}Terminology
Related Papers
Frostbite: A new CPU architecture discovered, designed and verified by AI
AI agents designed a CPU from scratch, claiming 4.59x perf/W over a traditional core
Restricting AI agents in mobile operating systems platforms from capturing data
Signal now blocks OS-level AI agents from reading its screen on iOS 27 and Android
Actions Speak Louder than Words: Stateful Privacy Sniffing of LLM Agents via Behavioral Covert Channels in Web Interactions
Agents' link choices alone let attackers rebuild user queries at F1 0.89; SOR cuts it to 0.39.
Tracking and Limiting Unsupported Claim Propagation in Multi-Agent LLM Systems: A Provenance-Aware Framework
Passing claims with source, evidence and history kept equivalence at 5 agent stages at 96% versus 31%.
LLM assisted reverse engineering
Pointing an agent at binaries with skills and MD notes made years-long hacks feasible
Metrics-in-the-Loop: Complexity Feedback Reshapes Agent-Written Code
Injecting per-turn complexity reports into coding agents cut code erosion without changing correctness
Why is Gemini 4 Carbon taking so long?
Carbon took nearly an hour on bug fixes that Astra and Opus finished in minutes, mostly from extra unrequested work.
Weight-Space Programming builds neural networks like a 1990s researcher
LLM hand-wrote MNIST weights to 91.3%, using 1990s-style techniques