<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Record and Replay on CodeInstances.com</title>
    <link>https://codeinstances.com/tags/record-and-replay/</link>
    <description>Recent content in Record and Replay on CodeInstances.com</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <lastBuildDate>Sun, 18 Oct 2026 00:00:00 +0000</lastBuildDate>
    <atom:link href="https://codeinstances.com/tags/record-and-replay/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>CodeInstances Forks a Run at Any Step, to Run On Live or Try a What-If Answer</title>
      <link>https://codeinstances.com/codeinstances-forks-a-run-at-any-step-to-run-on-live-or-try-a-what-if-answer/</link>
      <pubDate>Sun, 18 Oct 2026 00:00:00 +0000</pubDate>
      <guid>https://codeinstances.com/codeinstances-forks-a-run-at-any-step-to-run-on-live-or-try-a-what-if-answer/</guid>
      <description>&lt;p&gt;CodeInstances v0.6.0 adds fork. Replay runs a program against the whole recording. Fork runs it against the recording up to a step you pick, then lets it carry on from there. You get the past exactly as it happened, and a new future.&lt;/p&gt;&#xA;&lt;p&gt;Two uses pull this in. The first is picking up where a run went wrong. An agent ran for twenty minutes, called a dozen APIs, and on call nine it got an answer that sent it the wrong way. You don&amp;rsquo;t want to spend another twenty minutes and another dozen calls getting back to call nine. &lt;code&gt;codeinstances fork -at 9 run.instance&lt;/code&gt; answers calls one to eight from the recording in a moment, then sends call nine for real, against today&amp;rsquo;s servers.&lt;/p&gt;</description>
    </item>
    <item>
      <title>CodeInstances Launches as an Open Source Tool That Keeps Program Runs and Replays Them</title>
      <link>https://codeinstances.com/codeinstances-launches-as-an-open-source-tool-that-keeps-program-runs-and-replays-them/</link>
      <pubDate>Sun, 18 Oct 2026 00:00:00 +0000</pubDate>
      <guid>https://codeinstances.com/codeinstances-launches-as-an-open-source-tool-that-keeps-program-runs-and-replays-them/</guid>
      <description>&lt;p&gt;CodeInstances v0.1.0 is out. It&amp;rsquo;s a small command-line tool that keeps a run of any program as a file and replays it later, with the network replaced by what was recorded. It&amp;rsquo;s open source under the Apache License 2.0 and comes as a single static binary for Linux, macOS and Windows.&lt;/p&gt;&#xA;&lt;p&gt;The problem it goes after is an old one. Code is kept with great care, in version control, reviewed and tagged. Runs are thrown away. A test fails in CI, someone hits rerun, it passes, and whatever went wrong is gone along with the evidence. An API answers something strange once and never again. A job breaks on Tuesday, and by Wednesday the data it read has moved on.&lt;/p&gt;</description>
    </item>
    <item>
      <title>CodeInstances Now Compares Two Runs and Shows Where the Failing One Went Wrong</title>
      <link>https://codeinstances.com/codeinstances-now-compares-two-runs-and-shows-where-the-failing-one-went-wrong/</link>
      <pubDate>Sun, 18 Oct 2026 00:00:00 +0000</pubDate>
      <guid>https://codeinstances.com/codeinstances-now-compares-two-runs-and-shows-where-the-failing-one-went-wrong/</guid>
      <description>&lt;p&gt;CodeInstances v0.2.0 is out, and it adds the third verb. The first release could keep a run and replay it. This one compares two of them: &lt;code&gt;codeinstances diff passing.instance failing.instance&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;The usual case goes like this. A job works on Monday and fails on Tuesday, or passes on your laptop and fails in CI. You have both runs as instance files, because you put &lt;code&gt;codeinstances record&lt;/code&gt; in front of the command. Now you want to know what was different, and you&amp;rsquo;d rather not read two logs side by side and guess.&lt;/p&gt;</description>
    </item>
    <item>
      <title>How CodeInstances Was Tested Before Its First Release</title>
      <link>https://codeinstances.com/how-codeinstances-was-tested-before-its-first-release/</link>
      <pubDate>Sun, 18 Oct 2026 00:00:00 +0000</pubDate>
      <guid>https://codeinstances.com/how-codeinstances-was-tested-before-its-first-release/</guid>
      <description>&lt;p&gt;A tool that claims to replay runs exactly has to be tested on exactly that. So most of the testing for v0.1.0 does the same thing over and over in different ways: record a program against real servers, shut the servers down, replay it, and check the replay came out the same. Then change something and check the replay notices.&lt;/p&gt;&#xA;&lt;p&gt;Every number in this post comes from the result files in the code repository, in &lt;a href=&#34;https://github.com/codeinstances/codeinstances/tree/main/test/results&#34;&gt;test/results&lt;/a&gt;. They were recorded on October 18, 2026, at commit c2a5975, on a Linux machine with an Intel Xeon processor at 2.10GHz and 2 CPUs, with Go 1.24.7. One script, &lt;code&gt;scripts/record-tests.sh&lt;/code&gt;, runs everything and writes the files, so anyone can run it again.&lt;/p&gt;</description>
    </item>
    <item>
      <title>How to Replay the AI Agent Run That Did Something Odd Last Night</title>
      <link>https://codeinstances.com/how-to-replay-the-ai-agent-run-that-did-something-odd-last-night/</link>
      <pubDate>Sun, 18 Oct 2026 00:00:00 +0000</pubDate>
      <guid>https://codeinstances.com/how-to-replay-the-ai-agent-run-that-did-something-odd-last-night/</guid>
      <description>&lt;p&gt;An agent ran overnight on a batch of tasks. In the morning one result is wrong. It filed a ticket under the wrong customer, or summarised a document it never fetched, or called a tool twice. You run the agent on the same task to see what happened, and it does the job perfectly.&lt;/p&gt;&#xA;&lt;p&gt;That&amp;rsquo;s normal for agents. The model&amp;rsquo;s answers vary from run to run, so the agent picks different tools in a different order and ends up somewhere else. Running it again doesn&amp;rsquo;t show you last night&amp;rsquo;s run. It shows you a new one. With an ordinary program, rerunning is how you debug. With an agent, the only copy of the run that went wrong is whatever you kept at the time.&lt;/p&gt;</description>
    </item>
    <item>
      <title>What a Code Instance Is and Why Program Runs Should Be Kept Like Code</title>
      <link>https://codeinstances.com/what-a-code-instance-is-and-why-program-runs-should-be-kept-like-code/</link>
      <pubDate>Sun, 18 Oct 2026 00:00:00 +0000</pubDate>
      <guid>https://codeinstances.com/what-a-code-instance-is-and-why-program-runs-should-be-kept-like-code/</guid>
      <description>&lt;p&gt;If you&amp;rsquo;ve written object-oriented code, you already know the idea. A class is a blueprint. Each object you make from it is an instance of that class, with its own state. One &lt;code&gt;Order&lt;/code&gt; class, thousands of orders.&lt;/p&gt;&#xA;&lt;p&gt;Your program works the same way. The code is the blueprint, and every time it runs, that run is an instance of it. Same code, different day, different answers from the servers it talks to, different clock, different random numbers. Each run is its own thing.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Why Replay Matters for AI Agents That Take a Different Path Every Run</title>
      <link>https://codeinstances.com/why-replay-matters-for-ai-agents-that-take-a-different-path-every-run/</link>
      <pubDate>Sun, 18 Oct 2026 00:00:00 +0000</pubDate>
      <guid>https://codeinstances.com/why-replay-matters-for-ai-agents-that-take-a-different-path-every-run/</guid>
      <description>&lt;p&gt;Most programs are boring in a good way. Give them the same input and they do the same thing. If one fails, you can usually run it again and watch it fail again.&lt;/p&gt;&#xA;&lt;p&gt;An AI agent isn&amp;rsquo;t like that. The model&amp;rsquo;s answer varies from run to run, so the agent picks different tools, calls them in a different order, reads different pages and ends somewhere else. Ask it the same thing three times and you may get three different runs, and only one of them may go wrong. Run it again to see what happened, and you&amp;rsquo;re watching a different run.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
