PITWALL

pitwall agent

Pitwall's agents and terminals.

agent list

List Pitwall's agents.

pitwall agent list [OPTIONS]

agent new

Start a new agent (or terminal) on this Mac, or create a session on another machine (--machine, an agw VM), and add it to Pitwall.

pitwall agent new [OPTIONS]
Option
--kind <KIND>Agent kind: claude, codex, shell, … (Pitwall's New-agent list). Not used with --machine: the session template decides what runs there.
--project <PATH>Folder it works in (default: the current folder). This Mac only.
--name <NAME>Name shown in Pitwall (default: the kind's name). With --machine: the session's name there (required).
--resume <SESSION_ID>Continue this conversation (session id) instead of starting fresh.
--account <ACCOUNT>The login it runs with: an account's name or id (Settings → Agents → Accounts), or default for your own (default: the project's).
--prompt <TEXT>Its first instruction: put in its Next up as it is created, as queue add does, and sent when it is first free (if Auto-send is on). - reads it from stdin.
--prompt-file <PATH>Its first instruction, read from this file (as --prompt).
--machine <MACHINE>Create it on this machine (an agw VM; see machine list and machine form <machine>). It changes that machine, so it waits for your approval in Pitwall.
--provider <PROVIDER>The provider of --machine, when two have a machine by that name.
--workspace <NAME>--machine: an existing workspace there.
--new-workspace [NAME]--machine: a new workspace (named NAME; default: the session's name).
--workspace-template <TEMPLATE>--machine: the new workspace's template.
--as <WHO>--machine: who it runs as: admin, agent:<name> (an existing agent user) or new-agent[:<name>] (a new one).
--agent-template <TEMPLATE>--machine with --as new-agent: the new agent user's template.
--template <TEMPLATE>--machine: the session template (what runs in it).
--option <FIELD=VALUE>--machine: any field of the machine's form, as FIELD=VALUE (machine form <machine> lists them). Repeatable.
pitwall agent new --kind claude --project ~/code/api --name api
pitwall agent new --kind claude --name api --prompt "run the tests and fix what fails"
pitwall agent new --kind claude --name review --prompt-file task.md   # or --prompt - < task.md
pitwall agent new --kind claude --resume 7f3c2a90-…      # continue a conversation
pitwall agent new --kind shell                           # a terminal in this folder
pitwall agent new --machine my-vm --name fix --workspace work --as admin --template claude

agent stop

Stop an agent (asks you in Pitwall).

pitwall agent stop [OPTIONS] <AGENT>
Argument
AGENTThe agent (id or name).

agent restart

Start an agent again (asks you in Pitwall).

pitwall agent restart [OPTIONS] <AGENT>
Argument
AGENTThe agent (id or name).

agent remove

Remove an agent from Pitwall (asks you in Pitwall).

pitwall agent remove [OPTIONS] <AGENT>
Argument
AGENTThe agent (id or name).
Option
--worktreeAlso delete its own worktree.

agent rename

Rename an agent. A name you give is kept; agents otherwise take their conversation's title (Claude Code, Codex).

pitwall agent rename [OPTIONS] <AGENT> [NAME]
Argument
AGENTThe agent (id or name).
NAME (optional)The new name.
Option
--autoFollow its conversation's title again instead of a name.

agent status

Why an agent has its status (hooks, screen rules, activity).

pitwall agent status [OPTIONS] <AGENT>
Argument
AGENTThe agent (id or name).
pitwall agent status api --human

agent track

Say an agent works in a worktree (or a folder in one): Review and the sidebar then show that worktree as the agent's, instead of guessing from its hooks and processes. Inside an agent Pitwall started, it is that agent.

pitwall agent track [OPTIONS] <PATH>
Argument
PATHThe worktree (relative to this folder, or full).
Option
--agent <AGENT>The agent (id or name; default: $PITWALL_AGENT_ID, the agent this runs in).
pitwall agent track ../repo-feature          # inside an agent: this agent
pitwall agent track ~/code/repo-fix --agent api

agent untrack

The agent no longer works in that worktree.

pitwall agent untrack [OPTIONS] <PATH>
Argument
PATHThe worktree, as given to track (or a folder in it).
Option
--agent <AGENT>The agent (id or name; default: $PITWALL_AGENT_ID).

agent tracked

The worktrees an agent tracks, newest first.

pitwall agent tracked [OPTIONS]
Option
--agent <AGENT>The agent (id or name; default: $PITWALL_AGENT_ID).

agent move

Show an agent in a space (as dragging it onto the space's tab).

pitwall agent move [OPTIONS] --space <SPACE> <AGENT>
Argument
AGENTThe agent (id or name).
Option
--space <SPACE>The space (id or name). Required.
pitwall agent move api --space Review