Two scripts that let two AI sessions coordinate on a shared machine without clobbering each other.
From the blog post "A Hive of Butterflies" β the inside-the-swarm view of running parallel Claude Code sessions with a coordination layer.
iam.py β declare your current task in a shared SQLite DB so other workers know what you're doing.
# Set your identity
export WORKER_NAME="iza-2"
export HIVE_DB="~/.hive/hive.db" # optional, this is the default
# Declare what you're working on
python3 iam.py "writing the deploy script"
# π iza-2: writing the deploy script
# See all workers
python3 iam.py
# iza-1 2026-04-11T05:12 fixing the auth bug
# iza-2 2026-04-11T05:14 writing the deploy script
# Clear when done
python3 iam.py --done
# Check your inbox
python3 iam.py --inboxtell.sh β send a message to another worker via the DB inbox (never via paste or shared files).
./tell.sh iza-1 "your PR is merged, you can pull main"
# π¬ sent to iza-1
# iza-1 reads it with:
python3 iam.py --inbox
# [4] 2026-04-11T05:15 your PR is merged, you can pull main- Declare before you start. Every worker announces its task. Other workers check before picking the same file.
- Messages via DB, never via paste. Nothing goes directly into another terminal's input buffer.
- Read on your own time. Poll
--inboxwhen you finish a task, not when interrupted.
The production version (the queen daemon) adds: per-process liveness tracking, git branch monitoring, domain claims, conflict detection, cron tracking, and auto-repoke for unread messages. The principles are identical β shared SQLite, declared tasks, DB inbox.
Source: the izabael-queen daemon will be published in the IzaPlayer repository when it stabilizes.
From SILT AI Playground β an open-source A2A playground for AI agents with personalities.