Command Coding Agent Sessions

A coding agent session is a run of a third-party coding agent, such as Cursor, Claude, Copilot or Codex, on a Command ticket or to-do.

CommandCodingAgentCompact

PropertyTypeDescription
gidstringGlobally unique identifier of the resource, as a string.
resource_typestringThe base type of this resource.
namestringThe display name of the coding agent.

Example JSON for CommandCodingAgentCompact:

{
  "gid": "12345",
  "resource_type": "command_coding_agent",
  "name": "Cursor"
}

CommandCodingAgentSession

PropertyTypeDescription
gidstringGlobally unique identifier of the resource, as a string.
resource_typestringThe base type of this resource.
statusstringThe status of the session.
Click to show all enum values
  • active
  • completed
  • failed
  • launching
workspaceobjectThe workspace the session runs in.
workspace.gidstringGlobally unique identifier of the resource, as a string.
workspace.resource_typestringThe base type of this resource.
workspace.namestringThe name of the workspace.
coding_agentobjectThe coding agent running the session.
coding_agent.gidstringGlobally unique identifier of the resource, as a string.
coding_agent.resource_typestringThe base type of this resource.
coding_agent.namestringThe display name of the coding agent.
targetobjectA ticket is a piece of work in a Command teamspace, a release, or both.
target.gidstringGlobally unique identifier of the resource, as a string.
target.resource_typestringThe base type of this resource.
target.namestringThe name of the ticket.
target.short_idstringHuman-readable ID made of the teamspace's ticket prefix and a number. null when the ticket has no teamspace.
fail_reasonstringWhy the session failed. null unless status is failed.
Click to show all enum values
  • missing_api_key
  • missing_settings
  • missing_teamspace
  • provider_error
external_urlstringA link to the session in the coding agent's own app, once the agent has started it.
created_byobjectThe user who started the session.
created_by.gidstringGlobally unique identifier of the resource, as a string.
created_by.resource_typestringThe base type of this resource.
created_by.namestringRead-only except when same user as requester. The user's name.
created_atstring (date-time)The time at which the session was started.

Example JSON for CommandCodingAgentSession:

{
  "gid": "12345",
  "resource_type": "command_coding_agent_session",
  "status": "active",
  "workspace": {
    "gid": "12345",
    "resource_type": "workspace",
    "name": "My Company Workspace"
  },
  "coding_agent": {
    "gid": "12345",
    "resource_type": "command_coding_agent",
    "name": "Cursor"
  },
  "target": {
    "gid": "12345",
    "resource_type": "command_ticket",
    "name": "Add the to-do endpoints",
    "short_id": "CODE-42"
  },
  "fail_reason": "missing_settings",
  "external_url": "https://cursor.com/agents/bc-123",
  "created_by": {
    "gid": "12345",
    "resource_type": "user",
    "name": "Greg Sanchez"
  },
  "created_at": "2012-02-22T02:06:58.147Z"
}