---
title: "Run several AI agents on one app at the same time"
description: "Every chat tab in Hercules is its own agent, so one can fix the invoice page while another builds scheduling. See how to split work so edits don't collide."
---

# Run several AI agents on one app at the same time

In Hercules, every chat tab is a separate agent with its own conversation. Open a tab with the + button, give it a task, and it works alongside the others on the same app.

Agents on the main app share one set of files, so give each one its own part of the app and put overlapping work on a branch.

- **One tab, one agent.** Keep each task's history in its own tab.
- **Cleaner context.** Start fresh so an unrelated earlier task can't confuse the agent.
- **Teammates at once.** Run agents alongside your teammates on the same app.

## What can you do with several agents?

### Build two features at once

One Hercules agent can add a customer portal while another fixes the quote form, each in its own tab. Parallel agents ship several features at the same time instead of one after another. [Multi-Agent](https://hercules.app/docs/ai/multi-agent)

### Start fresh for a new task

A long chat, or one covering unrelated features, can make responses less accurate. A new agent starts with clean context and focuses on the task you assign. [New agents](https://hercules.app/docs/ai/multi-agent)

### Keep every task in its own tab

Hercules names a tab after your first message, and you can double-click it to rename it. Click the clock icon next to + to reopen an earlier agent. [Manage tabs](https://hercules.app/docs/ai/multi-agent)

### Work alongside your teammates

Agents on the main app see each other's file changes as they work, whoever started them. Chats on one branch share its code and backend the same way. [Team collaboration](https://hercules.app/docs/ai/multi-agent)

### Give overlapping work its own branch

A branch is a copy of your app with its own files and backend, so work there can't collide with the main app. You merge it back into the main app when the work is done. [Branches](https://hercules.app/docs/apps/branches)

## How do you split work between agents?

### 1. Give each agent a separate part of the app

In this hypothetical example, an HVAC contractor's office manager gives the first of three changes its own tab.

> Add a page where customers can see their maintenance plan and next visit date.

In a second tab, another agent fixes the late-payment reminder email. The two tasks touch different files, so they run side by side.

### 2. Put overlapping work on a branch

> Rework the job form so technicians log parts used on each visit.

The reminder email also reads from the job form, so she sends this on a new branch. Hercules creates the branch with its own backend.

### 3. Merge and check

> Bring in the latest changes from main and resolve any conflicts.

When the branch works, she clicks Merge. If Hercules finds a conflict, it shows which files conflict, and nothing reaches the main app until the agent resolves them. [Merging](https://hercules.app/docs/apps/branches)

## What could a business do with it?

In this hypothetical example, a food distributor fixes their invoices while they build a returns screen for drivers, in two tabs on the same app. The invoice fix doesn't wait for the returns screen, so finance gets correct totals sooner. Meanwhile the finance analyst builds a monthly margin report in her own tab.

## What should you know before you start?

- Hercules doesn't combine two agents' edits to the same file. If two agents change one file at the same time, one agent's changes can be lost or blocked, which can leave the app half updated and failing to build.
- Don't start the same task in two agents at once. [Multi-Agent](https://hercules.app/docs/ai/multi-agent)
- Each agent's messages use AI credits, so several agents at once spend credits faster. [AI credits](https://hercules.app/docs/platform/billing/ai-credits)
- See what each plan includes on the [pricing page](https://hercules.app/pricing).

## Related features

- Use [App Builder](/products/app-builder) to describe changes in plain words when you open a new agent tab.
- Use [Branches](/features/branches) to get an isolated copy of the app when work would collide with another agent.
- Use [Plan, Build and Debug](/features/agent-modes) to set each agent's mode when its task needs planning or debugging.
- Use [Teammates](/features/teammates) to invite people when they'll run their own agents on your apps.

## How do you get started?

Pick two changes that touch different parts of the app, click + in the tab bar, and give each its own agent. Start building.

## Frequently asked questions

### How many agents can I run at once?

Hercules lets you run as many agents at the same time as you'd like. [How it works](https://hercules.app/docs/ai/how-it-works)

### Does merging a branch publish my app?

No. Merging a branch doesn't publish, so your live app keeps its current version until you click Publish. Backend changes, such as server functions and the database structure, can go live sooner, so publish soon after merging. [Branches](https://hercules.app/docs/apps/branches)

### Can I keep chatting on a branch after it's merged?

No. You can't continue chatting on a merged branch. Start a new chat on the main app or a new branch. [Branches](https://hercules.app/docs/apps/branches)

### Is there a limit on branches?

Each app can have up to 100 branches over its lifetime. [Branch limits](https://hercules.app/docs/apps/branches)

```json
{
  "@context": "https://schema.org",
  "@type": "FAQPage",
  "mainEntity": [
    {
      "@type": "Question",
      "name": "How many agents can I run at once?",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "Hercules lets you run as many agents at the same time as you'd like. How it works"
      }
    },
    {
      "@type": "Question",
      "name": "Does merging a branch publish my app?",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "No. Merging a branch doesn't publish, so your live app keeps its current version until you click Publish. Backend changes, such as server functions and the database structure, can go live sooner, so publish soon after merging. Branches"
      }
    },
    {
      "@type": "Question",
      "name": "Can I keep chatting on a branch after it's merged?",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "No. You can't continue chatting on a merged branch. Start a new chat on the main app or a new branch. Branches"
      }
    },
    {
      "@type": "Question",
      "name": "Is there a limit on branches?",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "Each app can have up to 100 branches over its lifetime. Branch limits"
      }
    }
  ]
}
```
