Running several AI coding agents in parallel on one Windows machine takes a separate terminal process for each agent, a separate working copy for each agent and a shared task record. AgentForge provides this with up to 16 terminal panes in a workspace, git worktree isolation per pane, and a board that assigns each card to exactly one builder. Branches are not merged automatically; the user does the merge.
What goes wrong when agents run in parallel
| Problem | What is needed |
|---|---|
| Two agents change the same file in the same working tree | A separate working copy per agent |
| The same task goes to two agents | One assignment per task |
| Too much work is opened at once and piles up unreviewed | A limit on concurrent work |
| It is unclear which agent did what and spent what | Status and usage measured per agent |
| Changes made in separate copies conflict when they are combined | A reviewed merge done by hand |
How AgentForge implements it
1. Panes: one terminal process per agent
In the Grid view each pane runs an agent CLI in its own terminal process. A workspace holds at most 16 panes; with several workspaces open, at most 32 terminals are kept alive across the application. Every pane shows a busy, idle, waiting or exited badge. In Claude Code panes the status is known exactly from hook events; for other CLIs it is determined heuristically from terminal output.
2. Worktree isolation: a separate working copy per agent
A pane can run in its own git worktree and branch; when the isolation option is on for a mission, every builder works this way. With worktree isolation agents do not share a working tree:
- The worktree lives in the
<project>-worktreesfolder next to the project folder. - Each pane works on its own branch with the
forge/prefix. - When a mission ends, uncommitted work is saved to the branch as a WIP commit rather than deleted.
3. File-area declarations: when isolation is off
With isolation off, agents work in the shared project folder. In that case a Files: path, folder/** line in the card description (Dosyalar: works too) declares the card’s file area, and cards with overlapping areas are not dispatched at the same time. The declaration only orders dispatch, so each card needs the right area written into it when the plan is produced.
4. Single assignment and the WIP limit
While a swarm is running, a two-second orchestration loop assigns every unowned card whose dependencies are resolved to an idle builder. The assignment is a single write guarded by the board revision number: in a race only the winning agent receives the task prompt, and the same card does not go to two builders. The mission’s WIP limit sets how many cards can be in progress at once; with no limit given, that number is bounded by the number of builders.
5. The branch panel: a reviewed merge
The branch panel in the Metrics view lists the builder branches. The user reviews a branch diff, writes a comment on a line and sends it to the agent, and merges the branch into the main branch with one click; any conflict is reported. When the GitHub CLI is installed and signed in, a branch can also be pushed without a force push and opened as a pull request. Leftover worktrees and branches are cleaned up from the same panel after selection and a second confirmation.
How many agents run at once
| Limit | Value |
|---|---|
| Panes in a workspace | at most 16 |
| Live terminals across the application | at most 32 |
| Agent consoles open at the same time | by plan: 3 on Lite, 6 on Pro, 16 on Ultra |
| Builders in a mission team | 1 to 4 |
| Reviewers in a mission team | 1 or 2 |
Only agent consoles count towards the plan limit, plain shell terminals do not; when the limit is reached a new agent console does not open and the app says so. Below these limits, the practical limit is usually set by the machine’s memory and the usage limits of the agent provider.
Limits
- Isolation relies on git worktrees, so the project must be a git repository.
- AgentForge does not merge builder branches on its own. Conflicts appear at merge time and are resolved by the user.
- The board tools are connected only to Claude Code, Codex CLI and Gemini CLI panes; other engines run in a terminal pane but cannot advance a card through MCP tools.
- With several panes of the same CLI open in the same folder, a usage record may not be matched to a pane reliably; Metrics then shows “cannot be measured” instead of zero. In isolated mode each builder works in its own folder, which makes the match easier.
- When a cost ceiling is exceeded AgentForge pauses the mission: no new cards are assigned, but an agent turn already in progress is not interrupted.