Download for macOS
Skill

dag-task-runner

@cursor Updated 2026-08-13

Decompose a user's task into a DAG of subtasks and execute them with Cursor SDK local subagents in topological order, rendering live streaming status to a canvas. Each task has a complexity (HIGH/MED/LOW) that maps to a model. Use when the user asks to fan out work, decompose a task into a DAG, run subagents in parallel, or break a large task into a dependency graph.

Install

git clone https://github.com/cursor/cookbook /tmp/cookbook && ln -s /tmp/cookbook/sdk/dag-task-runner/skill ~/.claude/skills/dag-task-runner

From README

DAG Task Runner Decomposes a user-described task into a JSON DAG, then runs each node as a Cursor SDK local subagent (with parents' outputs stitched into the child's prompt). Live DAG state — including each running subagent's streaming output — is rendered into a .canvas.tsx that the runner rewrites on every status transition; the IDE hot-recompiles so the user sees subagents move through PENDING -> RUNNING -> FINISHED/ERROR in real time. This skill can run from either a project skill (.cursor/skills/dag-task-runner) or a personal skill (/.cursor/skills/dag-task-runner). The installed runner entry point is scripts/rundag.ts inside the skill directory. Set DAGRUNNERDIR to override the auto-detected scripts directory.