<?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: Diego Cheloni</title>
    <description>The latest articles on DEV Community by Diego Cheloni (@dich01).</description>
    <link>https://dev.to/dich01</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.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3828054%2F5e307c5a-581c-4d32-a875-5c17c321daa3.png</url>
      <title>DEV Community: Diego Cheloni</title>
      <link>https://dev.to/dich01</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/dich01"/>
    <language>en</language>
    <item>
      <title>Building Reliable Multi-Agent Claude Code Plugins: What Actually Works (and What’s Broken)</title>
      <dc:creator>Diego Cheloni</dc:creator>
      <pubDate>Mon, 16 Mar 2026 20:41:27 +0000</pubDate>
      <link>https://dev.to/dich01/building-reliable-multi-agent-claude-code-plugins-what-actually-works-and-whats-broken-45ll</link>
      <guid>https://dev.to/dich01/building-reliable-multi-agent-claude-code-plugins-what-actually-works-and-whats-broken-45ll</guid>
      <description>&lt;h2&gt;
  
  
  An Empirical Investigation of Enforcement Mechanisms
&lt;/h2&gt;

&lt;p&gt;An empirical investigation into what actually works when building multi-agent plugins for Claude Code — and what doesn't, despite what the documentation says.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why This Exists
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Prompts are suggestions. The LLM can ignore them silently.
&lt;/h3&gt;

&lt;p&gt;When you build a multi-agent system that needs to guarantee execution order, enforce TDD, or block unsafe operations, you need &lt;strong&gt;mechanical enforcement&lt;/strong&gt; — not prose.&lt;/p&gt;

&lt;p&gt;This report documents 6 empirical tests, 12 GitHub issues, and community patterns from systems with up to 112 agents in production.&lt;/p&gt;

&lt;h2&gt;
  
  
  Key Findings
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Finding&lt;/th&gt;
&lt;th&gt;Status&lt;/th&gt;
&lt;th&gt;Note&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;exit code 2&lt;/code&gt; in PreToolUse hooks blocks tool calls&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;Works&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;The only reliable blocking method&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;exit code 1&lt;/code&gt; blocks tool calls&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;Fails&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Does not block by design (non-blocking error)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;permissionDecision: "deny"&lt;/code&gt; blocks tool calls&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;Broken&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Issue #4669: Docs say yes, reality says no&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Subagents can spawn subagents&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;No&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Absolute architectural restriction&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Blocked Write/Edit bypass (via &lt;code&gt;sed&lt;/code&gt;, &lt;code&gt;echo &amp;gt;&lt;/code&gt;, &lt;code&gt;python3&lt;/code&gt;)&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;Vector&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Known bypass — requires additional Bash hook&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Infinite loops without recursion guards&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;Risk&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;3 open issues (#10205, #9579, #9704)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Agent frontmatter (hooks, skills) works in teammates&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;Broken&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Bug #30703: Frontmatter is silently ignored&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  Validated Patterns
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Hub-and-spoke orchestration&lt;/strong&gt;: A central "brain" agent as main session (&lt;code&gt;--agent namespace:brain&lt;/code&gt;) spawns specialist subagents.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Recursion guards&lt;/strong&gt;: Temporary flag files prevent infinite hook loops when hooks propagate to subagents.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Bash bypass defense&lt;/strong&gt;: When Write/Edit are blocked, Claude uses &lt;code&gt;sed&lt;/code&gt;, &lt;code&gt;python3 -c&lt;/code&gt;, or &lt;code&gt;echo &amp;gt;&lt;/code&gt; instead — a second hook on Bash closes this vector.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Prerequisite gates&lt;/strong&gt;: Hooks verify artifact existence before allowing specialist agents to execute.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Empirical Validation: Express-to-NestJS Migration
&lt;/h2&gt;

&lt;p&gt;These patterns were validated through a complete framework migration of a multi-tenant production project:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;11 agents&lt;/strong&gt; spawned with real parallelism (up to 3 concurrent).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Quality gate&lt;/strong&gt; rejected first pass (44% coverage), forced autonomous correction to &lt;strong&gt;93%&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;422 tests&lt;/strong&gt;, zero regressions, TypeScript strict with zero errors.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Community References
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Blake Crosley&lt;/strong&gt;: 95 hooks in production over 9 months.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;kenryu42/claude-code-safety-net&lt;/strong&gt;: semantic analysis + 5-level recursive wrapper detection.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;wshobson/agents&lt;/strong&gt;: 112 agents, 16 orchestrators.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Issue #29795&lt;/strong&gt;: 5-layer QA system built from 68 documented failures.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Full Research Reports
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://github.com/Dich01/claude-code-multi-agent-research/blob/main/Building-Reliable-Multi-Agent-Claude-Code-Plugins-EN.md" rel="noopener noreferrer"&gt;&lt;strong&gt;English Version&lt;/strong&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/Dich01/claude-code-multi-agent-research/blob/main/Plugins-Multi-Agente-Claude-Code-Investigacion.md" rel="noopener noreferrer"&gt;&lt;strong&gt;Spanish Version&lt;/strong&gt;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;




&lt;h3&gt;
  
  
  Credits
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Author&lt;/strong&gt;: &lt;a href="https://github.com/Dich01/" rel="noopener noreferrer"&gt;Diego Cheloni&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Date&lt;/strong&gt;: March 14, 2026&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Environment&lt;/strong&gt;: Claude Code CLI (March 2026), Claude Opus 4.6&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>ai</category>
      <category>architecture</category>
      <category>productivity</category>
      <category>softwareengineering</category>
    </item>
  </channel>
</rss>
