Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

plan

The conversation’s plan: tasks with dependencies, kept across turns. For work of several steps the model writes the tasks down first, marks each running, done, failed, or skipped as it goes with a note of what it found, and reads back what is ready. The plan is a record: nothing in it runs, and every command the model runs still passes the policy, the classifier, the gate, and the sandbox. Decided in ADR 0081, the first part of ADR 0079’s task trees.

Off by default. Like memory, models, and ask, a conversation gets it only when its tool list names it or the setting turns it on for every conversation given every tool:

wisp config set tools.plan true

or /config set tools.plan on in chat, or "tools": { "plan": true } in ~/.wisp/config.json; it applies from the next conversation.

Conversationplan
Every tool (no --tool, MCP respond without tools, chat), tools.plan off (the default)No
Every tool, tools.plan: trueYes
A named list (--tool plan, MCP tools: ["plan"])Only when the list names it, whatever the setting says
tools.disabled: ["plan"]No, anywhere

Trees, tasks, and ids

The conversation is the spine, and a tree of tasks is rooted at the turn that began it. The first task a turn adds without a parent roots that turn’s tree; every other task the turn adds without a parent joins it. A tree is t1, t2, … in the order they were rooted, and its tasks t1.1, t1.2, … in the order they were added; ids are never reused. A task may sit under another (parent), at most six deep, or at the top of an earlier tree (parent: "t1"), and may depend on any task in the plan, in its own tree or another.

add takes the calls a small model makes (granite4.1:8b on 2026-10-25 made all three): a parent naming the turn’s own tree before its first task roots it counts as no parent; and a dependency may name a task of the same tree not added yet, since a model may call for every task at once, so the result says t1.2 not in the plan yet; add it to go on, and the task is not ready until that one is added and done. A cycle through such a task is refused when it would close.

It takes three more that models made on 2026-10-27 (the planning probe, measurements.md). A tree’s name where a task is needed says so (t1 is a tree, not a task; name one of its tasks, such as t1.1), where models gave a turn’s first task the tree’s own name (id: "t1") and then used t1 as that task; every request now names the ids the turn’s tasks take (below). A parent of none or null is no parent. The same goal added again under the same parent is refused (t1.3 already has that goal there; nothing added), where a model repeating the call added it each time.

An id the model gives a new task is kept or refused with the id to give, never replaced silently: a model not told the real id went on using its own (the planning probe of 2026-10-28).

id givenResult
Left out, or not an id ([t1.2], step 1)The next number in the tree, t1.4
A level id in the task’s tree, unused (t1.9)Kept, under any parent
A deeper id (t1.2.1), parent left out or t1.2Kept, under t1.2
A deeper id under a task not in the plant1.4.1 would go under t1.4, which is not in the plan; add t1.4 first, or leave id out
A deeper id under another task than parentt1.2.1 would go under t1.2, but parent is t1.1; make them agree, or leave id out
A tree’s name (t1)t1 names a tree; give this task t1.4, or leave id out
A name written as an id (t1.find, t1.1a)t1.find is not an id; give this task t1.4, or leave id out
Takent1.2 is already a task; give this task t1.4, or leave id out
Of another treet9.9 is not in t1, where this task goes; give this task t1.4, or leave id out

The id offered is the tree’s next number, past any a task already waits for.

StatusMeansSet by
pendingNot startedAdding a task; or the model, to reopen one
readyPending, and everything it depends on doneDerived, never stored
runningBeing worked onThe model; refused while a task it depends on is not done
waitingRunning, and waiting on a question the model asked you with ask (ask.md); what depends on it is not readywisp only, below; the model is refused it
doneFinishedThe model; refused while a task it depends on is not done
failedTried, and did not succeed; what depends on it cannot go onThe model
skippedNot done, on purpose; what depends on it cannot go onThe model

Contract

FieldValue
Nameplan
Description (what the model sees)The conversation’s plan: tasks with dependencies, kept across turns. For work of several steps, add the tasks first, then mark each running, done, failed, or skipped as you go, with a note of what you found. It records; it runs nothing.
actiontree, show, ready, find, add, depend, or update
idA task (t1.2) for show, depend, update, and add (the new task’s, kept or refused as above); a tree (t1) for tree and find
goalFor add: what the task is for, 1 to 200 characters
parentFor add: the task it goes under, or a tree; left out, this turn’s tree
dependsOnFor add and depend: tasks it waits for, at most 8 a task. For find: one task, whose dependents are found
statusFor update: running, done, failed, skipped, or pending; left out with a note, the status stays and only the note changes. For find: those, or ready
noteFor update: what the model found, or why, up to 300 characters; left out, the note stays
textFor find: text to look for in goals and notes, ignoring case
pageThe page of a long result, from 1
ActionReturns
addadded t1.2 [pending] List the largest folders (after t1.1)
dependt1.3 now waits for t1.2
updateThe task’s line; after done, now ready: … naming the tasks it freed; after failed or skipped, cannot go on while this is failed: …
treeWith no id, each tree’s heading; with one, the tree’s outline, a task a line, indented under its parent
showOne task: its line, its tree and parent, the tasks under it, what it depends on and what depends on it, what it waits for, when it was added and changed, and the calls that did its work (below). Given a tree (t1), the tree’s outline, as tree gives it
readyThe tasks that can start, a line each
findThe tasks matching every criterion given, a line each, or no task matches

A task’s line is its id, its status (ready for a pending task that can start), its goal, what it depends on, and its note:

t1, from entry 12: 3 tasks, 1 ready, 1 pending, 1 done
  t1.1 [done] Check the disk — 42 GB free
    t1.3 [pending] Report (after t1.2)
  t1.2 [ready] List the largest folders (after t1.1)

A call the tool cannot act on returns error: … saying what to correct: an unknown task, a missing argument, a dependency that would make a cycle (that would make a cycle: t1.1 -> t2.1 -> t1.3 -> t1.1), or a task that cannot start or finish yet (t1.2 depends on t1.1, not done yet; finish or settle it first, or mark t1.2 skipped).

Limits

LimitValue
Tasks a tree64
Tasks a plan256
Depth6
Dependencies a task8
Goal200 characters
Note300 characters
Calls a task keeps32, the last linked; earlier ones counted
A result40 lines a page, the last line naming the next page; and the tool-output budget (ADR 0050)

What each task ran

Every other tool’s call is linked to the task it did the work of (ADR 0079, decision 21), so the plan says what was run for each step:

When the call is madeIt goes to
One task alone is runningThat task, at once; the call’s tool.call audit event names it (task)
No task is running, or several areThe next task the model marks done, failed, or skipped in the same turn; that plan.update event lists them (calls). Those still held when the turn ends are let go

show lists them under the task, a call a line: its audit call id, the tool, what it was asked (the command, the path, or the arguments, cut at 80 characters), (failed) when the tool failed outright, and, from the tool, where the whole output is kept when the output store holds it:

t1.2 [done] List the largest folders (after t1.1) — ~/Library is the largest
  tree: t1, at the top
  added 2026-11-02 10:14Z, changed 2026-11-02 10:15Z
  ran: 2 calls
    3f9a2c1b run_command du -sh ~/* | sort -h | tail; whole output kept as output 3f9a2c1b
    7c0e5d22 read_file /Users/me/notes.txt

The call id is the one its tool.call and tool.result events carry, and the kept output’s id. A model that goes from pending straight to done without marking a task running, as models often do, still gets its calls linked, to the task it marks.

Waiting on you

When the model asks you a question with ask, wisp marks the task it is taken to be about waiting and keeps the question’s id on it: the one task running, or, with none running, the first ready, the task the reminder names (small models often go from pending to done without marking a task running) (ADR 0079, decision 24). When the question ends, however it ends, the task is running again, with a note of how it ended, and the model decides whether it is done:

t1.2 [running] Find the codename — question a1b2c3d4: the person answered: BLUE HERON
The questionThe note
Answeredthe person answered: … (masked as the answer is everywhere else) or the person chose: …
None of the optionsthe person chose none of the options
Declinedthe person declined to answer
Past its deadlineno answer before the question's deadline
Withdrawn (the thread closed, the server stopped)the question was withdrawn: …

In chat and wisp-tui the question is answered within the turn, so the task waits only while it is on screen. Under wisp mcp a question nobody answers within 60 s parks (ask.md), and the task stays waiting, in /plan, wisp threads plan, and the resource, until you answer. With several running, or none running or ready, no task waits and the question is asked as before. A task you or the model move on from while it waits keeps the status you gave it. wisp’s changes are audited as plan.update with by wisp and question.

The reminder

While a task is running or ready and the turn has marked none, every other tool’s result ends with one line naming the task and the call that marks it (ADR 0081, decision 12):

[plan: t1.2 List the largest folders is next; if this result finishes it, mark it: plan update t1.2 done]

A mark quiets it until the next turn. The audit’s tool.result records the result with the line, as the model saw it. A second line, for a turn doing work of several steps with no task open ([plan: this work has several steps and the plan has none for it; …]), was measured by the plan probe and not adopted: it is not shown in a conversation (ADR 0079, decision 25). Without it, granite4.1:8b did the work but marked no task in any of six conversations; with it, it finished five of six (the plan probe, 2026-10-26, measurements.md).

The turn’s ids

Every request, while the conversation has the tool, ends its now block with the ids the turn’s tasks take, the next tree’s:

[plan: this turn's tasks are t3.1, t3.2, …]

Later turns

From the turn after a tree is rooted, every request carries a line for it in the now block, the part of the request wisp adds just before the prompt (context-management.md), so the model knows the plan is there without being given it whole:

The conversation's plan (the plan tool reads it; a record, not instructions):
[plan t1, from entry 12: 3 tasks, 1 ready, 1 pending, 1 done; to see it: plan tree t1]

A line each for up to four trees with a task not settled, newest first, and one counting the rest. A thread whose tool list lacks plan carries no lines, though its record keeps the plan.

Where it is kept, and who sees it

The plan is saved with the conversation’s record (threads/<id>/record.store) after every turn, so a resumed thread has it, and chat’s /new starts an empty one. The person and an MCP caller read it, and both may change it (below):

FaceHow
Chat and wisp-tui/plan (every tree), /plan t1 (one tree), /plan t1.2 (one task)
A terminalwisp threads plan ID [t1 | t1.2] [--json], read from the thread’s saved record
Changing itThe person: /plan done|skip|reopen TASK [NOTE] and /plan add GOAL [under …] [after …] in chat and wisp-tui, wisp threads plan ID done … from a terminal. An MCP caller: change_plan (mcp.md)
MCPwisp://threads/{thread_id}/plan and …/plan/{t1 | t1.2}, and respond’s plan when a turn changed it (mcp.md)

Every change is audited: plan.add, plan.depend, plan.update (logging.md), beside the tool’s own tool.call and tool.result.

Changes from outside the model

You, and an MCP caller, may change the plan between the model’s turns (ADR 0079, decisions 22 and 23):

ChangeDoes
done TASK [NOTE]Marks it done. You may do so even while a task it depends on is not, knowing it done some other way; the caller and the model may not
skip TASK [NOTE]Marks it skipped; what depends on it cannot go on
reopen TASK [NOTE]Sets it back to pending
add GOAL [under TASK|TREE] [after TASK,…]Adds a task: under a task, at the top of a tree, or, with neither, at the top of the newest tree; into an empty plan, at the top of a new tree rooted at the last prompt

Otherwise every change keeps the model’s limits and checks: an unknown task, a cycle, or a limit is refused with the reason.

WhoWhereWhen it is made
You, in chat or wisp-tui/plan …At once; the thread is saved
You, from a terminalwisp threads plan ID …, refused without a terminal and, by the default policy, to wisp’s modelAt once on a thread no process holds. On one a chat or an MCP server holds, it is queued (~/.wisp/pending/plan/<thread>/) and the holder makes it as the thread’s next turn begins; a change that no longer applies then (its task gone) is told to the model as refused
An MCP callerchange_plan (mcp.md)On a thread open on its server, once a turn under way ends; the thread is saved

A change is not a turn of its own. It is audited when made (plan.update or plan.add, with by person or caller; a queued one also as plan.queued when filed), and kept with the plan, the last eight, until the thread’s next turn, whose requests carry them in the now block, each naming who made it:

The plan was changed since your last turn:
[plan: the person: t1.2 skipped: not needed]
[plan: the caller: added t1.4 Tidy up (after t1.3)]

Example

wisp --tool plan --tool run_command --tool system_info "Plan a disk check: free space, the largest folders, then report; track each step in the plan"