Corgi: an agent-terminal multiplexer with persistent sessions and token tracking
Corgi is a tmux-style daemon multiplexer adapted for AI agents: it keeps sessions alive in the background, isolates command history and working directories per workspace, and tracks token usage and file changes with a replay feature. It supports Claude, Codex and Pi, integrates with Ghostty and Kitty, and flags sessions as "needs you" for manual human handoff.
- Sessions keep running after the terminal or SSH connection closes
- Command history and working directory are isolated per workspace
- Per-agent token usage tracking and replay of every touched file
- Isolation is not a sandbox: filesystem and network are shared
Read next
Software