# Approve agent requests from one place with Agents

> Approve coding agent permission requests in Edith: connect Claude Code, Codex or OpenCode hooks to Agents, answer request cards and turn on notifications.

- Canonical URL: https://getedith.pro/docs/agents/tutorials/approve-agent-requests
- Updated: 2026-12-03

By the end of this tutorial, a Claude Code, Codex or OpenCode agent that wants to run a command will show you a card with **Allow once** and **Deny**, and Edith will notify you when an agent needs you. You need the Agents extension set up and at least one of those agents installed. See [Set up Agents](https://getedith.pro/docs/agents/agents/setup).

## Open Agent connections

1. Open **Agents** from the sidebar.
2. Press the more menu (…) in the page header and choose **Agent connections…**.

The same controls live in the **Session activity** section of the Agents settings: press the gear button at the top right of the Agents page.

The **Provider hooks** section has one block per agent. Claude Code, Codex and OpenCode can send both activity and permission requests to Edith. Gemini CLI and Cursor Agent send activity only, so you still approve their requests in the agent itself.

## Connect the agent's hooks

In the block for the agent you use:

1. Turn on **Observe session activity**.
2. Turn on **Handle permission requests in Edith**. It needs activity turned on first.
3. Press **Review hook setup**. A sheet shows the file Edith will change and the exact content it will write.
4. Press **Write hooks**.

Edith keeps your existing policies and unrelated hooks, and saves a private backup before it changes the file. By default it writes global hooks in your home folder, for example `.claude/settings.json` for Claude Code and `.codex/hooks.json` for Codex.

### Configure one project instead

To limit hooks to one repository, turn on **Configure a project instead of global hooks**, press **Choose folder**, pick the project, and then write the hooks.

### Trust the hooks in Codex

> **Note:** Codex asks you to trust new hooks. Open `/hooks` inside Codex, review and trust the exact hook commands, then start or resume a session. Writing the configuration alone does not connect it.

## Restart the agent's session

Hooks load when a session starts. Start a new session in that agent, or resume the one you had, after the hooks are written. Agents you start from **New agent** from now on pick them up on their own.

## Check that events arrive

Back in **Agent connections**, each block shows a status:

| Status               | Meaning                                    |
| -------------------- | ------------------------------------------ |
| **Off**              | Activity is turned off                     |
| **Awaiting event**   | Hooks are on, but no event has arrived yet |
| **Receiving events** | An event arrived recently                  |
| **No recent event**  | Nothing arrived within the quiet window    |

**Last event** shows when the most recent one came in. Give the agent a small task and watch the status change to **Receiving events**.

### From the terminal

```terminal
$ ed agent activity status
```

It lists each observed session's provider, session id, state and current tool, then the number of pending approvals. It never approves anything.

## Answer a permission request

Ask the agent to do something that needs permission, such as running a shell command. A request card appears with:

- the tool the agent wants to use
- a countdown in seconds
- the agent and the project folder
- the request details, such as the command or file

Press **Allow once** to approve this one request, or **Deny** to refuse it. Each choice covers one request.

Request cards show up in two places:

- the Agents card in the notch, together with agents that are waiting on you
- **Agent connections**, under **Pending permissions**

A request waits up to two minutes. After that the buttons turn off and the request follows the agent's normal approval behavior. Open the agent and answer in its terminal.

> **Tip:** Requests are not approved through scripts or MCP. `ed agent activity status` and the `edith_agent_activity_status` tool only read them.

## Find blocked agents on the board

An agent waiting on an approval or a question moves to the **Blocked** lane of the [board](https://getedith.pro/docs/agents/agents/board), which always comes first. Click its card to open the agent and answer in its terminal. This works for every agent kind, hooks or not.

## Turn on notifications

Press the gear button at the top right of the Agents page and open the **Notifications** section. These are on by default:

- **Notify when an agent needs you**, for approval requests and questions
- **Notify when an agent finishes**
- **Notify when an agent hits an error**

**Notify when an agent looks stuck** is off by default. Turn it on and set **Treat as stuck after**, from 2 to 120 minutes, to hear about a working agent that has stopped making progress.

Alerts need Notifications permission for Edith. Check it in **Settings > Permissions**. See [Permissions](https://getedith.pro/docs/permissions).

A notification names the agent kind and what happened, such as "Claude Code needs approval" or "Codex finished". Click it to open that agent.

### From the terminal

The same switches are ordinary settings:

```terminal
$ ed config set agentNotifyWhenStuck true
$ ed config set agentStuckMinutes 20
```

## Remove the hooks later

1. On the Agents page, open the more menu (…) and choose **Agent connections…**.
2. If you configured a project, turn on **Configure a project instead of global hooks** and choose the same folder.
3. In the agent's block, press **Remove hooks**.
4. Review the sheet, titled **Remove Edith hooks**, and press **Remove from this scope**.

Edith removes only its own hooks, again saving a backup first.

## Next steps

- [Run agents in parallel](https://getedith.pro/docs/agents/tutorials/run-agents-in-parallel)
- [Approvals](https://getedith.pro/docs/agents/agents/approvals) for every hook file and terminal discovery setting
- [Notifications](https://getedith.pro/docs/agents/agents/notifications) for each setting and its `ed config` key
- [The board](https://getedith.pro/docs/agents/agents/board)

## 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
