deniz.in

Markets

Weather

Loading weather

· via Hacker News – Front Page (native)

INIT: open-source Rust coding agent rewrites and hot-swaps its own core mid-task

INIT Labs has open-sourced a Rust coding agent that rewrites its own harness, pushes each change through four gates and hot-swaps the new core mid-conversation, while a Root layer the model can never write can undo any change.

INIT: open-source Rust coding agent rewrites and hot-swaps its own core mid-task

What INIT is

INIT Labs has released INIT, an open-source coding agent written in Rust whose defining behaviour is that it can rewrite its own harness. The harness is everything around the model — the prompts, the tools and the agent loop — and INIT edits those layers itself, tests each change, and swaps the rewritten core into the live process mid-conversation. The project's site, which surfaced on Hacker News's front page on 26 October, diagrams the agent as stacked layers: the model on top, then prompts and skills, tools, the compiled core and a kernel, all resting on a layer called the Root. The model may rewrite every layer except one; the kernel only at higher autonomy settings, and even then gated.

How a core swap works

According to the project, a rewrite begins with a candidate copy of the compiled core in its own lane. A real file — the site's worked example is src/loop/mod.rs, the loop itself — is lifted out and rewritten, then pushed through four gates:

  • build and tests (439 seconds, measured for the example)
  • a self-map check (1.5 seconds)
  • booting beside the live core (19 seconds)
  • proving it can still edit itself (322 seconds)

If everything passes, the new core drops into its slot in 4.3 seconds, in the same conversation, with the project reporting that 87.9% of the prompt cache is kept so the chat context survives the swap. The first full core change, every check included, took 13.1 minutes. All of these figures are the team's own measurements on v0.3.x.

The Root and the rollback record

The one layer the model can never touch is the Root: a separate service outside the sandbox holding the API keys, a signed record of every change, snapshots with undo, harm signals, a stop control and resource floors. The model runs sandboxed, without an API key, connected by a single socket to the Root; every model call and every change is metered and recorded.

INIT Labs publishes a real rollback to demonstrate the mechanism, dated 21 October 2026. A change to its own shell tool, src/tools/bash.rs, scored 50 per mille — five points — lower than the incumbent, a difference the project itself describes as inside the noise. The gate refused it for an inferior score, and nine seconds later the Root restored the snapshot of the old file. The three records, sequence 88 to 90 in the project's lineage log, are ed25519-signed and hash-chained. The site is careful to note the change was refused, not proven harmful.

Self-reported numbers

The remaining figures all come from the project's own page and are not independently verified: 51 seconds from install to first reply, $0.0005 per turn on live DeepSeek calls, and 1,897 test runs in a single CI pass with zero failures. Version 0.3.3 consists of 136 files — seven prompt and skill files, five tool files and 124 compiled-core files, roughly 508k tokens — and the live view marks three of them as files INIT changed itself. A three-week comparison with a fixed harness, in which the fixed agent pays the same frictions daily while INIT pays each one once, is labelled illustrative rather than measured.

Installation is a one-line script piped from curl into sh and hosted on the project's GitHub releases under nagisanzenin/INIT-Agent, so the usual caution about executing remote shell scripts applies.

Four open problems

INIT Labs frames the signed change log as a research instrument and lists four open questions it wants the data to inform: whether agent swarms following only local rules can solve what a single agent or a committee cannot; whether there is an agent genome where mutation produces variation instead of collapse; whether an agent can model itself well enough to foresee its own failures and act in time; and immunity — the observation that an agent which upgrades itself can be infected by its own upgrades, with nothing yet guarding against that. The team says it will publish what fails, too.

Why it matters

Most agent tooling treats the harness as fixed infrastructure: capability improves by swapping models in and out. INIT inverts that assumption and makes the harness the growing part, so a recurring friction is fixed once instead of re-paid every day. Just as significant is the shape of the safety story: self-modification is not left as an anecdote but instrumented as a pipeline — gated, signed, hash-chained and reversible, with a hard boundary the model cannot write. Whether those gates hold against genuinely harmful self-edits is precisely the project's own open immunity question, and every number above is the vendor's. But as a public, open-source testbed in which an agent's self-surgery is measured, recorded and undoable, INIT is a rare artifact, and a concrete sketch of what sandboxed self-improvement could look like in practice.

  • #open-source
  • #rust
  • #ai-agents
  • #developer-tools
  • #self-modification

Related posts