Skip to content

SOP: Integration Setup

Fresh

Install official agent integrations so Herdr gets authoritative lifecycle state, native session identity for restore, or both.

Decide what you need

Integration typeAgentsWhat you get
Lifecycle authorityPi, OMP, Kimi Code CLI, OpenCode, Kilo Code CLI, Hermes AgentHook/plugin events author idle, working, blocked directly
Session identityClaude Code, Codex, GitHub Copilot CLI, Droid, Qoder CLI, Cursor Agent CLINative session references for restore; state still comes from screen manifest detection

Procedure

  1. Confirm the agent's config directory exists (each integration requires it). Examples: ~/.claude for Claude Code, ~/.codex for Codex, ~/.copilot for Copilot, ~/.factory for Droid, ~/.kimi-code for Kimi, ~/.config/opencode for OpenCode, ~/.config/kilo for Kilo, ~/.hermes for Hermes, ~/.qoder for Qoder, ~/.cursor for Cursor.

  2. Install from inside Herdr (Settings > integrations tab installs recommended integrations for agents found on PATH), or run manually:

herdr integration install claude
herdr integration install codex
herdr integration install pi
herdr integration install copilot
herdr integration install cursor
herdr integration install droid
herdr integration install kimi
herdr integration install opencode
herdr integration install kilo
herdr integration install hermes
herdr integration install qodercli
herdr integration install omp
  1. Verify versions:
herdr integration status
herdr integration status --outdated-only
  1. For Hermes only: restart Hermes after installing so the plugin loads.

  2. Confirm native session restore minimums (run herdr integration status and compare):

AgentMinimum integration versionResume command
Pi2pi --session <path-or-id>
Claude Code5claude --resume <id>
Codex5codex resume <id>
Cursor Agent CLI1cursor-agent --resume <id>
GitHub Copilot CLI2copilot --resume=<id>
Droid2droid --resume <id>
Kimi Code CLI3kimi --session <id>
Qoder CLI2qodercli --resume <id>
OpenCode5opencode --session <id>
Kilo Code CLI1kilo --session <id>
Hermes Agent2hermes --resume <id>

OMP version 2 reports state only, no session restore.

What each install writes

AgentFiles written
Claude Codehooks/herdr-agent-state.sh + Herdr hook entries in settings.json (in ~/.claude or CLAUDE_CONFIG_DIR)
Codexherdr-agent-state.sh, hooks.json update, [features] hooks = true in config.toml (in ~/.codex or CODEX_HOME)
Copilothooks/herdr-agent-state.sh + SessionStart hook in settings.json
Pi / OMPextensions/herdr-agent-state.ts / herdr-omp-agent-state.ts under ~/.pi / ~/.omp (or PI_CODING_AGENT_DIR)
Kimihooks/herdr-agent-state.sh + [[hooks]] block in config.toml
OpenCode / Kiloplugin .js file under the agent's config plugins directory
Hermes~/.hermes/plugins/herdr-agent-state/ + enabled in config.yaml

Uninstall (herdr integration uninstall <agent>) removes only Herdr's own entries and scripts.

Troubleshooting

  • Wrong state shown: run herdr agent explain <target> to see which manifest rule matched and why.
  • Integration state looks wrong: confirm the agent runs inside Herdr and the hook/plugin was installed for the same user account.
  • Read what Herdr sees: herdr pane read 1-1 --source recent --lines 50

Verification checklist

  • [ ] herdr integration status lists the expected integrations at current versions
  • [ ] Agent shows correct working / blocked / done / idle in the sidebar
  • [ ] After herdr server stop + restart, supported agent panes resume their native sessions