CommandsCloud Agents

Cloud Agents Commands

Create, manage, and run autonomous AI agents that review pull requests, execute instructions, and investigate issues in your repositories.

The Cloud Agents CLI commands let you create and manage autonomous AI agents — intelligent systems that can review pull requests, execute instructions, and investigate code issues directly from your repositories.

For a conceptual overview of Cloud Agents, see Cloud Agents.

Requirements

  • Personal Access Token (PAT) must include the cli scope
  • Accounts with outstanding dues receive 402 Payment Required
  • Some agent types require specific plan feature gates (returns 403 Forbidden if unavailable)

Commands on this page

CommandDescription
skytells agents lsList all agents
skytells agents addCreate a new agent
skytells agents inspectView agent details
skytells agents setUpdate an agent
skytells agents rmDelete an agent
skytells agents repos lsList bound repositories
skytells agents repos addBind repositories
skytells agents repos rmRemove repository binding
skytells agents runs lsList agent runs
skytells agents runs inspectView run details
skytells agents runs runCreate and enqueue a new run

skytells agents ls

List all Cloud Agents owned by the authenticated user.

Syntax

skytells agents ls [--json]

Example

skytells agents ls
┌──────────────────────────────┬──────────┬────────────┐
│ Agent Name                   │ Type     │ Status     │
├──────────────────────────────┼──────────┼────────────┤
│ PR Reviewer                  │ review   │ active     │
│ Code Executor                │ execute  │ active     │
└──────────────────────────────┴──────────┴────────────┘

skytells agents add

Create a new Cloud Agent.

Syntax

skytells agents add \
  --name "My Agent" \
  --description "Agent description" \
  --type <type> \
  [--model <model_id>] \
  [--capabilities <tags>] \
  [--repos <repos>] \
  [--inactive] \
  [--json]

Arguments

ArgumentRequiredDescription
--nameAgent name (1–100 characters)
--descriptionAgent description (1–500 characters)
--typeAgent type: review, execute, hybrid, or custom

Options

OptionDescription
--model <model_id>Model to use (e.g., gpt-4o, gpt-4o-mini)
--capabilities <tags>Comma-separated capability tags
--repos <repos>Comma-separated repository bindings in owner/repo format (max 50)
--inactiveCreate agent in inactive state (default: active)

Agent Types

TypeDescriptionSupported Run Types
reviewReviews pull requests and provides feedbackreview, investigate
executeExecutes code modifications and refactoring tasksexecute
hybridCombines review and execution capabilitiesreview, execute, investigate
customCustom agent for specialized workflowsreview, execute, investigate

Example

# Create a review agent
skytells agents add \
  --name "PR Reviewer" \
  --description "Automatically reviews pull requests" \
  --type review \
  --model gpt-4o \
  --repos "acme/monorepo"

# Create an execute agent with multiple capabilities
skytells agents add \
  --name "Task Executor" \
  --description "Handles refactoring and optimization" \
  --type execute \
  --capabilities "refactor,test,optimize" \
  --repos "acme/backend,acme/frontend"

# Create an inactive agent
skytells agents add \
  --name "Beta Agent" \
  --description "Testing new capabilities" \
  --type hybrid \
  --inactive

skytells agents inspect

Show full details of a Cloud Agent including configuration, status, and bound repositories.

Syntax

skytells agents inspect <agent-uuid> [--json]

Arguments

ArgumentDescription
<agent-uuid>The unique identifier of the agent

Example

skytells agents inspect 550e8400-e29b-41d4-a716-446655440000

skytells agents set

Update an existing Cloud Agent. Only supplied fields are changed.

Syntax

skytells agents set <agent-uuid> \
  [--name <name>] \
  [--description <desc>] \
  [--type <type>] \
  [--model <model_id>] \
  [--capabilities <tags>] \
  [--repos <repos>] \
  [--active | --inactive] \
  [--json]

Arguments

ArgumentDescription
<agent-uuid>The unique identifier of the agent

Options

OptionDescription
--name <name>Update agent name
--description <desc>Update agent description
--type <type>Change agent type
--model <model_id>Change the model
--capabilities <tags>Update capability tags
--repos <repos>Replace repository bindings
--activeActivate the agent
--inactiveDeactivate the agent

Example

# Rename an agent
skytells agents set 550e8400-e29b-41d4-a716-446655440000 \
  --name "Updated Reviewer"

# Activate a deactivated agent
skytells agents set 550e8400-e29b-41d4-a716-446655440000 --active

# Update repositories
skytells agents set 550e8400-e29b-41d4-a716-446655440000 \
  --repos "acme/repo-a,acme/repo-b,acme/repo-c"

skytells agents rm

Delete a Cloud Agent. Associated runs are preserved with their agent_id set to null.

Syntax

skytells agents rm <agent-uuid> [-f | --force]

Arguments

ArgumentDescription
<agent-uuid>The unique identifier of the agent to delete

Options

OptionDescription
-f, --forceSkip confirmation prompt

Example

# Delete with confirmation
skytells agents rm 550e8400-e29b-41d4-a716-446655440000

# Force delete without confirmation
skytells agents rm 550e8400-e29b-41d4-a716-446655440000 --force

Repository Bindings

Manage which repositories an agent can access and operate on.

skytells agents repos ls

List all repositories bound to an agent.

Syntax

skytells agents repos ls <agent-uuid> [--json]

Example

skytells agents repos ls 550e8400-e29b-41d4-a716-446655440000
┌───────────────────┐
│ Repository        │
├───────────────────┤
│ org/repo-a        │
│ org/repo-b        │
└───────────────────┘

skytells agents repos add

Add one or more repositories to an agent's binding list. Duplicates are ignored automatically.

Syntax

skytells agents repos add <agent-uuid> <repo>... [--json]

Arguments

ArgumentDescription
<agent-uuid>The agent identifier
<repo>...One or more repositories in owner/repo format

Limits

Maximum 50 repositories per agent. Excess repositories will be rejected.

Example

# Add a single repository
skytells agents repos add 550e8400-e29b-41d4-a716-446655440000 acme/frontend

# Add multiple repositories
skytells agents repos add 550e8400-e29b-41d4-a716-446655440000 \
  acme/backend acme/frontend acme/shared-libs

skytells agents repos rm

Remove a repository from an agent's binding list.

Syntax

skytells agents repos rm <agent-uuid> <repo> [--json]

Arguments

ArgumentDescription
<agent-uuid>The agent identifier
<repo>Repository in owner/repo format

Example

skytells agents repos rm 550e8400-e29b-41d4-a716-446655440000 acme/old-repo

Runs

Create and manage agent runs — execution instances of your agents.

skytells agents runs ls

List runs across all agents, or filter by agent, status, and trigger source.

Syntax

skytells agents runs ls \
  [--agent <agent-uuid>] \
  [--status <status>] \
  [--run-type <type>] \
  [--trigger <source>] \
  [--page <n>] \
  [--per-page <n>] \
  [--json]

Options

OptionDescription
--agent <id>Filter to a specific agent (UUID)
--status <status>Filter by status: queued, running, awaiting_approval, approved, completed, failed, cancelled
--run-type <type>Filter by run type: review, execute, investigate
--trigger <source>Filter by trigger: github, console, slack, chat
--page <n>Page number (default: 1)
--per-page <n>Results per page, max 100 (default: 20)

Example

# List all runs
skytells agents runs ls

# List runs for a specific agent
skytells agents runs ls --agent 550e8400-e29b-41d4-a716-446655440000

# Filter by status and type
skytells agents runs ls --status completed --run-type review

# List failed runs
skytells agents runs ls --status failed

# Paginate results
skytells agents runs ls --page 2 --per-page 50

skytells agents runs inspect

Show full details of a single run, including token usage, result summary, and error information.

Syntax

skytells agents runs inspect <run-uuid> [--json]

Arguments

ArgumentDescription
<run-uuid>The unique identifier of the run

Example

skytells agents runs inspect 7c9e6679-7425-40de-944b-e07fc1f90ae7

skytells agents runs run

Create and enqueue a new run for a Cloud Agent.

Syntax

# For review or investigate runs
skytells agents runs run <agent-uuid> \
  --type review \
  --repo <owner/repo> \
  --pr <number> \
  [--branch <branch>] \
  [--json]

# For execute runs
skytells agents runs run <agent-uuid> \
  --type execute \
  --repo <owner/repo> \
  --prompt "Task description" \
  [--branch <branch>] \
  [--json]

Arguments

ArgumentRequiredDescription
<agent-uuid>The agent to run
--type <type>Run type: review, execute, investigate
--repo <repo>Target repository in owner/repo format

Options (Review & Investigate)

OptionRequiredDescription
--pr <number>Pull request number
--branch <branch>Target branch (default: PR base branch)

Options (Execute)

OptionRequiredDescription
--prompt <text>Instruction prompt (1–4,000 characters)
--branch <branch>Target branch to work on

Billing & Rate Limits

Billing gates are checked in order:

  1. Daily run cap
  2. Monthly review limit (for review and investigate types)
  3. Monthly execute limit (for execute type)

Error Responses

CodeMeaning
402Account suspended or payment outstanding
403Agent is inactive or insufficient permissions
422Validation error (missing required field, incompatible run type, etc.)
429Daily or monthly run limit reached — upgrade your plan

Examples

# Review a pull request
skytells agents runs run 550e8400-e29b-41d4-a716-446655440000 \
  --type review \
  --repo acme/monorepo \
  --pr 123

# Execute a task
skytells agents runs run 550e8400-e29b-41d4-a716-446655440000 \
  --type execute \
  --repo acme/backend \
  --prompt "Add comprehensive error handling to the auth module" \
  --branch feature/error-handling

# Investigate an issue
skytells agents runs run 550e8400-e29b-41d4-a716-446655440000 \
  --type investigate \
  --repo acme/frontend \
  --pr 456

Workflow Examples

Create and Run a Review Agent

# Create a review agent
skytells agents add \
  --name "PR Reviewer" \
  --description "Automatically reviews pull requests" \
  --type review \
  --model gpt-4o \
  --repos "acme/monorepo"

# Trigger a review run
skytells agents runs run 550e8400-e29b-41d4-a716-446655440000 \
  --type review \
  --repo acme/monorepo \
  --pr 123

# Check run status
skytells agents runs ls --agent 550e8400-e29b-41d4-a716-446655440000 --status running

Create a Multi-Repo Execute Agent

# Create an execute agent
skytells agents add \
  --name "Code Refactorer" \
  --description "Handles code refactoring tasks across services" \
  --type execute \
  --model gpt-4o \
  --capabilities "refactor,optimize,security-hardening" \
  --repos "acme/backend,acme/frontend"

# Add more repositories later
skytells agents repos add 550e8400-e29b-41d4-a716-446655440000 acme/shared-libs

# Execute a refactoring task
skytells agents runs run 550e8400-e29b-41d4-a716-446655440000 \
  --type execute \
  --repo acme/backend \
  --prompt "Refactor all database queries to use prepared statements"

References

How is this guide?

On this page