Connect a person's Mac
A person’s own Mac runs agents’ work for the team beside their cloud computer. Its daemon reaches gomoe.dev through the laptop door at https://gomoe.dev/machine, and its sessions land in the same record. How people and computers reach gomoe.dev explains what the door lets through.
Add a Mac with the Mac app
Section titled “Add a Mac with the Mac app”The Mac app is the way in. The person downloads it from gomoe.dev and signs in through the browser. A build made for gomoe.dev carries its address and its home folder, ~/.agents-gomoe, so it opens on gomoe.dev with nothing to type and shows no Tailscale step. The app then adds the Mac for its person with POST /v1/me/macs, takes the door’s address from the answer, and runs its daemon against the door. Publish the Mac app covers the download.
Work from a terminal with the agents command
Section titled “Work from a terminal with the agents command”daemon/laptop/agents.ts is the agents command. It is not packaged into the Mac app yet, so a person links the file onto their PATH as agents, with Node 24 first on the PATH.
-
Sign in. The command opens the browser and keeps an API token in
~/.config/agents/login.json, mode 600.Terminal window agents login https://gomoe.dev -
Start tasks on the working tree, uncommitted edits included.
Terminal window agents send --count 2 <job> -
Follow a task’s session with
agents watch <task id>, and fetch its branch withagents pull <task id>.
agents logout asks the server to revoke the token, then forgets the token and the server, even when the server could not revoke it.
Run a daemon from a checkout
Section titled “Run a daemon from a checkout”The laptop door takes the token of any machine of kind mac, so a daemon run from a checkout can reach gomoe.dev too. No run of this path on gomoe.dev is recorded. The Mac app’s path is the one .claude/skills/verify-agents/features/laptops.md covers.
-
From the operator’s laptop, add the machine for its owner. The command prints one JSON line with the machine’s name and its token.
Terminal window node ops/aws-deploy/admin.ts add-instance <team> <name> mac <owner email>Copy the token now. The server keeps only its hash, so it cannot show the token again. A token of kind
boxorcheckis refused at the door. -
On the Mac, write
~/.agents-app/daemon.jsonwith the door’s address and the token, mode 600.{"api": "https://gomoe.dev/machine", "token": "machine_<random>"} -
Start the daemon from a checkout of the repo, with Node 24 first on the
PATH.Terminal window npm run daemon
The environment variables AGENTS_API and AGENTS_TOKEN override daemon.json. With no token anywhere, the daemon stops and names the file it looked for. The Mac needs the claude command on its PATH, and AGENTS_CLAUDE_BIN names another command.
The Mac app’s daemon keeps its files in the home its build names, ~/.agents-gomoe for gomoe.dev’s. A daemon from a checkout keeps them in ~/.agents-app, or in the folder AGENTS_HOME names. Each agent whose home is the Mac gets a folder in agents/ named by its id, and each task gets a workspace in workspaces/.
Anthropic returns a summary of a model’s reasoning, never the raw text, so a session’s thinking rows hold that summary. Claude 5.x models hide it unless asked, which needs Claude Code 2.1.94 or later on the Mac, and a newer one for a helper’s (2.1.296 can, 2.1.148 cannot). On an older one the session runs as before, a 5.x model’s rows stay empty, and the daemon’s log says to update it.
How the server sees a machine
Section titled “How the server sees a machine”A daemon tells the API it is up every 15 seconds. The Machines place in the app lists each machine with its status, which is online, stale or offline. A machine silent for three heartbeats, 45 seconds, is marked stale, and each working session on it shows as lost once the session has been quiet as long. AGENTS_MACHINE_LOST_SEC in the server’s .env changes the 45 seconds. It must be at least 30, and the API refuses to start with a smaller value. host.ts does not set it on gomoe.dev.
After the API starts, every machine gets that same span to call in before its silence counts.