Skip to content

Controlling Hammock from agents

Your agents can work in Hammock as you do: run a dev server in a pane of its own, check the page in a browser, tap through your app in a simulator, show you a diff and answer your comments on it. They do it through hmk mcp, Hammock’s MCP server, or the hmk command in their shell. Setting up agents explains how to register the server.

The MCP reference lists every tool and its parameters, in these groups: panes, browser panes, simulator panes, log panes, editor panes, diff panes and reviews, agent sessions and automations. Examples of controlling Hammock from agents shows them at work.

Hammock decides what an agent may do from the pane it runs in, whether it uses MCP tools or hmk commands.

  • Read your Groups. An agent can read every pane in your own Groups and on your linked computers, but not Groups shared with you, unless you allow it.
  • Fully control the panes it opens, and panes those started, without asking.
  • Ask before touching your other panes: typing into, interrupting or closing them, driving their browsers or simulators, or acting on a linked computer’s pane.
  • Ask before saving or deleting an automation. Running or pausing one asks unless the agent saved it.
  • Edit files, not your editor. It points at lines in an editor pane, but changes files on disk, and the pane reloads them.
  • Mark review threads addressed, not resolved. Resolving them is yours.
  • Leave the rest to you. Pairing, sharing, linking computers and remote access aren’t available to agents, and an agent can’t answer a permission request.

To use a browser or simulator pane yourself, click Take Over on its agent badge: agents can look at it, but not act on it, until you hand it back. hmk audit shows what agents have done recently.

Answer wherever is handiest; the agent waits until you do.

  • In the Mac app, in the sidebar’s Needs You list: Allow Once, Always in Group (where offered), or Deny.
  • In the agent’s pane: all of the request shows as a card, in place of the agent view’s message box or over the bottom of the terminal. Click (or tap) the request in Needs You to go there.
  • On your phone, in the app or from the notification.
  • From a terminal: hmk ls lists pending requests, and hmk grant allow|always|deny ID answers one.

Agents can also run hmk directly, for example to hand you a full-screen program and carry on when you quit it:

Terminal window
hmk tab new --name Git --wait -- lazygit
hmk split "$HMK_PANE_ID" --wait -- vim notes.md

See the CLI reference.

Turn off any kind of pane you don’t want in Settings ▸ Tools (browser-enabled = false and so on, in the config file). Its tools then disappear from the MCP server too. The same pane turns off automations (schedules-enabled = false), and agents’ searching of past sessions (sessions-enabled = false), if you handle those your own way.

Pane output, logs and web pages come from programs and websites, not from you. Hammock marks them as untrusted and tells agents not to follow instructions in them, but a page or program can still try to trick an agent.

These docs describe Hammock 2026.11.0. What's new