Skip to content

Hone Raises a $60M Seed from Benchmark and Index Ventures to Build AI EnginesHone announces 60m seed

Learn more
002

Closing The Gap #1 - Simulations For Self-Improving Agents

Research

Closing The Gap is a series from Hone’s engineering team about the systems that translate frontier intelligence into economic value.

Real work Week 1Week 2Week 3Week 4Week 5 Replayed in minutes Before 83% Untested harness change a new memory Untested harness change a new memory 83% Fixed 2,regressed 2Tested harness change via replay Tested harness change via replay 100% Promoted “Cheaper, please.” “Out of stock.” “Check new suppliers.” Parts on time “No rush fees.” Delayed User feedback Environment feedback Handled the way the user wanted Not
Real work User feedback Environment feedback Week 1Week 2Week 3Week 4Week 5 Replayed in minutes Before 83% Untested harness changeUntested harness change 83% a new memory· Fixed 2, regressed 2Tested harness changeTested harness change 100% via replay· Promoted “Cheaper,please.” Supplier:“No stock.” “Check newsuppliers.” Partson time “No rushfees.” Delayed Handled the way the user wanted Not

When an oxygen tank blew up on Apollo 13 (leading to the famous “Houston, we’ve had a problem”), engineers on Earth had three days to send instructions to the astronauts on how to restart the ship with nearly dead batteries. Before sending the instructions, the NASA engineers tested them in a simulator to make sure they would work in space. The simulator gave engineers a place to make mistakes before potentially endangering the crew.

Today’s AI systems, in contrast, blindly gamble with each change they make. Agents change systems in real time, often leading to unexpected behavior in production. A simple agent-generated prompt change can lead to regressions across a host of behaviors. At Hone, we’re building the infrastructure to solve this problem.

A Self-Improving Harness

Engines are multiplayer, self-bootstrapping agents that drive business outcomes. They self-improve by modifying their tools, hooks, code, memories, and other workspace context.

Any of those changes can break something that used to work. So before an engine promotes one, it replays the change in simulation to see its blast radius, in four steps:

  1. Discover issues by searching through traces, mining them for user or environmental signal.
  2. Replay the actions to reproduce the issue.
  3. Propose a harness change to fix the issue.
  4. Promote the change once confirmed it doesn’t introduce regressions in simulation, thus completing the loop.
1Discover2Replay3Propose4Promote User feedbackEnvironment feedback George: “Check with me before ordering from a new supplier.” Invoice: 30% above our usual price Delivery: 6 days later than our regular supplier 1,284 sessions→ 37 matches→ 3 candidatesMar 4 · orders.create → Halvorsen Bearing matchMar 4 · #ops · George: “check with me first” matchMar 2 · orders.create → Apex Industrial Feb 27 · gmail.send → Apex · delivery date Feb 24 · #line-2 · Bob: “parts arrived” Feb 19 · orders.create → Apex (weekly reorder) Feb 11 · calendar.create · supplier review Replaying Mar 4 · gmail.send → jamie@atlas… slack.read {channel: "#ops"}oksuppliers.lookup {"Halvorsen"}new supplierorders.draft {part: "bearings", qty: 400}okorders.create {supplier: "Halvorsen…"}okReproduced: ordered without asking Proposed memory Promoted memory Promoted Always ask George before ordering from a new supplier Always ask George before ordering from a new supplier,unless a line is down Always ask George before ordering from a new supplier,unless a line is down From George’s feedback and the reproduced trace The original complaint ✓ Passed ✓ Passed“Line 2 is down, order the bearings now” ✕ Regressed ✓ PassedWeekly reorder from a regular supplier ✓ Passed ✓ PassedOrder George had already approved ✓ Passed ✓ PassedUntested: the same memory goes straight into useBreaks the line-down order
Step 1 of 4 · DiscoverStep 2 of 4 · ReplayStep 3 of 4 · ProposeStep 4 of 4 · Promote User feedbackEnvironment feedback George: “Check with me before orderingfrom a supplier we haven’t used.” Invoice: 30% above our usual price Delivery: 6 days later than our regular supplier 1,284 sessions→ 37 matches→ 3 candidatesMar 4 · orders.create → Halvorsen matchMar 4 · #ops · “check with me” matchMar 2 · orders.create → Apex Feb 27 · gmail.send → Apex Feb 24 · #line-2 · “parts arrived” Feb 19 · orders.create (reorder) Feb 11 · calendar · supplier review Replaying Mar 4 · jamie@… slack.read {"#ops"}oksuppliers.lookup {…}new supplierorders.draft {"bearings"}okorders.create {"Halvorsen"}okReproduced: ordered without asking Proposed memory Promoted memory Promoted Always ask George before orderingfrom a new supplier Ask George before ordering from a newsupplier, unless a line is down Ask George before ordering from a newsupplier, unless a line is down From George’s feedback and the reproduced trace The original complaint ✓ Passed ✓ Passed“Line 2 is down, orderthe bearings now” ✕ Regressed ✓ PassedWeekly reorder froma regular supplier ✓ Passed ✓ PassedOrder George hadalready approved ✓ Passed ✓ PassedUntested: the same memorygoes straight into useBreaks the line-down order

Simulating Messy Company State

To replay an engine’s work, you need to recreate the environment it encountered and how that environment would respond differently. While codebases are versioned and deterministically reproducible (e.g. rewind and execute the program from commit 020c38b), company state is spread across systems without restorable snapshots. Companies don’t have versions to rewind to, nor do they operate in predetermined ways.

Hone’s engines must self-improve by simulating company systems over time and how they might have counterfactually responded to different actions.

“No engine ever steps into the same company twice, for it is not the same company and it is not the same engine.”

Heraclitus, or somebody
Start of replay Recorded session Further from the start, the runs disagree more Dashed: what actually happened No two replays go the same way so each change is replayed several times
Start of replay Recorded session Dashed: what actually happened Further from the start, the runs disagree more No two replays go the same way so each change is replayed several times

Our solution is an agent we call the “director,” which controls the replay by mocking people and system events. After every action the engine takes, the director sees what the engine wrote, then decides what happens next (e.g. someone replies three minutes later, or a shipment notice arrives).

The engineThe directorThe simulated world Engine · 1:10pm To George: OK to order from Halvorsen? Director I’ll have George reply in 3 minutes. George · 1:13pm Yes, if they can deliver by Friday. Engine · 1:14pm To Halvorsen: can you deliver Friday? Director No one replies, so I’ll skip to 3:30pm. Fast-forward 2 hours Director I’ll have the supplier’s quote arrive now. Halvorsen · 3:30pm Quote attached. Friday works. Engine · 3:31pm Ordered from Halvorsen.
In the middle, the director decides what happens next Engine · 1:10pm To George: OK to order from Halvorsen? Director I’ll have George reply in 3 minutes. George · 1:13pm Yes, if they can deliver by Friday. Engine · 1:14pm To Halvorsen: can you deliver Friday? Director No one replies, so I’ll skip to 3:30pm. Fast-forward 2 hours Director I’ll have the supplier’s quote arrive now. Halvorsen · 3:30pm Quote attached. Friday works. Engine · 3:31pm Ordered from Halvorsen.

We can’t rewind Salesforce by two weeks, so mocked tools have to answer the way their real ones would have. In our replays, we solve this by assigning an agent to each mocked tool. The agent grounds its answers in the recorded inputs and outputs of that tool from real engine traces. We tested this agent on recorded traces from real engines across Slack, GitHub, Linear and Datadog. We showed the agent the first half of a trace and had it answer the tool calls from the second, and it reproduced the ground-truth facts with 90% accuracy.

The mocked tool’s answers stay consistent with previous replay state (e.g. a ticket it never opened gets a believable title and status).

The replayed engine calls a tool orders.get(412) The simulated tool searches what the engine recorded Mon Salesforce · Order 412 created: 400 bearings from Kessler Tue Datadog · Alert: order sync delayed 4 minutes Wed Slack · “Order 412 lands Friday.” Its answer Supplier Kesslerfrom Salesforce Quantity 400from Salesforce Delivery Fridayfrom Slack Status Confirmedfilled in: nothing recorded it
The replayed engine calls a tool orders.get(412) The simulated tool searches what the engine recorded Mon Order 412: 400 from Kessler Tue Alert: sync delayed Wed “Order 412 lands Friday.” Its answer Supplier KesslerSalesforce Quantity 400Salesforce Delivery FridaySlack Status Confirmedfilled in: nothing recorded it

Fast-Forwarded Time

Simulated people and tools make a replay faithful. It also has to be fast, since the work it covers took weeks. When an engine’s code needs to know what time it is, it reads from one now() function which returns real time in production but simulated time in a replay.

In simulation, the clock skips stretches where both the engine and its environment are idle (no pun intended), for example when a supply chain engine waits days for a quiet supplier before following up.

Simulated Wall clock Nothing dueNothing due Drafting a quote requestOur sandbox is startingSends itWaiting on the supplierQuote in, placing the orderOur infra is busySchedules a delivery checkDelivery check in 3 days Model thinking: runs in both Our infra: no simulated time Idle: skipped
Simulated Wall clock Nothing dueNothing due Drafting a quote requestOur sandbox is startingSends itWaiting on the supplierQuote in, placing the orderOur infra is busySchedules a delivery checkDelivery check in 3 days Model thinking: runs in both Idle: skipped Our infra: no simulated time

Every service in a simulation runs in-process on the same clock, so when it skips ahead, scheduled events fire on time (e.g. a follow-up set for next Tuesday).

Together, the fast-forwarded clock, the director and simulated tools let a replay cover weeks of work in minutes while staying true to the enterprise state it executed in.

Putting It Together: Handing Our Tools to the Engine

Engineers improve AI systems via the outer loop: a manual cycle of reading customer feedback, testing the change, and promoting what works. We’ve given engines the same tools our engineers have, moving this cycle to the “inner loop.”

Engine runs the loop itself An engineer runs the loop Rules and proposed changes Ask before cancelling an order Reorder regular parts directly Line-down orders go out Proposed, under test Line-down orders go outTested and promoted FeedbackChangeTestPromote Broke a past decision Earlier cases still pass Testing earlier cases Outer loop: an engineer tests a change to the engine's harness. It breaks a past decision, so it's dropped. The engine grows around the same loop. The engine proposes a change, replays past situations and promotes the version that passes.
Engine runs the loop itself An engineer runs the loop Rules and proposed changes Ask before cancelling an order Reorder regular parts directly Line-down orders go out Proposed, under test Line-down orders go outTested and promoted FeedbackChangeTestPromote Broke a past decision Earlier cases still pass Testingearlier cases Outer loop: an engineer tests a change to theengine's harness. It breaks a past decision,so it's dropped. The engine grows around the same loop. The engine proposes a change, replays pastsituations and promotes the version that passes.

The inner loop moves the bottleneck from human attention to model intelligence, and only one of those keeps scaling.

Results

Across 125 distinct scenarios, replaying a change before promoting cut regressions from 33% to 5%.

Fixed, no regressions Fixed, but introduced a regression Didn't fix Untested harness changes Applied as written 38% 33% 29% 38%Tested harness changes Replayed first 92% 5% 3% 92% Share of proposed changes. Same proposed changes, same issues.
Fixed, no regressions Didn't fix Fixed, but introduced a regression Untested harness changes 38% 33% 29% Applied as written 38%Tested harness changes 92% 5% 3% Replayed first 92% Share of proposed changes.Same proposed changes, same issues.

Engines without replay tools couldn’t see their own regressions coming; when asked beforehand what a change might affect, they failed to predict the things that went on to break. Replay also uncovered behavior that was correct but never written down. Whenever a harness change introduced regressions in previously implicit behavior, replay allowed the engine to make that behavior explicit.

Without replay, these regressions pile up, because each new change can break an earlier one.

Untested harness changes Each goes straight into use Number of harness changes Engine performance Change #7 broke #2Change #10 broke #5Change #13 broke #8 Tested harness changes Replayed in simulation first,promoted only if nothing breaks Number of harness changes Engine performance Not promoted: broke #2Broke nothing, promotedBroke nothing, promoted FixedBroke an earlier changeMissedPromotedNot promoted
Untested harness changes Each goes straight into use Number of harness changes Engine performance Change #7 broke #2Change #10 broke #5Change #13 broke #8 FixedBroke an earlier changeMissed Tested harness changes Replayed in simulation first,promoted only if nothing breaks Number of harness changes Engine performance Not promoted: broke #2Broke nothing, promotedBroke nothing, promoted PromotedNot promoted

Untested, an engine’s performance flattens out, because past a certain point every gain is paid for with a regression. Tested, it keeps compounding.

What’s Next?

With the tools to verify their own changes, engines can try strategies well beyond a new memory or prompt: post-training their own models for specific tasks, distilling themselves onto cheaper models, or building worlds for situations they haven’t met yet, all in pursuit of owning their outcomes.

If you would like to contribute to the solutions that scale with model intelligence, email team@hone.com.