Skip to content

Setting up agents

Hammock recognises agents without any setup, by their process and screen. Its hooks make an agent’s state exact and tell Hammock which session a pane is running, which the agent view and resuming rely on. Its MCP server gives your agents Hammock’s tools.

Hammock’s setup offers to install hooks the first time you open it. Run it again from Settings ▸ Agents ▸ Install Hooks & Tools, or:

Terminal window
hmk hooks install

This adds Hammock’s hooks to the config of every agent it finds on your Mac, and registers Hammock’s MCP server with those that take one. It backs up each file it changes, and leaves your own hooks alone.

Option What it does
--harness claude,codex,… Set up only these agents, by id: claude, codex, gemini, cursor, copilot, droid and so on.
--dry-run Show what would change, without writing anything. Settings ▸ Agents ▸ Preview Changes does the same.
--uninstall Take Hammock’s hooks and MCP server out again. Settings ▸ Agents ▸ Remove does the same.

The supported agents table shows which agents have hooks.

hmk hooks print prints the hook configuration for Claude Code and Codex, to merge in yourself: into ~/.claude/settings.json for Claude Code, or ~/.codex/hooks.json for Codex, with hooks = true under [features] in ~/.codex/config.toml.

hmk mcp is Hammock’s MCP server (what it offers). hmk hooks install registers it for you. To add it yourself, point your agent at the hmk inside the app, with the argument mcp. For Claude Code:

Terminal window
claude mcp add --scope user hammock -- /Applications/Hammock.app/Contents/Helpers/hmk mcp

For Codex, in ~/.codex/config.toml:

[mcp_servers.hammock]
command = "/Applications/Hammock.app/Contents/Helpers/hmk"
args = ["mcp"]

Agents that take a JSON file of MCP servers use the same shape:

{
"mcpServers": {
"hammock": {
"command": "/Applications/Hammock.app/Contents/Helpers/hmk",
"args": ["mcp"]
}
}
}

Outside a Hammock pane the server offers no tools, so it’s safe to register for every project.

Settings ▸ Agents, Agent View, Notifications and Tools hold the settings for how Hammock treats agents: sleeping idle ones, usage limits, the agent view’s look, which notifications you get, and which kinds of pane agents can use. The config reference has every key.

Agents not in the supported agents table aren’t recognised, and that table says which features each one lacks. If you’d like one added, open an issue.

These docs describe Hammock 2026.11.0. What's new