Agent of Empires: A Terminal Dashboard for Managing Multiple AI Coding Agents
Agent of Empires (aoe) is a terminal session manager for AI coding agents. It does not replace agents like Claude Code or OpenCode; it orchestrates them. When running multiple agents in parallel, aoe provides a unified TUI that shows the status and live output of every session, handles Git worktree creation and cleanup per agent, and optionally runs each agent in a Docker container.
The problem with managing multiple agents manually
Running one AI coding agent in a terminal is straightforward. Running five requires tracking which terminal corresponds to which task, checking whether agents are still running or stuck waiting for input, and managing branch isolation so agents working on the same repository do not overwrite each other's changes.
Without dedicated tooling, this produces a mix of cognitive overhead (manually tracking session-to-task mapping), status blindness (no way to know agent state without clicking into each window), and branch conflicts (multiple agents touching the same files).
aoe addresses all three by wrapping Tmux, Git worktrees, and optionally Docker into a single interface.
Installation
On macOS with Homebrew:
For Linux and Windows, installation scripts and binaries are available in the GitHub repository.
Launching the dashboard
From a project's root directory:
This opens the TUI in the current terminal window.
Creating and managing sessions
Pressing n in the dashboard opens a session configuration form. Fields include a title, the agent tool to use (such as claude), and options for YOLO mode (skip permission prompts) and Docker sandboxing. Pressing Enter creates the session: aoe starts a Tmux session in the background and drops into the agent's interface.
To return to the dashboard without stopping the agent, press Ctrl-d. The agent continues running. The dashboard shows the session's status and a live preview of its terminal output in the right pane.
Creating a second session follows the same process. Both agents run concurrently in separate Tmux sessions, fully isolated from each other.
To attach to a session, use the arrow keys to select it and press Enter. Ctrl-d returns to the dashboard. Sessions can be organized into groups by project, producing a hierarchical view that keeps the dashboard readable when managing many agents across multiple repositories.
Git worktrees
When a session is created, aoe can automatically create a Git worktree for it. A worktree checks out a separate branch of the repository into a distinct directory, so each agent has its own isolated workspace on disk.
Two agents working in separate worktrees cannot overwrite each other's files because they operate in different directories on different branches. When the agents finish, the result is a set of clean, distinct branches ready for standard review and merge. aoe handles worktree creation and cleanup automatically.
Docker sandboxing
Enabling Docker sandboxing for a session runs the agent inside an isolated container. Volume mounts are configurable, giving explicit control over which host directories the container can access.
This prevents an agent from accessing or modifying files outside the directories you permit. It is useful when running agents that execute shell commands or interact with the file system autonomously.
Tmux persistence
Every aoe session is a Tmux session. Closing the aoe dashboard or the parent terminal does not stop the agents. Running aoe launch again reconnects to all existing sessions in the state they were left. This makes long-running tasks practical and allows checking on agents over SSH from another machine.
Final thoughts
aoe is most useful at the point where managing multiple agents manually starts producing errors or significant friction, typically around three or more concurrent sessions. For a single agent, a direct terminal is sufficient.
The Git worktree integration is the feature that matters most for team codebases, since it enforces branch isolation without requiring manual branch management. Docker sandboxing adds meaningful protection when running agents with broad file system access.
The tool is built on Tmux and Git, both well-established technologies, which keeps the foundation stable. The TUI layer adds usability without obscuring what is happening underneath.
Source code and installation documentation are at github.com/dshiloh/agent-of-empires.