agent-tasks
v3.2.0Pipeline task management for AI agents - stages, dependencies, artifacts, claiming
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
task_create
Create a pipeline task. Tasks start in "backlog" and move through stages: backlog → spec → plan → implement → test → review → done. Use parent_id to create subtasks under an existing task.
| Parameter | Type | Description |
|---|---|---|
title * | string | Task title (max 500 chars) |
assign_to | string | Agent name to assign to |
description | string | Detailed instructions (max 50K chars) |
parent_id | number | Parent task ID — creates a subtask that inherits project and priority |
priority | number | Priority — higher number = more important (default: 0) |
project | string | Project name for grouping |
stage | string | Initial pipeline stage (default: backlog) |
tags | array | Tags for categorization |
task_get
Get a single task by ID. By default returns task with artifacts, comment count, dependencies (blockers/blocking = `blocks` edges; links = `related`/`duplicate`, with direction), claim status and collaborators. Use "include" to inline full subtasks, artifacts (filterable by stage), comments (with limit), or transitive_deps (full upstream + downstream closure of the dependency graph in one call — answers questions like "what depends on this task transitively?" and "what is its critical path depth?" without forcing the caller to BFS the graph).
| Parameter | Type | Description |
|---|---|---|
task_id * | number | Task ID to retrieve |
include | array | Inline related data: "subtasks" → child tasks, "artifacts" → full artifact list (use stage to filter), "comments" → discussion threads (use limit to cap), "transitive_deps" → full upstream + d… |
limit | number | Max comments to return (only when include has "comments", default: 100) |
stage | string | Filter artifacts by stage (only when include has "artifacts") |
task_list
List, search, or pick tasks. Without params: returns all tasks. With filters: narrow by status/stage/project/assignee. With "query": full-text search across titles and descriptions. With "next": true: returns the single highest-priority unassigned task with all dependencies met (uses affinity scoring when agent is provided).
| Parameter | Type | Description |
|---|---|---|
agent | string | Agent name for affinity scoring (only with next: true) — prefers tasks where the agent worked on the parent, a dependency, or the same project |
assign_to | string | Filter by assigned agent name |
collaborator | string | Filter tasks where agent is a collaborator |
limit | number | Max results (default: 500 for list, 50 for search) |
next | boolean | Return the single best available task — highest priority, unassigned, all dependencies met. Uses affinity scoring when "agent" is provided. |
offset | number | Skip first N results (for pagination) |
parent_id | number | Filter subtasks of a specific parent |
project | string | Filter by project |
query | string | Full-text search across task titles and descriptions (FTS5) |
root_only | boolean | Only show top-level tasks (no subtasks) |
stage | string | Filter by pipeline stage |
status | string | Filter by status |
tags | array | Filter by tags. Returns tasks that have ALL listed tags (AND-mode). Use one or more tag values, e.g. ["okr:OKR-H1-3", "iter:H1"]. |
task_update
Update task metadata — title, description, priority, tags, project, assignment, or dependencies. Does not change stage or status (use task_stage for that).
| Parameter | Type | Description |
|---|---|---|
task_id * | number | Task ID |
assign_to | string | New assignee (empty string to unassign) |
dependency | object | Add or remove a dependency in the same call |
description | string | New description |
priority | number | New priority |
project | string | New project |
tags | array | New tags |
title | string | New title |
task_delete
Delete a task with its artifacts, comments, dependencies and finished subtasks (all levels). Refused while any subtask below it is still open: finish, cancel or delete those first. Cannot be undone.
| Parameter | Type | Description |
|---|---|---|
task_id * | number | Task ID to delete |
task_stage
Move a task through its lifecycle. Actions: "claim" → assign to you and advance from backlog to spec, "assign" → assign to you WITHOUT advancing the stage (use for custom pipelines where the first stage is itself a do-work stage), "advance" → next stage (or jump to a specific one), "regress" → earlier stage (requires reason; back in the first stage it is unclaimed again), "complete" → marks done with result, "fail" → marks failed with error, "cancel" → cancels with reason, "reopen" → a failed, completed or cancelled task open again and unclaimed at the stage it was closed in (o…
| Parameter | Type | Description |
|---|---|---|
action * | string | Lifecycle action to perform |
task_id * | number | Task ID |
claimer | string | Agent name claiming (claim only, uses session name if omitted) |
comment | string | Comment (advance: optional, also satisfies stage-gate require_comment check) |
from | string | advance only: the stage you saw the task in; refused if it moved elsewhere meanwhile |
reason | string | Reason for regression, cancellation or reopening |
result | string | Result summary (complete) or error description (fail) |
stage | string | Target stage (advance: optional — advances to exactly the next if omitted; regress: required) |
task_artifact
Attach artifacts or comments to a task. Types: "general" → document (spec, test-results, review-notes), "decision" → structured decision record (chose/over/because), "learning" → insight that auto-propagates to parent and sibling tasks on completion, "comment" → discussion comment (supports threading via parent_comment_id, satisfies stage-gate require_comment checks).
| Parameter | Type | Description |
|---|---|---|
task_id * | number | Task ID |
type * | string | Artifact type |
because | string | Rationale for the decision (type: "decision" only) |
category | string | Learning category (type: "learning" only, default: technique) |
chose | string | What was chosen (type: "decision" only) |
content | string | Artifact content (type: "general": text/markdown/JSON, max 100K; type: "learning": the insight; type: "comment": comment text) |
name | string | Artifact name (type: "general" only, e.g. "spec", "test-results", "review-notes") |
over | string | What alternatives were considered (type: "decision" only) |
parent_comment_id | number | Reply to this comment (type: "comment" only, for threading) |
stage | string | Stage to attach to (type: "general" only, defaults to current stage) |
task_config
Configuration and admin. Actions: "session" → set agent identity (call this first), "pipeline" → get/set pipeline stages and gate config for a project, "cleanup" → purge old completed tasks, "rules" → generate IDE rule files (.mdc or CLAUDE.md).
| Parameter | Type | Description |
|---|---|---|
action * | string | Config action to perform |
format | string | Output format for rules: mdc (Cursor) or claude_md (Claude Code) |
gate_config | object | Stage-gate enforcement config (pipeline only). Example: { "require_comment": true, "require_artifact": false, "exempt_stages": ["backlog"] } |
id | string | Session ID (session only) |
mode | string | Cleanup mode (cleanup only, default: retention). "sessions" fails the open tasks whose claiming session is gone now, without waiting for the next sweep. |
name | string | Session name (session only) |
project | string | Project name (pipeline: scope, rules: project-specific rules) |
stages | array | Stage names in order (pipeline set mode) |