mt set

mt set writes the core fields with an unambiguous literal: title, priority, difficulty, kind, assignee, waits-on, tags, due and start. It shares the field table, the =/+= grammar and the renderer with mt add --set, and a value means the same on a filed task and a new one. += appends to a list field, and = replaces it. A directory is not a field: mt set dir=… refuses, because mt mv only renames a filed task and --dir chooses the folder only when adding.

Change one field of a task: mt set <task> <field>=<value>

You can set title, priority (as a number), difficulty (as a number), kind, assignee, waits-on, tags, due and start. Other fields have their own commands, such as mt flip for status. mt checks the new value before it writes, so a refused one leaves the file as it was.

mt set uses the same syntax as mt add --set. mt refuses a name that has its own command or add flag, and the error names it: status (flip), links (link), reviewed (review), recur (recur), dir (--dir when adding) and the id (mv). A framework priority such as ice(...) and an estimate aren’t single values, so mt set doesn’t write them. Edit those in the file. Adding a value a list already holds doesn’t write anything, so you can safely run it again. A write ends on next: mt eval <task>, the command that reads it back.

Runs on one project and refuses a set.

<TASK>The task: its stem, its hash, or the path to its file
<ASSIGNMENT>

The change: <field>=<value>, <field>+=<value> or <field>@<path>

<field>+=<value> adds to a list, and <field>@<path> reads the value from a file. mt set --help lists the fields you can set.

$ mt set fix-the-login-bug priority=8
set fix-the-login-bug (fix the login bug): priority: 8
next: mt eval fix-the-login-bug
$ mt set fix-the-login-bug due=2026-07-10
set fix-the-login-bug (fix the login bug): due: on(2026, 7, 10)
next: mt eval fix-the-login-bug
$ mt set fix-the-login-bug tags+=backend
set fix-the-login-bug (fix the login bug): tags: ("backend",)
next: mt eval fix-the-login-bug
$ mt set fix-the-login-bug tags+=backend
unchanged: fix-the-login-bug already carries "backend" in tags
$ mt set fix-the-login-bug title@title.txt
set fix-the-login-bug (fix the login bug): title: "Fix the login bug on empty passwords"
next: mt eval fix-the-login-bug

Every command also takes the global flags.