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

dead-letter: Local .eml to .md Converter with CLI, Web UI, and MCP Server
dead-letter normalizes email exports into Markdown with YAML front matter, customisable. It offers four access modes: CLI, Python library, Web UI, and an MCP server for direct integration with Claude Desktop, Claude Code, and Codex.

Developer builds Rust compression library with Claude Opus 4.6, questions utility
A developer used Claude Opus 4.6 for two weeks to create a 15,800-line Rust compression library with 449 passing tests, Python bindings, and C FFI layer, but questions whether another compression library was needed.

Claude Octopus v8.48: Multi-AI Orchestration Plugin for Development Workflows
Claude Octopus v8.48 is an open-source plugin that orchestrates Claude, Codex, and Gemini AI models in parallel with distinct roles across development phases. It includes a 75% consensus gate between phases, fresh context windows for complex tasks, and specific commands like /octo:embrace for full lifecycle development.

Vellium Adds Desktop Pets and CLI-Inspired Agents for Local LLMs
Vellium, an open-source crossplatform app for local LLMs, now supports desktop pets that float above windows and agents with MCP integration, terminal commands, and file editing.