CLI reference
hmk is Hammock’s command line: it works from any terminal on a Mac or Linux machine running the Hammock Server (see The CLI for installing it). This page is hmk help, sorted. For a guided tour, see The CLI.
Workspace
Section titled “Workspace”Groups, tabs and panes, and what’s in them.
hmk ls
Section titled “hmk ls”hmk ls [--json] [--on COMPUTER]List Groups, tabs and panes (–json: for scripts, with each agent’s state and whether you’ve seen it; –on: only that linked computer’s, or “this”).
hmk focus
Section titled “hmk focus”hmk focus PANE|TABShow a pane (or a tab’s focused pane) in the Mac app.
hmk group
Section titled “hmk group”hmk group new [NAME] [--on COMPUTER] [--folder DIR]Create a Group (on a linked computer); –folder: its tabs open in DIR, and it’s named after DIR unless NAME is given.
hmk group rename GROUP NAMEhmk group icon GROUP [EMOJI]Set (or with no emoji, clear) a Group’s emoji.
hmk group icon GROUP --image FILESet its picture (kept in Hammock; an emoji shows instead if set; a project’s .hammock/icon.png shows when none is) | –no-image.
hmk group folder GROUP [DIR]Show (or set) where a Group’s new tabs open; it follows the folder you last worked in there.
hmk group move GROUP INDEXMove a Group (yours or shared with you) in the sidebar.
hmk group rm GROUPhmk tab
Section titled “hmk tab”hmk tab new [GROUP] [--name N] [--cwd DIR] [--wait] [-- CMD...]Open a tab (in GROUP, by default the one this runs in); –wait: until CMD ends, exiting with its status (a clean exit closes the tab, a failure stays open to be read); 125 if its terminal couldn’t start.
hmk tab rename TAB NAMEhmk tab name NAMEName the tab this runs in (for agents; unnamed tabs are named automatically).
hmk tab merge TAB INTO [--down]Put a tab’s panes beside (or below) another tab’s.
hmk tab break PANEMove a pane out into a tab of its own.
hmk split
Section titled “hmk split”hmk split PANE [--down|--left|--up] [--cwd DIR] [--wait] [-- CMD...]Split a pane (to the right by default); –wait as for tab new.
hmk split PANE --float [--cwd DIR] [--wait] [-- CMD...]Open a pane floating over PANE’s tab.
hmk rotate
Section titled “hmk rotate”hmk rotate PANETurn the split PANE is in from side by side to stacked, or back.
hmk float
Section titled “hmk float”hmk float PANE [--at X,Y,W,H]Lift a pane out of its tab’s splits to float over them (–at: where, in fractions of the tab, e.g. 0.5,0.5,0.45,0.45).
hmk dock
Section titled “hmk dock”hmk dock PANE [--beside PANE [--down|--left|--up]]Put a floating pane back in the splits (where it came from, or beside another pane).
hmk minimise
Section titled “hmk minimise”hmk minimise PANE | restore PANEPut a floating pane on its tab’s shelf, or bring it back.
hmk floats
Section titled “hmk floats”hmk floats TABMinimise every floating pane in a tab, or restore them.
hmk close
Section titled “hmk close”hmk close PANE|TAB|GROUPhmk reopen
Section titled “hmk reopen”hmk reopenReopen the last tab or pane you closed (agents resume their sessions).
hmk rerun
Section titled “hmk rerun”hmk rerun PANERun an ended pane’s program again, in the same pane: an agent resumes its session.
hmk attach
Section titled “hmk attach”hmk attach PANEAttach this terminal (Ctrl-] detaches).
hmk send
Section titled “hmk send”hmk send PANE [TEXT] [--key NAME]... [--enter]Type TEXT into a pane, then press keys (escape, ctrl-c, up, f2…) and Enter, each on its own.
hmk read
Section titled “hmk read”hmk read PANE [--scrollback]Print a pane’s screen as text (an editor pane’s: its text).
hmk theme
Section titled “hmk theme”hmk theme [NAME]List Hammock’s themes (* the one in use), or use one (any case; custom: your own terminal themes, window theme, agent colour, pane border, sidebar and toolbar colours; those set before, else the current theme’s).
Browser, simulator, log, editor and diff panes
Section titled “Browser, simulator, log, editor and diff panes”Panes that aren’t terminals.
hmk browser
Section titled “hmk browser”hmk browser URL [--group GROUP] [--split PANE [--down]]Open a web page in a browser tab (or split).
hmk nav
Section titled “hmk nav”hmk nav PANE URL|back|forward|reload|stopDrive a browser pane.
hmk devtools
Section titled “hmk devtools”hmk devtools PANE [--down]Show a browser pane’s DevTools in a pane beside it.
hmk show
Section titled “hmk show”hmk show FILE|URL [--pane PANE | --split PANE]Open a file (HTML, Markdown, an image, a PDF) or a page in a browser pane beside this one; again from this pane, it reloads in that one (or one in this tab already on that page); –pane: in that browser pane; –split: beside that pane.
hmk sim
Section titled “hmk sim”hmk sim [DEVICE] [--group G] [--split PANE]Open a simulator, or an Android emulator (avd:NAME), in a tab (or split).
hmk sim list | shot PANE [FILE] [--pixels] [--clipboard] | tap PANE X Y | type PANE TEXT | button PANE NAME | shutdown PANEhmk sim remote PANE BUTTON [--repeat N] [--hold MS] | remote PANE swipe DIRECTIONAn Apple TV’s remote.
hmk log
Section titled “hmk log”hmk log file PATH | macos | sim [DEVICE] | logcat | -- CMD...[–group G | –split PANE] open a log pane (macos, sim: [–process P] [–predicate P] [–level info|debug]; logcat: [–serial S]).
hmk log read PANE [TEXT] [--level L,...] [--process P] [--tag T] [--limit N] [--follow] [--json]A log pane’s entries, filtered (TEXT: words, or /regex/).
hmk log clear PANEForget a log pane’s entries.
hmk edit
Section titled “hmk edit”hmk edit FILE[:LINE[:COL][-LINE[:COL]]] [--to LINE[:COL]] [--down | --tab | --split PANE | --group G] [--large] [--view source|preview|split]Open a file in an editor pane beside this one (–tab: in a new tab; outside a pane, always), with those lines selected; one in the tab already on that file is reused; –large: over 5 MB; –view: Markdown rendered (preview), or beside its source (split).
hmk edit --read PANE [--numbers] [--lines FROM-TO] [--json]An editor pane’s text, unsaved edits included (–json: with its file, whether it’s saved, and the selection).
hmk edit --select PANE LINE[:COL][-LINE[:COL]]Select lines in an editor pane (LINE alone: all of it) and scroll to them.
hmk edit --set-view PANE source|preview|splitShow an editor pane’s file as its source, rendered (Markdown), or both.
hmk diff
Section titled “hmk diff”hmk diff [REV | FROM..TO | FROM...TO] [--uncommitted | --branch [--base B] [--with-uncommitted]] [--repo DIR] [--split | --unified] [--ignore-whitespace] [--beside PANE [--down] | --group G] [--name NAME] [--wait]Open a git diff to review in a new tab after this pane’s (–beside: split beside a pane). With no REV: this branch against its base, uncommitted changes too, or on the default branch what’s uncommitted; REV: one commit; –wait: until closed.
hmk review
Section titled “hmk review”hmk review [list [--all] | show [REVIEW|PANE] [--all-threads]] [--json]The comment threads on diffs: yours (sent to you, or on diffs you opened), open ones.
hmk review reply THREAD TEXT | address THREAD [NOTE] | comment [REVIEW|PANE] FILE:LINE[-LINE] TEXTAnswer a thread, mark it addressed (the user resolves it), or start one on a diff’s new side.
hmk review wait [REVIEW|PANE] [--timeout S]Until the user sends comments or resolves threads.
Agents
Section titled “Agents”Starting, finding and resuming agents, and what they may do.
hmk agent
Section titled “hmk agent”hmk agent [AGENT] [--dir DIR] [--group GROUP] [--on COMPUTER] [--worktree NAME] [PROMPT]Start an agent in a new tab (in DIR, by default here), in GROUP or the folder’s Group (or a new one); –on a linked computer (there, DIR is absolute or ~/…, its home; by default ~); no AGENT: the computer’s default-agent; –worktree: in a new git worktree of DIR’s repository called NAME (one there is reused), made the repository’s own way (.hammock/config, a worktree recipe, the agent’s own –worktree, else git worktree add on branch NAME).
hmk switch
Section titled “hmk switch”hmk switch PANE AGENTContinue a pane’s agent session in another agent.
hmk sleep
Section titled “hmk sleep”hmk sleep [PANE]Put a pane’s idle agent to sleep, by default this pane’s: its process ends, freeing its memory, until it’s woken (the apps’ Wake button, typing in it, or hmk wake); agent-sleep in the config file does it by itself.
hmk wake
Section titled “hmk wake”hmk wake [PANE]Wake a sleeping agent now.
hmk session-link
Section titled “hmk session-link”hmk session-link [PANE]Print the web link to a pane’s agent session (Claude Code’s Remote Control), by default this pane’s.
hmk sessions
Section titled “hmk sessions”hmk sessions [QUERY] [--limit N] [--json] [--folder DIR] [--group GROUP] [--everywhere] [--on COMPUTER]Find agents’ sessions on this Mac, or a linked computer (an agent: its project’s; –everywhere asks you); –group: only those in the folders open in GROUP.
hmk sessions read ID [QUERY] [--limit N]A session’s messages matching QUERY (with those around them), or its latest (every word, by its start, in titles, folders and conversations).
hmk resume
Section titled “hmk resume”hmk resume ID [--in AGENT] [--group GROUP] [--on COMPUTER]Resume a session in a new tab in its folder’s Group (or in the other agent, converted); –on: a linked computer’s.
hmk grant
Section titled “hmk grant”hmk grant allow|always|deny IDAnswer an agent’s permission request.
hmk audit
Section titled “hmk audit”hmk audit [N]Show the last N audited agent and remote actions.
hmk automation
Section titled “hmk automation”hmk automation [ls]List automations: an agent’s prompt, or a command, run on a schedule or when something happens, each run a new tab in its Group.
hmk automation add [NAME] (--at HH:MM [--days weekdays|weekends|mon,tue…] | --cron EXPR | --once WHEN) [--claude|--codex|--AGENT|--command] [--dir DIR] [--group G] [OPTIONS] -- PROMPT|COMMANDAdd one (an agent’s add or edit asks you first; hmk automation help lists the options).
hmk automation add … --trigger T [--events-only] [--cooldown S] -- PROMPT|COMMANDRun it when something happens: a GitHub event, an agent finishing, a command failing, a log line, files changing, a calendar event, Slack, its webhook (hmk automation help lists them).
hmk automation edit|show|run|pause|resume|skip|rm NAMEChange, see (its runs), run now, pause, skip the next run, delete.
hmk automation webhook NAME [--new]Print its webhook’s URL (–new: a new secret).
hmk trigger
Section titled “hmk trigger”hmk trigger NAME [--data TEXT|-|@FILE]Run an automation now as an event, data (- for stdin) what happened: its cooldown applies, and the run gets the data.
hmk hook
Section titled “hmk hook”hmk hook HARNESS [EVENT]Forward an agent hook event (stdin or JSON arg).
hmk hooks
Section titled “hmk hooks”hmk hooks printShow hook config for Claude Code and Codex (install covers the rest).
hmk hooks install [--dry-run [--json]] [--harness claude,codex,…]Add Hammock hooks to your agents’ config.
hmk hooks install --uninstallRemove them again.
hmk mcp
Section titled “hmk mcp”hmk mcpRun the MCP server on stdio.
Devices, linked computers and sharing
Section titled “Devices, linked computers and sharing”Your phone, your other computers, and other people.
hmk remote
Section titled “hmk remote”hmk remote on|offAllow paired devices (and linked computers) on the networks chosen; off, nothing connects here (links go out only from here).
hmk remote restartListen again, with the same settings, while it’s on (when phones or computers can’t reach this one).
hmk remote networks [--json]The networks remote access may listen on (* chosen), and extra addresses.
hmk remote enable|disable NETWORKListen on a network, or stop: tailscale, or a subnet (192.168.1.0/24).
hmk remote address add|remove HOST[:PORT]An extra address to give out (a DNS name, a VPN endpoint, a forwarded port).
hmk pair
Section titled “hmk pair”hmk pair [--print|--json]Show a pairing code for a new device in the Mac app (off a Mac, or with –print: print it here as a QR code, outside agents and shared Groups; –json: the link and a QR PNG).
hmk devices
Section titled “hmk devices”hmk devices [revoke ID] [--json]List or revoke paired devices.
hmk link
Section titled “hmk link”hmk linkList your computers on your tailnet (same Tailscale user) and Hammock on your chosen local networks (Bonjour).
hmk link COMPUTER|ADDRESS|LINKLink another computer of yours: each shows the other’s Groups (check the code on both; it links with the rest too).
hmk link COMPUTER --out-only|--both-waysWith remote access off here: keep it off (only this one sees the other’s Groups), or turn it on (both ways).
hmk link --accept | --inviteAnswer a link asked from another computer (for one without the app) | print a link to this computer.
hmk link --again COMPUTERLink again one that doesn’t link with this one, waits for its code, or whose certificate changed.
hmk link pending [--json]Computers asking to link here, with their codes.
hmk link confirm|refuse ID|CODEAnswer one: confirm only if the code matches the other’s (typing the code shown there confirms the one it matches).
hmk computers
Section titled “hmk computers”hmk computers [--json]List your linked computers.
hmk computers unlink COMPUTER|thisUnlink a computer from all of them (this: this one).
hmk computers remove COMPUTERForget one that doesn’t link with this one, here only.
hmk computers tint COMPUTER #RRGGBB|none set a computer's badge colour (none: neutral)hmk computers icon COMPUTER ICONSet its badge’s icon: an SF Symbol’s name (macmini), an emoji, or default (its kind’s symbol).
hmk share
Section titled “hmk share”hmk share GROUP [--new|--off]Print a Group’s invite link (–new replaces it, –off stops it).
hmk shareList who’s in your shared Groups, and who’s asking to join.
hmk approve
Section titled “hmk approve”hmk approve ID drive|view|declineAnswer a join request.
hmk unshare
Section titled “hmk unshare”hmk unshare [GROUP]Stop sharing a Group (or every Group: everyone is disconnected).
hmk join
Section titled “hmk join”hmk join LINKJoin a Group someone shared (waits for them to let you in).
hmk leave
Section titled “hmk leave”hmk leave GROUPLeave a Group shared with you.
Keys and SSH
Section titled “Keys and SSH”The Hammock Key, and SSH in Hammock’s panes.
hmk key
Section titled “hmk key”hmk key [show|pub]This Mac’s Hammock Key: an SSH key in its Secure Enclave that signs only when you approve (Touch ID here, or your phone).
hmk key create|deleteMake or delete it (Touch ID).
hmk key allow|disallow DEVICELet a paired phone approve it (Touch ID), or stop it.
hmk key copy-id [USER@]HOSTAdd it to a server’s authorized_keys (ssh-copy-id).
hmk ssh
Section titled “hmk ssh”hmk ssh setup [--apply] [--apply-jj]How ssh, git and jj signing in Hammock’s panes reach Hammock’s agent (–apply: add Hammock’s block to ~/.ssh/config; –apply-jj: add Hammock’s file to jj’s config, so jj can sign with the Hammock Key).
The Hammock Server, the TUI and more
Section titled “The Hammock Server, the TUI and more”Running Hammock itself.
hmk tui
Section titled “hmk tui”hmk tuiFull-screen UI with mouse support (Ctrl-B prefix, Ctrl-B ? for keys).
hmk stop
Section titled “hmk stop”hmk stop [--panes] | start | restartStop or start the Hammock Server (panes keep running unless –panes, which ends them too; an open Hammock app starts it again).
hmk status
Section titled “hmk status”hmk status [--json]Whether the Hammock Server is running, and its Groups, remote access and linked computers (exits 3 when it isn’t running).
hmk service
Section titled “hmk service”hmk service install|uninstall|statusLinux: run the Hammock Server as a systemd user service, from boot.
hmk docs
Section titled “hmk docs”hmk docs [--print]Open Hammock’s documentation in your browser (–print, or where nothing can open it: print its address).
hmk acknowledgements
Section titled “hmk acknowledgements”hmk acknowledgements [NAME | --all]The third-party software in Hammock and its licences (NAME: one’s licence text; –all: every one’s).
Other commands.
hmk window
Section titled “hmk window”hmk window open pane|tab|group [REF]Show a pane, tab or Group in a window of its own in the Mac app (the same one, not a copy; closing it closes nothing); with no REF, the one this runs in.
hmk files
Section titled “hmk files”hmk files [FOLDER] [--reveal PATH] [--right | --tab | --split PANE | --group G]Open a files pane (a folder’s tree; no FOLDER: the Group’s, followed as it changes) on this pane’s left (–right: its right; –tab: a new tab); with one in the tab already, –reveal shows PATH in it.
hmk worktree
Section titled “hmk worktree”hmk worktree remove [DIR] [--force]Remove a git worktree (by default this folder’s) the repository’s own way, and close the tabs in it (–force: with uncommitted changes).
hmk limits
Section titled “hmk limits”hmk limitsAgents that stopped at their usage limit, and when each carries on (agent-resume-after-limit in the config file).
hmk limits cancel [PANE]Don’t have a pane’s agent carry on when its limit resets, by default this pane’s.
hmk slack
Section titled “hmk slack”hmk slack [status|connect|disconnect]Slack for automations’ Slack triggers: connect reads your Slack app’s two tokens from stdin (hmk slack help says how to make it).
hmk import
Section titled “hmk import”hmk import herdr [--dry-run [--json]] [--only WORKSPACE,...]Bring herdr’s workspaces into Hammock: each a Group, with its tabs, splits, folders and names, its agents’ conversations resumed (–dry-run: what it would make; –only: some, by id).
hmk report
Section titled “hmk report”hmk report STATE [MESSAGE] [--progress N] [--id ID] [--title T] [--app NAME] [--kind KIND]Tell the terminal what this script is doing (OSC 7501): idle, working, done, blocked (on you: –kind permission|question|auth), error, or clear; Hammock shows it on the pane and in Needs You.
These docs describe Hammock 2026.11.0. What's new