Self-improving AI Employees for everyone
Python ai-agentsai-employeeai-employeesassistantautonomous-agentsco-employeescompanygrok-botinstinctloop-agentsmuseown-your-datapersonalself-hosted
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1920 1080" width="100%" role="img" aria-labelledby="title desc">
<title id="title">Plugin → Agent → Team Composition</title>
<desc id="desc">A source-backed composition view showing how BaseNode plugins branch into standalone chat-model and agent plugins, how agents assemble context, skills, and tools before entering the shared LLM runtime, and how team leads turn teammate edges into durable delegation surfaces. Sources: server/services/plugin/base.py; server/nodes/model/_base.py; server/nodes/agent/_specialized.py; server/nodes/agent/_handles.py; server/services/plugin/edge_walker.py; server/services/llm/unifier.py; server/services/agent_team.py; server/models/database.py</desc>
<defs>
<marker id="arrow" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="8" markerHeight="8" orient="auto"><path d="M0,0 L10,5 L0,10 z" fill="#e8eaed"/></marker>
<style>
.title { fill:#e8eaed; font:700 30px Geist,system-ui,sans-serif; }
.subtitle { fill:#9aa1ac; font:400 18px Geist,system-ui,sans-serif; }
.group-label { fill:#9aa1ac; font:600 16px 'JetBrains Mono',ui-monospace,monospace; letter-spacing:1.2px; }
.type-label { fill:#9aa1ac; font:600 16px 'JetBrains Mono',ui-monospace,monospace; letter-spacing:.8px; }
.node-label { fill:#e8eaed; font:650 20px Geist,system-ui,sans-serif; }
.node-detail { fill:#9aa1ac; font:400 16px Geist,system-ui,sans-serif; }
.edge-label { fill:#e8eaed; font:500 16px Geist,system-ui,sans-serif; }
.edge-protocol { fill:#9aa1ac; font:500 16px 'JetBrains Mono',ui-monospace,monospace; }
.callout-title { fill:#e8eaed; font:650 18px Geist,system-ui,sans-serif; }
.callout-text { fill:#9aa1ac; font:400 16px Geist,system-ui,sans-serif; }
.legend { fill:#9aa1ac; font:500 16px Geist,system-ui,sans-serif; }
</style>
</defs>
<rect width="1920" height="1080" fill="#0d0f13"/>
<text x="72" y="58" class="title">Plugin → Agent → Team Composition</text>
<text x="72" y="91" class="subtitle">Self-registering node plugins compose provider-backed agents, edge-connected capabilities, and execution-scoped teams</text>
<g data-group-id="plugin-layer"><rect x="50" y="125" width="500" height="830" rx="18" fill="#15171c" stroke="#bd93f9" stroke-width="2"/><text x="70" y="157" class="group-label">PLUGIN & MODEL LAYER</text></g><g data-group-id="agent-layer"><rect x="590" y="125" width="700" height="830" rx="18" fill="#15171c" stroke="#bd93f9" stroke-width="2"/><text x="610" y="157" class="group-label">AGENT COMPOSITION</text></g><g data-group-id="team-layer"><rect x="1330" y="125" width="540" height="830" rx="18" fill="#15171c" stroke="#ffb86c" stroke-width="2"/><text x="1350" y="157" class="group-label">TEAM COMPOSITION</text></g><g data-relationship-id="r-base-model"><title>specializes as model plugin</title><path d="M 300.0 325 L 300.0 400" fill="none" stroke="#e8eaed" stroke-width="2" marker-end="url(#arrow)"/><rect x="185.4" y="350.0" width="229.2" height="30" rx="7" fill="#15171c" stroke="#2b2f37"/><text x="300" y="368" class="edge-label" text-anchor="middle" textLength="211.2" lengthAdjust="spacingAndGlyphs">specializes as model plugin</text></g><g data-relationship-id="r-base-agent"><title>specializes as agent plugin</title><path d="M 300.0 325 L 300 360 L 610 360 L 610 265 L 640 265.0" fill="none" stroke="#e8eaed" stroke-width="2" marker-end="url(#arrow)"/><path d="M 475.0 360.0 L 475 144" fill="none" stroke="#9aa1ac" stroke-width="1" stroke-dasharray="3 4" opacity=".7"/><rect x="360.4" y="129.0" width="229.2" height="30" rx="7" fill="#15171c" stroke="#2b2f37"/><text x="475" y="147" class="edge-label" text-anchor="middle" textLength="211.2" lengthAdjust="spacingAndGlyphs">specializes as agent plugin</text></g><g data-relationship-id="r-model-unifier"><title>dispatches chat · via provider + model</title><path d="M 300.0 550 L 300.0 730" fill="none" stroke="#e8eaed" stroke-width="2" marker-end="url(#arrow)"/><rect x="212.0" y="616.0" width="176.0" height="48" rx="7" fill="#15171c" stroke="#2b2f37"/><text x="300" y="637" class="edge-label" text-anchor="middle">dispatches chat</text><text x="300" y="657" class="edge-protocol" text-anchor="middle" textLength="158.0" lengthAdjust="spacingAndGlyphs">via provider + model</text></g><g data-relationship-id="r-agent-prepare"><title>prepares execution payload</title><path d="M 940.0 345 L 940 385 L 940 680 L 940.0 720" fill="none" stroke="#e8eaed" stroke-width="2" marker-end="url(#arrow)"/><rect x="829.2" y="635.0" width="221.6" height="30" rx="7" fill="#15171c" stroke="#2b2f37"/><text x="940" y="653" class="edge-label" text-anchor="middle" textLength="203.6" lengthAdjust="spacingAndGlyphs">prepares execution payload</text></g><g data-relationship-id="r-context-prepare"><title>adds context descriptor</title><path d="M 727.5 575 L 727 620 L 620 620 L 620 805 L 650 805.0" fill="none" stroke="#e8eaed" stroke-width="2" marker-end="url(#arrow)"/><rect x="520.6" y="650.0" width="198.79999999999998" height="30" rx="7" fill="#15171c" stroke="#2b2f37"/><text x="620" y="668" class="edge-label" text-anchor="middle" textLength="180.8" lengthAdjust="spacingAndGlyphs">adds context descriptor</text></g><g data-relationship-id="r-skills-prepare"><title>enabled skills via Skill tool</title><path d="M 937.5 575 L 937 630 L 940.0 720" fill="none" stroke="#e8eaed" stroke-width="2" marker-end="url(#arrow)"/><rect x="814.8" y="605.0" width="244.39999999999998" height="30" rx="7" fill="#15171c" stroke="#2b2f37"/><text x="937" y="623" class="edge-label" text-anchor="middle">enabled skills via Skill tool</text></g><g data-relationship-id="r-tools-prepare"><title>builds tool surface</title><path d="M 1150.0 575 L 1150 620 L 1260 620 L 1260 805 L 1230 805.0" fill="none" stroke="#e8eaed" stroke-width="2" marker-end="url(#arrow)"/><rect x="1175.8" y="650.0" width="168.4" height="30" rx="7" fill="#15171c" stroke="#2b2f37"/><text x="1260" y="668" class="edge-label" text-anchor="middle" textLength="150.4" lengthAdjust="spacingAndGlyphs">builds tool surface</text></g><g data-relationship-id="r-prepare-unifier"><title>routes selected provider and model</title><path d="M 940.0 890 L 940 920 L 300 920 L 300.0 890" fill="none" stroke="#e8eaed" stroke-width="2" marker-end="url(#arrow)"/><rect x="478.8" y="905.0" width="282.4" height="30" rx="7" fill="#15171c" stroke="#2b2f37"/><text x="620" y="923" class="edge-label" text-anchor="middle" textLength="264.4" lengthAdjust="spacingAndGlyphs">routes selected provider and model</text></g><g data-relationship-id="r-teammates-lead"><title>connect via input-teammates</title><path d="M 1600.0 430 L 1600.0 335" fill="none" stroke="#e8eaed" stroke-width="2" marker-end="url(#arrow)"/><rect x="1485.4" y="367.0" width="229.2" height="30" rx="7" fill="#15171c" stroke="#2b2f37"/><text x="1600" y="385" class="edge-label" text-anchor="middle" textLength="211.2" lengthAdjust="spacingAndGlyphs">connect via input-teammates</text></g><g data-relationship-id="r-lead-runtime"><title>executes through shared agent runtime</title><path d="M 1380 260.0 L 1320 260 L 1320 650 L 1260 650 L 1260 805 L 1230 805.0" fill="none" stroke="#e8eaed" stroke-width="2" marker-end="url(#arrow)"/><path d="M 1195.0 650.0 L 1195 380" fill="none" stroke="#9aa1ac" stroke-width="1" stroke-dasharray="3 4" opacity=".7"/><rect x="1042.4" y="365.0" width="305.2" height="30" rx="7" fill="#15171c" stroke="#2b2f37"/><text x="1195" y="383" class="edge-label" text-anchor="middle" textLength="287.2" lengthAdjust="spacingAndGlyphs">executes through shared agent runtime</text></g><g data-relationship-id="r-lead-manager"><title>auto-binds intrinsic tool</title><path d="M 1600.0 335 L 1600 650 L 1475 650 L 1475.0 710" fill="none" stroke="#e8eaed" stroke-width="2" marker-end="url(#arrow)"/><rect x="1408.0" y="635.0" width="214.0" height="30" rx="7" fill="#15171c" stroke="#2b2f37"/><text x="1515" y="653" class="edge-label" text-anchor="middle" textLength="196.0" lengthAdjust="spacingAndGlyphs">auto-binds intrinsic tool</text></g><g data-relationship-id="r-teammates-state"><title>registers execution members</title><path d="M 1600.0 580 L 1600 640 L 1715 640 L 1715.0 710" fill="none" stroke="#e8eaed" stroke-width="2" marker-end="url(#arrow)"/><path d="M 1700.0 640.0 L 1790 640" fill="none" stroke="#9aa1ac" stroke-width="1" stroke-dasharray="3 4" opacity=".7"/><rect x="1675.4" y="625.0" width="229.2" height="30" rx="7" fill="#15171c" stroke="#2b2f37"/><text x="1790" y="643" class="edge-label" text-anchor="middle" textLength="211.2" lengthAdjust="spacingAndGlyphs">registers execution members</text></g><g data-relationship-id="r-manager-state"><title>persists task lifecycle</title><path d="M 1475.0 880 L 1475 920 L 1715 920 L 1715.0 880" fill="none" stroke="#e8eaed" stroke-width="2" marker-end="url(#arrow)"/><rect x="1495.6" y="905.0" width="198.79999999999998" height="30" rx="7" fill="#15171c" stroke="#2b2f37"/><text x="1595" y="923" class="edge-label" text-anchor="middle" textLength="180.8" lengthAdjust="spacingAndGlyphs">persists task lifecycle</text></g><g data-component-id="base-node"><title>BaseNode plugin contract</title><rect x="90" y="185" width="420" height="140" rx="12" fill="#1b1e25" stroke="#bd93f9" stroke-width="2"/><rect x="90" y="185" width="420" height="7" rx="4" fill="#bd93f9"/><text x="108" y="211" class="type-label">PLUGIN CONTRACT</text><text x="108" y="237" class="node-label">BaseNode plugin contract</text><text x="108" y="263" class="node-detail">Params · Output · handles · uiHints</text><text x="108" y="283" class="node-detail">Auto-registers subclasses on import</text></g><g data-component-id="model-plugins"><title>Chat-model plugins</title><rect x="90" y="400" width="420" height="150" rx="12" fill="#1b1e25" stroke="#8be9fd" stroke-width="2"/><rect x="90" y="400" width="420" height="7" rx="4" fill="#8be9fd"/><text x="108" y="426" class="type-label">MODEL PLUGIN</text><text x="108" y="452" class="node-label">Chat-model plugins</text><text x="108" y="478" class="node-detail">ChatModelBase provider subclasses</text><text x="108" y="498" class="node-detail">Standalone output-model nodes</text></g><g data-component-id="chat-unifier"><title>ChatUnifier</title><rect x="90" y="730" width="420" height="160" rx="12" fill="#1b1e25" stroke="#8be9fd" stroke-width="2"/><rect x="90" y="730" width="420" height="7" rx="4" fill="#8be9fd"/><text x="108" y="756" class="type-label">LLM FACADE</text><text x="108" y="782" class="node-label">ChatUnifier</text><text x="108" y="808" class="node-detail">Provider registry + native SDK adapters</text><text x="108" y="828" class="node-detail">Shared model and agent dispatch path</text></g><g data-component-id="agent-plugins"><title>Agent plugins</title><rect x="640" y="185" width="600" height="160" rx="12" fill="#1b1e25" stroke="#bd93f9" stroke-width="2"/><rect x="640" y="185" width="600" height="7" rx="4" fill="#bd93f9"/><text x="658" y="211" class="type-label">AGENT PLUGIN</text><text x="658" y="237" class="node-label">Agent plugins</text><text x="658" y="263" class="node-detail">provider · model · prompt · options</text><text x="658" y="283" class="node-detail">Base, specialized, CLI, and team-lead variants</text></g><g data-component-id="context-node"><title>Context</title><rect x="640" y="430" width="175" height="145" rx="12" fill="#1b1e25" stroke="#ff79c6" stroke-width="2"/><rect x="640" y="430" width="175" height="7" rx="4" fill="#ff79c6"/><text x="658" y="456" class="type-label" textLength="139.0" lengthAdjust="spacingAndGlyphs">CONNECTED CONFIG</text><text x="658" y="482" class="node-label">Context</text><text x="658" y="508" class="node-detail">input-context</text><text x="658" y="528" class="node-detail">stored conversation</text></g><g data-component-id="skill-nodes"><title>Skills</title><rect x="850" y="430" width="175" height="145" rx="12" fill="#1b1e25" stroke="#50fa7b" stroke-width="2"/><rect x="850" y="430" width="175" height="7" rx="4" fill="#50fa7b"/><text x="868" y="456" class="type-label" textLength="139.0" lengthAdjust="spacingAndGlyphs">CONNECTED CAPABILITY</text><text x="868" y="482" class="node-label">Skills</text><text x="868" y="508" class="node-detail">input-skill</text><text x="868" y="528" class="node-detail" textLength="139.0" lengthAdjust="spacingAndGlyphs">direct or Master Skill</text></g><g data-component-id="tool-nodes"><title>Tools</title><rect x="1060" y="430" width="180" height="145" rx="12" fill="#1b1e25" stroke="#50fa7b" stroke-width="2"/><rect x="1060" y="430" width="180" height="7" rx="4" fill="#50fa7b"/><text x="1078" y="456" class="type-label" textLength="144.0" lengthAdjust="spacingAndGlyphs">CONNECTED CAPABILITY</text><text x="1078" y="482" class="node-label">Tools</text><text x="1078" y="508" class="node-detail">input-tools</text><text x="1078" y="528" class="node-detail" textLength="144.0" lengthAdjust="spacingAndGlyphs">plugin tool schemas</text></g><g data-component-id="prepared-agent-call"><title>Prepared agent call</title><rect x="650" y="720" width="580" height="170" rx="12" fill="#1b1e25" stroke="#ffb86c" stroke-width="2"/><rect x="650" y="720" width="580" height="7" rx="4" fill="#ffb86c"/><text x="668" y="746" class="type-label">RUNTIME PAYLOAD</text><text x="668" y="772" class="node-label">Prepared agent call</text><text x="668" y="798" class="node-detail">Edge walk + task/prompt assembly</text><text x="668" y="818" class="node-detail">Provider-neutral tools and skill content</text></g><g data-component-id="team-lead"><title>Orchestrator / AI Employee</title><rect x="1380" y="185" width="440" height="150" rx="12" fill="#1b1e25" stroke="#bd93f9" stroke-width="2"/><rect x="1380" y="185" width="440" height="7" rx="4" fill="#bd93f9"/><text x="1398" y="211" class="type-label">TEAM-LEAD AGENT</text><text x="1398" y="237" class="node-label">Orchestrator /</text><text x="1398" y="259" class="node-label">AI Employee</text><text x="1398" y="285" class="node-detail">Same agent runtime</text><text x="1398" y="305" class="node-detail">Adds input-teammates handle</text></g><g data-component-id="teammates"><title>Connected teammate agents</title><rect x="1380" y="430" width="440" height="150" rx="12" fill="#1b1e25" stroke="#bd93f9" stroke-width="2"/><rect x="1380" y="430" width="440" height="7" rx="4" fill="#bd93f9"/><text x="1398" y="456" class="type-label">AGENT SET</text><text x="1398" y="482" class="node-label">Connected teammate</text><text x="1398" y="504" class="node-label">agents</text><text x="1398" y="530" class="node-detail">Specialized or custom aiAgent</text><text x="1398" y="550" class="node-detail">assigned only via Task Manager</text></g><g data-component-id="task-manager"><title>Task Manager</title><rect x="1380" y="710" width="190" height="170" rx="12" fill="#1b1e25" stroke="#50fa7b" stroke-width="2"/><rect x="1380" y="710" width="190" height="7" rx="4" fill="#50fa7b"/><text x="1398" y="736" class="type-label">INTRINSIC TOOL</text><text x="1398" y="762" class="node-label">Task Manager</text><text x="1398" y="788" class="node-detail">Auto-bound</text><text x="1398" y="808" class="node-detail">Lead-only control</text></g><g data-component-id="durable-team"><title>Durable team state</title><rect x="1610" y="710" width="210" height="170" rx="12" fill="#1b1e25" stroke="#ff79c6" stroke-width="2"/><rect x="1610" y="710" width="210" height="7" rx="4" fill="#ff79c6"/><text x="1628" y="736" class="type-label">EXECUTION DATA</text><text x="1628" y="762" class="node-label">Durable team</text><text x="1628" y="784" class="node-label">state</text><text x="1628" y="810" class="node-detail">Members · tasks</text><text x="1628" y="830" class="node-detail">Attempts · messages</text></g>
<g aria-label="Legend"><circle cx="72" cy="1038" r="7" fill="#bd93f9"/><text x="86" y="1044" class="legend">Agents / system</text><circle cx="317" cy="1038" r="7" fill="#8be9fd"/><text x="331" y="1044" class="legend">Models / interfaces</text><circle cx="562" cy="1038" r="7" fill="#50fa7b"/><text x="576" y="1044" class="legend">Tools / results</text><circle cx="807" cy="1038" r="7" fill="#ff79c6"/><text x="821" y="1044" class="legend">Triggers / events</text><circle cx="1052" cy="1038" r="7" fill="#ffb86c"/><text x="1066" y="1044" class="legend">Workflow / runtime</text><circle cx="1297" cy="1038" r="7" fill="#f1fa8c"/><text x="1311" y="1044" class="legend">Security note</text></g>
</svg>