team-delegate

A team task-management command for assigning work, messaging team members, and reviewing workload. It reads team settings and the current task list.

In plain words
What is it for?
Use it to assign a task, send a member a message, inspect unassigned or blocked work, and rebalance workloads.
Why use it?
It removes the need to track assignments and blocked work manually across separate messages and task records.

Command

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.

agentmods
npx agentmods add commands/wshobson/agents/team-delegate
Clone the repo
git clone --depth 1 https://github.com/wshobson/agents
Per session 14 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 749 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00014 $0.00749
Opus 5 $0.00007 $0.00375
Sonnet 5 $0.00003 $0.00150
Haiku 4.5 $0.00001 $0.00075

Measured 2d ago against content hash 42c2f327d06e, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

team-delegate scanned grade A with 0 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 2d 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/agent-teams/commands/team-delegate.md · 95 lines

How it starts

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

Team Delegate

Manage task assignments and team workload. Provides a delegation dashboard showing unassigned tasks, member workloads, blocked tasks, and rebalancing suggestions.

Pre-flight Checks

  1. Parse $ARGUMENTS for team name and action flags:

    • --assign task-id=member-name: assign a specific task to a member
    • --message member-name 'content': send a message to a specific member
    • --rebalance: analyze and rebalance workload distribution
  2. Read team config from ~/.claude/teams/{team-name}/config.json using the Read tool

  3. Call TaskList to get current state

Action: Assign Task

If --assign flag is provided:

  1. Parse task ID and member name from task-id=member-name format
  2. Use TaskUpdate to set the task owner
  3. Use SendMessage with type: "message" to notify the member:
    • recipient: member name
    • content: "You've been assigned task #{id}: {subject}. {task description}"
  4. Confirm: "Task #{id} assigned to {member-name}"

Action: Send Message

If --message flag is provided:

  1. Parse member name and message content
  2. Use SendMessage with type: "message":
    • recipient: member name
    • content: the message content
  3. Confirm: "Message sent to {member-name}"

Action: Rebalance

If --rebalance flag is provided:

  1. Analyze current workload distribution:

    • Count tasks per member (in_progress + pending assigned)
    • Identify members with 0 tasks (idle)
    • Identify members with 3+ tasks (overloaded)
    • Check for blocked tasks that could be unblocked
  2. Generate rebalancing suggestions:

    ## Workload Analysis
    
    Member          Tasks    Status
    ─────────────────────────────────
    implementer-1   3        overloaded
    implementer-2   1        balanced
    implementer-3   0        idle
    
    Suggestions:
    1. Move task #5 from implementer-1 to implementer-3
    2. Assign unassigned task #7 to implementer-3
    
  3. Ask user for confirmation before executing rebalancing

  4. Execute approved moves with TaskUpdate and SendMessage

Read the full file on GitHub · 95 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. 2d ago First seen · 95 lines · 14 tokens per session scan A 42c2f327d06e

Subscribe to this mod's changes

team-delegate is a command published in the GitHub repository wshobson/agents (39,318 stars, last pushed 2d ago), licensed MIT. It adds 14 tokens to every session and 749 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.