# ocloud thread

Source: https://olef.dev/docs/reference/ocloud/thread

Generated from **ocloud 3.17.3**. [All ocloud commands](https://olef.dev/docs/reference/ocloud) · [Olef Cloud overview](https://olef.dev/docs/cloud/overview) · [`olef` commands](https://olef.dev/docs/reference/commands)

Create, follow, reply to, stop, close, and inspect agent threads, timelines, and results

Global options (`--org`, `--project-root`, `--quiet`, `--redact`) apply across commands; see the [`ocloud` command catalog](https://olef.dev/docs/reference/ocloud#global-options).

## ocloud thread close

Close the thread: its live run stops, queued messages are cancelled and its subscriptions end

```bash
ocloud thread close --help
```

| Argument | Description |
| --- | --- |
| `<id>` | **Required.** Any message id of the thread |

## ocloud thread list

The threads you can see, newest activity first: each one's agent, what it is doing (working, waiting, queued, idle), runs, cost and pull request

```bash
ocloud thread list --help
```

| Argument | Description |
| --- | --- |
| `--agent` | Only this agent's threads (`agt_…` or its address) |
| `--state` | open (default), closed or all |
| `--activity` | working, waiting, queued or idle |
| `--limit` | At most this many (default 50) |

## ocloud thread new

Open a thread with an agent: the request's text, and the repository unless the agent has its own

```bash
ocloud thread new --help
```

| Argument | Description |
| --- | --- |
| `<agent>` | **Required.** The agent: its address (`team/name`, `me/name`) or `agt_…` |
| `<text>` | **Required.** What to do |
| `--repo-id` | The GitHub repository id (`ocloud repos`), when the agent has none of its own |

## ocloud thread results

The thread's structured results (a review's verdict, tests, findings), with which tests the run's own commands verified

```bash
ocloud thread results --help
```

| Argument | Description |
| --- | --- |
| `<id>` | **Required.** Positional argument. |

## ocloud thread send

Continue a thread: more instructions, or an answer to what it asked

```bash
ocloud thread send --help
```

| Argument | Description |
| --- | --- |
| `<id>` | **Required.** Any message id of the thread |
| `<text>` | **Required.** The text |

## ocloud thread show

A thread: its messages and runs (any message id of the thread)

```bash
ocloud thread show --help
```

| Argument | Description |
| --- | --- |
| `<id>` | **Required.** Positional argument. |

## ocloud thread stop

Stop the thread's live run. Nothing is pushed; the thread stays open

```bash
ocloud thread stop --help
```

| Argument | Description |
| --- | --- |
| `<id>` | **Required.** Any message id of the thread |

## ocloud thread timeline

The thread's stages with durations, usage and cost

```bash
ocloud thread timeline --help
```

| Argument | Description |
| --- | --- |
| `<id>` | **Required.** Positional argument. |

## ocloud thread trust

Mark a thread's code untrusted: later runs get no secrets and a workspace of their own. Only `outside`; running such code with credentials is an approval by someone with write access

```bash
ocloud thread trust --help
```

| Argument | Description |
| --- | --- |
| `<id>` | **Required.** Any message id of the thread |
| `<code_trust>` | **Required.** Positional argument. |
| `--reason` | Why (shown on the thread and in the audit log) |
