<?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: Ricardo Frasson</title>
    <description>The latest articles on DEV Community by Ricardo Frasson (@ricardo_dataseek).</description>
    <link>https://dev.to/ricardo_dataseek</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%2F3944359%2Fbc81d99a-d15c-4d9f-a12d-312ec11be9d9.png</url>
      <title>DEV Community: Ricardo Frasson</title>
      <link>https://dev.to/ricardo_dataseek</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/ricardo_dataseek"/>
    <language>en</language>
    <item>
      <title>Why I built a multi-agent build pipeline on top of the Claude Agent SDK</title>
      <dc:creator>Ricardo Frasson</dc:creator>
      <pubDate>Thu, 21 May 2026 15:26:12 +0000</pubDate>
      <link>https://dev.to/ricardo_dataseek/why-i-built-a-multi-agent-build-pipeline-on-top-of-the-claude-agent-sdk-4j34</link>
      <guid>https://dev.to/ricardo_dataseek/why-i-built-a-multi-agent-build-pipeline-on-top-of-the-claude-agent-sdk-4j34</guid>
      <description>&lt;p&gt;I love Claude Code. But on anything bigger than a one-file change, I kept hitting the same wall: the agent starts strong, then drifts. Context fills up with planning chatter, exploration, half-built scaffolding, and by the time it's writing the third file, it's forgotten the acceptance criteria it agreed to in turn one.&lt;/p&gt;

&lt;p&gt;The usual workaround is clear the context yourself between phases, save progress to files, manually re-feed what matters. It works, but it's babysitting, and it doesn't scale to the kind of "build me this feature" workflow I actually want.&lt;/p&gt;

&lt;p&gt;So I built &lt;strong&gt;MagesticAI&lt;/strong&gt; — an open-source web UI that runs Claude as a &lt;em&gt;pipeline of fresh-session agents&lt;/em&gt; instead of one long-running session.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;GitHub: &lt;a href="https://github.com/dataseeek/MagesticAI" rel="noopener noreferrer"&gt;github.com/dataseeek/MagesticAI&lt;/a&gt; (AGPL-3.0)&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  Where this came from
&lt;/h2&gt;

&lt;p&gt;MagesticAI didn't start from scratch. It grew out of &lt;a href="https://github.com/AndyMik90/Aperant" rel="noopener noreferrer"&gt;&lt;strong&gt;Aperant&lt;/strong&gt;&lt;/a&gt; by &lt;a href="https://github.com/AndyMik90" rel="noopener noreferrer"&gt;@AndyMik90&lt;/a&gt; — an excellent AGPL-3.0 desktop tool for autonomous multi-session AI coding. Aperant gave me the core idea (fresh-session agents per phase) and a lot of the early scaffolding.&lt;/p&gt;

&lt;p&gt;But the first time I cloned it, i was hoping for a cloud version, for Linux servers not Desktop.&lt;/p&gt;

&lt;p&gt;What MagesticAI adds on top:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;A &lt;strong&gt;cloud browser-based web UI&lt;/strong&gt; instead of a desktop app — so you can drive it from any device and run it on a remote server and add users / teams (still need to implement that).&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;An &lt;strong&gt;intent-aware merge system&lt;/strong&gt; for parallel agent work (more on this below)&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Multi-provider routing&lt;/strong&gt; beyond Anthropic — Codex, Gemini, OpenAI-compatible endpoints, Ollama, local models&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;A &lt;strong&gt;BMad Method integration&lt;/strong&gt; for scale-adaptive planning (complexity detection, story-based plans, architecture-first for big work)&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Big credit to Andy for the original, if you want a slick desktop experience instead of a server-based one, go check Aperant out.&lt;/p&gt;

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

&lt;p&gt;You write a task description in the browser. MagesticAI then:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Planner&lt;/strong&gt; turns it into a spec + subtask list (its own fresh session)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Coder&lt;/strong&gt; implements each subtask in an isolated git worktree (fresh session)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;QA Reviewer&lt;/strong&gt; validates against acceptance criteria (fresh session)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;QA Fixer&lt;/strong&gt; loops back on whatever failed (fresh session)&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Every phase runs in a brand-new Claude Agent SDK session. Context bloat from planning doesn't poison coding. Tangents during coding don't poison QA. The handoff between phases is a small set of structured files (&lt;code&gt;spec.md&lt;/code&gt;, &lt;code&gt;implementation_plan.json&lt;/code&gt;, &lt;code&gt;qa_report.md&lt;/code&gt;), not a 50k-token transcript.&lt;/p&gt;

&lt;p&gt;The whole thing runs in an &lt;strong&gt;isolated git worktree&lt;/strong&gt; on a &lt;code&gt;magestic-ai/&amp;lt;spec&amp;gt;&lt;/code&gt; branch, so nothing touches your working tree until you explicitly merge.&lt;/p&gt;

&lt;h2&gt;
  
  
  The bit I'm most proud of: intent-aware merging
&lt;/h2&gt;

&lt;p&gt;When you run multiple specs in parallel, you get conflicts. The naive answer is "ask the LLM to merge it." That's expensive and unreliable.&lt;/p&gt;

&lt;p&gt;What's in &lt;code&gt;apps/backend/merge/&lt;/code&gt; instead is a layered resolver:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Tree-sitter semantic diff&lt;/strong&gt; — extracts what each task &lt;em&gt;meant&lt;/em&gt; to change (added a function, modified imports, wrapped a component), not just text-level overlap.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Deterministic strategies&lt;/strong&gt; — append functions, merge imports, combine React props, compose hooks, reorder by dependency. Zero LLM calls for the common cases.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;AI resolver as fallback&lt;/strong&gt; — only genuinely ambiguous conflicts go to Claude, and even then with minimal context: just the conflict region, each task's one-sentence intent, the semantic change, and the baseline. No whole-file dumps.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The design goal: &lt;strong&gt;maximum automation, minimum tokens (we try).&lt;/strong&gt; Most merges never call an LLM at all.&lt;/p&gt;

&lt;h2&gt;
  
  
  Local models if you want them
&lt;/h2&gt;

&lt;p&gt;MagesticAI also supports Codex and Gemini Clis, and any OpenAI-compatible endpoint — LM Studio, vLLM, OpenRouter, Together, Groq, Ollama. Useful if you want a local model (at least 27B) running the QA loop while Claude does the heavy coding. The provider abstraction lives in &lt;code&gt;apps/backend/providers/&lt;/code&gt;, and selection is driven by the model string.&lt;/p&gt;

&lt;h2&gt;
  
  
  Try it
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git clone https://github.com/dataseeek/MagesticAI
&lt;span class="nb"&gt;cd &lt;/span&gt;MagesticAI
npm run &lt;span class="nb"&gt;install&lt;/span&gt;:all

&lt;span class="c"&gt;# Backend (port 3101)&lt;/span&gt;
&lt;span class="nb"&gt;cd &lt;/span&gt;apps/web-server &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="nb"&gt;source&lt;/span&gt; .venv/bin/activate &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; python &lt;span class="nt"&gt;-m&lt;/span&gt; server.main

&lt;span class="c"&gt;# Frontend (port 3100)&lt;/span&gt;
&lt;span class="nb"&gt;cd &lt;/span&gt;apps/frontend-web &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; npm run dev
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then open &lt;code&gt;http://localhost:3100&lt;/code&gt; and add a project folder.&lt;/p&gt;

&lt;h2&gt;
  
  
  What's next
&lt;/h2&gt;

&lt;p&gt;Honest list of what's not there yet:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;No formal eval harness (SWE-Bench style). Today, "did it work" = QA agent's verdict + your manual review.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;No per-subtask test-run receipt pinned to each step. The QA report is per-spec, not per-subtask, and I want to fix that.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If any of that sounds interesting to work on, the issue tracker is open. Contributions welcome — branch from &lt;code&gt;dev&lt;/code&gt;, PRs target &lt;code&gt;dev&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  A question for you
&lt;/h2&gt;

&lt;p&gt;How are you handling context exhaustion on long features today?  discipline, subagents, fresh sessions, something else? &lt;/p&gt;

&lt;p&gt;I'd genuinely like to compare notes.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;MagesticAI is AGPL-3.0, based on &lt;a href="https://github.com/AndyMik90/Aperant" rel="noopener noreferrer"&gt;Aperant&lt;/a&gt;. Repo: &lt;a href="https://github.com/dataseeek/MagesticAI" rel="noopener noreferrer"&gt;github.com/dataseeek/MagesticAI&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

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