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.~/.config/herdr/config.toml:
~/.config/herdr/config.toml
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
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 withask
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.yamlinstead. - FUSE. Mount the workspace as a folder (Claude Code, Codex) and start the agent in it from any herdr pane.