← ClaudeAtlas

add-telegram-swarmlisted

Add Agent Swarm (Teams) support to Telegram. Each subagent gets its own bot identity in the group. Requires Telegram channel to be set up first (use /add-telegram). Triggers on "agent swarm", "agent teams telegram", "telegram swarm", "bot pool".
sliamh11/Deus · ★ 38 · AI & Automation · score 80
Install: claude install-skill sliamh11/Deus
# Add Agent Swarm to Telegram This skill adds Agent Teams (Swarm) support to an existing Telegram channel. Each subagent in a team gets its own bot identity in the Telegram group, so users can visually distinguish which agent is speaking. **Prerequisite**: Telegram must already be set up via the `/add-telegram` skill. If `src/telegram.ts` does not exist or `TELEGRAM_BOT_TOKEN` is not configured, tell the user to run `/add-telegram` first. ## How It Works - The **main bot** receives messages and sends lead agent responses (already set up by `/add-telegram`) - **Pool bots** are send-only — each gets a Grammy `Api` instance (no polling) - When a subagent calls `send_message` with a `sender` parameter, the host assigns a pool bot and renames it to match the sender's role - Messages appear in Telegram from different bot identities ``` Subagent calls send_message(text: "Found 3 results", sender: "Researcher") → MCP writes IPC file with sender field → Host IPC watcher picks it up → Assigns pool bot #2 to "Researcher" (round-robin, stable per-group) → Renames pool bot #2 to "Researcher" via setMyName → Sends message via pool bot #2's Api instance → Appears in Telegram from "Researcher" bot ``` ## Prerequisites ### 1. Create Pool Bots Tell the user: > I need you to create 3-5 Telegram bots to use as the agent pool. These will be renamed dynamically to match agent roles. > > 1. Open Telegram and search for `@BotFather` > 2. Send `/newbot` for each bot: > - Give