Mooring docs

One-line commands

Use the moor command without its menu. Each command does one thing and prints one answer, for a quick check from your iPad or a script on your Mac.

Everything in moor's menu can also be done with a single command. Each one runs, prints its answer and finishes, which is handy for a quick check over SSH or for a script.

The commands

moor ls                                  # every session: number, project, name, branch, state
moor attach 3                            # open session 3 (or by its tab name)
moor send 3 "please rebase"              # type a line into session 3 without opening it
moor cards -p skiver                     # a project's open cards
moor cards -p skiver --status ready      # ready, in-progress, in-review, done or all
moor card SKV-8                          # read a card
moor new "Fix the login" -b "Details"    # add a card, with an optional description
moor comment SKV-8 "Checked on iPad"     # comment on a card
moor start SKV-8                         # start work: worktree, branch and Claude, card linked
moor new-session -p skiver               # a new session in the project's folder
moor --version                           # which moor you have
moor --help                              # what moor is, and every command

Choose the project

  • -p names a project by its code (skv), its name (skiver) or its id, in any case.
  • Without -p, moor uses the project whose folder you're in.
  • A card key such as SKV-8 finds its own project.
  • A bare number such as 8 needs the project from -p or the folder.

If two projects share a name, moor asks you to be more specific and lists both folders.

Aim at the right session

moor attach and moor send take a session's number, its tab name (in any case) or its tmux session name.

A number means the line it had in the last list this terminal showed, from moor ls or the menu, not whatever has that number now. So if a tab opens or closes after your list, moor send 2 still reaches the session you saw as 2:

$ moor send 2 "please rebase"
Sent to skiver · Review.
  • If that session has closed since, moor refuses and names it, rather than typing into whatever is number 2 now. Run moor ls again.
  • If this terminal hasn't listed any sessions yet, run moor ls first, or use the tab name.
  • Each terminal has its own list, so two SSH connections never mix up each other's numbers.
  • In a script, use tab names. They never move. If two tabs share a name, moor asks for the number.

Text that starts with a dash

Text that starts with a dash is fine, unless it looks like one of moor's own options. To be sure, put -- before it:

moor comment SKV-5 "-1, agree"
moor send 3 -- -p

Use moor in scripts

  • JSON. ls, cards and card take --json and print Mooring's answer as JSON:

    moor ls --json
    moor cards -p skiver --status all --json
  • Exit codes. 0 means done. 1 means a refusal, something not found or a mistake in the command. 2 means Mooring isn't running, or its MCP is switched off.

$ moor ls
Mooring's MCP is switched off: Settings ▸ MCP.
$ echo $?
2

Good to know

  • Changes need a switch on the Mac. new, comment, start, new-session and send need Allow agents to make changes (writes) in Settings ▸ MCP, and start and new-session also need Allow creating worktrees & spawning agents. A refusal names the switch that is off.

  • moor start returns as soon as the worktree and its tab exist. The card's text reaches Claude a moment later, and the card turns In Progress then.

  • A change is never sent twice. If the connection drops part way, moor says the change may or may not have happened, and names the command that shows which:

    Mooring closed the connection before confirming, so it may or may not have happened. Check with: moor card SKV-5
  • Reading never moves your Mac's window. start, new-session and opening a session that isn't running do, because a session's tab is made in the Mac's window. The Mac's screen can be off while they do.

  • Not from inside Mooring. In one of Mooring's own tabs, moor only reads. Use Terminal, or SSH from another device, to change things.