Skip to content
Edith

Agent docs

Tutorial· About 10 minutes

Approve agent requests from one place with Agents

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.

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

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.

Find blocked agents on the board

An agent waiting on an approval or a question moves to the Blocked lane of the 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.

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