Skip to main content
Glama

Network-AI

TypeScript/Node.js multi-agent orchestrator — shared state, guardrails, budgets, and cross-framework coordination

Website CI CodeQL Release npm Tests Adapters License Socket Node.js TypeScript ClawHub Integration Guide Sponsor Discord Glama

Network-AI is a TypeScript/Node.js multi-agent orchestrator that adds coordination, guardrails, and governance to any AI agent stack.

  • Shared blackboard with locking — atomic propose → validate → commit prevents race conditions and split-brain failures across parallel agents

  • Guardrails and budgets — FSM governance, per-agent token ceilings, HMAC / Ed25519 audit trails, and permission gating

  • 29 adapters — LangChain (+ streaming), AutoGen, CrewAI, OpenAI Assistants, LlamaIndex, Semantic Kernel, Haystack, DSPy, Agno, MCP, Custom (+ streaming), OpenClaw, A2A, Codex, MiniMax, NemoClaw, APS, Copilot, LangGraph, Anthropic Computer Use, OpenAI Agents SDK, Vertex AI, Pydantic AI, Browser Agent, Hermes (NousResearch Hermes / any OpenAI-compatible endpoint), Orchestrator (hierarchical multi-orchestrator), and RLM (Recursive Language Model / any RLM-compatible HTTP endpoint) — no glue code, no lock-in

  • Persistent project memory (Layer 3) — context_manager.py injects decisions, goals, stack, milestones, and banned patterns into every system prompt so agents always have full project context

  • v5.0 modules — Agent VCR (record/replay), comparison runner, coverage reporter, goal DSL, approval inbox, job queue, gRPC/HTTP transport, playground REPL, adapter test harness, and more

The silent failure mode in multi-agent systems: parallel agents writing to the same key use last-write-wins by default — one agent's result silently overwrites another's mid-flight. The outcome is split-brain state: double-spends, contradictory decisions, corrupted context, no error thrown. Network-AI's propose → validate → commit mutex prevents this at the coordination layer, before any write reaches shared state.

Use Network-AI as:

  • A TypeScript/Node.js library — import { createSwarmOrchestrator } from 'network-ai'

  • An MCP server — npx network-ai-server --port 3001

  • A CLI — network-ai bb get status / network-ai audit tail

  • An OpenClaw skill — clawhub install network-ai

5-minute quickstart →  |  Architecture →  |  All adapters →  |  Benchmarks →


⚡ Try in 60 Seconds

npm install network-ai
import { LockedBlackboard } from 'network-ai';

const board = new LockedBlackboard('.');
const id    = board.propose('status', { ready: true }, 'agent-1');
board.validate(id, 'agent-1');
board.commit(id);

console.log(board.read('status'));  // { ready: true }

Two agents, atomic writes, no race conditions. That's it.

Want the full stress test? No API key, ~3 seconds:

npx ts-node examples/08-control-plane-stress-demo.ts

Runs priority preemption, AuthGuardian permission gating, FSM governance, and compliance monitoring — all without a single LLM call.

If it saves you from a race condition, a ⭐ helps others find it.


Related MCP server: OmniAgent MCP Mesh

What's Included

✅ Atomic shared state

propose → validate → commit with filesystem mutex — no split-brain

✅ Token budgets

Hard per-agent ceilings with live spend tracking

✅ Permission gating

HMAC / Ed25519-signed tokens, scoped per agent and resource

✅ Append-only audit log

Every write, grant, and transition signed and logged

✅ 29 framework adapters

LangChain, CrewAI, AutoGen, MCP, Codex, APS, RLM, and 22 more — zero lock-in

✅ FSM governance

Hard-stop agents at state boundaries, timeout enforcement

✅ Compliance monitoring

Real-time violation detection (tool abuse, turn-taking, timeouts)

✅ QA orchestration

Scenario replay, feedback loops, regression tracking, contradiction detection

✅ Deferred adapter init

Lazy-load adapters on first use — zero startup cost for unused frameworks

✅ Hook middleware

beforeExecute / afterExecute / onError hooks on any adapter call

✅ Flow control

Pause / resume / throttle writes on the blackboard

✅ Skill composition

chain() / batch() / loop() / verify() meta-operations over agent calls

✅ Semantic memory search

BYOE vector store with cosine similarity over blackboard data

✅ Phase pipeline

Multi-phase workflows with human-in-the-loop approval gates

✅ Confidence filtering

Multi-agent result scoring, threshold validation, and consensus aggregation

✅ Matcher-based hooks

Glob patterns on agent/action/tool for targeted hook filtering

✅ Fan-out / fan-in

Parallel agent spawning with pluggable aggregation strategies

✅ Agent runtime sandbox

Sandboxed shell execution with policy enforcement and approval gates

✅ Interactive console

TUI dashboard for live monitoring, agent control, blackboard/budget/FSM management

✅ Pipe mode

JSON stdin/stdout protocol for programmatic AI-to-orchestrator control

✅ Strategy agent

Meta-orchestrator with elastic agent pools, workload partitioning, and adaptive scaling

✅ Goal decomposer

LLM-powered goal → task DAG → parallel execution with runTeam() one-liner

✅ Context Throttler

Prune blackboard keys per agent scope before LLM calls — prevent context pollution

✅ Partition Planner

Assign non-overlapping focus areas to agents before DAG execution — no redundant research

✅ Coverage Gate

Recursive refinement loop — re-run decomposer for gaps until coverage score ≥ threshold

✅ Route Classifier

Short-circuit routing — classify goals as factual lookup vs. complex synthesis before planning

✅ Goal DSL

YAML/JSON goal definitions with cycle detection and topological compilation

✅ Agent VCR

Record and replay LLM/agent interactions for deterministic tests

✅ Comparison runner

Side-by-side adapter comparison with scoring, timing, cost analysis

✅ Coverage reporter

V8 coverage collection with threshold enforcement

✅ Job queue

Persistent priority FIFO with retries, crash recovery, pluggable backends

✅ Approval inbox

Web-accessible approval queue with REST API and SSE streaming

✅ Transport layer

JSON-RPC 2.0 over HTTP with HMAC auth, TTL, node allowlisting

✅ Playground REPL

Interactive sandbox with mock agents for rapid prototyping

✅ Adapter test harness

Parameterized test battery for any adapter implementation

✅ IAuthValidator

Interface to decouple authorization from concrete AuthGuardian

✅ TypeScript native

ES2022 strict mode, zero native dependencies


Why teams use Network-AI

Problem

How Network-AI solves it

Race conditions in parallel agents

Atomic blackboard: propose → validate → commit with file-system mutex

Agent overspend / runaway costs

FederatedBudget — hard per-agent token ceilings with live spend tracking

No visibility into what agents did

HMAC / Ed25519-signed audit log on every write, permission grant, and FSM transition

Locked into one AI framework

29 adapters — mix LangChain + AutoGen + CrewAI + Codex + MiniMax + NemoClaw + APS + LangGraph + Vertex AI + Hermes + RLM + custom in one swarm

Agents escalating beyond their scope

AuthGuardian — scoped permission tokens required before sensitive operations

Agents lack project context between runs

ProjectContextManager (Layer 3) — inject decisions, goals, stack, and milestones into every system prompt

No regression tracking on agent output quality

QAOrchestratorAgent — scenario replay, feedback loops, cross-agent contradiction detection, historical trend tracking


Architecture

%%{init: {'theme': 'base', 'themeVariables': {'primaryColor': '#1e293b', 'primaryTextColor': '#e2e8f0', 'primaryBorderColor': '#475569', 'lineColor': '#94a3b8', 'clusterBkg': '#0f172a', 'clusterBorder': '#334155', 'edgeLabelBackground': '#1e293b', 'edgeLabelColor': '#cbd5e1', 'titleColor': '#e2e8f0'}}}%%
flowchart TD
    classDef app        fill:#1e3a5f,stroke:#3b82f6,color:#bfdbfe,font-weight:bold
    classDef security   fill:#451a03,stroke:#d97706,color:#fde68a
    classDef routing    fill:#14532d,stroke:#16a34a,color:#bbf7d0
    classDef quality    fill:#3b0764,stroke:#9333ea,color:#e9d5ff
    classDef blackboard fill:#0c4a6e,stroke:#0284c7,color:#bae6fd
    classDef adapters   fill:#064e3b,stroke:#059669,color:#a7f3d0
    classDef audit      fill:#1e293b,stroke:#475569,color:#94a3b8

    App["Your Application"]:::app
    App -->|"createSwarmOrchestrator()"| SO

    subgraph SO["SwarmOrchestrator"]
        AG["AuthGuardian\n(HMAC / Ed25519 permission tokens)"]:::security
        AR["AdapterRegistry\n(route tasks to frameworks)"]:::routing
        QG["QualityGateAgent\n(validate blackboard writes)"]:::quality
        QA["QAOrchestratorAgent\n(scenario replay, regression tracking)"]:::quality
        BB["SharedBlackboard\n(shared agent state)\npropose → validate → commit\nfilesystem mutex"]:::blackboard
        AD["Adapters — plug any framework in, swap freely\nLangChain · AutoGen · CrewAI · MCP · LlamaIndex · …"]:::adapters

        AG -->|"grant / deny"| AR
        AR -->|"tasks dispatched"| AD
        AD -->|"writes results"| BB
        QG -->|"validates"| BB
        QA -->|"orchestrates"| QG
    end

    SO --> AUDIT["data/audit_log.jsonl\n(HMAC / Ed25519-signed)"]:::audit

FederatedBudget is a standalone export — instantiate it separately and optionally wire it to a blackboard backend for cross-node token budget enforcement.

ProjectContextManager is a Layer-3 Python helper (scripts/context_manager.py) that injects persistent project goals, decisions, and milestones into agent system prompts — see ARCHITECTURE.md § Layer 3.

→ Full architecture, FSM journey, and handoff protocol


Install

npm install network-ai

No native dependencies, no build step. Adapters are dependency-free (BYOC — bring your own client).


Use as MCP Server

Start the server (no config required, zero dependencies):

npx network-ai-server --port 3001
# or from source:
npx ts-node bin/mcp-server.ts --port 3001

Then wire any MCP-compatible client to it.

Claude Desktop — add to ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):

{
  "mcpServers": {
    "network-ai": {
      "url": "http://localhost:3001/sse"
    }
  }
}

Cursor / Cline / any SSE-based MCP client — point to the same URL:

{
  "mcpServers": {
    "network-ai": {
      "url": "http://localhost:3001/sse"
    }
  }
}

Verify it's running:

curl http://localhost:3001/health   # { "status": "ok", "tools": <n>, "uptime": <ms> }
curl http://localhost:3001/tools    # full tool list

Tools exposed over MCP:

  • blackboard_read / blackboard_write / blackboard_list / blackboard_delete / blackboard_exists

  • budget_status / budget_spend / budget_reset — federated token tracking

  • token_create / token_validate / token_revoke — HMAC / Ed25519-signed permission tokens

  • audit_query — query the append-only audit log

  • config_get / config_set — live orchestrator configuration

  • agent_list / agent_spawn / agent_stop — agent lifecycle

  • fsm_transition — write FSM state transitions to the blackboard

Each tool takes an agent_id parameter — all writes are identity-verified and namespace-scoped, exactly as they are in the TypeScript API.

Options: --no-budget, --no-token, --no-control, --ceiling <n>, --board <name>, --audit-log <path>.


CLI

Control Network-AI directly from the terminal — no server required. The CLI imports the same core engine used by the MCP server.

# One-off commands (no server needed)
npx ts-node bin/cli.ts bb set status running --agent cli
npx ts-node bin/cli.ts bb get status
npx ts-node bin/cli.ts bb snapshot

# After npm install -g network-ai:
network-ai bb list
network-ai audit tail          # live-stream the audit log
network-ai auth token my-bot --resource blackboard

Command group

What it controls

network-ai bb

Blackboard — get, set, delete, list, snapshot, propose, commit, abort

network-ai auth

AuthGuardian — issue tokens, revoke, check permissions

network-ai budget

FederatedBudget — spend status, set ceiling

network-ai audit

Audit log — print, live-tail, clear

Global flags on every command: --data <path> (data directory, default ./data) · --json (machine-readable output)

→ Full reference in QUICKSTART.md § CLI


Two agents, one shared state — without race conditions

The real differentiator is coordination. Here is what no single-framework solution handles: two agents writing to the same resource concurrently, atomically, without corrupting each other.

import { LockedBlackboard, CustomAdapter, createSwarmOrchestrator } from 'network-ai';

const board   = new LockedBlackboard('.');
const adapter = new CustomAdapter();

// Agent 1: writes its analysis result atomically
adapter.registerHandler('analyst', async () => {
  const id = board.propose('report:status', { phase: 'analysis', complete: true }, 'analyst');
  board.validate(id, 'analyst');
  board.commit(id);                           // file-system mutex — no race condition possible
  return { result: 'analysis written' };
});

// Agent 2: runs concurrently, writes to its own key safely
adapter.registerHandler('reviewer', async () => {
  const id = board.propose('report:review', { approved: true }, 'reviewer');
  board.validate(id, 'reviewer');
  board.commit(id);
  const analysis = board.read('report:status');
  return { result: `reviewed phase=${analysis?.phase}` };
});

createSwarmOrchestrator({ adapters: [{ adapter }] });

// Both fire concurrently — mutex guarantees no write is ever lost
const [, ] = await Promise.all([
  adapter.executeAgent('analyst',  { action: 'run', params: {} }, { agentId: 'analyst' }),
  adapter.executeAgent('reviewer', { action: 'run', params: {} }, { agentId: 'reviewer' }),
]);

console.log(board.read('report:status'));   // { phase: 'analysis', complete: true }
console.log(board.read('report:review'));   // { approved: true }

Add budgets, permissions, and cross-framework agents with the same pattern. → QUICKSTART.md


Demo — Control-Plane Stress Test (no API key)

Runs in ~3 seconds. Proves the coordination primitives without any LLM calls.

npm run demo -- --08

What it shows: atomic blackboard locking, priority preemption (priority-3 wins over priority-0 on same key), AuthGuardian permission gate (blocked → justified → granted with token), FSM hard-stop at 700 ms, live compliance violation capture (TOOL_ABUSE, TURN_TAKING, RESPONSE_TIMEOUT, JOURNEY_TIMEOUT), and FederatedBudget tracking — all without a single API call.

Control Plane Demo

8-agent AI pipeline (requires OPENAI_API_KEY — builds a Payment Processing Service end-to-end):

npm run demo -- --07

Code Review Swarm Demo

NemoClaw sandbox swarm (no API key) — 3 agents in isolated NVIDIA NemoClaw sandboxes with deny-by-default network policies:

npx ts-node examples/10-nemoclaw-sandbox-swarm.ts

NemoClaw Sandbox Demo


Adapter System

29 adapters, zero adapter dependencies. You bring your own SDK objects.

Adapter

Framework / Protocol

Register method

CustomAdapter

Any function or HTTP endpoint

registerHandler(name, fn)

LangChainAdapter

LangChain

registerAgent(name, runnable)

AutoGenAdapter

AutoGen / AG2

registerAgent(name, agent)

CrewAIAdapter

CrewAI

registerAgent or registerCrew

MCPAdapter

Model Context Protocol

registerTool(name, handler)

LlamaIndexAdapter

LlamaIndex

registerQueryEngine(), registerChatEngine()

SemanticKernelAdapter

Microsoft Semantic Kernel

registerKernel(), registerFunction()

OpenAIAssistantsAdapter

OpenAI Assistants

registerAssistant(name, config)

HaystackAdapter

deepset Haystack

registerPipeline(), registerAgent()

DSPyAdapter

Stanford DSPy

registerModule(), registerProgram()

AgnoAdapter

Agno (formerly Phidata)

registerAgent(), registerTeam()

OpenClawAdapter

OpenClaw

registerSkill(name, skillRef)

A2AAdapter

Google A2A Protocol

registerRemoteAgent(name, url)

CodexAdapter

OpenAI Codex / gpt-4o / Codex CLI

registerCodexAgent(name, config)

MiniMaxAdapter

MiniMax LLM API (M2.5 / M2.5-highspeed)

registerAgent(name, config)

NemoClawAdapter

NVIDIA NemoClaw (sandboxed agents via OpenShell)

registerSandboxAgent(name, config)

APSAdapter

Agent Permission Service (delegation-chain trust)

apsDelegationToTrust(delegation)

CopilotAdapter

GitHub Copilot (generate/review/explain/fix/test/refactor/chat)

registerAgent(name, config)

LangGraphAdapter

LangGraph (compiled StateGraph)

registerGraph(name, graph)

AnthropicComputerUseAdapter

Anthropic Computer Use (screenshot/click/type/scroll)

registerAgent(name, config)

OpenAIAgentsAdapter

OpenAI Agents SDK (tool use, handoffs, guardrails)

registerAgent(name, runner)

VertexAIAdapter

Google Vertex AI / Gemini (function calling, multi-modal)

registerAgent(name, config)

PydanticAIAdapter

Pydantic AI (structured output, validation, deps injection)

registerAgent(name, config)

BrowserAgentAdapter

Browser automation (Playwright/Puppeteer/CDP)

registerAgent(name, driver)

HermesAdapter

NousResearch Hermes / any OpenAI-compatible endpoint (Ollama, Together AI, Fireworks, llama.cpp)

registerAgent(name, config)

OrchestratorAdapter

Hierarchical multi-orchestrator coordination

registerOrchestrator(id, orchestrator)

RLMAdapter

Recursive Language Model / any RLM-compatible HTTP endpoint (arxiv 2512.24601)

registerAgent(name, config)

Streaming variants (drop-in replacements with .stream() support):

Adapter

Extends

Streaming source

LangChainStreamingAdapter

LangChainAdapter

Calls .stream() on the Runnable if available; falls back to .invoke()

CustomStreamingAdapter

CustomAdapter

Pipes AsyncIterable<string> handlers; falls back to single-chunk for plain Promises

Extend BaseAdapter (or StreamingBaseAdapter for streaming) to add your own in minutes. See references/adapter-system.md.


Works with LangGraph, CrewAI, and AutoGen

Network-AI is the coordination layer you add on top of your existing stack. Keep your LangChain chains, CrewAI crews, and AutoGen agents — and add shared state, governance, and budgets around them.

Capability

Network-AI

LangGraph

CrewAI

AutoGen

Cross-framework agents in one swarm

✅ 29 built-in adapters

⚠️ Nodes can call any code; no adapter abstraction

⚠️ Extensible via tools; CrewAI-native agents only

⚠️ Extensible via plugins; AutoGen-native agents only

Atomic shared state (conflict-safe)

✅ propose → validate → commit mutex

⚠️ State passed between nodes; last-write-wins

⚠️ Shared memory available; no conflict resolution

⚠️ Shared context available; no conflict resolution

Hard token ceiling per agent

✅ FederatedBudget (first-class API)

⚠️ Via callbacks / custom middleware

⚠️ Via callbacks / custom middleware

⚠️ Built-in token tracking in v0.4+; no swarm-level ceiling

Permission gating before sensitive ops

✅ AuthGuardian (built-in)

⚠️ Possible via custom node logic

⚠️ Possible via custom tools

⚠️ Possible via custom middleware

Append-only audit log

✅ plain JSONL (data/audit_log.jsonl)

⚠️ Not built-in

⚠️ Not built-in

⚠️ Not built-in

Encryption at rest

✅ AES-256-GCM (TypeScript layer)

⚠️ Not built-in

⚠️ Not built-in

⚠️ Not built-in

Language

TypeScript / Node.js

Python

Python

Python


Testing

npm run test:all          # All suites in sequence
npm test                  # Core orchestrator
npm run test:security     # Security module
npm run test:adapters     # All 29 adapters
npm run test:streaming    # Streaming adapters
npm run test:a2a          # A2A protocol adapter
npm run test:codex        # Codex adapter
npm run test:priority     # Priority & preemption
npm run test:cli          # CLI layer
npm run test:phase9       # Agent runtime, console, strategy agent
npm run test:phase12      # Context Throttler, Partition Planner, Coverage Gate, Route Classifier

2,976 passing assertions across 29 test suites (npm run test:all):

Suite

Assertions

Covers

test-phase4.ts

147

FSM governance, compliance monitor, adapter integration

test-phase5f.ts

127

SSE transport, McpCombinedBridge, extended MCP tools

test-phase5g.ts

121

CRDT backend, vector clocks, bidirectional sync

test-phase6.ts

121

MCP server, control-plane tools, audit tools

test-adapters.ts

218

All 29 adapters, registry routing, integration, edge cases

test-phase5d.ts

117

Pluggable backend (Redis, CRDT, Memory)

test-standalone.ts

88

Blackboard, auth, integration, persistence, parallelisation, quality gate

test-phase5e.ts

87

Federated budget tracking

test-phase5c.ts

73

Named multi-blackboard, isolation, backend options

test-codex.ts

51

Codex adapter: chat, completion, CLI, BYOC client, error paths

test-minimax.ts

50

MiniMax adapter: lifecycle, registration, chat mode, temperature clamping

test-nemoclaw.ts

93

NemoClaw adapter: sandbox lifecycle, policies, blueprint, handoff, env forwarding

test-priority.ts

64

Priority preemption, conflict resolution, backward compat

test-a2a.ts

35

A2A protocol: register, execute, mock fetch, error paths

test-streaming.ts

32

Streaming adapters, chunk shapes, fallback, collectStream

test-phase5b.ts

55

Pluggable backend part 2, consistency levels

test-phase5.ts

42

Named multi-blackboard base

test-security.ts

34

Tokens, sanitization, rate limiting, encryption, audit

test-cli.ts

65

CLI layer: bb, auth, budget, audit commands

test-qa.ts

67

QA orchestrator: scenarios, feedback loop, regression, contradictions

test-phase7.ts

94

Deferred init, hook middleware, flow control, skill composer, semantic search

test-phase8.ts

146

Phase pipeline, confidence filter, matcher-based hooks, fan-out/fan-in

test-phase9.ts

280

Agent runtime, sandbox policy, shell executor, file accessor, approval gate, console UI, orchestrator wiring, pipe mode, strategy agent

test-phase10.ts

153

Goal decomposer, task DAG validation, topological layers, JSON parsing, team runner, concurrency, timeouts, events, runTeam one-liner, dependency injection, LLM planner

test-topology.ts

304

WorkTree, ControlPlane, dashboard server, topology visualization, WebSocket protocol

test-rlm-phases.ts

123

FederatedBudget child spending, blackboard metadata API, best-partial result, HookContext depth, sub-goal recursion, semaphore fan-out, PhasePipeline compaction, RLMAdapter end-to-end

test-phase12.ts

65

Context Throttler, Partition Planner, Coverage Gate, Route Classifier, EVALUATING FSM state, runTeam integration

test-env-manager.ts

77

Multi-environment isolation, promotion chain, backup/restore, source protection, NETWORK_AI_ENV, blackboard env routing

test.ts

39

Core orchestrator smoke tests


Documentation

Doc

Contents

QUICKSTART.md

Installation, first run, CLI reference, PowerShell guide, Python scripts CLI

ARCHITECTURE.md

Race condition problem, FSM design, handoff protocol, module inventory, project structure

BENCHMARKS.md

Provider performance, rate limits, local GPU, max_completion_tokens guide

SECURITY.md

Security module, permission system, trust levels, audit trail, v5.0 security additions

ENTERPRISE.md

Evaluation checklist, stability policy, security summary, integration entry points

AUDIT_LOG_SCHEMA.md

Audit log field reference, all event types, scoring formula

ADOPTERS.md

Known adopters — open a PR to add yourself

INTEGRATION_GUIDE.md

End-to-end integration walkthrough with v5.0 modules

references/adapter-system.md

Adapter architecture, all 29 adapters, writing custom adapters

references/auth-guardian.md

Permission scoring, resource types, IAuthValidator interface

references/trust-levels.md

Trust level configuration, APS delegation-chain mapping


Use with Claude, ChatGPT & Codex

Three integration files are included in the repo root:

File

Use

claude-tools.json

Claude API tool use & OpenAI Codex — drop into the tools array

openapi.yaml

Custom GPT Actions — import directly in the GPT editor

claude-project-prompt.md

Claude Projects — paste into Custom Instructions

Claude API / Codex:

import tools from './claude-tools.json' assert { type: 'json' };
// Pass tools array to anthropic.messages.create({ tools }) or OpenAI chat completions

Custom GPT Actions: In the GPT editor → Actions → Import from URL, or paste the contents of openapi.yaml. Set the server URL to your running npx network-ai-server --port 3001 instance.

Claude Projects: Copy the contents of claude-project-prompt.md (below the horizontal rule) into a Claude Project's Custom Instructions field. No server required for instruction-only mode.


Community

Join our Discord server to discuss multi-agent AI coordination, get help, and share what you're building:

Discord


Contributing

  1. Fork → feature branch → npm run test:all → pull request

  2. Bugs and feature requests via Issues


MIT License — LICENSE &nbsp;·&nbsp; CHANGELOG &nbsp;·&nbsp; CONTRIBUTING &nbsp;·&nbsp; RSS

multi-agent · agent orchestration · AI agents · agentic AI · agentic workflow · TypeScript · Node.js · LangGraph · CrewAI · AutoGen · MCP · model-context-protocol · LlamaIndex · Semantic Kernel · OpenAI Assistants · Haystack · DSPy · Agno · OpenClaw · ClawHub · shared state · blackboard pattern · atomic commits · guardrails · token budgets · permission gating · audit trail · agent coordination · agent handoffs · governance · cost-awareness

Download History

Download History

Available Tools

24 tools
agent_listA

List all agents registered with the orchestrator and their current status. Read-only — no side effects. Returns {ok:true, agents:[{agentId, status, lastSeen, taskCount}], count}. Returns {ok:false, error:"..."} if the registry is unavailable. status_filter accepts one of: "active", "idle", "stopped", or "error" — omit to return all statuses. Call before agent_spawn or agent_stop to confirm the target agent exists and has the expected status.

Inputs: status_filter.

agent_spawnA

Write a task record to the blackboard to dispatch work to a named agent on its next poll cycle. Returns {ok:true, taskKey, agentId, instruction, written:true} on success. Returns {ok:false, error:"..."} if agent_id, task_key, or instruction is missing, or if payload_json is malformed. Call agent_list first to confirm the target agent is registered; verify the task was recorded with blackboard_read after spawning.

Inputs: agent_id (required), task_key (required), instruction (required), ttl, +1 more.

agent_stopA

Signal a running agent to stop by writing a stop record to the blackboard and marking it stopped in the registry. Returns {ok:true, agentId, reason, stopped:true}. Returns {ok:false, error:"..."} if agent_id is missing. agent_id must match a value returned by agent_list; reason is optional but written to the audit log under eventType "agent_stop" and helps trace the cause of the stop. The agent observes the stop signal on its next poll — it does not terminate immediately. Call agent_list first to confirm the agent is currently active.

Inputs: agent_id (required), reason.

audit_queryA

Search the append-only audit log with optional filters. Read-only — never modifies the log. Returns {ok:true, entries:[{timestamp, agentId, eventType, outcome, details}], count}. Returns {ok:false, error:"..."} if the log file cannot be read. All filters are optional and combinable; use limit to cap results and avoid large payloads on busy systems (default 100). Use audit_tail for the most recent N entries without filtering; use this tool for compliance review, debugging, or verifying permission grant history.

Inputs: limit, since_iso, outcome_filter, agent_id_filter, +1 more.

audit_tailA

Return the N most recent audit log entries in ascending timestamp order (oldest-first within the tail window). Read-only — no side effects. Returns {ok:true, entries:[{timestamp, agentId, eventType, outcome, details}], count}. Returns {ok:false, error:"..."} if the log file cannot be read. n defaults to 20 and is capped at 500 — use a larger value only when debugging a busy system. Prefer audit_query for filtered searches by agent, event type, outcome, or time range; use this tool for real-time monitoring or quick post-action verification.

Inputs: n.

blackboard_deleteA

Remove an entry from the shared blackboard by key. Returns {ok:true, deleted:true, key} if found and removed; {ok:true, deleted:false, key} if the key was absent or already expired. Returns {ok:false, error:"..."} if the agent token is rejected or the blackboard is unavailable. key must use the same namespaced format used at write time (e.g. "task:result:q3"); agent_token is required only if the entry was written with a token — omit it for unprotected keys. Call blackboard_exists first to confirm the key is present before deletion.

Inputs: key (required), agent_id (required), agent_token.

blackboard_existsA

Check whether a specific key is present and not expired on the shared blackboard. Read-only — no side effects and never modifies state. Returns {ok:true, exists:true} or {ok:true, exists:false}. Returns {ok:false, error:"..."} if the blackboard is unavailable. key must use the same namespaced format as blackboard_read/write/delete (e.g. "task:result:q3"); agent_id is used for scoped access checks. Prefer over blackboard_read when only checking presence — lighter-weight and avoids fetching the full value.

Inputs: key (required), agent_id (required).

blackboard_listA

List all active (non-expired) keys on the shared blackboard, optionally filtered by a key prefix. Read-only — no side effects. Returns {ok:true, keys:["..."], count}. Returns {ok:false, error:"..."} if the blackboard is unavailable. All non-expired keys are returned in one response — on large blackboards use a narrow prefix filter to reduce payload size. Use before blackboard_read when you do not know the exact key name; filter with a prefix such as "task:" to scope results to a specific namespace.

Inputs: agent_id (required), prefix.

blackboard_readA

Read a single entry from the shared blackboard by key. Read-only — never modifies the blackboard. Returns {ok:true, key, value, sourceAgent, timestamp} when found, or {ok:true, key, value:null} when the key does not exist or has expired. Returns {ok:false, error:"..."} if the blackboard is unavailable. key uses the same namespaced format as blackboard_write (e.g. "task:analysis:q3"); agent_id is used for scoped access checks and audit logging. Use when you know the exact key; call blackboard_list with a prefix filter first if you need to discover available keys.

Inputs: key (required), agent_id (required).

blackboard_writeA

Write a JSON-encoded value to the shared blackboard under the given key. Overwrites any existing entry for that key — TTL is also replaced (or removed if omitted). Not idempotent: each call records a new timestamp and sourceAgent. Returns {ok:true, key, value, sourceAgent, timestamp} on success. Returns {ok:false, error:"..."} if value is not valid JSON, agent_id is missing, or the agent token is rejected. value must be a valid JSON string (use JSON.stringify on objects); ttl sets expiry in seconds — omit for a persistent entry; agent_token is required only if the target key is protected. Use namespaced keys (e.g. "task:result:q3") to avoid collisions; confirm with blackboard_read immediately if the consumer agent is already polling.

Inputs: key (required), value (required), agent_id (required), ttl, +1 more.

budget_get_logA

Return a chronological list of all token spend transactions. Read-only — never modifies budget state. Returns {ok:true, log:[{agentId, tokens, timestamp}], count}. Returns {ok:false, error:"..."} if the budget is not available. Use limit to cap the number of entries returned (default 50); prefer budget_status for a summary view. Useful for auditing which agents consumed the most tokens in a task cycle.

Inputs: agent_id (required), limit.

budget_resetA

Reset all agent spend counters to zero while preserving the ceiling. Returns {ok:true, reset:true, ceiling} on success. Returns {ok:false, error:"confirm must be "yes""} if the confirm parameter is not "yes" — this guard prevents accidental resets. Do not reset mid-task if other agents are actively spending — use only at the start of a new task cycle or after all agents have finished. Call budget_status before and after to verify the reset took effect.

Inputs: confirm (required), agent_id (required).

budget_set_ceilingA

Dynamically change the global token ceiling for all agents. Returns {ok:true, ceiling, previous} on success. Returns {ok:false, error:"..."} if ceiling is not a positive number. Changes take effect immediately — lowering below current spend will deny all future budget_spend calls until counters are reset via budget_reset; raising allows previously blocked agents to resume. ceiling must be a positive integer (total token budget across all agents); agent_id is recorded in the audit log. Avoid lowering the ceiling while agents are actively running; call budget_status first to check the current spend level.

Inputs: ceiling (required), agent_id (required).

budget_spendA

Deduct tokens from the global FederatedBudget on behalf of an agent. Returns {ok:true, allowed:true, spent, remaining} when approved, or {ok:true, allowed:false, deniedReason, remaining} when the ceiling would be exceeded. Returns {ok:false, error:"..."} if tokens is not a positive integer. tokens represents the estimated cost of the upcoming LLM call — pass the expected usage before invoking the model; agent_id is tracked individually in the spend log and reported by budget_status. Call budget_status first to check remaining balance; never attempt an LLM call after receiving allowed:false.

Inputs: tokens (required), agent_id (required).

budget_statusA

Get a read-only snapshot of the global FederatedBudget: ceiling, total spent, remaining tokens, and per-agent spend breakdown. Never modifies budget state. Returns {ok:true, ceiling, spent, remaining, perAgent:{agentId:tokensSpent}}. Returns {ok:false, error:"Budget not available"} if no budget is configured. agent_id is recorded in the audit log only — it does not filter results. Call before budget_spend to check available capacity; use budget_get_log for a full timestamped transaction history.

Inputs: agent_id (required).

config_getA

Read one or all live orchestrator configuration values. Returns {ok:true, key, value} for a single key, or {ok:true, config:{...}} for all keys. Returns {ok:false, error:"Unknown config key: "..." Known keys: ..."} if the key is not recognised. Call without a key to discover available config names; use config_set to update values at runtime.

Inputs: key.

config_setA

Update a live orchestrator configuration value at runtime. Changes take effect immediately for all subsequent operations and are written to the audit log — there is no undo. Returns {ok:true, key, value, previous} on success. Returns {ok:false, error:"Unknown config key..."} with a list of valid keys if the key is not recognised, or {ok:false, error:"..."} if value is not valid JSON. Call config_get first to read the current value and confirm the key name before updating.

Inputs: key (required), value (required).

context_packA

Assemble a token-budgeted, relevance-ranked context brief from the shared blackboard for a given task. Use this INSTEAD of blackboard_list + many blackboard_read calls: it returns only the entries most relevant to your task, ranked by semantic/lexical relevance, recency (half-life decay), and namespace affinity, assembled position-aware (strongest items first and last) under a hard token budget. Read-only — never modifies the blackboard. Returns {ok:true, text, used_tokens, budget_tokens, utilization, included:[{key,score,tokens}], excluded:[{key,reason}]}. The text field is ready to use as working context. Entries past their TTL are excluded automatically.

Inputs: task (required), agent_id (required), max_items, scope_tags, +1 more.

fsm_transitionA

Advance a named FSM (Finite State Machine) to a new state and record the transition on the blackboard. Transitions are irreversible via this tool — new_state is written directly without validating against a predefined state graph, so the caller must ensure the transition is valid. Returns {ok:true, fsmId, transition:{from, to}, blackboardWritten:true} on success. Returns {ok:false, error:"..."} if fsm_id, new_state, or agent_id is missing, or if metadata_json is not valid JSON. Avoid concurrent transitions to the same FSM from multiple agents; call orchestrator_info first to read the current FSM state before transitioning.

Inputs: fsm_id (required), agent_id (required), new_state (required), metadata_json.

orchestrator_infoA

Return a full health snapshot of the orchestrator: version, config values, registered agent count, blackboard key count, and system uptime. Returns {ok:true, version, config:{...}, agentCount, blackboardKeyCount, uptime}. This tool always succeeds — it never returns {ok:false}. Use as the first call when connecting to confirm the server is healthy and to discover current config before calling config_get or agent_list.

Inputs: no named parameters.

token_createA

Issue a new HMAC/Ed25519-signed security token for an agent scoped to a resource type and permission level. Each call produces a unique token with a fixed expiry managed by the token manager. Returns {ok:true, token:{tokenId, agentId, resourceType, scope, issuedAt, expiresAt, signature}}. Returns {ok:false, error:"..."} if the token manager is unavailable. resource_type is a free-form string identifying the protected resource (e.g. "FILE_SYSTEM", "BLACKBOARD", "API"); scope controls permission level (e.g. "read", "write", "admin"). Pass the full returned token object as token_json to token_validate; call token_revoke with the tokenId when access should be withdrawn.

Inputs: scope (required), agent_id (required), resource_type (required).

token_revokeA

Permanently revoke a security token by its tokenId. Returns {ok:true, revoked:true, tokenId} on success. Returns {ok:false, error:"..."} if the token manager is unavailable. Revocation is immediate and irreversible — the token will fail token_validate on all future attempts. token_id is the tokenId field from the token object returned by token_create; reason is optional but written to the audit log and aids security review. Use when an agent session ends, a permission grant expires by policy, or a token may have been compromised.

Inputs: token_id (required), reason.

token_validateA

Verify a security token's HMAC/Ed25519 signature, confirm it has not expired, and check it has not been revoked. Read-only — never modifies token state. Returns {ok:true, valid:true, token:{...}} if the token passes all checks, or {ok:true, valid:false, reason:"..."} if it fails any check (reason indicates which check failed: "invalid_signature", "expired", or "revoked"). Returns {ok:false, error:"..."} if token_json is not valid JSON. Call before granting access to any protected resource; use token_revoke to invalidate a token that should no longer be trusted.

Inputs: token_json (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.5/5.0

    Scored across 24 tools

    Disambiguation5/5

    Each tool targets a distinct function: blackboard operations are separated into list/read/write/delete/exists/search, budget tools split status/spend/reset/set/log, token tools cover create/validate/revoke, and audit tools split query/tail. Even similar read-only tools (blackboard_search vs blackboard_list vs context_pack) have clear intended use cases described.

    Naming Consistency5/5

    All tools follow a consistent snake_case pattern of domain_prefix_action, e.g., blackboard_list, budget_status, token_create, agent_spawn, config_get. The domain prefix is always lowercase and separated by an underscore, with clear verbs (list, read, write, delete, exists, status, spend, reset, set, get_log, create, validate, revoke, query, tail, set, list, spawn, stop, transition, info, pack, search).

    Tool Count4/5

    With 24 tools, the server is on the heavier side but the scope is broad (orchestration, blackboard, budget, tokens, audit, agents, FSM). Each tool serves a distinct purpose and the count is justified for a complex orchestrator server, though a slightly tighter set could be possible.

    Completeness4/5

    The server covers core lifecycle operations for blackboard (create/read/update/delete/list/search) and tokens (create/validate/revoke), plus budget management (status/spend/reset/set/log) and basic agent operations (list/spawn/stop). Minor gaps include no direct agent removal or FSM reset, and no explicit tool for blackboard TTL extension, but agents can work around most gaps.

    Maintenance

    ActivityActive
    ResponsivenessLimited data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      B
      maintenance
      AI Agent Mission Control — 200+ MCP tools across 31 domains. Manage agents, experiments, workflows, crews, skills, tools, credentials, approvals, signals, budgets, marketplace, knowledge bases, chatbots, and more. Self-hosted, open-source (AGPL-3.0). Supports stdio + Streamable HTTP/SSE with OAuth 2.0 auth.
      34
      84
      AGPL 3.0
    • F
      license
      C
      quality
      D
      maintenance
      Enables AI agents to collaborate via shared blackboard state, multi-agent deliberation, human-in-the-loop proposal approval, operating-mode control, and audit logging through MCP.
      11
      -
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables autonomous multi-agent orchestration using directed acyclic graph workflows to interact with external developer infrastructure such as Git, Postgres, and Docker through safety-gated MCP servers.
      Apache 2.0