How Clawdbot Coordinates 6 AI Agents with a Production-Stable Work Queue

Clawdbot's team shared their work queue architecture that coordinates 6 AI agents running an AI-operated store. They found the coordination problem harder than individual agent logic, with the system going through several iterations before reaching production stability.
Core System Features
The work queue implements several key mechanisms:
- Atomic task claiming: Prevents two agents from grabbing the same task
- State machine: Tasks move through states: pending → ready → in_progress → review → complete
- Retry logic: 3 failures with backoff, then permanent failure to prevent runaway retry loops
- Task chains: Parent completion auto-spawns children via a next_tasks field
- Heartbeat tracking: Stale claims (from agent crashes) auto-reset after timeout
- Daemon orchestrator: Polls every 60 seconds and spawns agents for ready tasks
Production Lessons
The team notes that failure mode handling wasn't obvious until they had real production incidents to learn from. They've published a full architecture writeup with lessons from running this in production.
The system coordinates multiple agents working concurrently: design, code, marketing, and operations agents. The team is open to discussing tradeoffs, particularly around the failure mode handling that emerged from production experience.
📖 Read the full source: r/clawdbot
👀 See Also

mistral.rs Adds Support for Gemma 4 12B: Multimodal, Agentic, and MTP
mistral.rs now supports Gemma 4 12B with multimodal, agentic, and MTP integration. One-step install and run with web search, code execution, and built-in UI.

OpenClaw-Mem0 Plugin Adds Persistent Memory Outside Context Window
The openclaw-mem0 plugin moves memory storage completely outside OpenClaw's context window, preventing loss from compaction or session restarts. It provides automatic recall and capture with both cloud and local setup options.

Tatu: Open-source security layer for Claude Code blocks secrets and destructive commands
Tatu is an open-source hook system that intercepts Claude Code actions in real time to block leaked secrets, flag PII, and deny destructive commands before execution. Installation is via pip/pipx with 'tatu-hook init' to enable audit mode.

Pretticlaw: A Lighter Alternative to OpenClaw with Faster Setup
Pretticlaw is a lightweight alternative to OpenClaw that requires only 2 commands for setup, has a 30MB footprint, and responds in 2-3 seconds with an inbuilt dashboard on port 6767.