Reference
The zoes command
zoes is pocketd run under the name zoes. anywhere, its old name, still works as an alias. It starts sessions, sends prompts, reads replies, and edits Board tickets. The sessions it starts show in the desktop app like any other.
To install the command, see Install the zoes command.
Synopsis
zoes project list [--json]
zoes session list [--json]
zoes session read [--limit 200] [--json] <id>
zoes session create [--project <name|path>] [--worktree <name> | --new-worktree [<name>] [--base <branch>]] [--provider <agent>] [--access settings|ask|edits|auto|full] [--prompt <text>]
zoes session prompt <id> <text|->
zoes session close <id>
zoes session wait [--timeout 30m] <id>
zoes ticket create [--project <name|path>] [--provider <agent>] [--base <branch>] [--title <text>] [--start] <prompt|->
zoes ticket list [--json]
zoes ticket read [--json] <id>
zoes ticket update [--title <text>] [--provider <agent>] [--base <branch>] [--prompt <text|->] <id>
zoes ticket delete <id>
Conventions
- Flags go before or after the positional arguments.
<agent>is one ofclaude,codex,cursor,grok,opencode,pi,omp,fx,hermes, orantigravity. Left out, it isclaude. See Supported agents.- A text argument of
-reads the text from standard input. --jsonprints indented JSON instead of a table.--projecttakes a project's name or its path. Without it, the command uses the project whose main checkout or worktree holds the current directory.- The command talks to pocketd over its Unix socket,
~/.zoes/pocketd.sock. ThePOCKETD_SOCKenvironment variable sets another path. If pocketd isn't running, the command fails withcan't reach Zoes's service at <socket>.
project list
zoes project list [--json]
Prints one line per project: its name and its path.
session list
zoes session list [--json]
Prints one line per session, the most recently updated first: its id, status, agent, project, and title.
session create
zoes session create [--project <name|path>] [--worktree <name> | --new-worktree [<name>] [--base <branch>]] [--provider <agent>] [--access settings|ask|edits|auto|full] [--prompt <text>]
Starts a chat session and prints its id.
| Flag | Default | Description |
|---|---|---|
--project <name|path> | The project holding the current directory | The project to start the session in. |
--worktree <name> | The main worktree | An existing worktree of the project, by name. |
--new-worktree [<name>] | Off | Creates a new worktree for the session. Without a name and with --prompt, pocketd names the branch from the prompt. Can't be used with --worktree. |
--base <branch> | The project's default | The branch the new worktree starts from. Only with --new-worktree. |
--provider <agent> | claude | The agent to run. |
--access <mode> | settings | The access mode: settings, ask, edits, auto, or full. settings uses the agent's own permission settings. See Access modes. |
--prompt <text> | None | The first prompt. |
With --prompt, the command prints the id and then waits up to 30 seconds for the turn to start. If the turn doesn't start in that time, it fails with session <id> didn't start a turn within 30s. The session still exists.
session prompt
zoes session prompt <id> <text|->
Sends the text to the session. If the session reports its status, the command waits up to 30 seconds for the turn to start, so a session wait right after it waits for that turn.
session read
zoes session read [--limit 200] [--json] <id>
Prints the agent's last reply: everything it said after the last user message.
| Flag | Default | Description |
|---|---|---|
--limit <n> | 200 | How many timeline items to fetch, from 1 to 500. |
--json | Off | Prints the fetched timeline items as JSON instead of the last reply. |
session wait
zoes session wait [--timeout 30m] <id>
Waits until the session is no longer Working, then prints one word and exits with its code. --timeout takes a duration such as 90s, 30m, or 2h. The default is 30m.
| Word | Exit code | Meaning |
|---|---|---|
done | 0 | The turn ended. The session is Done, or Idle if someone was looking at it. |
failed | 3 | The turn ended with an error. |
needsYou | 4 | The agent is waiting for an answer or a permission. |
timeout | 5 | The timeout passed first. |
closed | 6 | The session closed. |
If the session isn't Working when the command starts, it reports the current state right away. A session that doesn't report its status, such as an agent other than Claude Code or Codex running in a terminal, fails with exit code 1 and session <id> doesn't report its status.
session close
zoes session close <id>
Closes the session and its terminal.
ticket create
zoes ticket create [--project <name|path>] [--provider <agent>] [--base <branch>] [--title <text>] [--start] <prompt|->
Adds a ticket to the Board and prints its id.
| Flag | Default | Description |
|---|---|---|
--project <name|path> | The project holding the current directory | The ticket's project. |
--provider <agent> | claude | The agent that works on the ticket. |
--base <branch> | The project's default | The branch the ticket's worktree starts from. |
--title <text> | The prompt's first line | The title, 1 to 200 characters. |
--start | Off | Starts the ticket. It waits in Queued until a slot is free. |
ticket list
zoes ticket list [--json]
Prints one line per ticket: its id, state, agent, project folder, and title. For a started ticket, the state is its session's status.
ticket read
zoes ticket read [--json] <id>
Prints the ticket's title, then its state, agent, and folder, then its prompt.
ticket update
zoes ticket update [--title <text>] [--provider <agent>] [--base <branch>] [--prompt <text|->] <id>
Changes only the fields you pass. Pass at least one flag. An empty --base "" clears the base branch.
ticket delete
zoes ticket delete <id>
Deletes the ticket.
Inside a Zoes terminal
A process that runs inside a Zoes terminal can only read. project list, session list, session read, and session wait work there. Every other command fails with this message:
a process inside a Zoes terminal can only read sessions; run this from outside Zoes
Exit codes
| Code | Meaning |
|---|---|
| 0 | Success. For session wait, done. |
| 1 | The command failed. The error is printed after zoes:. |
| 2 | Bad command line. The usage is printed. |
| 3 | session wait: failed. |
| 4 | session wait: needsYou. |
| 5 | session wait: timeout. |
| 6 | session wait: closed. |
The agent skill
Installing the command also installs a skill that tells Claude Code and Codex how to use it. pocketd skill install writes the skill to these files:
~/.claude/skills/zoes/SKILL.md~/.agents/skills/zoes/SKILL.md
pocketd settings
Set these pocketd settings with pocketd config set <key> <value>. Run it under the name pocketd, not zoes, while pocketd is running. The desktop app has controls for some of them, but none for the orchestrator keys and push.relay.
| Key | Values | Default | Description |
|---|---|---|---|
orchestrator.depth | 1 to 5 | 3 | How many levels of delegated sessions a session you opened can have below it. |
orchestrator.perSession | 1 to 20 | 6 | How many of one session's delegated sessions run at once. |
orchestrator.perMac | 1 to 50 | 12 | How many sessions agents run at once on this machine. |
automations.graceHours | 0 to 24 | 12 | How late a scheduled run can start before it is skipped. |
automations.history | 10 to 500 | 50 | How many runs to keep. |
push.relay | An https URL | https://push.getanywhere.dev | The relay pocketd sends iPhone push notifications through. |
phone.terminals | on, off | on | Whether a phone can type into, open, and close terminals. |
listen | auto, loopback | auto | Where phones reach pocketd: this machine and the tailnet, or this machine only. |
port | 1024 to 65535 | 4517 | The port phones connect to. |
restore.resumeAgents | true, false | true | Whether agents resume after pocketd or the machine restarts. |