relay-thread-manager

relay-thread-manager is a skill for Claude Code from ebibibi/ebi-agent-chat-relay. It costs 89 tokens per session (2,927 once invoked), scanned C, original, MIT.

A manager for coordinating multiple agent conversations, called threads, through a local control service. It can start workers, give them separate tasks, track their progress, pass on follow-up instructions, and collect their results.

In plain words
What is it for?
It is for splitting independent work across agent threads, monitoring those workers, and closing the threads after their results are gathered.
Why use it?
It avoids handling independent tasks one by one and helps prevent workers from editing the same resource at the same time.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit It is for splitting independent work across agent threads, monitoring those workers, and closing the threads after their results are gathered.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ebibibi/ebi-agent-chat-relay/relay-thread-manager
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add ebibibi/ebi-agent-chat-relay --skill relay-thread-manager
Clone the repo
git clone --depth 1 https://github.com/ebibibi/ebi-agent-chat-relay

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for relay-thread-manager

README.md
[![agentmods](https://agentmods.dev/badge/skills/ebibibi/ebi-agent-chat-relay/relay-thread-manager/github.svg)](https://agentmods.dev/skills/ebibibi/ebi-agent-chat-relay/relay-thread-manager)
Your own site
<a href="https://agentmods.dev/skills/ebibibi/ebi-agent-chat-relay/relay-thread-manager"><img src="https://agentmods.dev/badge/skills/ebibibi/ebi-agent-chat-relay/relay-thread-manager/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for relay-thread-manager

Your own site · 80×15
<a href="https://agentmods.dev/skills/ebibibi/ebi-agent-chat-relay/relay-thread-manager"><img src="https://agentmods.dev/badge/skills/ebibibi/ebi-agent-chat-relay/relay-thread-manager.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 89 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,927 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 2 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00089 $0.02927
Opus 5.5 $0.00036 $0.01171
Sonnet 5.5 $0.00018 $0.00585
Haiku 4.5 $0.00009 $0.00293

Measured 8d ago against content hash 51407b70eb18, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade C, and why

relay-thread-manager scanned grade C with 2 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Downloads and executes remote codehighSupply chain

curl | sh runs whatever the server returns today, which is not necessarily what it returned when this was reviewed.

curl -s "$CCDB_API_URL/api/sessions?limit=100" | python3 -c '

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -s -X POST "$CCDB_API_URL/api/spawn" \
skills/relay-thread-manager/SKILL.md · 229 lines

How it starts

The opening of the file, as written. The whole thing — 229 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Relay thread manager

You are a session running inside ebi-agent-chat-relay (ccdb). Every thread is its own agent session, and you can start more of them. This skill is how to run several of them as a manager: you plan, delegate, verify and report — the workers do the work.

Everything below is plain HTTP against the localhost control plane. ccdb injects the two variables you need into every session:

Variable Meaning
CCDB_API_URL Base URL of the control plane (default http://127.0.0.1:8099)
DISCORD_THREAD_ID Your own thread ID — the parent of anything you spawn

If either is missing you are not running under ccdb; stop and say so.

0. Decide whether to fan out at all

Spawning costs a full session per worker. Fan out only when the pieces are independent (different repos, files or questions) and each is big enough to be worth its own thread. Two workers editing the same file is worse than one worker.

Before spawning, write down for yourself:

  1. The work items, one per worker, with a clear "done" condition each
  2. Which resource each one touches (repo, branch, file) — no two workers share one
  3. How many run at once. Keep it small (3 is a good default); the channel list is also the human's view, and every extra thread costs their attention

1. Spawn workers

curl -s -X POST "$CCDB_API_URL/api/spawn" \
  -H "Content-Type: application/json" \
  -d '{
    "thread_name": "Worker A: fix parser tests",
    "parent_thread_id": '"$DISCORD_THREAD_ID"',
    "prompt": "<self-contained brief, see below>"
  }'
# → {"status": "spawned", "thread_id": "…", "thread_name": "🤖K2 Worker A: fix parser tests"}
  • Always pass parent_thread_id. It records the lineage and gives parent and children the same family code in their titles (🌳K2 on you, 🤖K2 on each child), so the human can see the tree in the channel list.
  • Keep the returned thread_id. It is the only handle you have on the worker.
  • Add "notify_parent": true to hear back without polling. Each time the worker marks itself finished (candidate/done) or waiting on the human (waiting/review/action), the relay queues a short report into your thread, which wakes you if you are idle. Verify the result, send follow-ups, and report to the human once for the whole family — do not forward each worker's report separately.
  • Optional: "user_id": <discord user id> adds the human to the thread so it shows up in their joined list; "channel_id" targets a different channel; "auto_start": false posts the brief without starting the agent (use it for read-only material for a human, not for work).
  • The call returns immediately. The worker runs in the background — keep going.

Read the full file on GitHub · 229 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago Changed · +5 lines 51407b70eb18
  2. 19d ago Changed · +6 lines ff87a3bac792
  3. 23d ago Changed · +22 lines 8d1effde40b5
  4. 1mo ago First seen · 196 lines · 89 tokens per session scan C 1cc76b14a582

Subscribe to this mod's changes

relay-thread-manager is a skill published in the GitHub repository ebibibi/ebi-agent-chat-relay (68 stars, last pushed today), licensed MIT. It adds 89 tokens to every session and 2,927 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it C with 2 findings (downloads and executes remote code, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-04.

Related

relay-thread-manager compared with skills from other repositories

relay-thread-manager next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
relay-thread-managerebibibi/ebi-agent-chat-relaySkill68todayMITC89Claude Code
switchsandbox-quantum/switchSkill4.9ktodaynoneA135Claude Code, Codex
google-workspacesandbox-quantum/switchSkill4.9ktodaynoneA48Claude Code, Codex
airtablesandbox-quantum/switchSkill4.9ktodaynoneA42Claude Code, Codex
claude-delegateamElnagdy/delegate-skillsSkill2.7k15d agoMITA117Claude Code, Codex
warp-delegateamElnagdy/delegate-skillsSkill2.7k15d agoMITA144Claude Code, Codex
zcode-delegateamElnagdy/delegate-skillsSkill2.7k15d agoMITA124Claude Code, Codex