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

# Plan vs. Build Mode

> Learn the difference between Plan and Build modes in Replit, and how to combine them for more effective development.

Use Replit Agent's **Plan** toggle to plan before implementation. With the toggle off, Agent builds directly—also called **Build mode**.

## What is Plan Mode?

[Plan Mode](/features/agent/plan-mode) lets you brainstorm, ask questions, and plan your work with Agent—without modifying any code. Think of it as a collaborative planning session where you can explore ideas freely.

Plan Mode is perfect for:

* **Brainstorming ideas**: Explore different approaches before committing to one
* **Breaking down complex projects**: Get a structured task list before building
* **Learning and understanding**: Ask questions about technologies, patterns, or your codebase
* **Planning architecture**: Design your app's structure before writing code

<Info>
  In Plan Mode, Agent reads your project and provides guidance, but it won't make any changes to your files. When you're ready to implement, switch to Build Mode or approve a plan to start building automatically.
</Info>

## What is Build Mode?

Build Mode is the default mode where Agent writes code, modifies files, and implements features directly in your project. This is where ideas become reality.

Use Build Mode when you're ready to:

* **Create new features**: Let Agent write the code for your next feature
* **Set up your app**: Install dependencies, configure databases, and connect services
* **Fix issues**: Let Agent debug and resolve problems in your codebase
* **Refactor code**: Improve existing code structure and organization

## Using both modes together

**Plan Mode and Build Mode work best as a sequence.** Start by planning to clarify your thinking, then build with a clear direction.

<Steps>
  <Step title="Start in Plan Mode">
    While building a Replit App, select the **Plan** toggle at the bottom right of the chat input. Describe what you want to build. Agent helps you explore requirements and approaches without changing your code. Plan mode isn't available directly from Conversations.
  </Step>

  <Step title="Generate a task list">
    Ask Agent to create a development plan. It will break down your project into specific, actionable tasks with clear priorities and dependencies.

    <Frame>
      <img src="https://mintcdn.com/replit/C2m-h5aOFSgZqBLh/images/replitai/plan-mode-task-list.png?fit=max&auto=format&n=C2m-h5aOFSgZqBLh&q=85&s=99cee6d8bbe209ce1c92bb1a0f5ee83b" alt="Task plan with Revise, Cancel, Build in background, and Build here actions" width="902" height="516" data-path="images/replitai/plan-mode-task-list.png" />
    </Frame>
  </Step>

  <Step title="Review and refine">
    Review the proposed plan. Select **Revise** to refine it with Agent, or **Cancel** to discard it.
  </Step>

  <Step title="Start building">
    Select **Build here** to implement the approved plan in the current Agent session. Select **Build in background** to run it as a separate task.

    By default, background tasks wait for you to review and apply their changes. You can enable **Automatically apply changes** in the background build options.

    <Note>
      Before your project's first checkpoint, the approval button is **Start building** instead of the two build options.
    </Note>

    <Frame>
      <img src="https://mintcdn.com/replit/C2m-h5aOFSgZqBLh/images/replitai/plan-mode-selector.png?fit=max&auto=format&n=C2m-h5aOFSgZqBLh&q=85&s=d611006ec3c31c2133fe6699cd9d4ba7" alt="Plan toggle selected at the bottom right of the Agent chat input" width="902" height="196" data-path="images/replitai/plan-mode-selector.png" />
    </Frame>
  </Step>

  <Step title="Track progress">
    Monitor Agent's progress as it works through the task list. Each completed task creates a checkpoint, so you can review changes and roll back if needed.
  </Step>
</Steps>

## When to use each mode

<CardGroup cols={2}>
  <Card title="Use Plan Mode when" icon="lightbulb">
    * You're starting a new project and need direction
    * You want to explore different approaches
    * The task is complex and needs breaking down
    * You want to learn before implementing
    * You're unsure about the best solution
  </Card>

  <Card title="Use Build Mode when" icon="hammer">
    * You know exactly what you want
    * You have a clear plan ready to execute
    * You're making quick fixes or small changes
    * You're following an approved task list
    * Speed of implementation is the priority
  </Card>
</CardGroup>

<Tip>
  **Not sure which to pick?** If your request involves multiple features or significant changes, start with Plan Mode. For simple, well-defined tasks, go straight to Build Mode.
</Tip>

## Key differences

| Feature | Plan Mode | Build Mode |
| - | - | - |
| **Purpose** | Brainstorm, plan, and learn | Implement and build |
| **Code changes** | None—read-only | Writes and modifies files |
| **Output** | Ideas, task lists, guidance | Working code and features |
| **Best for** | Complex projects, exploration | Clear tasks, implementation |
| **Transition** | Approve the plan to start building | Turn on the **Plan** toggle to plan first |

## Best practices

### Getting the most from Plan Mode

* **Be specific about requirements**: The more detail you provide, the better the plan
* **Ask follow-up questions**: Clarify suggestions you don't understand
* **Request examples**: Ask Agent to show code snippets or patterns
* **Discuss trade-offs**: Explore pros and cons of different approaches
* **Iterate on ideas**: Refine the plan until it feels right

### Seamless transitions

* **Review before building**: Always review the task list before approving
* **Start small**: Begin with a subset of tasks if the full plan feels overwhelming
* **Use checkpoints**: Agent creates checkpoints as it builds, so you can always roll back

## Next steps

<CardGroup cols={2}>
  <Card title="Plan Mode" icon="lightbulb" href="/features/agent/plan-mode">
    Deep dive into planning features
  </Card>

  <Card title="Agent" icon="robot" href="/features/agent/overview">
    Explore all Agent capabilities
  </Card>

  <Card title="Checkpoints" icon="clock-rotate-left" href="/features/version-control/checkpoints-and-rollbacks">
    Learn about rollbacks and recovery
  </Card>

  <Card title="Effective Prompting" icon="message" href="/learn/effective-prompting">
    Write better prompts for Agent
  </Card>
</CardGroup>
