<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Neil Luo</title>
    <description>The latest articles on DEV Community by Neil Luo (@neilluo).</description>
    <link>https://dev.to/neilluo</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3935874%2F00d9bd80-f42d-4dbb-9ff3-1d8a2596ca7b.png</url>
      <title>DEV Community: Neil Luo</title>
      <link>https://dev.to/neilluo</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/neilluo"/>
    <language>en</language>
    <item>
      <title>What happens to a long-running LangChain agent after hour 6 (measured on five stacks)</title>
      <dc:creator>Neil Luo</dc:creator>
      <pubDate>Wed, 25 Nov 2026 21:34:14 +0000</pubDate>
      <link>https://dev.to/neilluo/what-happens-to-a-long-running-langchain-agent-after-hour-6-measured-on-five-stacks-2p9j</link>
      <guid>https://dev.to/neilluo/what-happens-to-a-long-running-langchain-agent-after-hour-6-measured-on-five-stacks-2p9j</guid>
      <description>&lt;p&gt;If you run a LangChain or LangGraph agent for hours, the first thing that changes around hour 6 is probably the size of its prompt. I wanted to see what that does to the bill and to the answers, so I ran one simulated 12-hour shift through five stacks and logged every model call.&lt;/p&gt;

&lt;p&gt;I build Argentic, an engine that keeps AI agents right for hours while prompt size is bounded. It is one of the five stacks, and it did not win on score. The numbers are below, with versions and dates.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I ran
&lt;/h2&gt;

&lt;p&gt;The shift is a bakery's operations desk. Over 12 simulated hours it has about 1,400 events: orders, price changes, stock counts, owner messages, standing instructions that get amended or revoked, and updates that contradict earlier ones. A fixed program with no model in the loop grades 663 questions about it. Every stack got the same seed, the same questions, the same grader and Claude Haiku 5.5, and each run had a spend cap.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;LangChain 1.6.7, a plain agent loop at its defaults: no summarising step, no prompt caching.&lt;/li&gt;
&lt;li&gt;LangChain Deep Agents 1.17.1 (with langchain 1.6.8), as shipped.&lt;/li&gt;
&lt;li&gt;The Claude Agent SDK with its default auto-compaction.&lt;/li&gt;
&lt;li&gt;Letta with its memory and background tools on.&lt;/li&gt;
&lt;li&gt;Argentic 0.104.1.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I ran the JavaScript packages, on 25 November 2026. Nothing was tuned. I haven't measured the Python versions.&lt;/p&gt;

&lt;h2&gt;
  
  
  What hour 6 looks like
&lt;/h2&gt;

&lt;p&gt;Haiku 5.5 bills a request at roughly five times the normal rate once its prompt passes 100K tokens. A loop that re-sends its history gets there eventually, and every call after that costs more.&lt;/p&gt;

&lt;p&gt;Deep Agents shows it cleanly. It finished all 12 hours, and over hours 1 to 5 it spent $0.29 in total, because prompt caching is on by default and the prompt stayed under 100K. From hour 6 on it spent between $1.10 and $1.60 an hour. Its prompt grew from 5.7K tokens to 279K, and 925 of its 1,450 calls went over 100K. The whole run cost $9.46.&lt;/p&gt;

&lt;p&gt;It never summarised anything. Deep Agents triggers summarisation at 85% of the model's context window, and the profile LangChain gives Haiku 5.5 says that window is 1M tokens, so the trigger sits at 850K. This run never reached it. If your model has a window that large, that default means your agent keeps its whole history for a very long time, and you pay for that in the tier.&lt;/p&gt;

&lt;p&gt;The plain LangChain loop hit its $5 cap in hour 6, at $5.09. It has no score over hours 1 to 8 because it was stopped.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Stack&lt;/th&gt;
&lt;th&gt;Spend&lt;/th&gt;
&lt;th&gt;Where it stopped&lt;/th&gt;
&lt;th&gt;Score, hours 1 to 8&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Argentic 0.104.1&lt;/td&gt;
&lt;td&gt;$0.75&lt;/td&gt;
&lt;td&gt;finished 12 hours&lt;/td&gt;
&lt;td&gt;0.87 (four runs: 0.86 to 0.89)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;LangChain Deep Agents 1.17.1&lt;/td&gt;
&lt;td&gt;$9.46&lt;/td&gt;
&lt;td&gt;finished 12 hours&lt;/td&gt;
&lt;td&gt;0.92&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Claude Agent SDK&lt;/td&gt;
&lt;td&gt;$8.02&lt;/td&gt;
&lt;td&gt;$8 cap, hour 9&lt;/td&gt;
&lt;td&gt;0.92&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Letta&lt;/td&gt;
&lt;td&gt;$8.02&lt;/td&gt;
&lt;td&gt;$8 cap, hour 10&lt;/td&gt;
&lt;td&gt;0.89&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;LangChain 1.6.7, plain loop&lt;/td&gt;
&lt;td&gt;$5.09&lt;/td&gt;
&lt;td&gt;$5 cap, hour 6&lt;/td&gt;
&lt;td&gt;none, stopped early&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Spend is token usage at list prices, not an invoice. Over hours 1 to 8, which is 403 questions, the Agent SDK and Deep Agents scored higher than Argentic's whole range, by about 4.6 points over its mean. Letta sits at the top edge of that range, so I can't separate it from Argentic on these hours. The rivals ran once each, so their scores carry noise I haven't measured.&lt;/p&gt;

&lt;p&gt;So on this shift, Deep Agents kept its answers right by keeping everything in the prompt, and it cost about 12.6 times what Argentic did. Argentic cost less and scored lower. Which of those matters more depends on your agent and your budget.&lt;/p&gt;

&lt;p&gt;Argentic was also worse on one kind of question: running counts, 0.86 against 0.96 for the Agent SDK. The misses I traced came down to one question about open support tickets. The agent only keeps a tally for counts that the task prompt names, and mine named stock levels but not tickets. When I resent those requests, one sentence in the task prompt fixed it: "Keep a running count of open tickets with tally: +1 when one opens, -1 when it is resolved and closed." That was a resend test, not a full run, and I didn't archive its outputs, so treat it as something to repeat.&lt;/p&gt;

&lt;h2&gt;
  
  
  Check whether your own loop crosses the line
&lt;/h2&gt;

&lt;p&gt;You need the prompt size of every call. LangChain puts it on the response message as &lt;code&gt;usage_metadata&lt;/code&gt;. This callback writes it to a file, one line per call:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;json&lt;/span&gt;
&lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="n"&gt;langchain_core&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;callbacks&lt;/span&gt; &lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="nc"&gt;BaseCallbackHandler&lt;/span&gt;

&lt;span class="k"&gt;class&lt;/span&gt; &lt;span class="nc"&gt;UsageLog&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nc"&gt;BaseCallbackHandler&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;__init__&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;self&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;path&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"usage.jsonl"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="nb"&gt;self&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;path&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;path&lt;/span&gt;

    &lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;on_llm_end&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;self&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;response&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="o"&gt;**&lt;/span&gt;&lt;span class="n"&gt;kwargs&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;generations&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;response&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;generations&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;g&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;generations&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
                &lt;span class="n"&gt;u&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;getattr&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;getattr&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;g&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"message"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="kc"&gt;None&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"usage_metadata"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="kc"&gt;None&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
                &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;u&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
                    &lt;span class="k"&gt;with&lt;/span&gt; &lt;span class="nb"&gt;open&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;self&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;path&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"a"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
                        &lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;write&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;json&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;dumps&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s2"&gt;"input_tokens"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;u&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"input_tokens"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="s2"&gt;"\n"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Pass it with &lt;code&gt;config={"callbacks": [UsageLog()]}&lt;/code&gt; on your agent's invoke call. Check one call by hand to confirm that &lt;code&gt;input_tokens&lt;/code&gt; includes cached tokens for your provider. Then summarise the file with jq:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;jq -s &lt;span class="s1"&gt;'
  [.[] | .input_tokens] as $p
  | { calls: ($p | length),
      over_100k: ($p | map(select(. &amp;gt; 100000)) | length),
      first_over: ((($p | map(. &amp;gt; 100000) | index(true)) // -1) + 1),
      largest: ($p | max) }
'&lt;/span&gt; usage.jsonl
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;first_over&lt;/code&gt; is the call number where you first crossed 100K, and 0 means you never did. Other models price long prompts differently, so check your model's price page for a step like this before you trust any estimate.&lt;/p&gt;

&lt;h2&gt;
  
  
  Keeping the prompt down
&lt;/h2&gt;

&lt;p&gt;There are three common ways to do it. You can cap how much history you send, which is simple but forgets whatever you cut. You can add a summarising step, which keeps the gist but rewrites history, and details can degrade each time it runs. I didn't measure that loss here, because Deep Agents never reached its trigger. Or you can move long-lived facts out of the transcript and look them up when the agent needs them.&lt;/p&gt;

&lt;p&gt;Argentic takes the third route. It builds each prompt from a record of the run, under a size cap, so the prompt stays small without throwing the record away. Its largest prompt in this shift was 55K tokens, its median 37K, and none of its 1,487 calls passed 100K.&lt;/p&gt;

&lt;h2&gt;
  
  
  What this doesn't show
&lt;/h2&gt;

&lt;p&gt;It's one seed, and the benchmark's guide asks for at least three. Only Argentic has a range, from four runs. The rivals ran once each, and three of them were stopped by spend caps before the shift ended. The rivals ran on the Anthropic API and Argentic on a local copy of the hosted engine with Haiku 5.5 through AWS Bedrock. The rivals were a few patch releases behind the newest npm versions that day.&lt;/p&gt;

&lt;h2&gt;
  
  
  Check it yourself
&lt;/h2&gt;

&lt;p&gt;The raw files for every run are on the page with a SHA-256 for each: the settings, the summary, every graded question, the log of every action the agent took, and every model call. &lt;a href="https://getargentic.com/research/head-to-head/" rel="noopener noreferrer"&gt;https://getargentic.com/research/head-to-head/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Argentic's own engine files, meaning its prompts and internal logs, aren't published. The benchmark publishes what the shift looked like from the outside.&lt;/p&gt;

&lt;p&gt;The benchmark, the scorer, a validator that reproduces each grade from its log, and the commands to rerun every arm are at &lt;a href="https://github.com/open-haul/open-haul-bench" rel="noopener noreferrer"&gt;https://github.com/open-haul/open-haul-bench&lt;/a&gt; (start with REPRODUCE.md). If you run it with your own setup and get different numbers, open an issue there. I'd like to see them.&lt;/p&gt;

</description>
      <category>langchain</category>
      <category>ai</category>
      <category>agents</category>
    </item>
    <item>
      <title>Context degradation: what rewriting an agent's history costs over hours</title>
      <dc:creator>Neil Luo</dc:creator>
      <pubDate>Wed, 25 Nov 2026 13:33:22 +0000</pubDate>
      <link>https://dev.to/neilluo/context-degradation-what-rewriting-an-agents-history-costs-over-hours-34g4</link>
      <guid>https://dev.to/neilluo/context-degradation-what-rewriting-an-agents-history-costs-over-hours-34g4</guid>
      <description>&lt;p&gt;Context degradation is the loss of facts an agent once had, caused by rewriting its history to keep the prompt small. Summarising, compacting and truncating all do it. The loss is lossy, the agent can't undo it, and it compounds with every pass.&lt;/p&gt;

&lt;p&gt;It's easy to mix up with context rot, which is about models getting worse as a prompt gets longer. Context degradation is about what your own code does to the history before the model ever sees it. You can have one without the other.&lt;/p&gt;

&lt;p&gt;Here is a made-up version of how it plays out. At hour 1 the owner tells the agent a sourdough loaf costs $6.50. At hour 3 the price goes to $7.20. At hour 5 a standing discount is revoked. A summary written at hour 6 says "prices were updated several times and a discount was removed." The agent still knows something changed. It no longer knows what the price is now, or which discount went away.&lt;/p&gt;

&lt;p&gt;I wanted to see how much this shows up in practice, so I ran one simulated 12-hour shift through five stacks and logged every model call. I build Argentic, an engine that keeps AI agents right for hours while prompt size is bounded. It's one of the five, and it didn't win on score.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I ran
&lt;/h2&gt;

&lt;p&gt;The shift is a bakery's operations desk. Over 12 simulated hours it has about 1,400 events: orders, price changes, stock counts, owner messages, standing instructions that get amended or revoked, and updates that contradict earlier ones. A fixed program with no model in the loop grades 663 questions about it. Every stack got the same seed, the same questions, the same grader and Claude Haiku 5.5, and each run had a spend cap.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;LangChain 1.6.7, a plain agent loop at its defaults.&lt;/li&gt;
&lt;li&gt;LangChain Deep Agents 1.17.1, as shipped.&lt;/li&gt;
&lt;li&gt;The Claude Agent SDK with its default auto-compaction.&lt;/li&gt;
&lt;li&gt;Letta with its memory and background tools on.&lt;/li&gt;
&lt;li&gt;Argentic 0.104.1.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I ran the JavaScript packages on 25 November 2026 and tuned nothing.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Stack&lt;/th&gt;
&lt;th&gt;Spend&lt;/th&gt;
&lt;th&gt;Where it stopped&lt;/th&gt;
&lt;th&gt;Score, hours 1 to 8&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Argentic 0.104.1&lt;/td&gt;
&lt;td&gt;$0.75&lt;/td&gt;
&lt;td&gt;finished 12 hours&lt;/td&gt;
&lt;td&gt;0.87 (four runs: 0.86 to 0.89)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;LangChain Deep Agents 1.17.1&lt;/td&gt;
&lt;td&gt;$9.46&lt;/td&gt;
&lt;td&gt;finished 12 hours&lt;/td&gt;
&lt;td&gt;0.92&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Claude Agent SDK&lt;/td&gt;
&lt;td&gt;$8.02&lt;/td&gt;
&lt;td&gt;$8 cap, hour 9&lt;/td&gt;
&lt;td&gt;0.92&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Letta&lt;/td&gt;
&lt;td&gt;$8.02&lt;/td&gt;
&lt;td&gt;$8 cap, hour 10&lt;/td&gt;
&lt;td&gt;0.89&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;LangChain 1.6.7, plain loop&lt;/td&gt;
&lt;td&gt;$5.09&lt;/td&gt;
&lt;td&gt;$5 cap, hour 6&lt;/td&gt;
&lt;td&gt;none, stopped early&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Spend is token usage at list prices, not an invoice.&lt;/p&gt;

&lt;h2&gt;
  
  
  What it showed
&lt;/h2&gt;

&lt;p&gt;The stack that kept the most history scored highest. Deep Agents never summarised anything: its trigger sits at 85% of the context window, LangChain's profile for Haiku 5.5 says that window is 1M tokens, and the run never got near 850K. Its prompt grew from 5.7K tokens to 279K, and it finished at 0.92 for $9.46. That's about 12.6 times what Argentic spent.&lt;/p&gt;

&lt;p&gt;Argentic cost less and scored lower. Over hours 1 to 8 the Agent SDK and Deep Agents both scored above Argentic's whole range, by about 4.6 points over its mean. Letta sits at the top edge of that range. Running counts were Argentic's weakest kind of question: 0.86 against 0.96 for the Agent SDK.&lt;/p&gt;

&lt;h2&gt;
  
  
  What it didn't show
&lt;/h2&gt;

&lt;p&gt;I can't point at this benchmark and say "there's context degradation." The Agent SDK does compact its history by default, and it scored 0.92 over hours 1 to 8, the same as the stack that kept everything. On this shift, in those hours, the compaction didn't cost it points I could measure.&lt;/p&gt;

&lt;p&gt;So the claim I'm making is narrower. Rewriting history is a way to lose facts. Whether you lose enough to matter depends on the agent, the task, and how many passes it goes through. Eight hours of one bakery shift didn't separate them, and I haven't run a longer one. It's also one seed, the rivals ran once each so their scores carry noise I haven't measured, and I haven't measured the Python versions.&lt;/p&gt;

&lt;h2&gt;
  
  
  Test your own agent for it
&lt;/h2&gt;

&lt;p&gt;You don't need my benchmark. Plant facts early, change some of them, and ask about them at the end:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Give the agent 20 facts in the first hour: prices, limits, names, standing rules.&lt;/li&gt;
&lt;li&gt;Amend or revoke ten of them over the next hours, mixed in with ordinary work.&lt;/li&gt;
&lt;li&gt;At the end, ask for the current value of every fact.&lt;/li&gt;
&lt;li&gt;Score each answer as current, stale (the old value) or missing.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Stale answers are the worrying ones. A missing fact, an agent can say it doesn't know. A stale one gets acted on. Run it once with your summarising step on and once with it off, and compare.&lt;/p&gt;

&lt;h2&gt;
  
  
  Data
&lt;/h2&gt;

&lt;p&gt;The raw files for every run are on the head-to-head page with a SHA-256 for each: the settings, the summary, every graded question, the log of every action the agent took, and every model call. &lt;a href="https://getargentic.com/research/head-to-head/" rel="noopener noreferrer"&gt;https://getargentic.com/research/head-to-head/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The benchmark, the scorer, a validator that reproduces each grade from its log, and the commands to rerun every arm are at &lt;a href="https://github.com/open-haul/open-haul-bench" rel="noopener noreferrer"&gt;https://github.com/open-haul/open-haul-bench&lt;/a&gt; (start with REPRODUCE.md). If you get different numbers, open an issue there. I'd like to see them.&lt;/p&gt;

&lt;p&gt;More on the engine is at &lt;a href="https://getargentic.com" rel="noopener noreferrer"&gt;https://getargentic.com&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>agents</category>
      <category>llm</category>
      <category>langchain</category>
    </item>
    <item>
      <title>We ran four agent stacks through one 12-hour shift. Three hit their spend cap first.</title>
      <dc:creator>Neil Luo</dc:creator>
      <pubDate>Wed, 25 Nov 2026 00:09:27 +0000</pubDate>
      <link>https://dev.to/neilluo/we-ran-four-agent-stacks-through-one-12-hour-shift-three-hit-their-spend-cap-first-3n2o</link>
      <guid>https://dev.to/neilluo/we-ran-four-agent-stacks-through-one-12-hour-shift-three-hit-their-spend-cap-first-3n2o</guid>
      <description>&lt;p&gt;Update, 25 November: I ran Argentic three more times on the same shift to see how much its score moves between identical runs. The range is now in the post and on the page.&lt;/p&gt;

&lt;p&gt;I'm building Argentic, an engine that runs the agent you already wrote for hours and builds each prompt from a record of the run, so the prompt stays bounded. I wanted to see how that compares with the stacks people actually use, so I ran one simulated shift through four of them.&lt;/p&gt;

&lt;p&gt;The shift is a bakery's operations desk. Over 12 simulated hours it has about 1,400 events: orders, price changes, stock counts, owner messages, standing instructions that get amended or revoked, and updates that contradict earlier ones. A fixed program with no model in the loop grades 663 questions about it. Every arm got the same seed, the same questions, the same grader and Claude Haiku 5.5, and each run had a spend cap. No earlier Argentic run had used this seed.&lt;/p&gt;

&lt;p&gt;The Claude Agent SDK ran with its default auto-compaction. Letta ran with its memory and background tools on. LangChain ran at its true defaults, which means no summarising step, and LangChain Deep Agents ran as shipped. Nothing was tuned. All of them were a few patch releases behind the newest on npm that day; the page lists the versions and dates.&lt;/p&gt;

&lt;h2&gt;
  
  
  What each one spent
&lt;/h2&gt;

&lt;p&gt;Argentic finished all 12 hours for $0.75.&lt;/p&gt;

&lt;p&gt;The Agent SDK hit its $8 cap in hour 9 at $8.02. Letta hit the same cap in hour 10 at $8.02. LangChain hit its $5 cap in hour 6 at $5.09. Deep Agents finished all 12 hours for $9.46.&lt;/p&gt;

&lt;p&gt;Their prompts grew for as long as they ran. The Agent SDK's median prompt was 118K tokens, and 888 of its 1,532 calls went over 100K. Haiku 5.5 bills a request over 100K tokens at roughly five times the normal rate, so each extra hour cost more than the one before. Letta's median was 139K, with 809 of 1,232 calls over 100K. Argentic's largest prompt was 55K tokens, its median 37K, and none of its 1,487 calls passed 100K.&lt;/p&gt;

&lt;h2&gt;
  
  
  How right they were
&lt;/h2&gt;

&lt;p&gt;You can only compare scores on hours both arms ran. Over hours 1 to 8, which is 403 questions, the Agent SDK scored 0.92, Deep Agents 0.92 and Letta 0.89. LangChain was stopped in hour 6, so it has no score for that stretch.&lt;/p&gt;

&lt;p&gt;Argentic scored 0.87 on the first run. The model isn't deterministic, so I ran Argentic three more times with the same engine, settings and questions. The four runs scored 0.87, 0.86, 0.89 and 0.87 over hours 1 to 8, a range of 0.86 to 0.89. Over the whole shift they scored 0.83 to 0.88.&lt;/p&gt;

&lt;p&gt;That puts the Agent SDK and Deep Agents above Argentic's range, by about 4.6 points over its mean. Letta's 0.89 sits at the top edge of it, so Letta and Argentic can't be told apart on these hours. Each rival ran once, so their scores carry the same kind of noise and I haven't measured how much.&lt;/p&gt;

&lt;p&gt;The spread is concentrated in a few kinds of question. Commitments swung from 0.35 to 0.82 between runs, and conflicting updates from 0.64 to 0.88. Running counts scored 0.86 in all four. On recall from long ago, Argentic scored 0.77 to 0.89, above the Agent SDK's 0.76 and Letta's 0.74 in every run. It did worse than the Agent SDK on running counts (0.86 against 0.96) in every run too.&lt;/p&gt;

&lt;p&gt;Hours 10 to 12 only have a score for Argentic and Deep Agents, because the others were stopped, so those hours aren't compared across all of them.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I found in the misses
&lt;/h2&gt;

&lt;p&gt;The running-counts misses I traced in a captured run were mostly one question: how many support tickets are open. Argentic's agent never keeps a tally for tickets. It only tallies a count that the task prompt names, and in this benchmark the prompt names stock levels but lists tickets only as a kind of notice. After the engine rebuilds the prompt, the open tickets are gone. The Agent SDK and Letta keep the whole transcript, so they don't need to record anything.&lt;/p&gt;

&lt;p&gt;When I resent those ticket requests, rewording the engine's own text never made the agent tally tickets. One sentence in the task prompt did: "Keep a running count of open tickets with tally: +1 when one opens, -1 when it is resolved and closed." So the fix sits with the app: name the counts you want kept. This was a resend test, not a full run, and I didn't archive its outputs, so treat it as something to repeat.&lt;/p&gt;

&lt;h2&gt;
  
  
  What this doesn't show
&lt;/h2&gt;

&lt;p&gt;It's one seed, and the benchmark's guide asks for at least three. Only Argentic has a range. The rivals ran once each, and three of them were stopped by spend caps before the shift ended. The repeats ran on a build one commit later than the first run, with the same engine release. The rivals ran on the Anthropic API and Argentic on a local copy of the hosted engine with Haiku 5.5 through AWS Bedrock. Spend is token usage at list prices, not an invoice.&lt;/p&gt;

&lt;h2&gt;
  
  
  Check it yourself
&lt;/h2&gt;

&lt;p&gt;For every run, the raw files are on the page with a SHA-256 for each: the settings, the summary, every graded question, the log of every action the agent took, and every model call, plus the rivals' request ledgers: &lt;a href="https://getargentic.com/research/head-to-head/" rel="noopener noreferrer"&gt;https://getargentic.com/research/head-to-head/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The four Argentic runs and what they scored are on their own post: &lt;a href="https://getargentic.com/research/head-to-head-noise-nov25/" rel="noopener noreferrer"&gt;https://getargentic.com/research/head-to-head-noise-nov25/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Argentic's own engine files, meaning its prompts and internal logs, aren't published. The benchmark publishes what the shift looked like from the outside.&lt;/p&gt;

&lt;p&gt;The benchmark, the scorer, a validator that reproduces each grade from its log, and the commands to rerun all the arms are at &lt;a href="https://github.com/open-haul/open-haul-bench" rel="noopener noreferrer"&gt;https://github.com/open-haul/open-haul-bench&lt;/a&gt; (start with REPRODUCE.md). If you run it with your own setup and get different numbers, open an issue on that repo. I'd like to see them.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>agents</category>
      <category>llm</category>
      <category>benchmarking</category>
    </item>
    <item>
      <title>Calling All Innovators: Shape the Future of Organisely with Us!</title>
      <dc:creator>Neil Luo</dc:creator>
      <pubDate>Wed, 27 May 2026 10:16:35 +0000</pubDate>
      <link>https://dev.to/neilluo/calling-all-innovators-shape-the-future-of-organisely-with-us-12ef</link>
      <guid>https://dev.to/neilluo/calling-all-innovators-shape-the-future-of-organisely-with-us-12ef</guid>
      <description>&lt;p&gt;We are building the future of agent orchestration and we want &lt;em&gt;YOU&lt;/em&gt; to shape it&lt;/p&gt;

&lt;p&gt;As a design partner you can shape how you define how agents request permissions, how user identity integrates across tools, and how policy ensures secure, smart agent actions. You’ll have a direct hand in making Organisely work exactly how you need it!&lt;/p&gt;

&lt;p&gt;If you're ready to shape the future of agents feel free to reach out at &lt;a href="mailto:neil.luo1@proton.me"&gt;neil.luo1@proton.me&lt;/a&gt;&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Organisely: Building the Operational OS for AI Agents</title>
      <dc:creator>Neil Luo</dc:creator>
      <pubDate>Sun, 17 May 2026 10:11:27 +0000</pubDate>
      <link>https://dev.to/neilluo/organisely-building-the-operational-os-for-ai-agents-2dde</link>
      <guid>https://dev.to/neilluo/organisely-building-the-operational-os-for-ai-agents-2dde</guid>
      <description>&lt;h1&gt;
  
  
  Organisely: Building the Operational OS for AI Agents
&lt;/h1&gt;

&lt;p&gt;I’m currently building &lt;strong&gt;Organisely&lt;/strong&gt; — an operational OS for AI agents.&lt;/p&gt;

&lt;p&gt;Instead of isolated chatbots with unlimited permissions, Organisely provides a shared layer for teams to manage agent identity, memory, permissions, approvals, and connectors.&lt;/p&gt;

&lt;p&gt;With Organisely you get:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Agent identity and persistent memory&lt;/li&gt;
&lt;li&gt;Permission gates and approval workflows&lt;/li&gt;
&lt;li&gt;Audit trails and “execution receipts” for every action&lt;/li&gt;
&lt;li&gt;Built-in connectors and runtime so agents can talk to your tools&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The goal is to make serious multi-agent workflows safer, more collaborative, and easier to operate across a team.&lt;/p&gt;

&lt;p&gt;Organisely will be free while we work closely with early design partners and shape the platform together.&lt;/p&gt;

&lt;p&gt;I’m looking for co-design partners and teams who are building AI agent workflows and feel today’s tooling is fragmented and risky. If that’s you, I’d love to connect — drop a comment or DM and let’s chat.&lt;/p&gt;

&lt;h1&gt;
  
  
  ai #agents #startup #saas
&lt;/h1&gt;

</description>
    </item>
  </channel>
</rss>
