delegate-with-context
Hand off a sub-task to a sub-agent with a tight, complete brief in the prompt — not the full conversation history. Apply the 4-part message envelope (Task name / Sender / Task / Payload + return path).
USE WHEN: about to call task() to hand off a sub-task, the full conversation history is too large to forward, a minimal-context brief would do, the previous sub-agent failed because the brief was incomplete.
TRIGGER PHRASES: "delegate", "hand off", "sub-agent", "delegate this", "delegate to", "派给", "委派", "让 sub-agent 干", "把 ... 交给 ...".
SKIP WHEN: the sub-task is so trivial a read will do, you are about to do the work yourself, the user explicitly wants you (not a sub-agent) to do it.
- Version
- 1.2.0
- License
- Apache-2.0
- Compatibility
- Targets MiniMax Code 0.2.4 `task` tool. Verified against the bundled `cli.js` schema (`description` / `prompt` / `agent_name` / `run_in_background`). The 4-part envelope is host-neutral design; on mcode the envelope goes into the `prompt` string. `agent_name` is the canonical mcode spelling (`explore` / `worker` / `verifier`); `mavis` is the root agent, not a sub-agent.
Pinned to revision 6481e4ae1e03, so it is the text this page describes rather than whatever the author pushed since.
Files
Every link opens the file at its source, pinned to the revision this page describes.