npm Packages
@cognitiondesk/orchestration-kitv0.1.0
Task delegation, multi-step workflows and progress tracking for multi-agent coordination.
Install
Shell
npm install @cognitiondesk/orchestration-kitPeer dependencies: @cognitiondesk/agent-runtime (optional — mock mode without it)
Quickstart
Run 2026-09-25 in plain Node, no backend needed for this call.
JavaScript
import { createOrchestrator } from '@cognitiondesk/orchestration-kit';
// Without an agentRuntime this runs in mock mode. Run 2026-09-25 in plain
// Node, no backend needed:
const { delegator, tracker } = createOrchestrator({});
const task = await delegator.delegate({
title: 'Extract webhook handler into worker',
coordinatorAgentId: 'agent-coordinator',
workerAgentId: 'agent-worker',
});
// -> { id: 'task_...', status: 'assigned' }
await delegator.updateStatus(task.id, 'in_progress');
await delegator.complete(task.id, { summary: 'Done, PR #42 opened' });
const summary = await tracker.getTaskSummary();
console.log(summary); // -> { total: 1, byStatus: { done: 1 } }API
delegator.delegate / updateStatus / complete / block / listTasks | Task delegation between a coordinator and a worker agent. |
workflows.createWorkflow / run / listWorkflows | `run()` is an async generator that executes each step in order. |
tracker.getTaskSummary / getWorkflowSummary / getAgentProgress | Counts by status. |