# `Codex.Items.CommandExecution`
[🔗](https://github.com/nshkrdotcom/codex_sdk/blob/v0.18.1/lib/codex/items.ex#L151)

Captures an execution request made by the agent, including aggregated output and
status metadata.

# `status`

```elixir
@type status() :: :in_progress | :completed | :failed | :declined
```

# `t`

```elixir
@type t() :: %Codex.Items.CommandExecution{
  aggregated_output: String.t(),
  command: String.t(),
  command_actions: [map()],
  cwd: String.t() | nil,
  duration_ms: integer() | nil,
  exit_code: integer() | nil,
  id: String.t() | nil,
  process_id: String.t() | nil,
  status: status(),
  type: :command_execution
}
```

---

*Consult [api-reference.md](api-reference.md) for complete listing*
