<?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: DevDev</title>
    <description>The latest articles on DEV Community by DevDev (@_e0368f0daab8aa68fd6e1d).</description>
    <link>https://dev.to/_e0368f0daab8aa68fd6e1d</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%2F3838327%2Fa25f81bc-806c-4d03-8d84-64240db4bfa5.png</url>
      <title>DEV Community: DevDev</title>
      <link>https://dev.to/_e0368f0daab8aa68fd6e1d</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/_e0368f0daab8aa68fd6e1d"/>
    <language>en</language>
    <item>
      <title>[Boost]</title>
      <dc:creator>DevDev</dc:creator>
      <pubDate>Sun, 22 Mar 2026 12:30:36 +0000</pubDate>
      <link>https://dev.to/_e0368f0daab8aa68fd6e1d/-1b43</link>
      <guid>https://dev.to/_e0368f0daab8aa68fd6e1d/-1b43</guid>
      <description>&lt;div class="ltag__link--embedded"&gt;
  &lt;div class="crayons-story "&gt;
  &lt;a href="https://dev.to/_e0368f0daab8aa68fd6e1d/i-built-an-orchestration-layer-to-manage-multiple-cursor-agents-3iab" class="crayons-story__hidden-navigation-link"&gt;I Built an Orchestration Layer to Manage Multiple Cursor Agents&lt;/a&gt;


  &lt;div class="crayons-story__body crayons-story__body-full_post"&gt;
    &lt;div class="crayons-story__top"&gt;
      &lt;div class="crayons-story__meta"&gt;
        &lt;div class="crayons-story__author-pic"&gt;

          &lt;a href="/_e0368f0daab8aa68fd6e1d" class="crayons-avatar  crayons-avatar--l  "&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.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3838327%2Fa25f81bc-806c-4d03-8d84-64240db4bfa5.png" alt="_e0368f0daab8aa68fd6e1d profile" class="crayons-avatar__image" width="96" height="96"&gt;
          &lt;/a&gt;
        &lt;/div&gt;
        &lt;div&gt;
          &lt;div&gt;
            &lt;a href="/_e0368f0daab8aa68fd6e1d" class="crayons-story__secondary fw-medium m:hidden"&gt;
              DevDev
            &lt;/a&gt;
            &lt;div class="profile-preview-card relative mb-4 s:mb-0 fw-medium hidden m:inline-block"&gt;
              
                DevDev
                
              
              &lt;div id="story-author-preview-content-3383716" class="profile-preview-card__content crayons-dropdown branded-7 p-4 pt-0"&gt;
                &lt;div class="gap-4 grid"&gt;
                  &lt;div class="-mt-4"&gt;
                    &lt;a href="/_e0368f0daab8aa68fd6e1d" class="flex"&gt;
                      &lt;span class="crayons-avatar crayons-avatar--xl mr-2 shrink-0"&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.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3838327%2Fa25f81bc-806c-4d03-8d84-64240db4bfa5.png" class="crayons-avatar__image" alt="" width="96" height="96"&gt;
                      &lt;/span&gt;
                      &lt;span class="crayons-link crayons-subtitle-2 mt-5"&gt;DevDev&lt;/span&gt;
                    &lt;/a&gt;
                  &lt;/div&gt;
                  &lt;div class="print-hidden"&gt;
                    
                      Follow
                    
                  &lt;/div&gt;
                  &lt;div class="author-preview-metadata-container"&gt;&lt;/div&gt;
                &lt;/div&gt;
              &lt;/div&gt;
            &lt;/div&gt;

          &lt;/div&gt;
          &lt;a href="https://dev.to/_e0368f0daab8aa68fd6e1d/i-built-an-orchestration-layer-to-manage-multiple-cursor-agents-3iab" class="crayons-story__tertiary fs-xs"&gt;&lt;time&gt;Mar 22&lt;/time&gt;&lt;span class="time-ago-indicator-initial-placeholder"&gt;&lt;/span&gt;&lt;/a&gt;
        &lt;/div&gt;
      &lt;/div&gt;

    &lt;/div&gt;

    &lt;div class="crayons-story__indention"&gt;
      &lt;h2 class="crayons-story__title crayons-story__title-full_post"&gt;
        &lt;a href="https://dev.to/_e0368f0daab8aa68fd6e1d/i-built-an-orchestration-layer-to-manage-multiple-cursor-agents-3iab" id="article-link-3383716"&gt;
          I Built an Orchestration Layer to Manage Multiple Cursor Agents
        &lt;/a&gt;
      &lt;/h2&gt;
        &lt;div class="crayons-story__tags"&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/ai"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;ai&lt;/a&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/programming"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;programming&lt;/a&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/productivity"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;productivity&lt;/a&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/automation"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;automation&lt;/a&gt;
        &lt;/div&gt;
      &lt;div class="crayons-story__bottom"&gt;
        &lt;div class="crayons-story__details"&gt;
          &lt;a href="https://dev.to/_e0368f0daab8aa68fd6e1d/i-built-an-orchestration-layer-to-manage-multiple-cursor-agents-3iab" class="crayons-btn crayons-btn--s crayons-btn--ghost crayons-btn--icon-left"&gt;
            &lt;div class="multiple_reactions_aggregate"&gt;
              &lt;span class="multiple_reactions_icons_container"&gt;
                  &lt;span class="crayons_icon_container"&gt;
                    &lt;img src="https://assets.dev.to/assets/exploding-head-daceb38d627e6ae9b730f36a1e390fca556a4289d5a41abb2c35068ad3e2c4b5.svg" width="24" height="24"&gt;
                  &lt;/span&gt;
                  &lt;span class="crayons_icon_container"&gt;
                    &lt;img src="https://assets.dev.to/assets/multi-unicorn-b44d6f8c23cdd00964192bedc38af3e82463978aa611b4365bd33a0f1f4f3e97.svg" width="24" height="24"&gt;
                  &lt;/span&gt;
                  &lt;span class="crayons_icon_container"&gt;
                    &lt;img src="https://assets.dev.to/assets/sparkle-heart-5f9bee3767e18deb1bb725290cb151c25234768a0e9a2bd39370c382d02920cf.svg" width="24" height="24"&gt;
                  &lt;/span&gt;
              &lt;/span&gt;
              &lt;span class="aggregate_reactions_counter"&gt;5&lt;span class="hidden s:inline"&gt; reactions&lt;/span&gt;&lt;/span&gt;
            &lt;/div&gt;
          &lt;/a&gt;
            &lt;a href="https://dev.to/_e0368f0daab8aa68fd6e1d/i-built-an-orchestration-layer-to-manage-multiple-cursor-agents-3iab#comments" class="crayons-btn crayons-btn--s crayons-btn--ghost crayons-btn--icon-left flex items-center"&gt;
              Comments


              &lt;span class="hidden s:inline"&gt;Add Comment&lt;/span&gt;
            &lt;/a&gt;
        &lt;/div&gt;
        &lt;div class="crayons-story__save"&gt;
          &lt;small class="crayons-story__tertiary fs-xs mr-2"&gt;
            4 min read
          &lt;/small&gt;
            
              &lt;span class="bm-initial"&gt;
                

              &lt;/span&gt;
              &lt;span class="bm-success"&gt;
                

              &lt;/span&gt;
            
        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;
&lt;/div&gt;

&lt;/div&gt;


</description>
      <category>ai</category>
      <category>programming</category>
      <category>productivity</category>
      <category>automation</category>
    </item>
    <item>
      <title>I Built an Orchestration Layer to Manage Multiple Cursor Agents</title>
      <dc:creator>DevDev</dc:creator>
      <pubDate>Sun, 22 Mar 2026 12:12:53 +0000</pubDate>
      <link>https://dev.to/_e0368f0daab8aa68fd6e1d/i-built-an-orchestration-layer-to-manage-multiple-cursor-agents-3iab</link>
      <guid>https://dev.to/_e0368f0daab8aa68fd6e1d/i-built-an-orchestration-layer-to-manage-multiple-cursor-agents-3iab</guid>
      <description>&lt;h1&gt;
  
  
  I Built an Orchestration Layer to Manage Multiple Cursor Agents
&lt;/h1&gt;

&lt;p&gt;Once I started using multiple coding agents in parallel, I ran into an unexpected problem:&lt;/p&gt;

&lt;p&gt;The bottleneck was no longer code generation.&lt;br&gt;&lt;br&gt;
It was coordination.&lt;/p&gt;

&lt;p&gt;Running one agent feels magical.&lt;br&gt;&lt;br&gt;
Running five or six agents at once feels like managing a messy engineering team with no org chart, no ownership boundaries, and no reliable way to validate what just happened.&lt;/p&gt;

&lt;p&gt;That was the reason I built &lt;strong&gt;SAMAMS&lt;/strong&gt;:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Sentinel Automated Multiple AI Management System&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;It is an orchestration layer for managing multiple Cursor agents like an actual engineering organization.&lt;/p&gt;




&lt;h2&gt;
  
  
  The problem
&lt;/h2&gt;

&lt;p&gt;At first, using more agents sounds like obvious leverage.&lt;/p&gt;

&lt;p&gt;More agents should mean:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;more parallel work&lt;/li&gt;
&lt;li&gt;faster iteration&lt;/li&gt;
&lt;li&gt;less time writing repetitive code&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;But in practice, I kept hitting the same problems:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;multiple agents touched the same files&lt;/li&gt;
&lt;li&gt;work was duplicated&lt;/li&gt;
&lt;li&gt;outputs conflicted with each other&lt;/li&gt;
&lt;li&gt;one agent could quietly drift off course and burn tokens&lt;/li&gt;
&lt;li&gt;I still had to manually babysit the entire process&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;So instead of getting leverage, I got overhead.&lt;/p&gt;

&lt;p&gt;The more agents I added, the more coordination cost I created for myself.&lt;/p&gt;

&lt;p&gt;That was the real problem:&lt;br&gt;&lt;br&gt;
&lt;strong&gt;we have coding agents, but we do not really have agent management systems.&lt;/strong&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  The idea
&lt;/h2&gt;

&lt;p&gt;My basic thought was simple:&lt;/p&gt;

&lt;p&gt;If humans scale through ownership, boundaries, task decomposition, and validation, then agents should probably be managed the same way.&lt;/p&gt;

&lt;p&gt;So instead of treating agents like glorified autocomplete, I started treating them more like workers in a structured engineering system.&lt;/p&gt;

&lt;p&gt;That became SAMAMS.&lt;/p&gt;

&lt;p&gt;Its job is to:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;break work into manageable layers&lt;/li&gt;
&lt;li&gt;assign bounded responsibility&lt;/li&gt;
&lt;li&gt;isolate agent execution&lt;/li&gt;
&lt;li&gt;monitor progress&lt;/li&gt;
&lt;li&gt;detect conflicts&lt;/li&gt;
&lt;li&gt;recover when things go wrong&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  How it works
&lt;/h2&gt;

&lt;p&gt;The planning model is divided into three levels:&lt;/p&gt;

&lt;h3&gt;
  
  
  Proposal
&lt;/h3&gt;

&lt;p&gt;A large project or initiative.&lt;/p&gt;

&lt;h3&gt;
  
  
  Milestone
&lt;/h3&gt;

&lt;p&gt;A meaningful feature-level chunk inside the proposal.&lt;/p&gt;

&lt;h3&gt;
  
  
  Task
&lt;/h3&gt;

&lt;p&gt;An atomic execution unit that one agent can handle in a single working session.&lt;/p&gt;

&lt;p&gt;This gives the system a hierarchy instead of just a pile of prompts.&lt;/p&gt;

&lt;p&gt;Each task also gets a constrained instruction document, which I call a &lt;strong&gt;frontier&lt;/strong&gt;.&lt;br&gt;&lt;br&gt;
It tells the agent what it should do, what it should avoid touching, and what boundary it should stay within.&lt;/p&gt;

&lt;p&gt;That part matters a lot.&lt;/p&gt;

&lt;p&gt;Without boundaries, agents do not really parallelize well.&lt;br&gt;&lt;br&gt;
They collide.&lt;/p&gt;




&lt;h2&gt;
  
  
  Bounded ownership
&lt;/h2&gt;

&lt;p&gt;One of the main design ideas came from &lt;strong&gt;Domain-Driven Design&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Each agent is assigned a bounded context:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;a set of files&lt;/li&gt;
&lt;li&gt;a module&lt;/li&gt;
&lt;li&gt;a responsibility area&lt;/li&gt;
&lt;li&gt;a clearly scoped task&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The goal is to reduce chaos.&lt;/p&gt;

&lt;p&gt;Instead of every agent working inside the same shared mess, each one gets a defined workspace and a defined responsibility.&lt;/p&gt;

&lt;p&gt;This makes parallel execution much more practical.&lt;/p&gt;




&lt;h2&gt;
  
  
  Git worktree isolation
&lt;/h2&gt;

&lt;p&gt;To make that boundary real, each agent runs in its own &lt;strong&gt;git worktree&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;That means agents do not just have conceptual separation.&lt;br&gt;&lt;br&gt;
They have physical workspace separation too.&lt;/p&gt;

&lt;p&gt;This helps prevent:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;accidental file overlap&lt;/li&gt;
&lt;li&gt;branch confusion&lt;/li&gt;
&lt;li&gt;chaotic local changes&lt;/li&gt;
&lt;li&gt;merge disorder&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;On top of that, I added merge control logic so agent outputs do not all slam into the main branch at once.&lt;/p&gt;




&lt;h2&gt;
  
  
  Failure handling
&lt;/h2&gt;

&lt;p&gt;This was one of the most important parts for me.&lt;/p&gt;

&lt;p&gt;In most agent workflows, when something goes wrong, the human has to stop everything, inspect the state, figure out what happened, and manually decide what to do next.&lt;/p&gt;

&lt;p&gt;That does not scale.&lt;/p&gt;

&lt;p&gt;So I added a structured recovery flow.&lt;/p&gt;

&lt;p&gt;If an agent keeps failing, or if conflicts are detected, the system can:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;pause the task&lt;/li&gt;
&lt;li&gt;collect current state&lt;/li&gt;
&lt;li&gt;inspect diffs and logs&lt;/li&gt;
&lt;li&gt;run a planning pass&lt;/li&gt;
&lt;li&gt;decide whether to retry, resume, or cancel&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I call this a &lt;strong&gt;strategy meeting&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;It is basically a controlled intervention step for agent failure cases.&lt;/p&gt;




&lt;h2&gt;
  
  
  What I realized while building this
&lt;/h2&gt;

&lt;p&gt;The deeper lesson was that the hard problem is not:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;"How do I get an agent to write code?"&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;It is:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;"How do I coordinate many agents safely and predictably?"&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;And that question leads directly to another one:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How do you validate outcomes deterministically?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Agents are not deterministic.&lt;br&gt;&lt;br&gt;
But validation must be.&lt;/p&gt;

&lt;p&gt;That means the long-term answer is not just better orchestration.&lt;br&gt;&lt;br&gt;
It is orchestration plus strong validation:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;build checks&lt;/li&gt;
&lt;li&gt;test automation&lt;/li&gt;
&lt;li&gt;type checks&lt;/li&gt;
&lt;li&gt;conflict detection&lt;/li&gt;
&lt;li&gt;duplication detection&lt;/li&gt;
&lt;li&gt;structured success/failure metrics&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I think this is the missing layer in a lot of current agent tooling.&lt;/p&gt;




&lt;h2&gt;
  
  
  Current stack
&lt;/h2&gt;

&lt;p&gt;Right now the project uses:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Go&lt;/strong&gt; for the backend&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Go&lt;/strong&gt; for the agent process proxy&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;React&lt;/strong&gt; for the frontend&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;It currently runs locally and supports Cursor agents.&lt;/p&gt;

&lt;p&gt;The architecture is meant to be extensible, though.&lt;br&gt;&lt;br&gt;
My goal is not "a Cursor-only hack," but a general orchestration layer for multi-agent development workflows.&lt;/p&gt;




&lt;h2&gt;
  
  
  Current status
&lt;/h2&gt;

&lt;p&gt;This is still early.&lt;/p&gt;

&lt;p&gt;It works, but it is definitely not polished production software yet.&lt;/p&gt;

&lt;p&gt;There are still rough edges around:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;cleanup flows&lt;/li&gt;
&lt;li&gt;existing repo onboarding&lt;/li&gt;
&lt;li&gt;error handling&lt;/li&gt;
&lt;li&gt;broader runner support&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;So this is less of a "finished launch" and more of a serious prototype for a problem I think will become much more important.&lt;/p&gt;




&lt;h2&gt;
  
  
  Why I open sourced it
&lt;/h2&gt;

&lt;p&gt;Because I do not think this is just my problem.&lt;/p&gt;

&lt;p&gt;As more developers move from using one agent to using many in parallel, I think they will hit the same wall:&lt;/p&gt;

&lt;p&gt;not generation,&lt;br&gt;&lt;br&gt;
but coordination.&lt;/p&gt;

&lt;p&gt;That is the problem I am trying to solve with SAMAMS.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Repo:&lt;/strong&gt;&lt;br&gt;&lt;br&gt;
&lt;a href="https://github.com/teamswyg/samams" rel="noopener noreferrer"&gt;https://github.com/teamswyg/samams&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I would especially love feedback on:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;multi-agent coordination&lt;/li&gt;
&lt;li&gt;deterministic validation&lt;/li&gt;
&lt;li&gt;failure recovery&lt;/li&gt;
&lt;li&gt;support for more agent runners&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  Final thought
&lt;/h2&gt;

&lt;p&gt;We already know agents can generate code.&lt;/p&gt;

&lt;p&gt;The harder and more interesting problem is building the system around them:&lt;br&gt;&lt;br&gt;
the structure, the boundaries, the validation, and the recovery logic that make parallel agent work actually usable.&lt;/p&gt;

&lt;p&gt;That is what I am exploring with SAMAMS.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>programming</category>
      <category>productivity</category>
      <category>automation</category>
    </item>
  </channel>
</rss>
