hub_task_add
Add a task to the shared cross-project backlog with project, text and author. Set depends_on for waits, plus optional category, tags, assignee, deadline, resources and an accept command.
Instructions
Add a task to the shared cross-project backlog. A wait goes in depends_on, not in the text: warnings says so when the text names an open task and depends_on is empty, and when a part depends on its epic (tag epic) instead of the epic on it.
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": {
"project": "<project>",
"text": "<text>",
"by": "<by>"
},
"name": "hub_task_add"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| by | Yes | the function you are performing, e.g. "dev-hubd". NOT which model you are — that is read from the transcript, and many sessions share a model. NOT a queue role either: a role is a mailbox (see hub_queue_wait), this is who is at it. | |
| cat | No | one of technical | communicative | decision | chore. Anything else is kept — as a tag, not a category: the four values are the axis every by-type number is counted on, so it stays closed. | |
| tags | No | free-form labels — the open vocabulary next to the closed cat one | |
| text | Yes | what the task is, in a line or two | |
| accept | No | one line, run with sh -c in the assignee's working folder on its node by hub sweep; exit 0 closes the task on the ground "accept: <command> → 0". The project's head or a fleet role only; a command that cannot fail (true, echo) is refused. | |
| project | Yes | the project slug, as hub_status lists it | |
| verbose | No | return the whole task object; by default the reply is {ok, id, project, by, importance, cat, textPreview} — you just wrote the text, it is not echoed back | |
| assignee | No | agent name or owner, optional | |
| deadline | No | YYYY-MM-DD, or +Nd for N days from today (UTC), optional | |
| resources | No | resource slugs this task touches (host/vm/service/...) — a structured link task → resource, not prose | |
| depends_on | No | task ids this task waits on (bare number or a node-scoped id like "pine-3") | |
| importance | No | default normal |