Treeship
Integrations

Hermes

Integrate Treeship with Hermes agents via skill file and MCP server.

Hermes agents support two integration methods: a skill file for session discipline and the Treeship MCP server for MCP-routed tool-call receipts. The best setup uses both.

Hermes does not currently have a Treeship-native in-process hook. Coverage is skill-driven plus MCP-routed, so use treeship wrap for important shell commands and session reports as a backstop.

Method 1: Skill file

Install Treeship CLI

curl -fsSL https://treeship.dev/install | sh
treeship init

Install the Treeship skill

mkdir -p ~/.hermes/skills/treeship
curl -fsSL https://raw.githubusercontent.com/zerkerlabs/treeship/main/integrations/hermes/treeship.skill/SKILL.md \
  -o ~/.hermes/skills/treeship/SKILL.md

The Hermes agent reads the skill and follows the instructions to start/close sessions, wrap side-effectful shell commands, record approvals and handoffs, and avoid publishing secrets.

Method 2: MCP server

Add Treeship as an MCP server in Hermes:

hermes mcp add treeship --command npx \
  --env TREESHIP_ACTOR=agent://hermes TREESHIP_HUB_ENDPOINT=https://api.treeship.dev \
  --args -y @treeship/mcp

Then make sure the configured server has the Hermes actor in its environment:

# ~/.hermes/config.yaml
mcp_servers:
  treeship:
    command: npx
    args: ["-y", "@treeship/mcp"]
    env:
      TREESHIP_ACTOR: "agent://hermes"
      TREESHIP_HUB_ENDPOINT: "https://api.treeship.dev"

TREESHIP_ACTOR=agent://hermes is required. Without it, receipts may fall back to a generic MCP identity.

treeship agent register --name hermes --own-key --tools mcp,terminal,file,git --description "Hermes Agent"
treeship session start --name "hermes: first verified session"

What appears in the receipt

SectionSkill fileMCP server
CommandsVia treeship wrap [EXPLICIT]Not applicable
Tool callsNot applicableMCP-routed tool calls [AUTO]
Agent identityagent://hermes in events [EXPLICIT]TREESHIP_ACTOR=agent://hermes [AUTO]
File operationsSession report / git reconcile backstop [AUTO]Routed file-tool metadata when available [AUTO]
Approvalstreeship approve + approval nonce [EXPLICIT]Not applicable
Handoffstreeship attest handoff or session event [EXPLICIT]Not applicable

Expected outcome: a Hermes session can produce a local-verifiable Treeship receipt and optional Hub report. MCP-routed tool calls can verify as Hermes-owned when the bridge signs with a registered agent://hermes key.