Task Tool
Agent Buildingtask-toolTask Tool is an Agent Skill for agent building published in the heyhuynhgiabuu/openpi repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
How to call the `task` tool from `@heyhuynhgiabuu/pi-task` v0.2.0 correctly. Load when you need to delegate to a subagent (scout, explore, planner, reviewer, vision, worker).
QUICK START
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/heyhuynhgiabuu/openpi/blob/HEAD/.pi/skills/task-tool/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/task-tool, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
Rules (matches pi-task v0.2.0)
- Never pass
task_idon a fresh delegation. Omit the field.task_idis for resuming an existing background task only. - Never pass
conversation_idunless the user explicitly asked for a durable specialist conversation. - Never invent UUIDs as
task_idoragent_id. The tool will reject them. - Only use a
task_idthat came back in a successful priortaskresult. Never reuse one from an error message or old history. - If a
taskcall returnsUnknown task_id: "...", re-issue withouttask_idand withoutconversation_id.
Call shapes
Fresh:
{ "agent_type": "scout", "description": "Research X", "prompt": "..." }
Background (default in pi-task):
{ "agent_type": "scout", "description": "Research X", "background": true, "prompt": "..." }
Resume (only with a valid task_id from a prior result):
{ "agent_type": "scout", "task_id": "m1lxyz-a1b2", "description": "Continue", "prompt": "..." }
Durable conversation (only when the user asked for one):
{ "agent_type": "scout", "conversation_id": "research-ai", "description": "Continue", "prompt": "..." }
Anti-patterns
task_idon a fresh call.task_idas a UUID.conversation_idwithout the user asking.- Resuming a task that was never successfully started.
Error recovery
| Error | Fix |
|---|---|
Unknown task_id: "..." | Re-issue without task_id (fresh task) or use a conversation_id |
Unknown agent: "..." | Use one of: scout, explore, planner, reviewer, vision, worker |
task_id/conversation_id mismatch | Use the task_id that maps to your conversation_id |