Skip to content
Agentic Control Plane

fx Permissions Reference: session/request_permission, yolo Mode and acp-fx

David Crowe David Crowe · · Updated · 7 min read
fx permissions acp-protocol reference
Share X HN LinkedIn

Just want the answer?

fx has no hook or plugin API to install into. Point your Agent Client Protocol client at a proxy instead of running fx acp directly:

npm install -g @agenticcontrolplane/fx
acp-fx -- fx acp

Native control model: fx permissions, explained. Not the product this site is named for: ACP vs. ACP.

fx is Vercel Labs’ small coding agent, written in Zig and announced August 18, 2026. First, a name clash. fx speaks the Agent Client Protocol, Zed’s editor protocol, which is also shortened to ACP. It has nothing to do with the Agentic Control Plane this site is named for. This page is about the message fx sends for every approval-gated tool call, and the proxy that sits on it.

No hook or plugin API, from outside

fx’s source has an internal hook system with a pre_tool_use event that can block or rewrite a call. Nothing outside the binary can attach to it. No settings key, no subprocess, no documented interface. It’s built in, and a policy tool can’t register against it today.

The control point: fx acp and session/request_permission

fx can run as an Agent Client Protocol server (fx acp). Each approval-gated call goes to the connected client as a session/request_permission request with the full tool arguments. The client answers allow or deny, and fx obeys. An error, a cancellation or a malformed answer counts as deny. Only one request is ever pending at a time.

One detail to know before you write anything against this. The original tool name never reaches the message. The toolCall carries a readable title, such as “Run: rm -rf /tmp/scratch”, and a broad kind: read, edit, delete, move, execute, search or other. Any rule on this message has to match on title text and kind. It can’t match on fx’s internal tool names.

acp-fx: a proxy, not a plugin

fx has no plugin API, so acp-fx is a stdio proxy with no dependencies. It sits between a real Agent Client Protocol client (Zed, or any ACP driver) and the fx acp process. It passes every message through untouched except session/request_permission. That one it checks with ACP (POST /govern/tool-use) and answers:

Decision Attended --unattended
allow reply allow_once directly same
deny reply reject_once directly same
ask forward the original request to the real client, so a person decides reply reject_once, because an unattended agent can’t approve itself
ACP unreachable or timed out forward to the client and let it decide, with a loud [ACP] ⚠ UNGOVERNED line on stderr reply reject_once
no credential found same as unreachable same

The reply is always allow_once or reject_once, never allow_always, even when the answer is allow. Every later call to the same tool gets checked again, so fx never stores a blanket approval on the proxy’s word.

fx is a different shape from the hook-based agents. The check only sees calls that fx itself routes to session/request_permission, not every tool call. The coverage page compares it with the others.

Output scanning only changes what you see

fx’s session/update messages carry a tool’s result text out to the client as it happens. acp-fx also posts that text to POST /govern/tool-output and can block or redact what the client displays. This is display only. fx has already given the raw result to its own model before the message goes out. Blocking or redacting changes what you see in your editor. It doesn’t change what the model already read. If ACP can’t be reached during this check, the text passes through unchanged. The loud fail-open and fail-closed behavior above belongs to the check before the call runs.

Install and point your client at it

npm install -g @agenticcontrolplane/fx
acp-fx -- fx acp        # point your ACP client here instead of `fx acp`

The main installer doesn’t set up fx. It isn’t in install.sh’s list of agents, so use the command above. It needs Node 22+ and a workspace key in ~/.acp/credentials (or ACP_API_KEY or ACP_BEARER_TOKEN).

If the proxy finds no key, it says so on stderr at startup and stays out of the way. It won’t brick your session, but it also can’t check anything.

When ACP is down

The table above is the whole story. The proxy makes one retry on a transport failure (never on an HTTP error). Then, with a person attached, it lets the call through to the client with a loud warning, and the client still gets the original request to decide. In --unattended mode it rejects the call, with no exceptions, because nobody is there to decide.

Known limits

  • fx has its own auto mode. A built-in model reviewer can approve a sensitive call when no rule matches. That’s an fx feature. acp-fx only sees a call after fx has decided it needs permission, so it doesn’t see what the reviewer approved.
  • ACP doesn’t meter model spend for fx. The activity log has the decision (allow_once or reject_once), title, kind, latency and reason, but not token cost.
  • FX_PERMISSION_MODE=yolo skips fx’s permission system completely, before any of this runs. In yolo mode fx never sends session/request_permission at all. acp-fx removes that variable from the environment of the process it starts, so a stray shell export can’t turn the checks off. It can’t stop yolo from being set some other way inside fx itself.
  • ACP runs here as a client-side proxy. If someone starts fx acp without it, there’s no check.

Frequently asked questions

Does fx support hooks or a plugin API?

Not from outside. The source has an internal pre_tool_use hook that can block or rewrite a call, but nothing outside the binary can attach to it. There’s no settings key, no subprocess execution and no documented interface.

What is session/request_permission?

The message fx’s Agent Client Protocol server sends to its connected client for each approval-gated tool call, when fx runs as fx acp. The client answers allow or deny. An error, a cancellation or a malformed answer counts as deny.

How do I point ACP at fx?

Run npm install -g @agenticcontrolplane/fx, then start acp-fx -- fx acp instead of fx acp. Point your Agent Client Protocol client (Zed, or any ACP driver) at acp-fx. It needs Node 22+ and a workspace key.

Is fx's ACP the same thing as the Agentic Control Plane?

No. It’s a name clash. fx speaks the Agent Client Protocol, Zed’s editor protocol. See /acp-vs-acp.

Where to read more

Running coding agents? ACP records each tool call its hook sees and makes the dangerous shell commands (a force-push, destructive SQL, curl | sh) wait for you. One command, free up to 5 agents:

macOS · Linux · WSL
curl -fsSL https://agenticcontrolplane.com/install.sh | bash
Windows · PowerShell
irm https://agenticcontrolplane.com/install.ps1 | iex

What the installer writes  ·  Getting started

Share X HN LinkedIn
Get the next data drop
What agents actually cost, new tool-surface captures, and the occasional incident post-mortem — sent when we publish something worth your inbox, not on a schedule. Unsubscribe anytime.
Share: Twitter LinkedIn
Related posts

← back to blog