Search or ask Docker

Tasks Tool

Persistent task database with priorities and dependencies, shared across sessions.

View Markdown

Persistent task database with priorities and dependencies, shared across sessions.

Overview

The tasks tool provides a persistent task database that survives across agent sessions. Unlike the Todo tool , which maintains an in-memory task list for the current session only, the tasks tool stores tasks in a JSON file on disk so they can be accessed and updated across multiple sessions. Tasks support priorities and dependencies — a task is blocked until every task it depends on is done.

Configuration

toolsets:
  - type: tasks
    path: ./tasks.json  # Optional: custom database path

Options

PropertyTypeDefaultDescription
pathstringtasks.jsonPath to the JSON task database. Relative paths resolve against the agent config directory (or --working-dir when set).

Available Tools

The tasks toolset exposes these tools:

Tool NameDescription
create_taskCreate a new task with a title, description (or markdown file path), optional priority, and optional dependencies.
get_taskGet full details of a single task by ID, including its effective status (blocked if any dependency is not done).
update_taskUpdate a task's title, description, priority, status, or dependency list.
delete_taskDelete a task by ID. Also removes it from other tasks' dependency lists.
list_tasksList tasks sorted by priority (critical first) with blocked tasks last. Optionally filter by status or priority.
next_taskReturn the highest-priority actionable task — one that is not blocked and not done. Great for "what should I work on?".
add_dependencyAdd a dependency: a task is blocked until the task it depends on is done.
remove_dependencyRemove a dependency from a task.

Example

agents:
  root:
    model: openai/gpt-4o
    toolsets:
      - type: tasks
        path: ./project-tasks.json
Tip

Tasks vs. Todo

Use the tasks tool when you need persistence across sessions, priorities, or dependencies (e.g., long-running projects, recurring work). Use the todo tool for ephemeral, session-scoped task lists.