Skip to main content
herdr runs coding agents in terminal panes. Its Mirage plugin opens an agent pane whose commands go to a Mirage workspace, and puts the workspace’s shell, command log, asks and lifecycle a key away. herdr still runs the agent and tracks its state; Mirage holds the files and runs the commands.

Install

Install the Mirage CLI with its SSH extra and herdr 0.9 or later, then the plugin. The shell and Codex panes need the extra where the Mirage server runs: the CLI’s own install when it starts the local server, the server’s environment otherwise.
Bind its two actions in ~/.config/herdr/config.toml:
~/.config/herdr/config.toml
The plugin calls mirage, mirage-bash, ssh, jq, claude and codex from herdr’s PATH. Set MIRAGE_BIN before starting herdr to use another mirage.

Workspaces

prefix+m lists the server’s workspaces. Pick one by number: From the list itself, n creates a workspace, o loads one from a snapshot and e edits the config. The agent pane and the commands start in the focused pane’s directory. mirage-bash runs each command from that directory, so the workspace must mount it at the same path. n and e write a starter config there when it has none, .mirage/workspace.yaml, that does:
.mirage/workspace.yaml
To mount more, press e, add them, then press n. Codex reads its environment from CODEX_HOME, so each workspace gets its own under herdr’s plugin state folder. It links your auth.json, config.toml and AGENTS.md from ~/.codex and keeps its own history.

Asks

A command rule with ask refuses a line and names an ask id. prefix+a lists the pending asks of every running workspace; pick one and press a to allow it once, s to allow it for the session, or d to deny it. The agent’s retry then runs, or is refused.

MCP and FUSE

The plugin sends an agent’s commands to the workspace. The other two ways in need no plugin:
  • MCP. Add mirage mcp -w <workspace> to the agent (Claude Code, Codex), and every pane that runs it gets that workspace’s tools. Mirage’s agent plugins serve their own workspace from .mirage/workspace.yaml instead.
  • FUSE. Mount the workspace as a folder (Claude Code, Codex) and start the agent in it from any herdr pane.