ultrathink
ultrathink is a planner plugin for coding agents. Before the agent sees a non-trivial prompt, ultrathink rewrites it into an XML spec, builds a Graph of Thought that ends in a WORKFLOW of parallel waves, drafts the clarifying questions whose answers would change the work, and, if you configure it, creates matching Linear issues and Notion rows. The agent then starts from that plan. It runs on Claude Code, Grok Build, Hermes Agent, Muse Code, Omp and Prime Agent, plans with each host's own engine by default (on Omp, the session's own model) or with the engine you choose, and fails open: a problem inside ultrathink never blocks your prompt.

New here? Follow Getting started to install ultrathink and plan your first prompt. Everything else is in the documentation index.
Why
A coding agent starts on the prompt exactly as typed. For anything larger than a one-line fix, the scope, the order of the work and the questions worth settling first are left for the agent to work out as it goes, and whatever plan it forms stays inside that one session. ultrathink adds one planning pass in front of the agent: a written spec, a dependency graph whose independent parts can run in parallel, the blocking questions asked once up front, and, if you want them, tracker rows for every part of the plan. One engine and one config serve all seven hosts.
What happens on a prompt
- Filter. The host's prompt hook runs before the model sees your message. It handles the
/ultrathink-* commands and lets these through unplanned: /ultrathink-quick and raw: messages, short replies such as ok or lgtm, slash commands that are not skills, subagent sessions, and everything while planning is off. A skill invocation is planned together with the text you typed. A /gsd-* or /skill:gsd-* command is planned even when no skill file is installed.
- Uplift. The engine rewrites the message into an XML spec. Your own words stay verbatim in its
ORIGINAL element.
- Graph of Thought. The engine splits the work into 6 to 8 nodes (by default) with dependencies and gives each node a rationale and a conclusion. The final node writes a WORKFLOW: waves of file-disjoint units, where the units of one wave can run in parallel.
- Clarify. It drafts up to 4 HITL questions. The agent first tries to answer them from the repository; blocking questions that remain are asked once, before any code is written, and the rest go ahead with their recommended default.
- Track (optional). For each provider that is configured and logged in, it creates rows through the shared MCP gateway: a Notion Task row for the prompt, a Linear issue and a Notion Issue row per node, and a Linear sub-issue and a Notion Sub-Issue row per rationale step. A node's Linear issue is blocked by the issues of the nodes it depends on.
- Inject. It saves the spec and session state in the host's state directory and puts the plan into the agent's context. A planned prompt can include a "Lessons from earlier work" section and a "Docs" section from RAGFlow (the heading is "Documents (RAGFlow)"), both untrusted evidence, both absent when the feature is off or the call fails.
- Execute. With tracking on, the agent first runs
ultrathink-kickoff. Then it works through the waves: the plan tells it to run the units of a wave as parallel subagents, to verify each wave before starting the next, and to prefer repository evidence where the plan disagrees with it.
flowchart TD
M[Your message] --> H{Prompt hook}
H -->|"control command"| R["Hook replies, no model turn"]
H -->|"quick message, raw:, short reply, planning off"| A["Agent gets the message unplanned"]
H -->|"plan"| U["Uplift: XML spec"]
U --> G["Graph of Thought: nodes and WORKFLOW waves"]
G --> Q["HITL questions"]
Q --> T["Linear and Notion rows, when configured"]
T --> I["Plan in the agent's context"]
I --> K["ultrathink-kickoff, then the waves"]
Each step fails open. If the engine fails, the agent gets a conservative spec and nothing is tracked. If a tracker fails, the plan still arrives and ultrathink-kickoff tries the missing rows again. If Bun is missing, the hooks exit quietly and the prompt goes through unplanned.
The agent-side half is four skills, shared by every host: