Agent Manager is an open-source terminal-based agent harness and session orchestrator developed by Yoan Wai. It is built to run, monitor, and manage the execution of multiple command-line AI coding assistants from a unified control interface, tracking agent lifecycles across terminal panes. In daily use, Agent Manager acts as a supervisor over CLI agents such as Command Code (`cmd`), `pi`, and other terminal assistants. It continuously monitors TUI outputs using configured status rules, inspecting pane elements such as composer prompts, spinners, turn-completion markers, and approval dialogues. This allows the harness to automatically track state transitions across waiting, working, tool approval, and finished states without interfering with the underlying agent. What distinguishes Agent Manager is its resilient terminal state-matching engine and session tracking. Rather than requiring agents to conform to proprietary telemetry APIs, it uses live terminal capture parsers to detect tool approval prompts, error states, and rate limit banners, alongside an integrated SQLite-backed session store that supports reviving and resuming exact conversation threads across agent restarts. Agent Manager is open-source software distributed via GitHub. It is implemented with lightweight local dependencies, including local SQLite storage and clipboard integration, making it straightforward to run in terminal-first developer environments.
Tags: agent harness, cli, coding agent, developer tools, terminal
cmd) and pi. - Session Persistence and Revival — Tracks session IDs in an internal SQLite store to resume and continue conversations automatically. - Interactive Dialog Detection — Identifies tool execution approval prompts, trust dialogues, and navigation menus across agent interfaces. - Error and Limit Handling — Detects runtime errors and insufficient credit/rate-limit banners directly from terminal output buffers. - Multi-Agent Coordination — Provides structured coordination notes and subcommands across active coding agent sessions.cmd --continue).Agent Manager is built for developers and automation engineers who actively use terminal-based AI coding agents (such as Command Code or Pi) and need a centralized harness to track execution status, approvals, and sessions. It is less suited for developers seeking all-in-one GUI environments or built-in IDE chat panels.
bash git clone https://github.com/YoanWai/agent-manager.git cd agent-manager cargo build --release Move the compiled binary to your system PATH: bash sudo cp target/release/agent-manager /usr/local/bin/bash agent-manager --help Ensure that the supported CLI agents (such as cmd or pi) are installed and configured in your environment PATH.bash # Start a managed session with Command Code agent-manager run cmd # Resume a previous conversation session from history agent-manager revivePart of CLI Coding Agents
Categories: AI Coding Agents, Code Assistants, Developer Tools