Priority
How priority and difficulty work as numbers on a configured scale, set by hand or scored by a framework.
A taskβs priority holds a number on a scale. mt labels each number with the band it falls in, and sorts and filters by the number. You can set the number by hand, such as priority: 7, or let a framework compute it from inputs like impact and effort. A hand-set number takes seconds. A framework takes more input, but it scores every task on the same scale. You can then compare their scores.
Scale and bands
The default scale runs from 0 to 9. Each band is a [[tasks.priority.bands]] entry:
label | minβmax | glyph | color |
|---|---|---|---|
low | 0β2 | π’ | green |
normal | 3β6 | π‘ | yellow |
high | 7β9 | π΄ | red |
[tasks.priority] sets the scale with kind (int or real), min and max. required takes a filter that selects the tasks that must have a priority. Bands you declare replace the default list. mt config show --defaults prints the default values, and Configuration lists every key.
Difficulty
difficulty is a second number with the same kind, min, max and required keys, under [tasks.difficulty]. Its scale runs from 0 to 9, and itβs labeled by anchors instead of bands. A value between two anchors takes the lower anchorβs label:
value | label | glyph | color |
|---|---|---|---|
| 0 | junior | π’ | green |
| 3 | mid | π΅ | cyan |
| 6 | senior | π‘ | yellow |
| 9 | staff | π΄ | red |
Frameworks
A framework computes the priority from inputs you fill in on the task. This project enables ICE:
# examples/priority/.mindtape/config.toml: score priority with ICE, and refuse a raw number
[tasks.priority]
framework = "ice"
allow-manual = falseThen a task calls the framework instead of giving a number:
// tasks/add-rate-limits-to-the-public-api.typ: an ICE call
priority: ice(impact: 10, confidence: 0.9, ease: 9),mt computes the score and labels it with its band. --sort priority and a filter such as priority >= 7 read the score:
$ mt ls --columns title,priority --sort priority:desc
TITLE PRIORITY
Add rate limits to the public API π΄ high
Fix the typo in the signup email π’ low
Rename the billing tables π’ low
3 of 3 tasks Β· default view (!terminal && (miss(start) || start <= now()))allow-manual decides whether mt still accepts a raw number while a framework is on. It defaults to true. With false, every task must call the framework, so mt refuses a raw number and exits 1:
$ mt set fix-the-signup-email-typo priority=8
error: tasks/fix-the-signup-email-typo.typ:6: priority: `8` is a manual priority but framework `ice` is strict (allow-manual = false)To adopt exactly this setup without writing the keys, extend the mindtape:ice pack. It sets framework, allow-manual = false, required and example, and the default scale and bands stay.
Templates & slots shows how mt add fills a frameworkβs inputs.
Built-in frameworks
| Framework | Inputs | Scoring |
|---|---|---|
ice | impact number 1β10confidence number 0β1ease number 1β10 |
Impact and ease are guesses, and confidence says how far to trust them. Confidence multiplies. A shaky guess then loses score in proportion to how shaky it is. |
rice | reach number 0β10impact number 1β5confidence number 0β1effort number 1β10 |
ICE with reach multiplied in and effort divided out. A small change that reaches every user can outrank a large one that reaches few. |
wsjf | cost_of_delay number 0β10job_size number 1β10 |
Weighted shortest job first: value per unit of size. Of two equally valuable tasks, the smaller one ranks higher. |
eisenhower | urgent boolimportant bool | π₯ The four combinations of urgency and importance make four categories. The category sets the priority. The score only places it on the numeric scale. |
moscow | level enum must / should / could / wont | π΄ A commitment level: |
To write your own, declare [tasks.priority.frameworks.<name>] with its inputs, their types and bounds, and a score formula or categories. Then name it in [tasks.priority] framework = "<name>", or mt check refuses a task that calls it with no priority framework is configured. crates/mindtape/src/framework/frameworks.toml sets the built-ins the same way, and you can override any of their keys. A task calls your framework with framework("name", input: value, ...). A framework with categories instead of a formula sorts each task into a category, and each category has a fixed score on the scale.