task_pack
Assembles the minimum useful working set for a coding task by ranking relevant files and including nearby tests, recent diffs, project memory, and risks.
Instructions
Assemble the minimum useful working set for a task: ranked files, nearby tests, recent diffs, memory, and risks.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"task": "<task>"
},
"name": "task_pack"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| root | No | Absolute project root. Omit only where this session started; required elsewhere and on every subagent 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. |