---
title: "Plan, build and debug your app with three agent modes"
description: "Plan mode interviews you before Hercules writes code. Debug mode tests likely causes of a bug in order. Build mode makes quick changes. Switch any time."
---

# Plan, build and debug your app with three agent modes

Hercules has three agent modes, each handling your request differently. Plan mode interviews you and writes a plan before it changes the code. Debug mode investigates a bug before it changes anything, and Build mode usually makes the change right away.

- **Plan before code.** Agree milestones before Hercules writes the implementation plan.
- **Debug by hypothesis.** Debug mode tries a fix for each likely cause, most likely first.
- **Switch any time.** Change modes mid-chat and keep the conversation.

## Which mode fits which task?

### Make small changes in Build mode

Build mode is the default and makes changes immediately, such as turning a button blue. It still plans and asks questions when it needs to, just less often than the other two modes. [Agent modes](https://hercules.app/docs/ai/agent-modes)

### Plan a large feature in Plan mode

Plan mode asks about your goals, sets product milestones and waits for your approval before it writes an engineering plan. Then Hercules switches to Build mode and works through that plan. [Plan mode](https://hercules.app/docs/ai/agent-modes)

### Fix what breaks in Debug mode

Debug mode asks how the broken part should work, such as a form that submits but doesn't save. Then it searches your app's code for likely causes and tries a fix for each, most likely first. [Debug mode](https://hercules.app/docs/ai/agent-modes)

### Switch modes without starting over

Click the mode toggle at the bottom of the chat input, or ask Hercules to switch. The conversation carries over, so requirements you gave in Plan mode are still there in Build mode. [Switching modes](https://hercules.app/docs/ai/agent-modes)

### Spend fewer credits on big jobs

Long chats cost more because Hercules re-reads the app and the conversation at each step. Planning a big feature first, or investigating a bug before changing code, usually means fewer wrong guesses to pay for. [AI credits](https://hercules.app/docs/platform/billing/ai-credits)

## How does planning a feature work?

### 1. Describe the feature in Plan mode

> Add a pickup reservation system. Contractors reserve items from our catalog for a pickup time, the warehouse team sees a daily pickup list, and reservations expire after 48 hours.

Hercules asks what it needs to know, such as who can cancel a reservation, then proposes milestones.

### 2. Approve the milestones

Approve the milestones in the chat. Hercules then writes the engineering plan and switches to Build mode to carry it out.

### 3. Switch to Debug mode if something fails

> Reservations save, but they never show up on the warehouse pickup list.

Hercules asks what you expected, checks the likely causes in the code and tests a fix for each. Check the pickup list after each fix.

## What could a business do with it?

In this hypothetical example, the operations manager at a trucking company picks a mode for each request to the dispatch app. She asks Build mode to rename a column on the dispatch board. Fuel card reconciliation is a bigger job, so she starts it in Plan mode, answers how receipts arrive and who approves exceptions, and approves three milestones.

When the exceptions report later shows wrong totals, she switches to Debug mode. Hercules traces the fault to how the app groups receipts by week.

## What should you know before you start?

- Every message uses AI credits in every mode, including your answers in Plan mode, except runs started from the Fix the bugs button. [AI credits](https://hercules.app/docs/platform/billing/ai-credits)
- Choosing the model (Expert, Balanced or Lite) needs a paid plan. Without one, Hercules uses a default model in every mode. [Models](https://hercules.app/docs/ai/how-it-works)
- See what each plan includes on the [pricing page](https://hercules.app/pricing).

## Related features

- Use [App Builder](/products/app-builder) to build the app when you're starting from a description.
- Use [Multi-agent](/features/multi-agent) to plan one feature in a chat tab when another tab is fixing a bug.
- Use [Version control](/features/version-control) to revert to an earlier version when a change in any mode goes wrong.
- Use [AI credits](/features/ai-credits) to check what each message costs when you want to watch your spending.

## How do you get started?

Open an app, click the mode toggle under the chat input and pick Plan mode for your next big feature. Start building.

## Frequently asked questions

### Do I have to use Plan mode for new features?

Plan mode is optional and works best for large features or unclear requirements. For a straightforward request, Build mode works well. [Agent modes](https://hercules.app/docs/ai/agent-modes)

### Are bug fixes free?

Hercules fixes uncaught exceptions, errors your app's code doesn't handle, for free when you click Fix the bugs in the bottom right of the App Builder. Debug mode runs and other bug fixes use AI credits. [AI credits](https://hercules.app/docs/platform/billing/ai-credits)

### Which model works best with Plan mode?

Expert is the model Hercules recommends for planning and complex work. Lite is the cheapest and suits small, well-scoped changes and content updates. [Models](https://hercules.app/docs/ai/how-it-works)

### Can Hercules pick the mode for me?

Hercules may suggest switching when your request doesn't fit the mode you're in, and you decide. If you describe a bug in Build mode, Hercules may recommend Debug mode. [Agent modes](https://hercules.app/docs/ai/agent-modes)

```json
{
  "@context": "https://schema.org",
  "@type": "FAQPage",
  "mainEntity": [
    {
      "@type": "Question",
      "name": "Do I have to use Plan mode for new features?",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "Plan mode is optional and works best for large features or unclear requirements. For a straightforward request, Build mode works well. Agent modes"
      }
    },
    {
      "@type": "Question",
      "name": "Are bug fixes free?",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "Hercules fixes uncaught exceptions, errors your app's code doesn't handle, for free when you click Fix the bugs in the bottom right of the App Builder. Debug mode runs and other bug fixes use AI credits. AI credits"
      }
    },
    {
      "@type": "Question",
      "name": "Which model works best with Plan mode?",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "Expert is the model Hercules recommends for planning and complex work. Lite is the cheapest and suits small, well-scoped changes and content updates. Models"
      }
    },
    {
      "@type": "Question",
      "name": "Can Hercules pick the mode for me?",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "Hercules may suggest switching when your request doesn't fit the mode you're in, and you decide. If you describe a bug in Build mode, Hercules may recommend Debug mode. Agent modes"
      }
    }
  ]
}
```
