# ccp agent



{/* Generated by scripts/sync-cli-reference.ts */}

Manage AI agents

```text
Usage: ccp agent [OPTIONS] <COMMAND>
```

| Argument   | Type or values | Default | Parser environment variable | Description |
| ---------- | -------------- | ------- | --------------------------- | ----------- |
| --help, -h | flag           | —       | —                           | Print help  |

## `ccp agent list` [#ccp-agent-list]

List agents in an organization

```text
Usage: ccp agent list [OPTIONS]
```

Aliases: `ls`.

| Argument   | Type or values | Default | Parser environment variable | Description                                              |
| ---------- | -------------- | ------- | --------------------------- | -------------------------------------------------------- |
| --json     | flag           | false   | —                           | Emit structured JSON on stdout                           |
| --org-id   | text           | —       | —                           | Organization ID (defaults to `CCP_ORG_ID` or the picker) |
| --help, -h | flag           | —       | —                           | Print help                                               |

## `ccp agent get` [#ccp-agent-get]

Show an agent's full definition

```text
Usage: ccp agent get [OPTIONS] <AGENT_ID>
```

| Argument   | Type or values | Default | Parser environment variable | Description                        |
| ---------- | -------------- | ------- | --------------------------- | ---------------------------------- |
| --json     | flag           | false   | —                           | Emit structured JSON on stdout     |
| agent\_id  | text           | —       | —                           | Agent ID                           |
| --version  | integer        | —       | —                           | Show a specific historical version |
| --help, -h | flag           | —       | —                           | Print help                         |

## `ccp agent versions` [#ccp-agent-versions]

List every persisted version of an agent

```text
Usage: ccp agent versions [OPTIONS] <AGENT_ID>
```

| Argument   | Type or values | Default | Parser environment variable | Description                    |
| ---------- | -------------- | ------- | --------------------------- | ------------------------------ |
| --json     | flag           | false   | —                           | Emit structured JSON on stdout |
| agent\_id  | text           | —       | —                           | Agent ID                       |
| --help, -h | flag           | —       | —                           | Print help                     |

## `ccp agent delete` [#ccp-agent-delete]

Permanently delete an agent and all of its versions and runtime history

```text
Usage: ccp agent delete [OPTIONS] <AGENT_ID>
```

Aliases: `rm`.

| Argument   | Type or values | Default | Parser environment variable | Description                       |
| ---------- | -------------- | ------- | --------------------------- | --------------------------------- |
| agent\_id  | text           | —       | —                           | Agent ID                          |
| --yes, -y  | flag           | false   | —                           | Skip the interactive confirmation |
| --help, -h | flag           | —       | —                           | Print help                        |

## Example [#example]

```bash
ccp agent list
```

## Global options [#global-options]

Set `CCP_CONTEXT` to choose a named context. An explicit `--context` takes precedence. See [organization selection](/docs/ccp/organizations) for organization defaults.

| Argument  | Type or values | Default | Parser environment variable | Description                                         |
| --------- | -------------- | ------- | --------------------------- | --------------------------------------------------- |
| --context | text           | —       | —                           | Select a developer context from \~/.ccp/config.toml |
