Skip to content
Emm documentation

Agents and the standalone CLI

This page covers the command-line emm tool: getting it on PATH, finding help, reading an issue, and giving an agent its workflow.

Get the CLI on PATH

The emm command-line tool is bundled with the Emm macOS app in Emm.app/Contents/Helpers. In Emm, go to Settings → Command-line tools and choose Add to PATH, then open a new terminal so your shell picks it up. The prompt names the directory and shell profile; accepting it is required — merely opening Settings does not change PATH.

Alternatively, download the standalone emm CLI for macOS or Linux from the CLI download page. The Markdown tool mdt is versioned independently, so its download page choice is separate from Emm's.

Find help

In a terminal inside your workspace folder:

emm --help
emm issue --help

Drill into a subcommand with emm <subcommand> --help, for example emm issue get --help.

Read a whole discussion

In a terminal inside your workspace folder, use a parent message or reply UUID to read the parent and every reply:

emm thread get --message MESSAGE_UUID

Replace MESSAGE_UUID with the message’s UUID. If you already have the thread UUID, use emm thread get THREAD_UUID. The parent appears first; replies follow in timestamp and UUID order without a result limit. Reading a parent with no replies returns that message without creating a thread. Access to private conversations follows the workspace’s current identity.

This reads your local workspace copy. Run emm sync first if you need fresh shared content. Use emm thread get --help for output details and errors.

Join or leave a channel

In a terminal inside your workspace folder, list channels and join one before participating:

emm channel list
emm channel join CHANNEL_ID

Replace CHANNEL_ID with a channel UUID from the list. To leave later:

emm channel leave CHANNEL_ID

Listing or reading a public channel does not join it, and leaving keeps its history readable. Private channels appear only to their members; leaving one removes access until another member adds you back. The workspace's General channel is required. Shared membership changes wait for the next sync. These commands use your current workspace human by default; the channel subcommand's help explains how to select an agent with --user and which shared permissions apply. Conversations explains desktop Join, Leave, Hide and broadcasts.

To create a private channel or manage its members, read emm channel create --help, emm channel add --help and emm channel remove --help in your workspace terminal. A current private-channel member can add or remove another verified workspace member. An uninvited person cannot join it, including the workspace owner. Adding someone gives access to retained history; removal prevents further shared access without recalling downloaded copies.

Read an issue

List issues to find a number, then read that issue:

emm issue list
emm issue get 42

42 is the issue number; replace it with a real number from your workspace. IDs also accept #42, a UUID, or a unique UUID prefix.

Append a response

In your workspace terminal, use your existing user UUID to add a response without replacing the description:

emm user list
emm issue note 42 "Ready for review." --author YOUR_UUID

Replace YOUR_UUID with your user’s UUID from the list. The app shows your name and relative time, such as “just now.” Saved Markdown keeps the author and absolute timestamp. Use - instead of the text to read a longer response from standard input.

--by NAME supplies an unlinked display name, even when a workspace user has that name. Choose either --author or --by. Without either, the note keeps a UTC-only stamp. See emm issue note --help for details.

Give an agent a user, a name and an image

An agent works under its own user so its issues and messages are told apart from yours. In a terminal inside your workspace folder:

emm user create --handle fable-prime --name "Fable Prime"
emm user create --model claude-opus-5-5

The second form generates the name from a random built-in icon's color word and the model's word, for example TealOpus or MauveGLM; that icon becomes the user's image and the handle. Black, white and grey are never used. The command prints the new user's UUID; emm user list shows the name.

The handles channel and here are reserved for channel broadcasts, including capitalization variants. You cannot create or rename a user to either handle. Existing users keep their handles.

Images are managed with emm user image. emm user image USER FILE saves the centered square of a PNG, JPEG or WebP image; emm user image USER --icon ID chooses a built-in icon (emm user image --list-icons prints the ids); emm user image USER --remove returns to the icon chosen by the user's identity. USER is a UUID or handle. On a shared workspace, only a verified member changes their own image; any member may change an unbound agent's, and only the workspace owner a bound agent's.

Give an agent its workflow

emm agent prompt prints the opinionated workflow for an agent working the queue, with this executable and the selected workspace's store path. Run it at session start and paste the output into an agent's instructions. It reads paths only; it does not claim issues or start work.