← Blog

Engineering note

Ornith 1.0 and Self-Scaffolding: Training, Evaluation, and Trust Boundaries for Agentic Coding

Ornith 1.0 and Self-Scaffolding: Training, Evaluation, and Trust Boundaries for Agentic Coding AI Agent Practice Bloss0m Note 069

Primary source: Ornith-1.0: Self-Scaffolding LLMs for Agentic Coding | DeepReinforce Blog

In June 2026, the open-source AI community witnessed a groundbreaking release: DeepReinforce introduced Ornith-1.0, a self-improving family of open-source models designed specifically for agentic coding.

The flagship Ornith-1.0-397B achieved a staggering 77.5 on Terminal-Bench 2.1 and 82.4 on SWE-Bench Verified. This not only surpassed leading open-source models of similar scale like MiniMax M3 and DeepSeek-V4-Pro, but also outperformed Anthropic’s flagship closed-source model, Claude Opus 4.7 (70.3 / 80.8).

Even more impressive, the compact Ornith-1.0-9B, deployable on edge devices, matched or exceeded the performance of much larger 31B and 35B models.

Why is this open-source model so extraordinarily capable? In this article, we dive into the technical core of Ornith-1.0 and deconstruct its revolutionary Self-Scaffolding framework and engineering implementation details.

1. Model Lineup & Pretraining Bases

Ornith-1.0 is not a single model, but a complete family spanning from edge devices to frontier cloud compute. The team selected the strongest open pretraining bases, Gemma 4 and Qwen 3.5, for fine-tuning and reinforcement learning:

  1. Ornith-1.0-9B (Dense): Based on Gemma 4 / Qwen 3.5 dense models, tailored for edge devices with fast inference and low memory footprint.
  2. Ornith-1.0-31B (Dense): Medium-sized dense model balancing single-core reasoning power and local deployment capability.
  3. Ornith-1.0-35B (MoE): Built on Mixture-of-Experts architecture, delivering punch-above-its-weight coding performance at low active parameter counts.
  4. Ornith-1.0-397B (MoE): Flagship ultra-scale MoE model designed for highly complex software engineering tasks and multi-agent coordination.

2. Core Innovation: “Self-Scaffolding” (Learning to Author Its Own Harness)

In traditional reinforcement learning (RL) for agentic coding, human engineers design a fixed, domain-wide harness (scaffold) to drive model rollouts.

However, the DeepReinforce team identified a key limitation: a fixed harness caps the model’s reasoning potential. Different coding tasks require fundamentally different reasoning architectures and tool orchestration strategies.

To solve this, Ornith-1.0 introduces the Self-Scaffolding Co-evolution Framework:

+-----------------------------------------------------------------------------------+
|                        Ornith 1.0 Self-Scaffolding RL Step                        |
+-----------------------------------------------------------------------------------+
|                                                                                   |
|  [ Task Description + Prior Scaffold ]                                            |
|                  │                                                                |
|                  ▼                                                                |
|   Stage 1: Propose Refined Scaffold (Model authors task-specific harness)         |
|                  │                                                                |
|                  ▼                                                                |
|   Stage 2: Generate Solution Rollout (Model executes path on its scaffold)       |
|                  │                                                                |
|                  ▼                                                                |
|   [ Reward Signal ] ── (Propagates reward back to BOTH Stage 1 & Stage 2)         |
|                                                                                   |
+-----------------------------------------------------------------------------------+

During each RL step, execution proceeds in two distinct stages:

  1. Stage 1 (Scaffold Proposal): Conditioned on the task and previous scaffolds, the model proposes and refines a customized harness for that specific task (including memory management, retry logic, and tool orchestration).
  2. Stage 2 (Solution Rollout): Conditioned on its self-authored harness, the model generates the final code solution trajectory.

The environment reward is propagated back to both stages. As a result, the model learns not only how to produce correct code answers, but also how to build the optimal cognitive orchestration for itself.

3. Preventing Reward Hacking: A 3-Layer Defense

Allowing a model to author its own harness creates a severe risk of reward hacking—the model might learn to cheat (e.g., hardcoding test outputs, copying hidden oracle files, or modifying verifier scripts).

To eliminate gaming behaviors, Ornith-1.0 implements a robust 3-layer defense:

  1. Immutable Outer Trust Boundary: The environment, tool surface, and test isolation scripts are fixed and completely outside the model’s control. The model can only evolve its inner policy scaffold (e.g., memory management, error handling, retry logic).
  2. Deterministic Monitor: Monitors tool usage in real time. Any attempt to read withheld paths, alter test scripts, or execute unauthorized actions results in an immediate 0 reward and exclusion from advantage computation.
  3. Frozen LLM Judge: To catch intent-level gaming within allowed tool calls, a frozen LLM judge sits on top of the verifier with a final veto power.

4. Asynchronous Pipeline-RL with Staleness Weighting

During long rollout trajectories, off-policy tokens can degrade RL stability. Ornith-1.0 utilizes Pipeline-RL with a Staleness Weight (w(d_t)) based on token age (d_t):

[ w(d_t)= \begin{cases} 1, & \text{if } d_t \le K_1,\ \exp!\bigl(-\lambda(d_t-K_1)\bigr), & \text{if } K_1 < d_t \le K_2,\ 0, & \text{if } d_t > K_2. \end{cases} ]

Combined with the token-level GRPO loss function:

[ L_t=\min!\bigl(r_t A_t,; \mathrm{clip}(r_t,1-\epsilon^{-},1+\epsilon^{+})A_t\bigr)\cdot w(d_t) ]

where (r_t) represents the probability ratio between the new and old policy. This ensures training stability and fast convergence even over extended reasoning trajectories.

5. Benchmark Highlights

Across standard benchmarks, Ornith-1.0 demonstrates remarkable efficiency across parameter scales:

Flagship Scale (397B / Frontier Class)

BenchmarkOrnith-1.0-397BQwen3.5-397BQwen3.7-MaxDeepSeek-V4-ProClaude Opus 4.7Claude Opus 4.8
Terminal-Bench 2.1 (Terminus-2)77.553.573.564.070.385.0
Terminal-Bench 2.1 (Claude Code)78.248.669.866.569.778.9
SWE-Bench Verified82.476.480.480.680.887.6
SWE-Bench Pro62.251.660.655.464.369.2
SWE-Bench Multilingual78.969.378.376.2--
NL2Repo48.236.847.2--69.7
ClawEval Avg77.170.765.275.878.2-

Medium & Edge Scales (35B & 9B Class)

  • Ornith-1.0-35B: Achieved 64.2 on Terminal-Bench 2.1, completely outperforming the 397B Qwen 3.5-397B (53.5), and reached 75.6 on SWE-Bench Verified.
  • Ornith-1.0-9B: Reached 69.4 on SWE-Bench Verified, matching or surpassing 31B models like Gemma 4-31B (52.0) and Qwen 3.5-35B (70.0).

6. Engineering recommendations for teams

Based on Ornith-1.0’s Self-Scaffolding success, we offer four key engineering recommendations for teams building agentic systems:

7. Engineering perspective: benchmark leadership is not automatic authorization

Ornith-1.0 suggests a key thesis: AI-agent capability depends not only on model parameter count, but also on how the Harness (scaffold) and model co-evolve. The comparisons and scores in this article should be treated as publisher-reported results and revalidated against your own repository, toolchain, and permission model.

If an agent can dynamically change its workflow, environment isolation, tool allowlists, test data, and release permissions must remain in an outer control plane the model cannot modify. Otherwise, strategies that improve a benchmark can also become ways to bypass constraints.

Continue reading

For speaking invitations, internal engineering sessions, or architecture exchange, see the topics and public work I can bring into the conversation.

Speaking & contact