Open-source, local-first AI agent for real work.
TypeScript agent-toolsai-agentbyokcoding-agentcross-platformdesktop-appdeveloper-toolselectronharnessknowledge-basellmwikilocal-firstmcpplugin-systemprivacy-firstskillstypescriptvettaworkflow-automation
export const DISPATCH_WORKFLOWS_TOOL_DESCRIPTION = [
"Dispatch N costly parallel workflow subagents only when a very complex request contains multiple",
"unrelated, independently complex, non-overlapping workflows. Each workflow is an independent session that",
"inherits a snapshot of THIS conversation's context and starts from the todo list you assign it.",
"",
"Do not dispatch for simple tasks, vague requests, sequential steps, or merely to save a few root tool calls.",
"Every workflow must use the structured task contract with history, current state, objective, scope,",
"constraints, relevant context, deliverables, and functional validation. Code output alone is not completion.",
"",
"All workflows are accepted immediately; those beyond the concurrency limit queue (status: queued)",
"and start automatically when a slot frees. Returns immediately — one batch notification is delivered",
"after every workflow reaches a terminal state. Structured child reports may arrive earlier. Do not block.",
"",
"Split tasks into NON-OVERLAPPING scopes: workflows share the working directory, so two workflows",
"must never edit the same files. Workflows cannot spawn agents themselves (single layer).",
"Use interrupt_agent / send_message / followup_task with the task_name to control a workflow.",
"",
"RESUME, don't re-dispatch: an interrupted workflow keeps its full context and todo progress.",
"To continue it, call followup_task(target: task_name, message: 'continue the remaining todos').",
"Only dispatch NEW workflows for NEW scopes — dispatching again resets nothing for interrupted ones",
"(their names stay reserved) and would duplicate work.",
].join("\n");