agent-tasks

v3.2.0
io.github.keshrath/agent-tasks Checked 2 days ago Published 5 days ago

Pipeline 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.

ParameterTypeDescription
title *stringTask title (max 500 chars)
assign_tostringAgent name to assign to
descriptionstringDetailed instructions (max 50K chars)
parent_idnumberParent task ID — creates a subtask that inherits project and priority
prioritynumberPriority — higher number = more important (default: 0)
projectstringProject name for grouping
stagestringInitial pipeline stage (default: backlog)
tagsarrayTags 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).

ParameterTypeDescription
task_id *numberTask ID to retrieve
includearrayInline 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…
limitnumberMax comments to return (only when include has "comments", default: 100)
stagestringFilter 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).

ParameterTypeDescription
agentstringAgent name for affinity scoring (only with next: true) — prefers tasks where the agent worked on the parent, a dependency, or the same project
assign_tostringFilter by assigned agent name
collaboratorstringFilter tasks where agent is a collaborator
limitnumberMax results (default: 500 for list, 50 for search)
nextbooleanReturn the single best available task — highest priority, unassigned, all dependencies met. Uses affinity scoring when "agent" is provided.
offsetnumberSkip first N results (for pagination)
parent_idnumberFilter subtasks of a specific parent
projectstringFilter by project
querystringFull-text search across task titles and descriptions (FTS5)
root_onlybooleanOnly show top-level tasks (no subtasks)
stagestringFilter by pipeline stage
statusstringFilter by status
tagsarrayFilter 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).

ParameterTypeDescription
task_id *numberTask ID
assign_tostringNew assignee (empty string to unassign)
dependencyobjectAdd or remove a dependency in the same call
descriptionstringNew description
prioritynumberNew priority
projectstringNew project
tagsarrayNew tags
titlestringNew 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.

ParameterTypeDescription
task_id *numberTask 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…

ParameterTypeDescription
action *stringLifecycle action to perform
task_id *numberTask ID
claimerstringAgent name claiming (claim only, uses session name if omitted)
commentstringComment (advance: optional, also satisfies stage-gate require_comment check)
fromstringadvance only: the stage you saw the task in; refused if it moved elsewhere meanwhile
reasonstringReason for regression, cancellation or reopening
resultstringResult summary (complete) or error description (fail)
stagestringTarget 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).

ParameterTypeDescription
task_id *numberTask ID
type *stringArtifact type
becausestringRationale for the decision (type: "decision" only)
categorystringLearning category (type: "learning" only, default: technique)
chosestringWhat was chosen (type: "decision" only)
contentstringArtifact content (type: "general": text/markdown/JSON, max 100K; type: "learning": the insight; type: "comment": comment text)
namestringArtifact name (type: "general" only, e.g. "spec", "test-results", "review-notes")
overstringWhat alternatives were considered (type: "decision" only)
parent_comment_idnumberReply to this comment (type: "comment" only, for threading)
stagestringStage 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).

ParameterTypeDescription
action *stringConfig action to perform
formatstringOutput format for rules: mdc (Cursor) or claude_md (Claude Code)
gate_configobjectStage-gate enforcement config (pipeline only). Example: { "require_comment": true, "require_artifact": false, "exempt_stages": ["backlog"] }
idstringSession ID (session only)
modestringCleanup mode (cleanup only, default: retention). "sessions" fails the open tasks whose claiming session is gone now, without waiting for the next sweep.
namestringSession name (session only)
projectstringProject name (pipeline: scope, rules: project-specific rules)
stagesarrayStage names in order (pipeline set mode)