Tool approvals for Claude Code and Cursor that an agent cannot click through
Agents have deleted production databases and inboxes while their own instructions said not to. An instruction in a prompt is advice. An approval the agent cannot give itself is a control.
Why rules in the prompt are not enough
Long sessions get summarized, and a rule can be summarized away. A token left in a file lets a call do far more than the task needed. The agent can also be talked into things by text it reads: an issue, an email, a web page.
So the check has to sit outside the model, on the calls themselves, and an approval has to come from a person, on hardware the agent cannot reach.
Set it up for a project
fiduciary protect --mcp-config .mcp.json --claude-code --apply
fiduciary passkey addThe first command protects every server in the project's .mcp.json and adds Claude Code's turn hooks to .claude/settings.local.json. The second registers a passkey (Touch ID, Windows Hello or a security key) for approvals. For Cursor, use --cursor.
What a turn changes
- Each request a turn's calls make waits in an outbox until the turn ends, and is sent only if every call of the turn went through.
- If a call is refused, the turn's earlier changes are put back exactly, on each system that keeps the records an undo needs.
- A call that needs approval waits for your passkey. The agent sees that it is held, and is told not to call it again.
Coding sessions on your own repository
fiduciary init --claude-code gives each Claude Code session a sandboxed worktree. When the session ends, everything it changed is measured as one plan and checked against limits you set, before it reaches your branch.
Step by step
- Protect the project's servers.
fiduciary protect --mcp-config .mcp.json --claude-code --apply - Register a passkey.
fiduciary passkey add - Approve held calls in the console.
fiduciary console --accept-approvals --open
Questions
Can the agent approve its own call?
Not once a passkey signs for you. Until then the owner's key is a file, and an agent that can read it could sign with it. fiduciary passkey add retires that file.
Does this slow every call down?
Reads go straight through. Writes are staged and checked on your machine before they are made: nothing goes to a third party, and nothing waits on a person unless the call needs an approval.