# Permission request

> What the harness shows the user before executing a tool call that isn't pre-approved. The mechanism for putting a human in the loop.

What the [harness](https://ai9k.vercel.app/en/harness) shows the user before executing a [tool call](https://ai9k.vercel.app/en/tool-call) that isn't pre-approved. The [model](https://ai9k.vercel.app/en/model) produces a tool call; instead of running it immediately, the harness pauses and asks. Approve and it runs; deny and the harness reports the denial back to the model as a [tool result](https://ai9k.vercel.app/en/tool-result). The mechanism by which a harness puts a human in the [loop](https://ai9k.vercel.app/en/human-in-the-loop) for risky or sensitive actions.

The lifecycle of a permission request:

| Step | Who     | What happens                                                                            |
| ---- | ------- | --------------------------------------------------------------------------------------- |
| 1    | Model   | Produces a tool call                                                                    |
| 2    | Harness | Checks it against the [permission mode](https://ai9k.vercel.app/en/permission-mode) and any saved approvals |
| 3    | Harness | Pre-approved: executes immediately. Otherwise: pauses and shows the request             |
| 4    | User    | Approves once, approves for the rest of the [session](https://ai9k.vercel.app/en/session), or denies          |
| 5    | Harness | Executes the call, or sends the denial back as a tool result                            |

Denying a request steers the agent. The model reads the denial like any other tool result and reacts to it — it tries a different approach, or asks what you'd prefer. Most harnesses let you attach a message to the denial, which turns the request into a steering point: "not like that, use the migration script instead" lands exactly when the model is deciding what to do next.

The cost is that every request is a synchronous wait on you. The [agent](https://ai9k.vercel.app/en/agent) sits blocked until you answer, which is fine while you're watching and a problem when you're not — an agent that triggers requests constantly can't be left to work [AFK](https://ai9k.vercel.app/en/afk). The permission mode is the dial: which calls run freely, which ask first, ideally with a [sandbox](https://ai9k.vercel.app/en/sandbox) making it safe to widen the free set.

**Usage**

"It's been blocked on a permission request for ten minutes — I was in a meeting."

"That's the cost of human-in-the-loop. Pre-approve the safe [tools](https://ai9k.vercel.app/en/tool) so the request only fires on the actually-risky calls."

---

- Section 3 — Tools & Environment · Term 31 of 72
- Page: https://ai9k.vercel.app/en/permission-request
- Learn step by step: https://ai9k.vercel.app/en/learn#/permission-request
- On the map: https://ai9k.vercel.app/en?term=permission-request
- JSON: https://ai9k.vercel.app/data/terms/permission-request.json
- Mentioned in: [Permission mode](https://ai9k.vercel.app/en/permission-mode.md)
- Previous: [MCP](https://ai9k.vercel.app/en/mcp.md)
- Next: [Permission mode](https://ai9k.vercel.app/en/permission-mode.md)

Every term page has a markdown copy: add .md to its address.
