<?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: Morgan</title>
    <description>The latest articles on DEV Community by Morgan (@morganlabs).</description>
    <link>https://dev.to/morganlabs</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%2F3929982%2Ff3df85bf-1850-4ed6-bf6e-955fe7798d76.png</url>
      <title>DEV Community: Morgan</title>
      <link>https://dev.to/morganlabs</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/morganlabs"/>
    <language>en</language>
    <item>
      <title>Current OSS proof, without the launch gloss</title>
      <dc:creator>Morgan</dc:creator>
      <pubDate>Fri, 03 Jul 2026 20:15:50 +0000</pubDate>
      <link>https://dev.to/morganlabs/current-oss-proof-without-the-launch-gloss-24fn</link>
      <guid>https://dev.to/morganlabs/current-oss-proof-without-the-launch-gloss-24fn</guid>
      <description>&lt;p&gt;Current OSS proof, without the launch gloss:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;25 merged upstream PRs&lt;/li&gt;
&lt;li&gt;real review across multiple repos&lt;/li&gt;
&lt;li&gt;mostly narrow code+test fixes&lt;/li&gt;
&lt;li&gt;no own-repo PRs counted in that number&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The useful part is not the count by itself. The useful part is the mix of constraints: different test setups, different maintainer preferences, different rule engines, different definitions of "small enough to merge."&lt;/p&gt;

&lt;p&gt;The pattern I want to keep repeating is simple:&lt;/p&gt;

&lt;p&gt;Find a real issue. Reproduce it. Patch the narrow behavior. Add the smallest useful test. Leave the repo closer to the maintainer's model than my own.&lt;/p&gt;

&lt;p&gt;That is less glamorous than a big build thread, but it is a cleaner signal for the kind of work I want more of: scoped debugging, code review, static analysis, test repair, and small infrastructure fixes that actually land.&lt;/p&gt;

&lt;p&gt;Disclosure: I used AI assistance to organize this private article draft. The current count should be rechecked against the OSS contribution ledger before publishing.&lt;/p&gt;

</description>
      <category>opensource</category>
      <category>devtools</category>
      <category>testing</category>
      <category>typescript</category>
    </item>
    <item>
      <title>What merged PRs teach that local projects do not</title>
      <dc:creator>Morgan</dc:creator>
      <pubDate>Fri, 03 Jul 2026 20:09:36 +0000</pubDate>
      <link>https://dev.to/morganlabs/what-merged-prs-teach-that-local-projects-do-not-gfk</link>
      <guid>https://dev.to/morganlabs/what-merged-prs-teach-that-local-projects-do-not-gfk</guid>
      <description>&lt;p&gt;Local projects are useful, but they are too forgiving.&lt;/p&gt;

&lt;p&gt;If I own the repo, I can choose the architecture, the naming, the test strategy, and the tradeoffs. That is good for building. It is not always good for proving I can work inside someone else's system.&lt;/p&gt;

&lt;p&gt;Merged upstream PRs are different.&lt;/p&gt;

&lt;p&gt;You do not get to decide that the repo should use your preferred style. You do not get to rewrite the surrounding code because it would make your fix prettier. You have to understand the local pattern and make the smallest change that fits.&lt;/p&gt;

&lt;p&gt;That constraint is the value.&lt;/p&gt;

&lt;p&gt;The most useful fixes in my OSS ledger are all narrow:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;preserve empty-string entries in Conform array submissions&lt;/li&gt;
&lt;li&gt;skip side-effect-free external imports in Rollup when hoisting is disabled&lt;/li&gt;
&lt;li&gt;avoid crashing &lt;code&gt;no-unresolved&lt;/code&gt; case checks on &lt;code&gt;EACCES&lt;/code&gt; / &lt;code&gt;EPERM&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;allow scoped package names in JSDoc declaration-reference inline tags&lt;/li&gt;
&lt;li&gt;handle object-shaped &lt;code&gt;not&lt;/code&gt; schemas in &lt;code&gt;swagger-typescript-api&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;avoid false positives in &lt;code&gt;require-meta-*&lt;/code&gt; when meta object spreads cannot be resolved&lt;/li&gt;
&lt;li&gt;format structured command entries in Cline history export&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Each one forced a slightly different kind of reading.&lt;/p&gt;

&lt;p&gt;Some were about parser behavior. Some were about test fixtures. Some were about error handling. Some were about not assuming a static analysis rule knows more than it actually knows.&lt;/p&gt;

&lt;p&gt;That last part has been the recurring lesson. The fix is rarely "make the tool smarter" in the abstract. The fix is usually "make the tool honest about this one boundary."&lt;/p&gt;

&lt;p&gt;That is also why I like OSS proof for developer-infrastructure work. A merged PR is small, but it is not private. Someone else accepted the tradeoff. Someone else decided the test was enough. Someone else now has to live with the change.&lt;/p&gt;

&lt;p&gt;That does not make it a perfect signal. It does make it a better signal than a private screenshot.&lt;/p&gt;

&lt;p&gt;Disclosure: I used AI assistance to organize this private article draft. The examples and current PR count should be rechecked against the OSS contribution ledger before publishing.&lt;/p&gt;

</description>
      <category>opensource</category>
      <category>career</category>
      <category>testing</category>
      <category>typescript</category>
    </item>
    <item>
      <title>The checklist I use before sending a small OSS PR</title>
      <dc:creator>Morgan</dc:creator>
      <pubDate>Fri, 03 Jul 2026 20:01:48 +0000</pubDate>
      <link>https://dev.to/morganlabs/the-checklist-i-use-before-sending-a-small-oss-pr-8fb</link>
      <guid>https://dev.to/morganlabs/the-checklist-i-use-before-sending-a-small-oss-pr-8fb</guid>
      <description>&lt;p&gt;Small open-source PRs look easy from the outside because the diff is usually small.&lt;/p&gt;

&lt;p&gt;The diff is not the work.&lt;/p&gt;

&lt;p&gt;The work is getting to the point where a maintainer can review it without having to guess what you changed, why it is safe, or whether you accidentally dragged in unrelated cleanup.&lt;/p&gt;

&lt;p&gt;The checklist I keep coming back to is boring:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Reproduce the issue before changing code.&lt;/li&gt;
&lt;li&gt;Find the smallest behavior boundary that explains the bug.&lt;/li&gt;
&lt;li&gt;Add or adjust the focused test first if the repo makes that practical.&lt;/li&gt;
&lt;li&gt;Keep the patch narrow, even if nearby code is tempting to clean up.&lt;/li&gt;
&lt;li&gt;Run the local checks that match the touched area.&lt;/li&gt;
&lt;li&gt;Re-read the diff like the maintainer has never seen your reasoning.&lt;/li&gt;
&lt;li&gt;If the PR body needs a paragraph to explain why half the files changed, the patch is probably too wide.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;That checklist has mattered across very different fixes: React Router SSR scripts, ast-grep pattern validation, ESLint rule edge cases, JSON schema defaults, Playwright optional chaining, and reporter output in &lt;code&gt;knip&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;The pattern is the same even when the libraries are different. A good small PR proves one thing.&lt;/p&gt;

&lt;p&gt;It does not try to be a resume. It does not fix the whole subsystem. It does not turn a maintainer issue into a platform for everything you noticed while reading the code.&lt;/p&gt;

&lt;p&gt;That restraint is practical. Maintainers are already carrying the whole project in their head. The cleanest contribution is usually the one that removes one sharp edge and gives them enough evidence to trust it.&lt;/p&gt;

&lt;p&gt;Disclosure: I used AI assistance to organize this private article draft. The examples should be rechecked against the OSS contribution ledger before publishing.&lt;/p&gt;

</description>
      <category>opensource</category>
      <category>testing</category>
      <category>typescript</category>
      <category>devtools</category>
    </item>
    <item>
      <title>Small open-source fixes are a better signal than a big portfolio claim</title>
      <dc:creator>Morgan</dc:creator>
      <pubDate>Fri, 03 Jul 2026 19:54:52 +0000</pubDate>
      <link>https://dev.to/morganlabs/small-open-source-fixes-are-a-better-signal-than-a-big-portfolio-claim-507d</link>
      <guid>https://dev.to/morganlabs/small-open-source-fixes-are-a-better-signal-than-a-big-portfolio-claim-507d</guid>
      <description>&lt;p&gt;I have been using small upstream PRs as a forcing function for proof.&lt;/p&gt;

&lt;p&gt;Not big rewrites. Not "I built a platform" posts. Just narrow bugs in real repositories, with a test, a focused patch, and whatever cleanup the maintainer asks for.&lt;/p&gt;

&lt;p&gt;That has been more useful than I expected.&lt;/p&gt;

&lt;p&gt;The main reason is that a merged PR carries constraints a portfolio project usually does not. You have to fit the repo's style. You have to reproduce the issue. You have to keep the diff small enough for someone else to review. If the maintainer asks for a different shape, the answer is not to argue with your original idea. The answer is to understand the invariant they are protecting.&lt;/p&gt;

&lt;p&gt;The fixes that taught me the most were not flashy:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;a React Router nonce fix for default SSR fallback/error scripts&lt;/li&gt;
&lt;li&gt;an &lt;code&gt;eslint-plugin-import&lt;/code&gt; fix that reported the runtime package name instead of &lt;code&gt;@types/*&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;an ast-grep fix that rejected root multi-metavariable patterns at pattern creation&lt;/li&gt;
&lt;li&gt;an &lt;code&gt;eslint-plugin-regexp&lt;/code&gt; fix around &lt;code&gt;matchAll().toArray()&lt;/code&gt; capture-group usage&lt;/li&gt;
&lt;li&gt;a &lt;code&gt;react-jsonschema-form&lt;/code&gt; fix for nested defaults through conditional &lt;code&gt;allOf&lt;/code&gt; schemas&lt;/li&gt;
&lt;li&gt;an &lt;code&gt;eslint-plugin-playwright&lt;/code&gt; optional-chaining fix in &lt;code&gt;missing-playwright-await&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;a &lt;code&gt;knip&lt;/code&gt; reporter fix that always prints single-group titles and counts&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;None of those sound like a launch. That is the point.&lt;/p&gt;

&lt;p&gt;They are small enough that the hard part is not architecture theater. The hard part is proving the exact behavior, avoiding unrelated churn, and making the change obvious to someone who has to maintain the project after you leave.&lt;/p&gt;

&lt;p&gt;My current ledger is 25 merged upstream PRs, with more still open. The number matters less than the shape: real maintainers, real review, real constraints.&lt;/p&gt;

&lt;p&gt;For paid work, I trust that signal more than a polished demo. A demo shows what I can build when I own the whole frame. A merged upstream PR shows whether I can enter someone else's frame, fix one thing, and leave the codebase easier to maintain.&lt;/p&gt;

&lt;p&gt;Disclosure: I used AI assistance to organize this private article draft. The OSS examples and counts should be rechecked against the contribution ledger before publishing.&lt;/p&gt;

</description>
      <category>opensource</category>
      <category>typescript</category>
      <category>testing</category>
      <category>devtools</category>
    </item>
    <item>
      <title>Agent cost bugs are debugging bugs</title>
      <dc:creator>Morgan</dc:creator>
      <pubDate>Fri, 15 May 2026 13:46:43 +0000</pubDate>
      <link>https://dev.to/morganlabs/agent-cost-bugs-are-debugging-bugs-32jg</link>
      <guid>https://dev.to/morganlabs/agent-cost-bugs-are-debugging-bugs-32jg</guid>
      <description>&lt;p&gt;A coding agent does not need to bankrupt you to create a cost bug.&lt;/p&gt;

&lt;p&gt;It just needs to make the run impossible to explain.&lt;/p&gt;

&lt;p&gt;You see the number on the invoice. You see the "done" in chat. You cannot connect them.&lt;/p&gt;

&lt;h2&gt;
  
  
  Cost is not only billing
&lt;/h2&gt;

&lt;p&gt;When developers talk about agent costs, the conversation usually drifts toward dashboards and rate limits — invoice-shaped problems with invoice-shaped fixes. That framing hides the actual pain.&lt;/p&gt;

&lt;p&gt;The pain in real workflows is closer to this: an agent runs, something happens, the bill or the environment changes in a way you did not expect, and you cannot quickly tell why.&lt;/p&gt;

&lt;p&gt;The fix is not a fancier billing UI. The fix is a record of what the run actually did.&lt;/p&gt;

&lt;p&gt;I keep noticing the same four shapes show up under "cost." All four are really debugging bugs.&lt;/p&gt;

&lt;h2&gt;
  
  
  Four failures that look like cost but are really run-truth failures
&lt;/h2&gt;

&lt;h3&gt;
  
  
  1. Unexpected token budgets
&lt;/h3&gt;

&lt;p&gt;A developer sends one image to a vision-capable model and watches the prompt-token count balloon to something they did not predict. The docs say one thing; the meter says another. They are left manually reconciling published documentation against observed billing.&lt;/p&gt;

&lt;p&gt;That is not a billing problem. That is a "what did this run actually consume?" problem. The run did not carry its own accounting. The developer is doing post-hoc forensics with whatever scraps the chat history preserved.&lt;/p&gt;

&lt;p&gt;This shows up repeatedly in vendor forums. There is nothing exotic going on — properly formatted requests, supported image sizes, normal API surfaces — and the result still surprises. Without a per-run record that ties the call shape to the observed cost, the conversation is forced upstream into "is the model overcounting?" instead of staying local where it could be diagnosed.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Credits or usage attached to the wrong workspace
&lt;/h3&gt;

&lt;p&gt;You are working in one client. You buy more usage. The credits land on a different account, or the same account in a different workspace, or the same workspace in a different surface. The work is paused while you try to figure out which identity owned the run.&lt;/p&gt;

&lt;p&gt;This is not a credit-card issue. It is an identity attribution issue masquerading as a money issue. The run did not record which workspace, which account, which environment was actually active when it spent budget.&lt;/p&gt;

&lt;p&gt;When attribution is invisible at run time, the only recovery path is a vendor support ticket. That is fine occasionally. It is a productivity disaster as a default mode.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Local processes that keep running after the agent is done
&lt;/h3&gt;

&lt;p&gt;You finish a session in a desktop client. You close it. Hours later you notice a Python interpreter still using memory, still doing whatever the agent was doing when the window closed. No one is watching it. No one billed for it on paper. But the laptop is doing work nobody asked for, and the agent that started it has no idea it left a tail.&lt;/p&gt;

&lt;p&gt;That is a cost in machine resources, in attention, in trust. And it is invisible to every vendor dashboard because it is local-by-definition. The only way to surface it would be a run record that says "I started a subprocess, here is its handle, here is what should happen to it when I exit."&lt;/p&gt;

&lt;p&gt;Today nothing in the agent stack writes that down. You discover the leak by looking at Activity Monitor and asking yourself, "what is this and where did it come from?"&lt;/p&gt;

&lt;h3&gt;
  
  
  4. Model swaps that change production behavior
&lt;/h3&gt;

&lt;p&gt;A team updates a model version. Same API, same prompts, same client code. Behavior drifts. The new model is faster, or cheaper, or differently-tuned, and it stops doing the part of the job everyone was relying on without saying anything.&lt;/p&gt;

&lt;p&gt;This is not advertised as a cost issue, but it is the same family. The cost of the change shows up as a quality regression in production. The team is running tests after the fact to figure out what shifted. The model swap was framed as low-risk because the surface stayed the same.&lt;/p&gt;

&lt;p&gt;A run record would not prevent the regression. But it would make the diff readable. You would have a frozen record of what the old model did and what the new model does, attached to the same run shapes, instead of a slow reconstruction from chat memory and prod logs.&lt;/p&gt;

&lt;h2&gt;
  
  
  What these have in common
&lt;/h2&gt;

&lt;p&gt;All four are easy to describe and surprisingly hard to debug, and the reason is the same.&lt;/p&gt;

&lt;p&gt;The agent ran. The vendor saw the call. The chat saw the prompt. None of those views capture the things you actually want to look at when something costs more than expected:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;the &lt;strong&gt;active identity&lt;/strong&gt; at run time (account, workspace, branch, worktree)&lt;/li&gt;
&lt;li&gt;the &lt;strong&gt;call shape&lt;/strong&gt; (model, parameters, attachments, sizes)&lt;/li&gt;
&lt;li&gt;the &lt;strong&gt;process footprint&lt;/strong&gt; (what was spawned, what is still running)&lt;/li&gt;
&lt;li&gt;the &lt;strong&gt;observed cost&lt;/strong&gt; (tokens, time, anything that crossed a threshold)&lt;/li&gt;
&lt;li&gt;the &lt;strong&gt;deviation from baseline&lt;/strong&gt; (last week this same run cost X)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;That set is small. None of it is exotic. None of it requires a hosted dashboard. It just has to exist somewhere a person can read it in two minutes and the next agent can re-use.&lt;/p&gt;

&lt;h2&gt;
  
  
  What a useful run record would capture
&lt;/h2&gt;

&lt;p&gt;I keep coming back to a boring shape:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight markdown"&gt;&lt;code&gt;Ask: &lt;span class="nt"&gt;&amp;lt;one&lt;/span&gt; &lt;span class="na"&gt;or&lt;/span&gt; &lt;span class="na"&gt;two&lt;/span&gt; &lt;span class="na"&gt;lines&lt;/span&gt; &lt;span class="na"&gt;of&lt;/span&gt; &lt;span class="na"&gt;intent&lt;/span&gt;&lt;span class="err"&gt;,&lt;/span&gt; &lt;span class="na"&gt;not&lt;/span&gt; &lt;span class="na"&gt;paraphrased&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
Identity: &lt;span class="nt"&gt;&amp;lt;model&lt;/span&gt;&lt;span class="err"&gt;,&lt;/span&gt; &lt;span class="na"&gt;account&lt;/span&gt;&lt;span class="err"&gt;,&lt;/span&gt; &lt;span class="na"&gt;workspace&lt;/span&gt;&lt;span class="err"&gt;,&lt;/span&gt; &lt;span class="na"&gt;branch&lt;/span&gt;&lt;span class="err"&gt;,&lt;/span&gt; &lt;span class="na"&gt;worktree&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
Inputs: &lt;span class="nt"&gt;&amp;lt;files&lt;/span&gt; &lt;span class="na"&gt;read&lt;/span&gt;&lt;span class="err"&gt;,&lt;/span&gt; &lt;span class="na"&gt;attachments&lt;/span&gt; &lt;span class="na"&gt;sent&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
Calls: &lt;span class="nt"&gt;&amp;lt;tool&lt;/span&gt; &lt;span class="err"&gt;/&lt;/span&gt; &lt;span class="na"&gt;API&lt;/span&gt; &lt;span class="na"&gt;calls&lt;/span&gt; &lt;span class="na"&gt;with&lt;/span&gt; &lt;span class="na"&gt;model&lt;/span&gt; &lt;span class="na"&gt;attribution&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
Outputs: &lt;span class="nt"&gt;&amp;lt;diffs&lt;/span&gt;&lt;span class="err"&gt;,&lt;/span&gt; &lt;span class="na"&gt;generated&lt;/span&gt; &lt;span class="na"&gt;artifacts&lt;/span&gt;&lt;span class="err"&gt;,&lt;/span&gt; &lt;span class="na"&gt;where&lt;/span&gt; &lt;span class="na"&gt;they&lt;/span&gt; &lt;span class="na"&gt;ended&lt;/span&gt; &lt;span class="na"&gt;up&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
Verification: &lt;span class="nt"&gt;&amp;lt;tests&lt;/span&gt;&lt;span class="err"&gt;,&lt;/span&gt; &lt;span class="na"&gt;lints&lt;/span&gt;&lt;span class="err"&gt;,&lt;/span&gt; &lt;span class="na"&gt;build&lt;/span&gt;&lt;span class="err"&gt;,&lt;/span&gt; &lt;span class="na"&gt;browser&lt;/span&gt; &lt;span class="na"&gt;checks&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
Cost footprint: &lt;span class="nt"&gt;&amp;lt;tokens&lt;/span&gt;&lt;span class="err"&gt;,&lt;/span&gt; &lt;span class="na"&gt;wall&lt;/span&gt; &lt;span class="na"&gt;time&lt;/span&gt;&lt;span class="err"&gt;,&lt;/span&gt; &lt;span class="na"&gt;surprising&lt;/span&gt; &lt;span class="na"&gt;spikes&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
Process footprint: &lt;span class="nt"&gt;&amp;lt;subprocesses&lt;/span&gt; &lt;span class="na"&gt;started&lt;/span&gt;&lt;span class="err"&gt;,&lt;/span&gt; &lt;span class="na"&gt;still&lt;/span&gt; &lt;span class="na"&gt;running&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
Open risks: &lt;span class="nt"&gt;&amp;lt;what&lt;/span&gt; &lt;span class="na"&gt;the&lt;/span&gt; &lt;span class="na"&gt;agent&lt;/span&gt; &lt;span class="na"&gt;suspects&lt;/span&gt; &lt;span class="na"&gt;but&lt;/span&gt; &lt;span class="na"&gt;did&lt;/span&gt; &lt;span class="na"&gt;not&lt;/span&gt; &lt;span class="na"&gt;confirm&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
Next-agent handoff: &lt;span class="nt"&gt;&amp;lt;first&lt;/span&gt; &lt;span class="na"&gt;three&lt;/span&gt; &lt;span class="na"&gt;things&lt;/span&gt; &lt;span class="na"&gt;a&lt;/span&gt; &lt;span class="na"&gt;fresh&lt;/span&gt; &lt;span class="na"&gt;agent&lt;/span&gt; &lt;span class="na"&gt;should&lt;/span&gt; &lt;span class="na"&gt;do&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Plain markdown. One file per meaningful run. Human-readable first, structured enough for the next agent second.&lt;/p&gt;

&lt;p&gt;The point of the cost footprint and process footprint sections is not to replace the invoice. It is to let you say, with the run in front of you:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Of course it cost that much — look at this 66K-token input.&lt;br&gt;
Of course it billed the wrong workspace — the run shows the other one was active.&lt;br&gt;
Of course there is a leaked subprocess — the run started one and never recorded it being torn down.&lt;br&gt;
Of course production drifted — the run identifies a model swap and the verification field is empty.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;That is what "cost is a debugging problem" looks like in practice. The bill is the headline. The record is the diagnosis.&lt;/p&gt;

&lt;h2&gt;
  
  
  The smallest thing I would build
&lt;/h2&gt;

&lt;p&gt;I would not build a dashboard. I would write a small per-run markdown file with the shape above, locally, and stop.&lt;/p&gt;

&lt;p&gt;No sync server. No vector store. No vendor lock-in. No new schema until the markdown shape has survived three real runs without changing.&lt;/p&gt;

&lt;p&gt;If that file existed, every "why did this cost X?" question would have a place to start that is not "let me scroll back through chat history." Most of the cost surprises above would stop being mysteries.&lt;/p&gt;

&lt;p&gt;The reason this is not a product yet is the same reason it is interesting: nobody has accepted that agent cost is a local-debugging surface. Vendors think it is their billing UI. Observability tools think it is a span. Memory products think it is something to retrieve later. None of them write the boring per-run file that would close most of the open questions.&lt;/p&gt;

&lt;h2&gt;
  
  
  Closing
&lt;/h2&gt;

&lt;p&gt;If your agent is burning money in a way you cannot explain in two minutes, the problem is not your budget. The problem is that the run did not write itself down.&lt;/p&gt;

&lt;p&gt;Cost bugs are debugging bugs. The fix is run truth.&lt;/p&gt;

&lt;p&gt;If you have hit any of the four failures above and patched around them differently — I want to hear about it. The shape of the right artifact is still up for grabs.&lt;/p&gt;

</description>
      <category>llm</category>
      <category>ai</category>
      <category>agents</category>
      <category>devtools</category>
    </item>
    <item>
      <title>Agents need a black box recorder, not more memory</title>
      <dc:creator>Morgan</dc:creator>
      <pubDate>Thu, 14 May 2026 20:21:21 +0000</pubDate>
      <link>https://dev.to/morganlabs/agents-need-a-black-box-recorder-not-more-memory-4hpg</link>
      <guid>https://dev.to/morganlabs/agents-need-a-black-box-recorder-not-more-memory-4hpg</guid>
      <description>&lt;p&gt;Every agent product eventually ends up talking about memory.&lt;/p&gt;

&lt;p&gt;Longer memory. Better memory. Shared memory. Vector memory. Persistent memory.&lt;/p&gt;

&lt;p&gt;I get why. Anyone who has used coding agents for real work has hit the same&lt;br&gt;
wall: the agent loses context, forgets what happened in another client, repeats&lt;br&gt;
itself, or makes a change that is hard to reconstruct later.&lt;/p&gt;

&lt;p&gt;But I think "memory" is the wrong primary frame.&lt;/p&gt;

&lt;p&gt;The more useful question is:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;After the run is over, can I answer what happened?&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Not just what the final answer was. What actually happened.&lt;/p&gt;

&lt;p&gt;What did the user ask?&lt;/p&gt;

&lt;p&gt;What files, tools, docs, and prior context were in play?&lt;/p&gt;

&lt;p&gt;Why did the agent call a tool?&lt;/p&gt;

&lt;p&gt;Which model produced that action?&lt;/p&gt;

&lt;p&gt;What changed?&lt;/p&gt;

&lt;p&gt;What did it cost?&lt;/p&gt;

&lt;p&gt;Can I replay, audit, or explain the chain?&lt;/p&gt;

&lt;p&gt;That is less like a second brain and more like a black box recorder.&lt;/p&gt;

&lt;h2&gt;
  
  
  The pain is showing up everywhere
&lt;/h2&gt;

&lt;p&gt;The agent tooling conversations I keep seeing are not only about storage.&lt;br&gt;
They are about operational trust.&lt;/p&gt;

&lt;p&gt;One MCP discussion described the problem of context being trapped inside one&lt;br&gt;
client. You can brainstorm on mobile, continue in the web app, then open a&lt;br&gt;
coding agent locally and it has no idea what just happened.&lt;/p&gt;

&lt;p&gt;That is not just a memory problem. It is a continuity problem.&lt;/p&gt;

&lt;p&gt;Another thread proposed standard audit context for AI-initiated MCP tool calls:&lt;br&gt;
why the AI invoked a tool, and which model produced that invocation.&lt;/p&gt;

&lt;p&gt;That is not just a logging problem. It is an accountability problem.&lt;/p&gt;

&lt;p&gt;Other threads are circling server identity, tool provenance, permission specs,&lt;br&gt;
and tool bills of materials. People are asking questions like:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Who published this tool?&lt;/li&gt;
&lt;li&gt;Did its metadata change?&lt;/li&gt;
&lt;li&gt;What capabilities does it require?&lt;/li&gt;
&lt;li&gt;Why should an agent be allowed to call it?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;That is not just a security problem. It is a trust problem.&lt;/p&gt;

&lt;p&gt;Then there are the everyday developer headaches: unexpected token usage, credits&lt;br&gt;
attached to the wrong workspace, orphaned local subprocesses, tool calls that&lt;br&gt;
worked in one environment but not another.&lt;/p&gt;

&lt;p&gt;That is not just observability. It is run truth.&lt;/p&gt;

&lt;h2&gt;
  
  
  "Memory" hides too much
&lt;/h2&gt;

&lt;p&gt;When we call all of this memory, we flatten several different needs into one&lt;br&gt;
word.&lt;/p&gt;

&lt;p&gt;Developers do need agents to remember useful context.&lt;/p&gt;

&lt;p&gt;But they also need agents to preserve the reasoning trail around important&lt;br&gt;
work:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;task intent&lt;/li&gt;
&lt;li&gt;active context&lt;/li&gt;
&lt;li&gt;files and tools touched&lt;/li&gt;
&lt;li&gt;model/tool calls&lt;/li&gt;
&lt;li&gt;permission and trust assumptions&lt;/li&gt;
&lt;li&gt;cost/token/process anomalies&lt;/li&gt;
&lt;li&gt;receipts for important actions&lt;/li&gt;
&lt;li&gt;a replayable or inspectable run history&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Those are not all the same feature.&lt;/p&gt;

&lt;p&gt;An agent can remember a fact and still be impossible to audit.&lt;/p&gt;

&lt;p&gt;An agent can summarize a conversation and still leave you unable to explain why&lt;br&gt;
it deleted a file, called a tool, burned tokens, or trusted a server.&lt;/p&gt;

&lt;h2&gt;
  
  
  The product shape I want
&lt;/h2&gt;

&lt;p&gt;The layer I want is local-first and boring in the best way.&lt;/p&gt;

&lt;p&gt;It sits under agent work and records enough truth that the user or another&lt;br&gt;
agent can come back later and ask:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;What happened here?&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;And get a useful answer.&lt;/p&gt;

&lt;p&gt;Not a hallucinated summary. Not a vague activity feed. Not a giant dashboard&lt;br&gt;
about dashboards.&lt;/p&gt;

&lt;p&gt;A compact chain:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;The user asked this.&lt;/li&gt;
&lt;li&gt;The agent saw this context.&lt;/li&gt;
&lt;li&gt;It chose these tools for these reasons.&lt;/li&gt;
&lt;li&gt;These tool calls happened.&lt;/li&gt;
&lt;li&gt;These files or external states changed.&lt;/li&gt;
&lt;li&gt;This was the cost/runtime footprint.&lt;/li&gt;
&lt;li&gt;These actions were approved, deferred, or blocked.&lt;/li&gt;
&lt;li&gt;This is what a future agent should trust or re-check.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;That would make agents safer to use for real work.&lt;/p&gt;

&lt;p&gt;It would also make them easier to improve, because the failures would be&lt;br&gt;
visible:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;lost context&lt;/li&gt;
&lt;li&gt;stale assumptions&lt;/li&gt;
&lt;li&gt;wrong tool trust&lt;/li&gt;
&lt;li&gt;runaway cost&lt;/li&gt;
&lt;li&gt;missing approval&lt;/li&gt;
&lt;li&gt;environment drift&lt;/li&gt;
&lt;li&gt;actions with no durable deliverable&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The phrase I keep coming back to
&lt;/h2&gt;

&lt;p&gt;Agents do not only need memory.&lt;/p&gt;

&lt;p&gt;They need a local truth layer.&lt;/p&gt;

&lt;p&gt;Something closer to:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;inspect, replay, and trust agent work across tools and clients.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;That is the direction I am exploring with AMK.&lt;/p&gt;

&lt;p&gt;The goal is not another knowledge base. The goal is to make "what happened?"&lt;br&gt;
answerable after the run is over.&lt;/p&gt;

&lt;p&gt;Because once agents are doing real work, that question matters more than almost&lt;br&gt;
anything else.&lt;/p&gt;

</description>
      <category>llm</category>
      <category>ai</category>
      <category>agents</category>
      <category>devtools</category>
    </item>
  </channel>
</rss>
