Skip to main content

Module tools_plan

Module tools_plan 

Source
Expand description

#657: the plan tool — one list of steps, kept in the session, read back by every surface.

The registry is every kind of act and not one of them held a plan, so compaction’s only option was to guess at one: THREAD_WORDS harvested lines that happened to contain “todo” or “still need” into Open Threads, and the order was rebuilt from the last few messages each turn. On a job with eight steps that is the difference between a list and a sample of sentences.

This tool is deliberately the smallest thing that fixes that. It writes one row in the store the session already owns — no file, no network, no process — which is also why it has no Policy key in ToolsConfig and is registered unconditionally: a gate would have nothing to refuse, and a new policy field is exactly what #586’s family of preset bugs invites. Hermes’s todo tool is registered the same way, and for the same reason.

The rules live in crate::plans, not here: this file parses arguments and renders the answer. What it does not do is decide what a merge means or how many steps may be in progress, so those two questions have one answer that a test can reach.

Structs§

PlanTool