Plan mode
Cycle withShift+Tab until the mode chip on the composer reads Plan ยท no edits. The placeholder changes to Describe what you want โ Cortex drafts a plan first, which is the invitation to describe an outcome rather than a change.
In this mode the agent can read files, search the project and reason about it. It cannot write a file and it cannot run a command that changes anything. Use it when you are new to an area of the codebase, when you want an estimate of a change before committing to it, or when you simply do not want anything touched yet.
Plan mode is also a built-in agent, so you can get one planning answer without entering the mode:
The lock is real
Plan mode is not a polite instruction to the model. The mutating tools are withheld by the agent harness, so they are not available to be called. It is a hard stop rather than a promise: it does not depend on the model choosing to behave. The same is true of Ask mode, and Spec mode extends the idea to a plan you have to accept. That is worth knowing because it changes how you read the transcript. If the agent says it will leave a file alone in Agent mode, that is a statement of intent. In Plan mode it is a statement of fact.Accept a plan, or keep going
When a plan is ready the TUI asks what to do with it, with two options:Yes, switch to Agent mode and implementNo, keep planning
Spec mode
Spec mode is a toggle rather than a step in the mode cycle:--spec-model lets the planning pass use a different model from the one that would carry out the work. See Headless and one-shot runs.
What a structured plan contains
A submitted plan always carries:
It can also carry the architecture it assumes, the technology it intends to use, the use cases it is designing for, the risks it can see, the criteria it would call success, a timeline, and an estimate of the changes involved. Those extras appear when they apply, so a small plan is short.
Why plan first
When the agent asks you a question
Independently of either mode, the agent can put a short structured form on screen when it needs a decision from you rather than a guess. A question is single choice, multiple choice, free text or a number, and the composer placeholder changes toChoose an option above while one is open. Answering the form is usually faster and less ambiguous than a round trip through prose.
Delegated investigation
Planning often means reading more of the project than one turn can hold, so the agent can delegate. A delegated task runs in one of three roles:explore for read-only investigation, plan for producing a plan, and worker for carrying out a slice of the work.
Two limits are worth knowing. A delegated task cannot delegate further, and it cannot talk to you directly: it reports back through the turn that spawned it, which is why you see its result as a single tile in the timeline. /tasks lists what is running in the background. See Agents and subagents and Tools the agent uses.
Related
- Modes and permissions - the mode cycle, approvals and the sandbox
- The TUI - the mode chip, the placeholder and the timeline
- Agents and subagents - the built-in planning and exploring agents
- Headless and one-shot runs -
--agent plan,--use-specand--spec-model - Tools the agent uses - which tools a mode withholds