<?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: 何勇军</title>
    <description>The latest articles on DEV Community by 何勇军 (@heyongjun).</description>
    <link>https://dev.to/heyongjun</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%2F4179049%2Fc9f5626d-f5fe-403a-9a74-74831e675841.png</url>
      <title>DEV Community: 何勇军</title>
      <link>https://dev.to/heyongjun</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/heyongjun"/>
    <language>en</language>
    <item>
      <title>Why I Stopped Predefining Agent Roles — and Built a Runtime That Grows Its Own Team</title>
      <dc:creator>何勇军</dc:creator>
      <pubDate>Mon, 12 Oct 2026 10:19:03 +0000</pubDate>
      <link>https://dev.to/heyongjun/why-i-stopped-predefining-agent-roles-and-built-a-runtime-that-grows-its-own-team-nl7</link>
      <guid>https://dev.to/heyongjun/why-i-stopped-predefining-agent-roles-and-built-a-runtime-that-grows-its-own-team-nl7</guid>
      <description>&lt;p&gt;Most multi-agent frameworks ask you to design the team before you know the task.&lt;/p&gt;

&lt;p&gt;You define roles (researcher, writer, reviewer), wire up a workflow or a graph, and then&lt;br&gt;
feed tasks into that fixed shape. CrewAI calls them Crews. AutoGen calls them conversable&lt;br&gt;
agents. LangGraph makes you draw the graph by hand. All three assume you can predict, in&lt;br&gt;
advance, what kind of team a task will need.&lt;/p&gt;

&lt;p&gt;That assumption breaks down fast once tasks get long, ambiguous, or multi-stage — a feature&lt;br&gt;
that needs design, then implementation, then tests, where you don't know at the start how&lt;br&gt;
many workers it'll take or how the work should split.&lt;/p&gt;

&lt;p&gt;So I built &lt;strong&gt;&lt;a href="https://github.com/heyongjun666/AICU-Graph" rel="noopener noreferrer"&gt;AICU-Graph&lt;/a&gt;&lt;/strong&gt;, an open-source&lt;br&gt;
multi-agent orchestration runtime that doesn't predefine the team at all. You give it a&lt;br&gt;
goal. A Manager plans the work and spawns Worker nodes &lt;em&gt;at runtime&lt;/em&gt;. As the task evolves,&lt;br&gt;
the organization reorganizes — more nodes, different division of labor, new collaboration&lt;br&gt;
edges — without you hand-authoring a workflow graph upfront.&lt;/p&gt;

&lt;h2&gt;
  
  
  The core difference
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;CrewAI / AutoGen / LangGraph&lt;/th&gt;
&lt;th&gt;AICU-Graph&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Roles&lt;/td&gt;
&lt;td&gt;Defined upfront&lt;/td&gt;
&lt;td&gt;Created as needed&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Topology&lt;/td&gt;
&lt;td&gt;Fixed graph / fixed conversation pattern&lt;/td&gt;
&lt;td&gt;Built and reshaped at runtime&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Who decides structure&lt;/td&gt;
&lt;td&gt;You, the developer&lt;/td&gt;
&lt;td&gt;The Manager, based on the live task&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Execution&lt;/td&gt;
&lt;td&gt;Agent abstractions call an LLM API&lt;/td&gt;
&lt;td&gt;Each node runs a &lt;strong&gt;real coding CLI&lt;/strong&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;That last row matters as much as the first three. Every node in AICU-Graph is driven by an&lt;br&gt;
actual CLI tool — Claude Code, Codex CLI, Gemini CLI, and others — not a thin LLM-call&lt;br&gt;
wrapper. Workers don't just reason about code, they run in a real terminal session with&lt;br&gt;
real tool access, the same way a human developer would.&lt;/p&gt;

&lt;h2&gt;
  
  
  What this looks like in practice
&lt;/h2&gt;

&lt;p&gt;A goal comes in. The Manager breaks it down and creates the Worker nodes it currently&lt;br&gt;
thinks it needs. Workers execute independently on their piece of the problem. When a&lt;br&gt;
Worker's output changes what the task actually requires — new dependency discovered,&lt;br&gt;
scope turns out bigger than expected — the Manager can adjust: spawn more nodes, change&lt;br&gt;
how work is divided, or change who collaborates with whom. The organization is a living&lt;br&gt;
structure, not a static diagram you drew before starting.&lt;/p&gt;

&lt;p&gt;I ran this on a real task and watched it grow into a 60-node Manager/Worker session,&lt;br&gt;
entirely from a single goal, with no pre-authored workflow. Here's a ~3-minute walkthrough:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/user-attachments/assets/ed0c9594-8b8f-49b8-9082-0755e13ab0bc" rel="noopener noreferrer"&gt;https://github.com/user-attachments/assets/ed0c9594-8b8f-49b8-9082-0755e13ab0bc&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Full-length version: &lt;a href="https://youtu.be/Zw-mO_qeR20" rel="noopener noreferrer"&gt;https://youtu.be/Zw-mO_qeR20&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Why this is worth trying if you use Claude Code or Codex CLI
&lt;/h2&gt;

&lt;p&gt;If you're already driving Claude Code or Codex CLI for coding tasks, AICU-Graph sits one&lt;br&gt;
level up: instead of running one CLI session yourself, you give it a goal and it coordinates&lt;br&gt;
&lt;em&gt;multiple&lt;/em&gt; CLI sessions as Manager and Workers, each with their own context and job, while&lt;br&gt;
you watch the graph, events, and node logs in a web workbench.&lt;/p&gt;

&lt;p&gt;It's a research and engineering prototype — functional, not polished. The CLIs and models&lt;br&gt;
you can use depend on your local installs, accounts, and quotas. The current open&lt;br&gt;
problem I'd most want feedback on: as the role pool for Workers grows into the hundreds,&lt;br&gt;
how do you pick the right small set of roles to cover a task — retrieval, ranking, coverage&lt;br&gt;
checks? That's a stub in the current build and genuinely unsolved.&lt;/p&gt;

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



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
bash
git clone https://github.com/heyongjun666/AICU-Graph.git
cd AICU-Graph
# install deps, install a CLI (Claude Code / Codex / Gemini), then:
python3 main.py
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

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