Task DSL
Every field a task file can set, how to write a status, and what the body can contain.
A task file imports the prelude and passes its fields to task.with(...). A task from examples/dsl/ sets most of them:
#import "@local/mindtape:0.4.0": *
#show: task.with(
title: "Fix the login redirect",
status: wip(2026, 6, 14)[reproduced on staging], // the status, the date it was set, and a note
priority: ice(impact: 8, confidence: 0.7, ease: 6), // a framework call or a number; difficulty too
estimate: (days: 1, hours: 2), // units the project allows
assignee: "ada", // who is working on it
links: depends-on("add-a-session-store.typ"), // typed edges; a target is a path from this file
tags: ("backend",),
x-speconaut: (spec: "login-flow"), // a tool's own field; mt passes it through
)Task files walks through the Typst in it, line by line. Concepts covers how mt reads these files, names them and resolves their links.
Fields
Each field is a named parameter of task, so a Typst language server such as tinymist completes the names and shows each default. Misspell a field as titel and the file fails with unexpected argument: titel, which the language server marks under the misspelled name.
A value is plain data. Helpers like ice(...), every(...) and count(...) only build a dictionary. mt does the scoring, the date arithmetic and the file matching.
| Field | Value |
|---|---|
title | The task’s title. The built-in template includes only this field. |
status | A status, the date of the setting and an optional note: wip(2026, 7, 6)[behind a flag]. See “Writing a status” below. |
priority | A number on the project’s priority scale, or a framework call such as ice(...). See Priority. |
difficulty | A number on the difficulty scale, or a framework call, as for priority. |
kind | One of the kinds the project’s config lists, such as "feature". |
assignee | Who is working on the task, as a string. The project can limit the names. |
estimate | A dictionary of units to amounts: (days: 1, hours: 2). mt checks the units against the project’s list and never converts between them. A file-count unit can add query matches to a manual count: (files: count(2, grep("fn parse"))). See Estimates. |
links | Typed edges to other tasks, joined with +: depends-on("a.typ") + related("b.typ")[why]. See Task links. |
waits-on | What the task waits on outside the repo, as checker:id strings: ("locked:acme-pay@2.4.0",). The project configures a command for each one. See Wait on upstream. |
tags | An array of strings: ("backend", "auth"). One tag needs a trailing comma, ("backend",), because ("backend") is a string. |
due | The task’s deadline, a date. |
start | The date work on the task can begin. The default view hides the task until then. |
reviewed | The date someone last reviewed the task. mt review sets it to today. |
recur | A rule that makes the task repeat: every(weeks: 1). See Recurring tasks. |
id | The task’s id, when it should differ from the filename stem. See Concepts. |
x-<ns> | Data for a tool built on Mindtape, which mt passes through, and checks only if the config declares it. See Concepts. |
A date field takes on(2026, 7, 20), the prelude’s short form of datetime(year: 2026, month: 7, day: 20). So do the start: and until: arguments of every(...).
Writing a status
The prelude has a constructor for each of these statuses: draft, proposed, accepted, todo, wip, doing, blocked, in-review, done, cancelled, failed.
Each takes the year, month and day of the setting, then an optional note as a trailing content block, like wip in the sketch above. Your project’s status legend, its list of allowed statuses, can declare a status with no constructor. Write that one with status(...).
You can type the status and its date yourself, or let mt flip and the status commands such as mt wip write the field for you.
Links and recurrence
links: lists the task’s typed edges to other tasks. See Task links for the kinds. recur: makes the task repeat. See Recurring tasks for the rules.
Goals
The core defines no goal DSL. A task body can emit metadata markers, and a [[tasks.rules]] check with field = "markers" hands them to a Typst function your project writes. A project that rates goals declares them in its own module and points a rule at it. Tie work to your goals shows the recipe and a project you can copy.
Task bodies
Everything below task.with(...) is the body, in Typst markup. Task files shows what the markup contains and how to write a literal # in it.
A project’s rules can hold the body to a shape. The mindtape:tasks pack opens every AS-IS with one plain line that carries the essence, then the numbered steps.