Preventing Multi-Session Amnesia in Coding Agents: Prose Summaries vs. a 3-Artifact Shift-Handover Harness (-95.2% Input Tokens)
๐ก AI Labo Benchmark Series โ Experiment E36 (Multi-Session Continuity & State Handover) This post is part of our empirical benchmark series testing AI coding agent harness patterns inside network-isolated Proxmox VMs against a hidden 20-case grading suite. ๐ View All 41 Benchmark Results & Master Ranking ๐ก๏ธ Read How Our Proxmox & systemd Anti-Cheating Sandbox Works Metadata & Experimentโฆ
This experiment compares two methods for handing off multi-session coding tasks to AI agents. The first method, UnstructuredSummaryHandoffRunner, passes along a prose summary of the agent's progress across multiple "shifts" or context resets. However, this approach can cause two problems: feature amnesia, where subtle details are forgotten, and premature victory, where the task is deemed complete too early.
The alternative method, ShiftHandoverProtocolRunner, uses a 3-part artifact system. This includes a machine-readable contract checklist, an executable verification gate, and a structured progress log. When this three-artifact handover is used, the agent achieves perfect accuracy on the hidden grading suite in just one turn, cutting input tokens by 95.2% and API costs by 83.1%. This results in a more efficient and accurate coding assistance system.
Rewritten by urgent.news; may contain errors โ check the original.
Source: dev.to