<?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: Mihael Zamin Sousa</title>
    <description>The latest articles on DEV Community by Mihael Zamin Sousa (@mihazs).</description>
    <link>https://dev.to/mihazs</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%2F4219633%2F51bb5b3a-196d-4346-9215-7e1e280b231e.jpg</url>
      <title>DEV Community: Mihael Zamin Sousa</title>
      <link>https://dev.to/mihazs</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/mihazs"/>
    <language>en</language>
    <item>
      <title>How do you know if your coding agent's instructions are getting better?</title>
      <dc:creator>Mihael Zamin Sousa</dc:creator>
      <pubDate>Sat, 31 Oct 2026 20:45:40 +0000</pubDate>
      <link>https://dev.to/mihazs/how-do-you-know-if-your-coding-agents-instructions-are-getting-better-3dhk</link>
      <guid>https://dev.to/mihazs/how-do-you-know-if-your-coding-agents-instructions-are-getting-better-3dhk</guid>
      <description>&lt;p&gt;A common way to improve a coding agent is to change its instructions.&lt;/p&gt;

&lt;p&gt;You add a rule to AGENTS.md. You write a skill for a recurring task. You tell the agent to check something before editing code.&lt;/p&gt;

&lt;p&gt;Then the next run looks better.&lt;/p&gt;

&lt;p&gt;But was the instruction responsible?&lt;/p&gt;

&lt;p&gt;That's a harder question than it first appears.&lt;/p&gt;

&lt;h2&gt;
  
  
  The problem with judging one successful run
&lt;/h2&gt;

&lt;p&gt;Suppose an agent repeatedly makes an error. You add a new instruction explaining how to avoid it.&lt;/p&gt;

&lt;p&gt;The agent succeeds on the next attempt.&lt;/p&gt;

&lt;p&gt;That result is encouraging, but it doesn't establish that the instruction caused the improvement. The task may have been easier, the agent may have taken a different route, or the original failure may not have been reproducible.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F6y9e2l7gndmukbvaj45h.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F6y9e2l7gndmukbvaj45h.png" alt=" " width="800" height="533"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;A useful evaluation needs more than a before-and-after impression.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I want to measure
&lt;/h2&gt;

&lt;p&gt;For changes to coding-agent instructions, I'd want to answer several questions:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Can I reproduce the original failure?&lt;/li&gt;
&lt;li&gt;Does the candidate instruction address that failure?&lt;/li&gt;
&lt;li&gt;Does previously working behavior still work?&lt;/li&gt;
&lt;li&gt;Are the baseline and candidate evaluated under comparable conditions?&lt;/li&gt;
&lt;li&gt;Can I inspect the evidence before keeping the change?&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;A smaller tool-call count is interesting, for example, but only if the agent still completes the required work.&lt;/p&gt;

&lt;h2&gt;
  
  
  Building Agent Harness Lab
&lt;/h2&gt;

&lt;p&gt;I'm working on an open-source project called Agent Harness Lab to explore this workflow.&lt;/p&gt;

&lt;p&gt;It supports Claude Code and Codex.&lt;/p&gt;

&lt;p&gt;Instead of requiring you to describe a failure manually, it can inspect local project evidence and look for improvement candidates.&lt;/p&gt;

&lt;p&gt;The experimental improvement process stages candidate changes, creates evaluation tasks, compares baseline and candidate behavior, and reports the outcome.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fhzs02xadm9tfrp6164m9.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fhzs02xadm9tfrp6164m9.png" alt=" " width="800" height="533"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The project also provides a simpler entry point:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;ahl analyze /path/to/project
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This produces a local analysis report without running an agent or modifying project instructions.&lt;/p&gt;

&lt;p&gt;The broader workflow is:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;ahl improve /path/to/project
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That process is deliberately conservative. The project does not currently claim established general performance gains, and automated behavioral adoption is blocked while independent certification requirements remain unmet.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why the limitations matter?
&lt;/h2&gt;

&lt;p&gt;An agent evaluating another agent raises difficult questions.&lt;/p&gt;

&lt;p&gt;Could the evaluator reward the wrong behavior? Could it overfit to the specific examples used during development? Could an apparent improvement come from a change in runtime conditions?&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fd91ck2e04s8laiy77a1l.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fd91ck2e04s8laiy77a1l.png" alt=" " width="800" height="533"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Those aren't theoretical details that can be ignored when deciding whether to trust an automated repair.&lt;/p&gt;

&lt;p&gt;The current implementation is an experiment in making that process more inspectable, rather than pretending those questions are solved.&lt;/p&gt;

&lt;h2&gt;
  
  
  Try it or review the approach
&lt;/h2&gt;

&lt;p&gt;The repository includes installation instructions, evaluation contracts, validation documentation, and the remaining safeguards needed before behavioral adoption can be enabled.&lt;/p&gt;

&lt;p&gt;GitHub: &lt;a href="https://github.com/mihazs/agent-harness-lab" rel="noopener noreferrer"&gt;https://github.com/mihazs/agent-harness-lab&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;It's MIT-licensed and open to contributions.&lt;/p&gt;

&lt;p&gt;If you maintain coding-agent instructions, I'd like to hear how you test them today. Especially when one instruction helps a particular task but makes another task worse.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>opensource</category>
      <category>agents</category>
      <category>showdev</category>
    </item>
  </channel>
</rss>
