Docs/Agent Mode
DocsAgent Mode
Free

Agent Mode

Autonomous multi-step app builder — describe what you want and the AI plans, builds, and fixes errors automatically to deliver a complete app.

What is Agent Mode

Agent Mode is an autonomous multi-step app builder. Instead of generating code from a single prompt, the AI breaks your request into a series of tasks and executes them sequentially — planning, building, testing, and fixing errors automatically.

The AI analyzes your prompt and creates a structured task plan before writing any code. Tasks are executed one by one, with each step building on the results of the previous one. Errors are detected and auto-healed between steps, so no manual intervention is required. The final result is a complete, working app that matches your original prompt.

Agent Mode is available on all plans including Free. Each task in the session counts toward your daily generation quota.

When to Use Agent Mode

Agent Mode is best suited for complex apps that would be difficult to build in a single generation pass. Use it when your prompt involves multiple features, screens, or interconnected components.

  • Complex multi-feature apps — e.g., "Build a project management tool with kanban boards, team members, and a dashboard."
  • Apps with many screens — e.g., "Create an e-commerce site with product listing, cart, checkout, and order history."
  • Apps that need multiple iterations — Agent Mode refines as it builds, catching and fixing issues along the way.

When to use regular generation instead

For simple, single-page apps, regular generation is faster and equally effective. Save Agent Mode for projects where the AI needs to plan and coordinate across multiple features.

How It Works

Agent Mode follows a structured pipeline from prompt analysis to final delivery. The AI handles every stage autonomously so you can sit back and watch your app come together.

1

AI analyzes your prompt

The AI reads your description, understands the requirements, identifies features, and determines the overall app structure before writing a single line of code.
2

Creates a task plan

Your request is broken into discrete, ordered tasks — for example, "Set up navigation", "Build dashboard page", "Add data layer". You can see the full plan before execution begins.
3

Executes tasks sequentially

Each task generates or modifies code, building on what was created in previous tasks. The AI maintains context across the entire session.
4

Auto-heals errors

After each task, the AI checks for errors and fixes them before moving to the next task. This iterative healing loop means fewer bugs in the final result.
5

Delivers the final app

Once all tasks are complete, the finished app is ready for preview and deployment. Every file is saved and a version snapshot is created automatically.

Watching Progress

Agent Mode provides real-time visibility into what the AI is doing. You can monitor each step and intervene if needed.

  • The task plan is displayed in the UI before execution begins — you can see what the AI intends to build.
  • Each task shows its status in real time: pending, in progress, completed, or failed.
  • You can watch code being generated and modified as each task executes.
  • Cancel at any time — the app preserves whatever has been built up to the cancellation point.
If the AI is heading in the wrong direction, cancel early and start a new session with a more specific prompt. You keep all the work completed before cancellation.

Session Limits

Agent Mode sessions have limits to prevent runaway execution and ensure system stability. These limits are generous enough for most apps but worth knowing about for very large projects.

  • 20 tasks per session — if your request requires more, break it into multiple sessions.
  • 12-minute timeout per task — individual tasks that take longer are terminated.
  • 1-hour inactivity timeout — the session ends if no task is executed for 60 minutes.
You can start a new Agent Mode session at any time to continue building on the existing app. Each session picks up from the current state of your code.

Agent Mode vs Chat Refinement

Both features build and modify apps, but they serve different purposes and work differently. Understanding when to use each one will help you work more effectively.

  • Agent Mode builds autonomously from scratch — you provide the prompt and the AI handles everything.
  • Chat Refinement iterates on existing code — you guide the AI with specific change requests.
  • Agent Mode is best for initial app creation with complex requirements.
  • Chat Refinement is best for making targeted changes to an existing app ("move the sidebar to the right", "add a search bar").

Combine both for the best workflow

Use Agent Mode to build the initial app and then switch to Chat Refinement for fine-tuning. This gives you the best of both worlds — autonomous creation followed by precise iteration.

FAQs

Is Agent Mode available on the Free plan?
Yes. Agent Mode is available on all plans, including Free. It uses your generation quota like any other code generation — each task in the session counts toward your daily limit.
Can I cancel an Agent Mode session in progress?
Yes. You can cancel at any time. The app preserves whatever was built up to the point of cancellation. You can then refine the partial result with Chat Refinement or start a new Agent Mode session.
What happens if a task fails during Agent Mode?
The AI attempts to auto-heal errors between tasks. If a task fails and cannot be recovered, the session will note the failure and continue with remaining tasks when possible. The app preserves all successfully completed work.
How is Agent Mode different from GenMB Code?
Agent Mode is an autonomous builder that plans and executes multi-step tasks from scratch. GenMB Code is a conversational coding assistant where you guide the AI through specific file edits. Agent Mode is for building; GenMB Code is for editing.

Ready to build?

Create your first app for free — no credit card required.