delegate-task

A task handoff tool for aweek, a scheduler for coding agents. It places a task in another agent's asynchronous inbox, where that agent can pick it up during its next heartbeat.

In plain words
What is it for?
Use it to delegate work from one aweek agent to another through the shared inbox queue.
Why use it?
It supports collaboration between agents without waiting for a live, back-and-forth session. It also guides you through choosing the sending and receiving agents.

Skill for Claude CodeCodex

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 skills/runbear-io/aweek/delegate-task
Any agent
npx skills add runbear-io/aweek --skill delegate-task
Clone the repo
git clone --depth 1 https://github.com/runbear-io/aweek

Made for: Claude Code, Codex.

Per session 16 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,424 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.00016 $0.01424
Opus 5 $0.00008 $0.00712
Sonnet 5 $0.00003 $0.00285
Haiku 4.5 $0.00002 $0.00142

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

Security

Grade A, and why

delegate-task 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.

skills/delegate-task/SKILL.md · 151 lines

How it starts

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

aweek:delegate-task

Delegate a task from one agent to another. The task is placed in the recipient's async inbox queue and will be picked up on the next heartbeat. This enables inter-agent collaboration without synchronous cross-agent sessions.

Instructions

You MUST follow this exact workflow when this skill is invoked. Use the project's Node.js modules in src/skills/delegate-task.js — never write inbox JSON files directly.

Step 1: List Available Agents

List all available agents so the user can choose sender and recipient:

echo '{"dataDir":".aweek/agents"}' \
  | aweek exec agent-helpers listAllAgents --input-json -

The response is an array of { config } records. Project each entry to { id: config.id, name: config.identity?.name, role: config.identity?.role } for display. Treat fewer than 2 entries as the "need more agents" case.

  • If fewer than 2 agents exist, inform the user: "At least 2 agents are needed for delegation. Use /aweek:create-agent to create more." and stop.
  • Display a numbered list showing agent name, role, and ID.

Step 2: Select Sender Agent

Ask the user using AskUserQuestion: "Which agent is delegating the task? (select by number or name)"

  • Validate the selection matches an existing agent.

Step 3: Select Recipient Agent

Ask the user using AskUserQuestion: "Which agent should receive the task? (select by number or name)"

  • Validate the selection matches an existing agent.
  • The recipient MUST be different from the sender — an agent cannot delegate to itself.

Step 4: Collect Task Details

Ask the user for the task details:

  1. Task Description (required): Ask using AskUserQuestion: "Describe the task to delegate (max 2000 characters):"

    • Must be a non-empty string, max 2000 characters.
  2. Priority (optional): Ask using AskUserQuestion: "Priority level? (critical / high / medium / low) — default: medium"

    • Valid values: critical, high, medium, low
    • Default: medium if the user skips or enters empty.

Read the full file on GitHub · 151 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 · 151 lines · 16 tokens per session scan A 6a7e7b7f40a1

Subscribe to this mod's changes

delegate-task is a skill published in the GitHub repository runbear-io/aweek (11 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 16 tokens to every session and 1,424 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.