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
| Property | Type | Description |
|---|---|---|
gid | string | Globally unique identifier of the resource, as a string. |
resource_type | string | The base type of this resource. |
name | string | The display name of the coding agent. |
Example JSON for CommandCodingAgentCompact:
{
"gid": "12345",
"resource_type": "command_coding_agent",
"name": "Cursor"
}CommandCodingAgentSession
| Property | Type | Description |
|---|---|---|
gid | string | Globally unique identifier of the resource, as a string. |
resource_type | string | The base type of this resource. |
status | string | The status of the session. Click to show all enum values
|
workspace | object | The workspace the session runs in. |
workspace.gid | string | Globally unique identifier of the resource, as a string. |
workspace.resource_type | string | The base type of this resource. |
workspace.name | string | The name of the workspace. |
coding_agent | object | The coding agent running the session. |
coding_agent.gid | string | Globally unique identifier of the resource, as a string. |
coding_agent.resource_type | string | The base type of this resource. |
coding_agent.name | string | The display name of the coding agent. |
target | object | A ticket is a piece of work in a Command teamspace, a release, or both. |
target.gid | string | Globally unique identifier of the resource, as a string. |
target.resource_type | string | The base type of this resource. |
target.name | string | The name of the ticket. |
target.short_id | string | Human-readable ID made of the teamspace's ticket prefix and a number. null when the ticket has no teamspace. |
fail_reason | string | Why the session failed. null unless status is failed. Click to show all enum values
|
external_url | string | A link to the session in the coding agent's own app, once the agent has started it. |
created_by | object | The user who started the session. |
created_by.gid | string | Globally unique identifier of the resource, as a string. |
created_by.resource_type | string | The base type of this resource. |
created_by.name | string | Read-only except when same user as requester. The user's name. |
created_at | string (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"
}