<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Ehals on Medium]]></title>
        <description><![CDATA[Stories by Ehals on Medium]]></description>
        <link>https://medium.com/@ehals5921?source=rss-14f34b725ec1------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*kE1PiUx4-V7ye5LO</url>
            <title>Stories by Ehals on Medium</title>
            <link>https://medium.com/@ehals5921?source=rss-14f34b725ec1------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 13:05:45 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ehals5921/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[I asked Kiro to build a session recorder. It failed two of my five checks.]]></title>
            <link>https://medium.com/@ehals5921/i-asked-kiro-to-build-a-session-recorder-it-failed-two-of-my-five-checks-f9bdcc42cc9a?source=rss-14f34b725ec1------2</link>
            <guid isPermaLink="false">https://medium.com/p/f9bdcc42cc9a</guid>
            <category><![CDATA[hackathons]]></category>
            <category><![CDATA[kiro]]></category>
            <category><![CDATA[developer-tools]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[ai-agent]]></category>
            <dc:creator><![CDATA[Ehals]]></dc:creator>
            <pubDate>Tue, 24 Nov 2026 17:15:23 GMT</pubDate>
            <atom:updated>2026-11-24T17:15:23.816Z</atom:updated>
            <content:encoded><![CDATA[<p>This post is written as part of the Kiroween 2026 hackathon. It is about Session Autopsy, a static page that develops a coding agent’s session log like a spirit photograph, and about the Kiro CLI hook we built to record new sessions for it.</p><p>Project: <a href="https://github.com/dormkim/kiroween-autopsy">https://github.com/dormkim/kiroween-autopsy</a></p><p>Try it: <a href="https://dormkim.github.io/kiroween-autopsy/">https://dormkim.github.io/kiroween-autopsy/</a></p><p>Demo video: <a href="https://youtu.be/7jZ2pY2Nr3Y">https://youtu.be/7jZ2pY2Nr3Y</a></p><h3>Where the idea came from</h3><p>A coding agent can work for fifteen minutes and leave 172 lines of log. In one of our recordings, the first recognised source edit attempt came at 13:21 of 14:48. Before that, the agent asked for the same four lines of one file six times, and twice more after it.</p><p>An earlier prototype of mine tried to step in during sessions like that. In three comparisons, the interventions did not confirm more issues solved. So this time I stopped trying to change what the agent does. Session Autopsy only reads a recording after the session ends. Each request exposes its file lines once, and lines requested again get brighter. The ghost on the page is drawn from those requests.</p><h3>How the work was split</h3><p>Kiro CLI 3.5.0, in headless mode, built the project: the steering files, the spec, the application, the tests and both hook scripts. I chose the direction, and Claude Code acted as the reviewer between Kiro runs: it wrote the detailed prompts, ran the tests and made the commits. The build log in the repository records every Kiro run with its prompt, the files it changed and the credits it used: 535.14 credits in total by the account meter, through run 27 and the last filming session, including probe and test sessions.</p><h3>What I learned about Kiro</h3><p><strong>Test the custom agent’s boundary before any code.</strong> The builder agent had read and write tools limited to the project folder, and no shell. Before it wrote anything, 23 short sessions tried to step outside with harmless marker files: absolute paths, ../, symlinks, home paths, and the agent&#39;s own permission file. Those reads and writes were denied. It is an application-level limit, so Kiro could still learn whether an outside path existed. I would rather know that than assume more.</p><p><strong>A hook is a cheap reviewer.</strong> After the first run, a preToolUse hook checked Kiro’s writes for unsafe HTML sinks, home paths and key-shaped strings. It made 469 decisions and blocked one, which was our deliberate test. It caught no real mistake in this build. I still keep it, because it costs nothing until the day it matters.</p><p><strong>Steering is where claims get fixed.</strong> The steering rule that mattered most was about claims: describe what was recorded and do not judge whether the agent succeeded. When screenshot review found a headline that said more than the log showed, we fixed the headline and the steering together, so the next run would not repeat it.</p><p><strong>Know which engine you are on.</strong> Interactive kiro-cli chat uses the V3 engine by default, and on V3 our example agent gets more tools, including delete_file. The recorder&#39;s instructions now start sessions with --v2.</p><h3>The recorder, and the two checks it failed</h3><p>To let people record their own sessions, Kiro built a second preToolUse hook. It writes one line per tool call: the time, the tool, file names relative to the project, and line ranges for reads. It never records commands, file contents or prompts, because those can hold secrets.</p><p>Before building it, we wrote down five checks and agreed not to change them after seeing results. Three passed. Two did not.</p><ol><li><strong>The log should match the session.</strong> It does not always. When the agent sends several calls in one response, their hooks start in whatever order they happen to start. In one live session, the log named a different file as the first source edit than the session did. The hook input has no sequence number, so a preToolUse hook cannot restore the order. Calls to a tool the agent does not have never reach the hook at all. In one session that left 13 lines in the log for 14 calls.</li><li><strong>The recorder should never hide its own failure.</strong> This one is subtle. Kiro does not show the stderr of a failing preToolUse hook, and exit code 2 would block the tool. So the recorder exits with 1, the tool still runs, and the failure is easy to miss. We added a --check command and a check at each prompt, which now catch an unwritable folder and a full disk; on a real full disk image the old version said OK. Failures that leave no trace, a disk quota, or a missing node can still go unnoticed.</li></ol><p>One more thing went wrong, and it was on our side. Our first report of these results was too kind. It gave a wrong call count and called the second check “partly met”. An independent recount caught both. The build log now has the corrected numbers, and both failures are written in the README next to the install steps.</p><h3>What I would do differently</h3><p>I would test the hook’s behaviour with parallel calls on day one, before writing a spec that assumed one call at a time. And I would decide earlier how a recorder reports its own failures, because “the tool still runs” is the right default for a recorder and also the reason its failures go unnoticed.</p><p>The three bundled sample logs were hand-picked by the reviewer (Claude Code) and are not representative. If you record your own session and the agent never asked for line ranges, the ghost counts whole-file requests of the file it requested whole most often. In our early test recordings each file was requested whole and once, so their ghost has a single exposure. In a later one, Kiro went back to check its own edits with line ranges and asked for the same 40 lines twice, so its ghost has two.</p><p>If you try it, open the first sample, press replay, then click a finding. Everything runs in your browser, and nothing you open is uploaded.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f9bdcc42cc9a" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>