# Crew integrations: agent state and approval hooks

> Install Crew integrations, the hooks that let coding agents report working, finished or waiting to the engine, and learn how Crew handles approvals.

- Canonical URL: https://getedith.pro/docs/agents/crew/integrations
- Updated: 2026-12-03

Each agent CLI that supports hooks or plugins can tell the agents engine when it starts working, finishes or waits for you. That is faster and more exact than reading the screen, so the board moves agents between **Working**, **Done** and **Blocked** as soon as it happens.

## Install engine hooks

Engine hooks report straight to the agents engine, so they work for Crew. You install them from the terminal:

```sh
ed crew integrations ls
ed crew integrations install claude codex
ed crew integrations install --all
```

`ls` lists every agent the engine can hook into and its state: not installed, current with its version, outdated, or needing repair, and the file the hook lives in. `install` writes the hook or plugin each named agent needs. `--all` installs every agent that is installed but not hooked yet. Targets are the names `ls` prints, for example `claude`, `codex` or `opencode`.

After installing, start or resume the agent's session so it loads the hook.

### Keep hooks current

```sh
ed crew integrations ls --outdated-only
ed crew integrations repair
```

`repair` reinstalls only hooks that are outdated or need repair. Hooks that are current or not installed stay as they are. Run it after updating an agent CLI or Edith.

### Remove hooks

```sh
ed crew integrations uninstall claude
```

This removes the hook or plugin Edith wrote and leaves the rest of the agent's settings alone.

### On other machines

Every `ed crew integrations` command takes `--machine` and works on that machine's agents:

```sh
ed crew integrations ls --machine box
ed crew integrations install --all --machine box
ed crew integrations repair --machine box
```

On a fresh machine, `edith-agents up` also offers the missing integrations while it sets up the engine.

## How an agent's state is decided

With a hook, the agent reports its own state. Without one, the engine reads the agent's screen and applies detection rules. To see which rule decided an agent's state:

```sh
ed crew engine agent explain w1:p2
```

## Session activity settings

On the Crew page, open **More** and choose **Agent connections…**. The same pane is in Crew's settings: press the **Settings** gear at the top right of the Crew page. It has three parts.

**Provider hooks** lists Claude Code, Codex, OpenCode, Gemini CLI and Cursor Agent. For each you can turn on **Observe session activity** and, for agents that support it, **Handle permission requests in Edith**. **Review hook setup** shows the exact file change before **Write hooks** saves it, and **Remove hooks** takes them out again. Existing policies and unrelated hooks are kept, and Edith saves a private backup first.

**Terminal discovery and attention** has **Discover agents in local and remote agent terminals**, **Inspect blocked agents and stalled progress**, **Check stalled progress after** a number of minutes, and **Mark quiet hooks after** a number of minutes.

**Pending permissions** shows waiting requests with **Allow once** and **Deny**. A request waits up to two minutes, then follows the agent's normal approval behavior.

> **Beta:** These hooks only reach the Agents extension. With Crew alone, use the engine hooks above. See [Limitations](https://getedith.pro/docs/agents/crew/limitations).

## Approvals in Crew

How you approve depends on how the agent runs.

### Terminal agents

A terminal agent that asks for permission moves to **Blocked** on the board. Open it and answer in its terminal. Messages from `ed crew send` skip a blocked agent on purpose, because extra input could answer its question.

### Threads

A thread shows each approval or question as its own item, with the choices the agent offers: **Approve**, **Always allow this session**, **Always allow**, **Decline**, or **Decline with feedback** to tell the agent what to do instead. Threads waiting on you are listed under **Needs you** in the Threads sidebar.

From the terminal:

```sh
ed crew thread requests
ed crew thread requests --all-machines
ed crew thread respond rq_01 --decision accept
ed crew thread respond rq_02 --decision decline --feedback "do not touch the schema"
```

Decisions are `accept`, `accept_for_session`, `accept_always`, `decline` and `cancel`. The thread's permission mode, from **Supervised** to **Full access**, decides how often it asks. See [Threads](https://getedith.pro/docs/agents/crew/threads).

## Where to go next

- [Notifications and settings](https://getedith.pro/docs/agents/crew/notifications)
- [Providers](https://getedith.pro/docs/agents/crew/providers)
- [`ed crew integrations`](https://getedith.pro/docs/agents/crew/cli/integrations)

## Get Edith

Edith is a native Mac app for macOS 14 or later on Apple silicon with 100+ extensions, the `ed` command line and an MCP server. $35 once for one Mac, plus $7 for each additional Mac, with no subscription and a 30-day refund.

- [Buy Edith](https://getedith.pro/pricing): $35 once for one Mac, plus $7 for each additional Mac
- [Download Edith](https://getedith.pro/download): the installer, or Homebrew
