🌊 The original agent harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory, self-learning intelligence, federation, vector RAG integration, and native Claude Code / Codex / Hermes and many more Integrated
TypeScript agentic-aiagentic-frameworkagentic-workflowagentsai-agentsai-assistantai-skillsautonomous-agentsclaudecodexdsh-pluginharnessmcp-servermulti-agentmulti-agent-systemsnpmskillsswarmswarm-intelligencetypescript
checkpoint: File edit:
rUv6a2957479395
diff --git a/.claude/helpers/swarm-hooks.sh b/.claude/helpers/swarm-hooks.shindex 9601120909..dbe7ba1c6a 100755--- a/.claude/helpers/swarm-hooks.sh+++ b/.claude/helpers/swarm-hooks.sh@@ -461,11 +461,27 @@ EOFupdate_stat "handoffsInitiated"- # Send handoff notification- send_message "$to_agent" "Task handoff: $description" "handoff" "high" >/dev/null+ # Send handoff notification (inline, don't call function which exits)+ local msg_id="msg_$(date +%s)_$(head -c 4 /dev/urandom | xxd -p)"+ local msg_file="$MESSAGES_DIR/$msg_id.json"+ cat > "$msg_file" << MSGEOF+{+ "id": "$msg_id",+ "from": "$AGENT_ID",+ "fromName": "$AGENT_NAME",+ "to": "$to_agent",+ "type": "handoff",+ "content": "Task handoff: $description",+ "priority": "high",+ "timestamp": $timestamp,+ "read": false,+ "handoffId": "$ho_id"+}+MSGEOF+ update_stat "messagesSent"cat << EOF-{"handoffId":"$ho_id","toAgent":"$to_agent","description":$(echo "$description" | jq -Rs .),"status":"pending"}+{"handoffId":"$ho_id","toAgent":"$to_agent","description":$desc_escaped,"status":"pending","context":$context}EOFexit 0diff --git a/v3/@claude-flow/shared/README.md b/v3/@claude-flow/shared/README.mdindex 73b83ea707..d6429f9d14 100644--- a/v3/@claude-flow/shared/README.md+++ b/v3/@claude-flow/shared/README.md@@ -56,14 +56,17 @@ eventBus.on('task.completed', (event) => {## Package Exports```typescript-// Main entry+// Main entry (recommended - includes all modules)import { ... } from '@claude-flow/shared';-// Submodule exports-import { ... } from '@claude-flow/shared/types';-import { ... } from '@claude-flow/shared/core';-import { ... } from '@claude-flow/shared/events';-import { ... } from '@claude-flow/shared/hooks';+// Submodule exports (for tree-shaking or specific imports)+import { ... } from '@claude-flow/shared/types'; // Type definitions+import { ... } from '@claude-flow/shared/core'; // Config, interfaces, orchestrator+import { ... } from '@claude-flow/shared/events'; // Event sourcing (ADR-007)+import { ... } from '@claude-flow/shared/hooks'; // Hooks system+import { ... } from '@claude-flow/shared/mcp'; // MCP server infrastructure+import { ... } from '@claude-flow/shared/security'; // Security utilities+import { ... } from '@claude-flow/shared/resilience'; // Retry, circuit breaker, rate limiter```## API Reference@@ -225,35 +228,38 @@ const result = await hooks.execute('task', context, async (ctx) => {```typescriptimport {- MCPServer,- ConnectionPool,- ToolRegistry,- SessionManager+ createMCPServer,+ createToolRegistry,+ createConnectionPool,+ createSessionManager,+ defineTool,+ quickStart,} from '@claude-flow/shared/mcp';-// Create MCP server-const server = new MCPServer({+// Quick start - simplest way to create an MCP server+const server = await quickStart({transport: 'stdio',- tools: toolRegistry.getAll()+ name: 'My MCP Server',});// Tool registry-const registry = new ToolRegistry();-registry.register({+const registry = createToolRegistry();+registry.register(defineTool({name: 'swarm_init',description: 'Initialize a swarm',- handler: async (params) => { ... }-});+ inputSchema: { type: 'object', properties: { topology: { type: 'string' } } },+ handler: async (params) => ({ result: 'initialized' }),+}));// Connection pool-const pool = new ConnectionPool({+const pool = createConnectionPool({maxConnections: 10,- timeout: 30000+ acquireTimeoutMs: 30000,});// Session manager-const sessions = new SessionManager();-const session = await sessions.create({ userId: 'user-1' });+const sessions = createSessionManager({ timeoutMs: 3600000 });+const session = await sessions.create({ clientInfo: { name: 'client' } });```### Health Monitordiff --git a/v3/@claude-flow/shared/package.json b/v3/@claude-flow/shared/package.jsonindex 0f67ba37b8..f59dc356ee 100644--- a/v3/@claude-flow/shared/package.json+++ b/v3/@claude-flow/shared/package.json@@ -10,7 +10,10 @@"./types": "./src/types/index.ts","./core": "./src/core/index.ts","./events": "./src/events/index.ts",- "./hooks": "./src/hooks/index.ts"+ "./hooks": "./src/hooks/index.ts",+ "./mcp": "./src/mcp/index.ts",+ "./security": "./src/security/index.ts",+ "./resilience": "./src/resilience/index.ts"},"scripts": {"test": "vitest run",