Agent CLI Farm
A tmux session manager for running, monitoring, saving, restoring, and looping Codex, Claude, Gemini, and custom coding-agent CLIs.
At a Glance
Agent CLI Farm core tool is released under the MIT License, free to use, copy, modify and distribute.
Engagement
Available On
Listed Nov 2026
About Agent CLI Farm
Agent CLI Farm is an open-source, MIT-licensed tool published by the GitHub user waskosky. It manages long-lived tmux sessions that host Codex, Claude, Gemini, or custom coding-agent CLIs, with logging, monitoring, and exact session save/restore. The project was formerly named Codex CLI Farm, and the older codex-* commands, CODEX_* environment variables, and codexfarm state paths remain supported.
What It Is
Agent CLI Farm is a command-line toolkit built on tmux for people who run several coding-agent CLIs at once. Commands such as codex-add, claude-add, and gemini-add launch agent instances in named tmux farms. A board session links the windows for quick switching, and codex-watch provides a consolidated log view.
Session Recovery
The save and restore workflow records each provider conversation by exact session ID in a manifest. codex-save snapshots the farm and codex-restore recreates windows from it, with retained snapshot history. codex-farm-reboot runs the full save, stop, and restore sequence. Optional systemd user services or macOS LaunchAgents autosave every five minutes and can restore sessions at login. codex-doctor repairs and verifies helpers, hooks, and manifest coverage. Optional conversation archives and a tmux-deep-history integration provide additional history capture.
Prompt Loopers
codex-looper and claude-looper run a prompt or prompt sequence repeatedly. They support retries, completion gates, git backup branches, no-progress circuit breakers, presets, and logs. State is written to files so codex-status loopers can inspect runs, and operator commands can stop a run or record focus and notes without attaching.
Monitoring and Resource Safeguards
An annotator tracks RUN, READY, or ERR state per window using output and command heuristics, and it notifies when a window becomes READY. It also warns about low host memory and windows with high memory use. Optional, opt-in features include agent protection and batch job queueing through codex-job, an investigator that diagnoses memory incidents, host memory preferences applied with separate sudo consent, and CPU temperature safeguards for WSL.
Setup Path
Requirements are Bash 3.2+, Python 3.10+, tmux, and the selected provider CLI on PATH. setup.sh installs helper scripts into $HOME/bin and merges session-identity hooks into provider settings. It supports macOS, Linux, and WSL2 on Windows.
Community Discussions
Be the first to start a conversation about Agent CLI Farm
Share your experience with Agent CLI Farm, ask questions, or help others learn from your insights.
Pricing
Open Source (MIT)
Agent CLI Farm core tool is released under the MIT License, free to use, copy, modify and distribute.
- tmux session manager for Codex, Claude, Gemini and custom agent CLIs
- Exact snapshot/restore of provider conversations
- Prompt loopers with retries, completion gates and git safety checks
- Unified monitoring and board session
- Optional tmux-deep-history integration
Capabilities
Key Features
- Persistent tmux session management for Codex, Claude, Gemini, and custom agent CLIs
- Exact session snapshot and restore by provider conversation ID
- Autosave and autorestore via systemd user services or macOS LaunchAgents
- Prompt loopers with retries, completion gates, git safety checks, and circuit breakers
- Unified log monitoring with codex-watch
- Board session for fast navigation between instances
- RUN/READY/ERR status tracking with READY notifications
- Memory warnings and high-memory window labels
- Optional deep history transcripts via tmux-deep-history
- Optional managed batch jobs, thermal safeguards, and incident investigation
- codex-doctor repair and recovery verification
