> ## Documentation Index
> Fetch the complete documentation index at: https://agent-harness101.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Conditional planning

> Make planning conditional; persist only compact task state.

## The question

What if the agent forgets what remains — or plans everything?

## The answer

Make planning conditional; persist only compact task state.

### Simple task

read → edit → verify

### Complex task

plan → tasks → execute

### Then

observe → re-plan

```mermaid theme={null}
flowchart TD
n0["Dynamic planner"]
n1["Task state"]
n0 --> n1
```

### Source

[Claude Code docs — code.claude.com/docs](https://code.claude.com/docs) — Matches two real, documented features: Plan Mode (read-only exploration before any edit) and the TodoWrite tool (persistent, visible task state).

<Tip>
  **Design decision:** Plan only when complexity earns the overhead.
</Tip>

## Continue the walkthrough

<Card title="Subagent isolation" icon="arrow-right" href="/subagents/subagent-isolation">
  Continue to topic 9 of 14.
</Card>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.