task_pack
Assemble a minimal working set for a coding task: ranked files, nearby tests, recent diffs, project memory, and risks, so agents start with the context they need.
Instructions
Assemble the minimum useful working set for a task: ranked files, nearby tests, recent diffs, memory, and risks.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| root | No | Absolute project root. Required with linked worktrees; subagents must pass their own worktree root on every call. | |
| task | Yes | Task description or engineering objective. | |
| format | No | Return plain text or structured JSON. Default: text. | |
| preset | No | balanced (default) or keyword_only for zero-provider lexical discovery. | |
| max_files | No | Maximum ranked files to include. Default: 8. | |
| graph_hops | No | Related import context: 0, 1 or 2 hops. Default 1 with CONTEXTPRO_CONNECTED_CONTEXT=true, otherwise 0. Relationships are heuristic. | |
| max_memory | No | Maximum memory hits to include. Default: 3, max: 10. | |
| max_tokens | No | Final response budget estimated as UTF-8 bytes/4, not tokenizer tokens. Default: 3000. | |
| include_tests | No | Include nearby tests. Default: true. | |
| include_memory | No | Include project memory hits. Default: true. | |
| graph_max_files | No | Maximum additional graph-related file pointers. Default: 4. | |
| previous_context_id | No | Context ID from a previous packet you still hold; return a delta. Omit after context loss to recover full context. | |
| include_recent_diffs | No | Include recent file-level diffs. Default: true. |