Sourceable env file for work-identity agent launchers.
Copy to ~/.config/swarm-mcp/work.env and edit locally.
export AGENT_IDENTITY=work export SWARM_IDENTITY=work export SWARM_DB_PATH="$HOME/.swarm-mcp-work/swarm.db"
Work herdr control-plane path. Keep work separate from the default herdr
profile socket and from the personal sandbox-visible socket.
export SWARM_MCP_WORK_HERDR_SOCKET_ROOT="${SWARM_MCP_WORK_HERDR_SOCKET_ROOT:-${HERMES_HOST_HOME:-$HOME}/.config/herdr/sessions/work}" export HERDR_SOCKET_PATH="${HERDR_SOCKET_PATH:-$SWARM_MCP_WORK_HERDR_SOCKET_ROOT/herdr.sock}"
Harness aliases for this profile. Each canonical agent gets a worker alias
(SWARM_HARNESS_) and a gateway alias (SWARM_HARNESS__LEAD). The bare
binary name (raw claude/codex/...) is the third "vanilla" shape — it
skips swarm registration entirely. See env/README.md "Three ways to launch
each agent" for the long form.
Note: this example deliberately shadows the canonical codex/opencode
binary names with the work worker aliases (the generator uses `command
codex` internally so there's no recursion). The trade-off is that there
is no vanilla path for those two binaries from this shell — codex
always registers as identity:work. If you want vanilla available too,
pick non-shadowing worker names (e.g. SWARM_HARNESS_CODEX=cdw).
hermesw is the gateway alias; hermesw-worker is the worker.
export SWARM_HARNESS_CLAUDE=clawd export SWARM_HARNESS_CODEX=codex export SWARM_HARNESS_OPENCODE=opencode export SWARM_HARNESS_HERMES=hermesw-worker export SWARM_HARNESS_CLAUDE_LEAD=clawdg export SWARM_HARNESS_CODEX_LEAD=codexg export SWARM_HARNESS_OPENCODE_LEAD=opencodeg export SWARM_HARNESS_HERMES_LEAD=hermesw export SWARM_HARNESS_HERDR=herdrw
Let hooks/scripts find the local swarm-mcp CLI when the package binary is not installed.
export SWARM_MCP_BIN="bun run /absolute/path/to/swarm-mcp/src/cli.ts"
Runtime config roots. Keep account-scoped MCP auth in these roots.
export CODEX_HOME="$HOME/.codex" export OPENCODE_CONFIG_DIR="$HOME/.config/opencode"
Claude Code work profile usually uses the default config root. Uncomment only
if your work Claude config lives elsewhere.
export CLAUDE_CONFIG_DIR="$HOME/.claude-work"
Work tracker routing metadata. This is policy, not credentials.
export SWARM_WORK_TRACKER='{ "provider": "linear", "mcp": "linear_work", "team": "ENG" }'
