Coder Commands — Agentuity Documentation

Coder Commands

Start and manage AI coding sessions connected to the Coder Hub

Start coding sessions where AI agents work in cloud sandboxes. The agentuity coder commands connect to a Coder Hub that orchestrates sessions, tools, and participants.

Quick Reference

CommandDescription
coder startStart a Pi coding session
coder create <task>Create a new session
coder listList active sessions
coder get <id>Show session details
coder update <id>Update a session
coder delete <id>Delete a session
coder archive <id>Archive a session
coder loop <id>Get loop-mode state
coder replay <id>Get replay data
coder participants <id>List session participants
coder events <id>List event history
coder usersList known Coder users
coder workspaceManage workspaces
coder skillManage saved skills

Aliases:

  • lslist
  • show, inspectget
  • newcreate
  • rm, del, removedelete
  • run, tuistart

Starting a Session

agentuity coder start

Launches a Pi coding session connected to the Coder Hub. The CLI auto-detects the Hub URL and extension path.

Options

OptionDescription
--url <url>Coder API URL override
--extension <path>Coder extension path override
--pi <path>Path to Pi binary override
--agent <role>Agent role (e.g., scout, builder)
--task <description>Initial task to execute
--remote [session-id]Connect to an existing sandbox session. Paused sessions are auto-resumed. Omit the ID to browse available sessions
--sandbox <task>Create a new sandbox session with the given task and attach
--repo <url>Git repo URL to clone in the sandbox (used with --sandbox)

Examples

# Start with auto-detection
agentuity coder start
 
# Start as a specific agent role
agentuity coder start --agent scout
 
# Connect to an existing sandbox session
agentuity coder start --remote codesess_abc123
 
# Browse and select a sandbox session
agentuity coder start --remote
 
# Create a new sandbox session with a task
agentuity coder start --sandbox "Build an auth system"
 
# Create a sandbox with a git repo cloned
agentuity coder start --sandbox "Build auth" --repo https://github.com/org/repo

Creating a Session

agentuity coder create "Build a REST API"

Creates a new Coder session. Pass --connect to attach immediately after creation.

Options

OptionDescription
--url <url>Coder API URL override
--connectConnect to the session after creation
--label <text>Human-readable session label
--agent <role>Default agent role
--visibility <level>private, org, or collaborate
--workflow-mode <mode>standard or loop
--loop-goal <text>Goal for loop mode
--loop-max-iterations <n>Maximum loop iterations
--loop-auto-continueAuto-continue without manual approval
--loop-allow-detachedContinue when no client is attached
--repo <url>Git repo URL to clone
--repo-branch <branch>Branch to checkout
--workspace-id <id>Workspace to use
--tags <list>Comma-separated tags

Listing Sessions

agentuity coder list

Shows all active sessions on the connected Hub.

Options

OptionDescription
--url <url>Coder API URL override

Output Fields

FieldDescription
sessionIdSession identifier
labelHuman-readable session label
statusCurrent session status
modeSession mode (sandbox, tui, or remote)
createdAtCreation timestamp
taskCountNumber of tasks
subAgentCountNumber of sub-agents
observerCountNumber of observers
participantCountTotal participants connected

Inspecting a Session

agentuity coder get <session-id>

Shows detailed information about a specific session, including participants, tasks, and agent activity.

Options

OptionDescription
--url <url>Coder API URL override

Workspaces

Manage reusable workspace configurations that bundle repositories and skills.

# List workspaces
agentuity coder workspace list
 
# Create a workspace
agentuity coder workspace create "Auth System" --repo https://github.com/org/repo
 
# Show workspace details
agentuity coder workspace get ws_abc123
 
# Delete a workspace
agentuity coder workspace delete ws_abc123

Skills

Manage saved skills and skill buckets in your library.

# List saved skills
agentuity coder skill list
 
# Save a skill
agentuity coder skill save --repo my-org/skills --skill-id code-review --name "Code Review"
 
# List skill buckets
agentuity coder skill buckets
 
# Delete a skill
agentuity coder skill delete skill_abc123

URL Resolution

Coder commands resolve the Hub URL in this order:

  1. --url
  2. AGENTUITY_CODER_URL
  3. Hub discovery through the authenticated Agentuity API

Authentication comes from your normal CLI login session or the standard CLI auth environment variables.

Next Steps