# The inbox

> How laight queues every permission prompt, question, approval gate and stuck or failed step from every run, and how you answer them from one place.

Source: https://laight.dev/docs/inbox/

An agent must never be blocked without an inbox item existing for it. That is the most important
rule in laight.

```bash
laight inbox                       # everything waiting, across every run and project
laight inbox <item>                # one item in full
laight inbox <item> <answer>       # answer it (for scripts)
```

## Kinds of items

| Kind         | Raised when                                                    | Your answer                            |
| ------------ | -------------------------------------------------------------- | -------------------------------------- |
| `permission` | an agent wants to use a tool its permission mode doesn't allow | allow or deny                          |
| `question`   | an agent asks you something                                    | pick an option, or type an answer      |
| `gate`       | a `type: gate` step is reached                                 | one of its exits; the run routes on it |
| `stuck`      | a step stops without finishing, or goes quiet past its timeout | nudge, wait or fail                    |
| `failed`     | an unrouted failure, a loop past `max_hops`, a crashed agent   | retry the step or abort the run        |

Permission prompts can be answered from the inbox or in the agent's own pane, whichever comes
first. An unanswered permission or question expires to **deny**, never allow.

## Channels

By default items are plain files under `~/.laight/inbox/`, shown in the terminal. Planned channels
bring them to your phone ([ntfy](https://ntfy.sh)), Slack, a webhook or your own command, routed by
kind. No channel ever opens an inbound port, and only an item's title, project, run, step and
choices leave your machine.

Next: [CLI reference](/docs/cli/).
