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">Team Operations</title>
<desc id="desc">A team lead uses its intrinsic Task Manager to persist bounded work for graph-connected teammates. AgentTeamService enforces workflow, lead, execution, assignee, and optimistic-revision boundaries while tasks advance from blocked or queued through worker submission and explicit lead acceptance; Task Manager and Team Monitor expose mutable and read-only views of the same durable state. Sources: server/nodes/tool/task_manager/__init__.py; server/services/agent_team.py; server/services/agent_teams/handlers.py; server/services/temporal/agent_workflow.py; client/src/components/parameterPanel/TaskManagerPanel.tsx; client/src/components/parameterPanel/TeamMonitorPanel.tsx</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">Team Operations</text>
<text x="72" y="91" class="subtitle">Execution-scoped durable tasks: assign, run, review, recover, and finish</text>
<g data-group-id="operation-surfaces"><rect x="72" y="140" width="1776" height="235" rx="18" fill="#15171c" stroke="#ffb86c" stroke-width="2"/><text x="92" y="172" class="group-label">OPERATION SURFACES</text></g><g data-group-id="task-lifecycle"><rect x="72" y="410" width="1776" height="535" rx="18" fill="#15171c" stroke="#ffb86c" stroke-width="2"/><text x="92" y="442" class="group-label">DURABLE TASK LIFECYCLE</text></g><g data-relationship-id="lead-calls-task-manager"><title>call public operations</title><path d="M 410 275.0 L 500 275.0" fill="none" stroke="#e8eaed" stroke-width="2" marker-end="url(#arrow)"/><rect x="359.4" y="165.0" width="191.2" height="30" rx="7" fill="#15171c" stroke="#2b2f37"/><text x="455" y="183" class="edge-label" text-anchor="middle" textLength="173.2" lengthAdjust="spacingAndGlyphs">call public operations</text></g><g data-relationship-id="task-manager-uses-service"><title>scoped durable mutation</title><path d="M 830 275.0 L 920 275.0" fill="none" stroke="#e8eaed" stroke-width="2" marker-end="url(#arrow)"/><rect x="775.6" y="165.0" width="198.79999999999998" height="30" rx="7" fill="#15171c" stroke="#2b2f37"/><text x="875" y="183" class="edge-label" text-anchor="middle" textLength="180.8" lengthAdjust="spacingAndGlyphs">scoped durable mutation</text></g><g data-relationship-id="human-manages-service"><title>inspect + permitted review actions · via WebSocket</title><path d="M 1390 275.0 L 1280 275.0" fill="none" stroke="#e8eaed" stroke-width="2" marker-end="url(#arrow)"/><path d="M 1335.0 245.0 L 1335 148.0" fill="none" stroke="#9aa1ac" stroke-width="1" stroke-dasharray="3 4" opacity=".7"/><rect x="1193.8" y="124.0" width="282.4" height="48" rx="7" fill="#15171c" stroke="#2b2f37"/><text x="1335" y="145.0" class="edge-label" text-anchor="middle" textLength="264.4" lengthAdjust="spacingAndGlyphs">inspect + permitted review actions</text><text x="1335" y="165.0" class="edge-protocol" text-anchor="middle">via WebSocket</text></g><g data-relationship-id="service-updates-human"><title>snapshots + lifecycle events</title><path d="M 1100.0 345 L 1100 365 L 1570 365 L 1570.0 345" fill="none" stroke="#e8eaed" stroke-width="2" stroke-dasharray="10 8" marker-end="url(#arrow)"/><path d="M 1335.0 365.0 L 1335 419" fill="none" stroke="#9aa1ac" stroke-width="1" stroke-dasharray="3 4" opacity=".7"/><rect x="1216.6" y="404.0" width="236.79999999999998" height="30" rx="7" fill="#15171c" stroke="#2b2f37"/><text x="1335" y="422" class="edge-label" text-anchor="middle" textLength="218.8" lengthAdjust="spacingAndGlyphs">snapshots + lifecycle events</text></g><g data-relationship-id="service-assigns-ready"><title>assign_task persists ready work</title><path d="M 1100.0 345 L 1100 395 L 565 395 L 565.0 520" fill="none" stroke="#e8eaed" stroke-width="2" marker-end="url(#arrow)"/><rect x="700.2" y="380.0" width="259.6" height="30" rx="7" fill="#15171c" stroke="#2b2f37"/><text x="830" y="398" class="edge-label" text-anchor="middle" textLength="241.6" lengthAdjust="spacingAndGlyphs">assign_task persists ready work</text></g><g data-relationship-id="dependencies-unblock"><title>dependencies accepted</title><path d="M 360 590.0 L 440 590.0" fill="none" stroke="#e8eaed" stroke-width="2" marker-end="url(#arrow)"/><rect x="308.2" y="480.0" width="183.6" height="30" rx="7" fill="#15171c" stroke="#2b2f37"/><text x="400" y="498" class="edge-label" text-anchor="middle" textLength="165.6" lengthAdjust="spacingAndGlyphs">dependencies accepted</text></g><g data-relationship-id="worker-claims"><title>worker claims task</title><path d="M 690 590.0 L 770 590.0" fill="none" stroke="#e8eaed" stroke-width="2" marker-end="url(#arrow)"/><rect x="649.6" y="480.0" width="160.79999999999998" height="30" rx="7" fill="#15171c" stroke="#2b2f37"/><text x="730" y="498" class="edge-label" text-anchor="middle" textLength="142.8" lengthAdjust="spacingAndGlyphs">worker claims task</text></g><g data-relationship-id="worker-submits"><title>worker succeeds</title><path d="M 1020 590.0 L 1100 590.0" fill="none" stroke="#e8eaed" stroke-width="2" marker-end="url(#arrow)"/><rect x="991.0" y="480.0" width="138.0" height="30" rx="7" fill="#15171c" stroke="#2b2f37"/><text x="1060" y="498" class="edge-label" text-anchor="middle" textLength="120.0" lengthAdjust="spacingAndGlyphs">worker succeeds</text></g><g data-relationship-id="lead-accepts"><title>accept_task</title><path d="M 1350 590.0 L 1430 590.0" fill="none" stroke="#e8eaed" stroke-width="2" marker-end="url(#arrow)"/><rect x="1330.0" y="480.0" width="120" height="30" rx="7" fill="#15171c" stroke="#2b2f37"/><text x="1390" y="498" class="edge-label" text-anchor="middle">accept_task</text></g><g data-relationship-id="worker-fails"><title>worker errors</title><path d="M 895.0 660 L 895.0 760" fill="none" stroke="#e8eaed" stroke-width="2" marker-end="url(#arrow)"/><rect x="833.6" y="695.0" width="122.8" height="30" rx="7" fill="#15171c" stroke="#2b2f37"/><text x="895" y="713" class="edge-label" text-anchor="middle" textLength="104.8" lengthAdjust="spacingAndGlyphs">worker errors</text></g><g data-relationship-id="failed-requeues"><title>retry_task / reassign_task</title><path d="M 770 830.0 L 720 700 L 565 700 L 565.0 660" fill="none" stroke="#e8eaed" stroke-width="2" marker-end="url(#arrow)"/><rect x="529.2" y="685.0" width="221.6" height="30" rx="7" fill="#15171c" stroke="#2b2f37"/><text x="640" y="703" class="edge-label" text-anchor="middle" textLength="203.6" lengthAdjust="spacingAndGlyphs">retry_task / reassign_task</text></g><g data-relationship-id="submitted-requeues"><title>retry_task / reassign_task</title><path d="M 1225.0 520 L 1225 455 L 565 455 L 565.0 520" fill="none" stroke="#e8eaed" stroke-width="2" stroke-dasharray="10 8" marker-end="url(#arrow)"/><rect x="784.2" y="440.0" width="221.6" height="30" rx="7" fill="#15171c" stroke="#2b2f37"/><text x="895" y="458" class="edge-label" text-anchor="middle" textLength="203.6" lengthAdjust="spacingAndGlyphs">retry_task / reassign_task</text></g><g data-relationship-id="cancelled-requeues"><title>retry_task / reassign_task</title><path d="M 1225.0 900 L 1225 925 L 700 925 L 700 700 L 565.0 660" fill="none" stroke="#e8eaed" stroke-width="2" stroke-dasharray="10 8" marker-end="url(#arrow)"/><rect x="784.2" y="910.0" width="221.6" height="30" rx="7" fill="#15171c" stroke="#2b2f37"/><text x="895" y="928" class="edge-label" text-anchor="middle" textLength="203.6" lengthAdjust="spacingAndGlyphs">retry_task / reassign_task</text></g><g data-relationship-id="accepted-finishes-team"><title>finish_team when all resolved</title><path d="M 1555.0 660 L 1555.0 760" fill="none" stroke="#e8eaed" stroke-width="2" marker-end="url(#arrow)"/><rect x="1432.8" y="675.0" width="244.39999999999998" height="30" rx="7" fill="#15171c" stroke="#2b2f37"/><text x="1555" y="693" class="edge-label" text-anchor="middle" textLength="226.4" lengthAdjust="spacingAndGlyphs">finish_team when all resolved</text></g><g data-relationship-id="cancelled-is-resolved"><title>cancelled also counts resolved</title><path d="M 1350 830.0 L 1430 830.0" fill="none" stroke="#e8eaed" stroke-width="2" stroke-dasharray="10 8" marker-end="url(#arrow)"/><rect x="1264.0" y="720.0" width="252.0" height="30" rx="7" fill="#15171c" stroke="#2b2f37"/><text x="1390" y="738" class="edge-label" text-anchor="middle" textLength="234.0" lengthAdjust="spacingAndGlyphs">cancelled also counts resolved</text></g><g data-component-id="team-lead"><title>Team Lead</title><rect x="110" y="205" width="300" height="140" rx="12" fill="#1b1e25" stroke="#bd93f9" stroke-width="2"/><rect x="110" y="205" width="300" height="7" rx="4" fill="#bd93f9"/><text x="128" y="231" class="type-label">AGENT</text><text x="128" y="257" class="node-label">Team Lead</text><text x="128" y="283" class="node-detail">Orchestrator or AI Employee</text><text x="128" y="303" class="node-detail" textLength="264.0" lengthAdjust="spacingAndGlyphs">connected teammates are authority</text></g><g data-component-id="task-manager"><title>Task Manager</title><rect x="500" y="205" width="330" height="140" rx="12" fill="#1b1e25" stroke="#50fa7b" stroke-width="2"/><rect x="500" y="205" width="330" height="7" rx="4" fill="#50fa7b"/><text x="518" y="231" class="type-label">INTRINSIC TOOL</text><text x="518" y="257" class="node-label">Task Manager</text><text x="518" y="283" class="node-detail">assign · inspect · review</text><text x="518" y="303" class="node-detail">retry · reassign · cancel · finish</text></g><g data-component-id="agent-team-service"><title>AgentTeamService</title><rect x="920" y="205" width="360" height="140" rx="12" fill="#1b1e25" stroke="#ffb86c" stroke-width="2"/><rect x="920" y="205" width="360" height="7" rx="4" fill="#ffb86c"/><text x="938" y="231" class="type-label">DURABLE SERVICE</text><text x="938" y="257" class="node-label">AgentTeamService</text><text x="938" y="283" class="node-detail">workflow + lead + execution scope</text><text x="938" y="303" class="node-detail">optimistic revision transitions</text></g><g data-component-id="human-views"><title>Task Manager + Team Monitor</title><rect x="1390" y="205" width="360" height="140" rx="12" fill="#1b1e25" stroke="#8be9fd" stroke-width="2"/><rect x="1390" y="205" width="360" height="7" rx="4" fill="#8be9fd"/><text x="1408" y="231" class="type-label">HUMAN UI</text><text x="1408" y="257" class="node-label">Task Manager +</text><text x="1408" y="279" class="node-label">Team Monitor</text><text x="1408" y="305" class="node-detail">authorized mutations + trace</text><text x="1408" y="325" class="node-detail">read-only lifecycle snapshot</text></g><g data-component-id="blocked"><title>Blocked</title><rect x="110" y="520" width="250" height="140" rx="12" fill="#1b1e25" stroke="#9aa1ac" stroke-width="2"/><rect x="110" y="520" width="250" height="7" rx="4" fill="#9aa1ac"/><text x="128" y="546" class="type-label">TASK STATE</text><text x="128" y="572" class="node-label">Blocked</text><text x="128" y="598" class="node-detail">dependencies unresolved</text></g><g data-component-id="queued"><title>Queued</title><rect x="440" y="520" width="250" height="140" rx="12" fill="#1b1e25" stroke="#ffb86c" stroke-width="2"/><rect x="440" y="520" width="250" height="7" rx="4" fill="#ffb86c"/><text x="458" y="546" class="type-label">TASK STATE</text><text x="458" y="572" class="node-label">Queued</text><text x="458" y="598" class="node-detail">durably persisted</text><text x="458" y="618" class="node-detail">awaiting admission</text></g><g data-component-id="running"><title>Running</title><rect x="770" y="520" width="250" height="140" rx="12" fill="#1b1e25" stroke="#ffb86c" stroke-width="2"/><rect x="770" y="520" width="250" height="7" rx="4" fill="#ffb86c"/><text x="788" y="546" class="type-label">TASK STATE</text><text x="788" y="572" class="node-label">Running</text><text x="788" y="598" class="node-detail">worker claimed task</text><text x="788" y="618" class="node-detail">detached child execution</text></g><g data-component-id="submitted"><title>Submitted</title><rect x="1100" y="520" width="250" height="140" rx="12" fill="#1b1e25" stroke="#ff79c6" stroke-width="2"/><rect x="1100" y="520" width="250" height="7" rx="4" fill="#ff79c6"/><text x="1118" y="546" class="type-label">TASK STATE</text><text x="1118" y="572" class="node-label">Submitted</text><text x="1118" y="598" class="node-detail" textLength="214.0" lengthAdjust="spacingAndGlyphs">worker result awaits review</text></g><g data-component-id="accepted"><title>Accepted</title><rect x="1430" y="520" width="250" height="140" rx="12" fill="#1b1e25" stroke="#50fa7b" stroke-width="2"/><rect x="1430" y="520" width="250" height="7" rx="4" fill="#50fa7b"/><text x="1448" y="546" class="type-label">TASK STATE</text><text x="1448" y="572" class="node-label">Accepted</text><text x="1448" y="598" class="node-detail">lead-approved Done state</text></g><g data-component-id="failed"><title>Failed</title><rect x="770" y="760" width="250" height="140" rx="12" fill="#1b1e25" stroke="#ff79c6" stroke-width="2"/><rect x="770" y="760" width="250" height="7" rx="4" fill="#ff79c6"/><text x="788" y="786" class="type-label">TASK STATE</text><text x="788" y="812" class="node-label">Failed</text><text x="788" y="838" class="node-detail" textLength="214.0" lengthAdjust="spacingAndGlyphs">error retained for recovery</text></g><g data-component-id="cancelled"><title>Cancelled</title><rect x="1100" y="760" width="250" height="140" rx="12" fill="#1b1e25" stroke="#9aa1ac" stroke-width="2"/><rect x="1100" y="760" width="250" height="7" rx="4" fill="#9aa1ac"/><text x="1118" y="786" class="type-label">TASK STATE</text><text x="1118" y="812" class="node-label">Cancelled</text><text x="1118" y="838" class="node-detail" textLength="214.0" lengthAdjust="spacingAndGlyphs">intentional terminal state</text></g><g data-component-id="team-completed"><title>Team Completed</title><rect x="1430" y="760" width="250" height="140" rx="12" fill="#1b1e25" stroke="#50fa7b" stroke-width="2"/><rect x="1430" y="760" width="250" height="7" rx="4" fill="#50fa7b"/><text x="1448" y="786" class="type-label">EXECUTION STATE</text><text x="1448" y="812" class="node-label">Team Completed</text><text x="1448" y="838" class="node-detail" textLength="214.0" lengthAdjust="spacingAndGlyphs">all tasks accepted or cancelled</text></g><g data-callout-id="permitted-mutations"><rect x="110" y="740" width="550" height="165" rx="10" fill="#1b1e25" stroke="#f1fa8c" stroke-width="2" stroke-dasharray="7 6"/><text x="126" y="770" class="callout-title">State-aware controls</text><text x="126" y="796" class="callout-text">modify_task: blocked or queued</text><text x="126" y="818" class="callout-text">cancel_task: blocked, queued, or running</text><text x="126" y="840" class="callout-text">list/get/inspect never mutate task state</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>