Skip to content

Learning note

Repo Review: njbrake/agent-of-empires

Agent of Empires is an actively maintained Rust session manager that wraps tmux, git worktrees, optional Docker sandboxing, and a browser dashboard around multi-agent coding workflows.

AI-assisted: This post was generated with AI assistance from GitHub repository metadata, documentation, and selected source files.

Review note: This analysis is based on repository metadata, documentation, and selected source files. It is not a full security audit. Confidence: high.

Quick facts

GitHub: njbrake/agent-of-empires

Primary language: Rust

Stars: 1,794

License: MIT License

Last updated: 2026-04-30T02:56:02Z

Documentation signal: excellent

Test signal: strong

Maintenance signal: active

What the project does

Agent of Empires, often shortened to AoE, is a session manager for AI coding agents on Linux and macOS. Its core promise is simple: run multiple agents at once, keep each one in a persistent tmux session, and give the operator a single place to see status, attach to terminals, review diffs, and manage branches.

The README positions AoE as a practical response to a real workflow problem. One coding agent is easy to supervise, but several agents working across different branches quickly create operational overhead. AoE combines a terminal TUI, CLI commands, git worktree management, optional Docker sandboxing, and a beta web dashboard so that parallel agent work is easier to start, inspect, and resume.

Architecture and implementation signals

The repository is primarily Rust and is organized around clear runtime concerns: CLI commands, tmux integration, session storage, git and worktree helpers, container runtime abstractions, terminal handling, sound notifications, migrations, and a server module for the optional web dashboard. That structure is a good sign for a tool that has to coordinate long-running terminal processes without losing track of state.

The dependency choices match the product surface. Ratatui and crossterm power the terminal interface, Tokio handles async work, portable-pty and tmux-related modules support terminal/session behavior, git2 and similar support repository operations and diffing, and optional Axum plus web-push related crates back the serve feature. The feature flag around the web server also keeps the default binary surface smaller than an always-on server design.

Developer experience

AoE has unusually thorough documentation for a fast-moving developer tool. The repo includes installation instructions, quick-start material, a CLI reference, development docs, and focused guides for sandboxing, worktrees, repo config, remote phone access, the web dashboard, diff view, session resume, and tmux status bar integration.

The supported agent list is broad: Claude Code, OpenCode, Mistral Vibe, Codex CLI, Gemini CLI, Cursor CLI, Copilot CLI, Pi.dev, Factory Droid, and Hermes are all called out in the README. More importantly, AoE does not try to replace those tools. It provides a management layer around their terminal processes, which makes the design easier to trust and easier to adopt incrementally.

Quality and maintenance

Maintenance signals are strong. The repository shows recent activity, GitHub Actions workflows for CI, docs, Docker, releases, and release preparation, plus Dependabot configuration and standard contribution files. The latest inspected commit was from 2026-04-29 and GitHub metadata reported an update on 2026-04-30.

The test surface is also meaningful. The repository has unit tests in source modules and integration/e2e-style tests covering configuration merging, session lifecycle, status detection, worktrees, sandbox integration, update behavior, TUI launch, profile management, hooks config, and CLI behavior. For a terminal orchestration tool, that breadth is more useful than a simple smoke-test-only suite.

Where it fits best

AoE is most compelling for developers who already use terminal-based coding agents and want to supervise more than one at a time. The tmux-first model is a pragmatic foundation because sessions survive disconnects, SSH drops, and terminal restarts. Git worktrees make branch isolation more natural, and Docker sandboxing can reduce the risk of agents modifying or reading from the wrong environment when configured carefully.

The web dashboard and remote phone access are especially interesting because they treat agent supervision as something that may happen away from the primary laptop. That is useful for long-running agent tasks, but it also raises the importance of authentication, tunnel configuration, and cautious exposure of terminal sessions. The project documentation acknowledges the web dashboard as beta, which is the right expectation to set.

Bottom line

Agent of Empires looks like a serious, actively developed attempt to make parallel AI coding-agent workflows operationally manageable. Its strongest points are the tmux-native persistence model, worktree integration, broad agent compatibility, strong documentation, and a substantial Rust test suite.

The main caveat is that AoE sits close to powerful developer primitives: terminals, repositories, containers, tunnels, and agent credentials. Teams should review their sandbox, authentication, and remote-access settings before standardizing on it. For individual developers and small teams experimenting with multi-agent development, though, AoE is one of the more thoughtfully engineered control-plane approaches in this space.

Limitations

This review is based on repository metadata, documentation, configuration files, and selected source and test files from a shallow clone, not a full line-by-line audit.

The review did not run the complete test suite locally, so claims about test depth are based on source inspection and CI configuration rather than fresh execution results.

The web dashboard is labeled beta by the project, so browser-based workflows should be evaluated against your own security and reliability requirements before relying on them for production work.

Sources