section

Architecture Overview

The Holding Pool Pattern

Problem: Gateway enforced 30s timeout, created race conditions

Solution: Direct AiMsg MCP connection

MESSAGING: mcp__aimsg__* → AiMsg server → Redis BLPOP (600s)
WORK: gateway.run() → auto.* tools (pre-approved)

Agent Lifecycle:

  1. Register → pool_register
  2. Wait → 10-min blocking (zero tokens)
  3. Execute → auto tools via gateway
  4. Report → send completion message
  5. Loop → wait again

Ops Manager:

  • Voice to user
  • Claim agents
  • Assign tasks
  • Verify work
  • Release to pool
ID: 6cc45c7d
Path: AI Agent Coordination - Holding Pool Pattern > Architecture Overview
Updated: 2026-01-05T14:16:27