Urgent.News

What's breaking now, across hundreds of outlets.

AI

An Experimental Comparison of Six AI Agent Session Reset Policies

I ran 36 coding-agent runs under six context-clearing policies. Clearing after every task cost 33.5% more than clearing every third task.

An Experimental Comparison of Six AI Agent Session Reset Policies

AskDocDoc, a telehealth company with a CEO and a CTO, conducted an experiment to determine when to reset AI agent context. In this study, they compared six session policies across twelve programming tasks using Claude-sonnet-5 as the agent. The policies ranged from clearing after every task to clearing after every six tasks, with the latter costing 9.7% more than the former (after Holm correction).

The U-shaped cost curve indicated that shorter sessions were cheaper due to reduced cache writes, while longer sessions incurred higher costs from context reloading. The bottleneck was the cache, with writes being 20 times more expensive than reads. The experiment concluded that resetting sessions after three tasks yielded the lowest costs, but this finding wasn't definitive due to the study's limitations. The report, open data, and methodology are available on Hugging Face and Zenodo.

Rewritten by urgent.news; may contain errors — check the original.

Source: hackernoon.com

Read the original at hackernoon.com →

Report a problem with this story

More in AI

More from Friday 16 October →