# A Native Rust Re-implementation of the Self-Improving Agent Harness: Architecture, Fidelity, and Extensions — Superradiant Research

Site: research.superradiant.ai · Canonical: https://research.superradiant.ai/abs/sia-rust/ · Last built: 2026-11-26

<!-- agent-pages:content -->

[superradiant:sia-rust](https://research.superradiant.ai/abs/sia-rust/)

System report

# A Native Rust Re-implementation of the Self-Improving Agent Harness: Architecture, Fidelity, and Extensions

[Micah Stubbs](https://superradiant.ai/team#member-micah-stubbs), [Will Stark](https://superradiant.ai/team#member-will-stark)

June 6, 2026

## In plain language

A self-improving agent changes its own harness, and eventually its own weights, in response to feedback on what it did. In one well-specified design, a Meta-Agent writes and improves a Target-Agent, the Target-Agent executes a task, and a Feedback-Agent analyzes the resulting trajectory to propose the next improvement (the self-improving agent harness, Hebbar et al., arXiv:2605.27276). This paper is a system and experience report on sia_rust, a native Rust implementation of that self-improving-agent loop plus a set of safety, observability, and scheduling extensions.

We describe a faithful, byte-parity port of the deterministic self-improvement core; a native multi-provider LLM agent-runner layer built on injectable transports and tested offline; and a set of extensions scoped honestly as engineering primitives: a capability allow-list and threat model, a native verifier trait, per-generation telemetry, a dashboard, an adaptive scheduler, and a tested pure-CPU LoRA reference. The Rust core runs roughly 5.8× faster by geometric mean across nine operations. We are explicit about what is not yet evaluated and what remains future work.

## Abstract

The self-improving agent harness described in Self-Improving AI with Harness & Weight Updates is a framework in which a Meta-Agent writes and improves a Target-Agent, the Target-Agent executes a task, and a Feedback-Agent analyzes the resulting trajectory to propose the next improvement \[1\]. This paper is a system and experience report on sia_rust, a native Rust re-implementation of the self-improving agent harness plus a set of safety, observability, and scheduling extensions.

We describe three bodies of work. First, a faithful port of the deterministic self-improving agent harness core (orchestrator, context/trajectory management, prompt system, run-directory format, and web visualizer) that reproduces the reference Python implementation's prompt, context, and execution-log outputs byte-for-byte, verified by a differential-parity harness over an ASCII + CJK + emoji + control-character matrix. Second, a native multi-provider LLM agent-runner layer built on rig-core and injectable HTTP transports, comprising three runners (a Claude /v1/messages tool-use loop, an OpenHands-style OpenAI-compatible loop, and a PydanticAI-style loop), with trajectory-capture middleware, a provider/profile mapping layer, retry/resilience decorators, and a structured-output parity harness. The entire LLM layer is feature-gated and driven through injectable transports so its full tool-use loops are tested offline with scripted responses. Third, a set of extensions scoped honestly as engineering primitives and seams: a pure-std capability allow-list and a formal threat model for self-modifying agents; a native Verifier trait with adversarial-robustness hooks; per-generation telemetry; an Axum-based dashboard for the self-improving agent harness; a heuristic adaptive harness-vs-weight-update scheduler; and a native weight-update abstraction with a tested pure-CPU LoRA reference implementation.

We evaluate the port via differential parity, deterministic microbenchmarks (the Rust core runs roughly 5.8× faster by geometric mean across nine operations, up to ~25× on prompt building and ~18× on execution-log loading), and offline test coverage including mocked tool-loop tests and golden-master trajectory round-trips. We are explicit about what is not evaluated and what remains future work: a full meta-RL scheduler (only a heuristic exists; UCB/contextual-bandit stages are not implemented), GPU LoRA / real weight-update training (only a CPU reference plus an abstraction; Candle is not integrated), OS-level sandbox enforcement (only an advisory capability allow-list plus a roadmap; landlock/seccomp/WASI are not wired in), and any live end-to-end self-improvement accuracy study.

## Cite this paper

    @techreport{stubbs2026siarust,
      title       = {A Native Rust Re-implementation of the Self-Improving Agent Harness: Architecture, Fidelity, and Extensions},
      author      = {Stubbs, Micah and Stark, Will},
      institution = {Superradiant Research},
      year        = {2026},
      month       = jun,
      url         = {https://research.superradiant.ai/abs/sia-rust/}
    }

Copy BibTeX [Download .bib](https://research.superradiant.ai/abs/sia-rust.bib)

[![First page of A Native Rust Re-implementation of the Self-Improving Agent Harness: Architecture, Fidelity, and Extensions](https://research.superradiant.ai/thumbs/sia-rust.png)](https://research.superradiant.ai/sia/sia_rust.pdf)

[Download PDF (v1)](https://research.superradiant.ai/sia/sia_rust.pdf) [Overview page](https://research.superradiant.ai/sia/)

### Subjects

- cs.AI
- cs.SE

### Versions

- [v1](https://research.superradiant.ai/sia/sia_rust.pdf) Jun 6, 2026 Initial release

SUPERRADIANT

[\[ hello@superradiant.ai \]](mailto:hello@superradiant.ai)

coherent collective intelligence

© 2026 Superradiant
