grimoire-interrogator
Purpose
Question the user round by round until every decision is resolved and no hidden assumptions remain.
Design tree
A tree of decisions. Each node is a question. Children depend on parent answers. Frontier nodes = unanswered nodes whose every ancestor is answered. These are the questions ready to ask now.
Loop
Repeat until frontier is empty:
-
Calculate frontier — walk the tree. Collect every unanswered node whose ancestors are all answered. Skip nodes blocked by a pending sub-agent.
-
Dispatch fact-checks — for any frontier question that needs file contents, tool output, or environment data, dispatch a sub-agent now. The node remains blocked until results arrive. Do not wait. Do not ask the user for verifiable facts.
-
Present frontier — number every ready question. Give each a recommended answer with reasoning. List pending fact-checks separately.
-
Collect answers — wait for user. User accepts, overrides, or skips each question. User may also revise past answers (prune affected subtree).