Platform

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.

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
Build mode reply after a one-line request to change a Spanish label, listing the two places it changed
Plan mode reply to a request for a visit calendar, asking how precise a scheduled visit should be before it plans

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
Debug mode reply to a bug report about missing photos, asking when the photos are added while it searches the code

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
Mode menu under the chat input listing Build mode, Plan mode and Debug Mode

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
Chat reply with its credit cost, 3.85 credits, shown under the message

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

How does planning a feature work?

  1. 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. 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. 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.

Related features

Frequently asked questions

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
  • Choosing the model (Expert, Balanced or Lite) needs a paid plan. Without one, Hercules uses a default model in every mode. Models
  • See what each plan includes on the pricing page.
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

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

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

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

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.