Agents, Tool Use & MCP·Question 69 of 90Advanced

Your users approve 93% of the agent's permission prompts. Design an auto mode that replaces prompts with a classifier. What runs without review, what does the classifier get to see, can you trust MCP tool annotations like readOnlyHint, and what miss rate would you accept?

Type it the way you would explain it to an interviewer. A few sentences is enough; you can't break anything.

Model answer: the part to lead with

A 93% approval rate means the prompt is not a control; people are clicking through. That figure is from Claude Code, whose auto mode (March 2026) is a useful reference design. It became the default for new sessions on most plans in August 2026.

Full worked answer with diagram

A 93% approval rate means the prompt is not a control; people are clicking through. That figure is from Claude Code, whose auto mode (March 2026) is a useful reference design. It became the default for new sessions on most plans in August 2026.

Tiers, cheapest first:

  1. Allowlist. Read-only tools plus the user's own allow rules run immediately.
  2. Scoped writes. File edits inside the project directory run, because version control makes them reversible.
  3. Classifier. Everything else (shell commands, network calls, writes outside the project, external side effects) goes to a transcript classifier. Claude Code uses a two-stage classifier here.

What the classifier sees. User messages and the proposed tool calls, but not the assistant's prose or tool outputs. That is deliberate. Tool outputs are where injected instructions live, and the agent's own reasoning can talk itself, and a classifier reading it, into an action. The question it answers is narrow: did the user ask for this, and is it within what they asked?

Denials and escalation. A denied action goes back to the agent as a result so it can find an in-scope path. Repeated denials mean the agent is pushing against the boundary, so stop and hand to a human. Claude Code escalates after 3 consecutive or 20 total denials.

Tool annotations. No, not on their own. MCP's guidance is that clients treat readOnlyHint, destructiveHint, idempotentHint and openWorldHint as untrusted unless the server is trusted, and the pessimistic defaults are read-only false, destructive true, idempotent false, open-world true. A malicious server can label a delete as read-only. Use annotations from servers you have vetted and pinned, and apply the defaults to everything else.

Miss rate. Claude Code reports a 0.4% false-positive rate on real traffic and a 17% miss rate on real overeager actions. In a study of 1,053 developers shown a swapped-in dangerous command, only 13.6% refused it, while auto mode would have blocked 89% of those actions. So the honest comparison is not classifier against perfect review, it is classifier against the review people actually do.

A 17% miss rate is acceptable only with a backstop. In August 2026 Johann Rehberger published a module-shadowing bypass that worked about 80% of the time: a downloaded archive's local struct.py was loaded when the agent's code imported base64. The command looked benign; the effect was not. A classifier judges the command, not its consequences, so containment carries the real weight: a container or VM, egress restrictions, credentials kept out of the agent runtime, and monitoring. Irreversible actions with external effect (payments, sending messages, production deploys) stay human-gated whatever the classifier says.

Worth sketching. Optional, but it shows where the classifier sits and where the hard gates stay.

flowchart TD
    A["Proposed tool call"] --> B{"Read-only or<br/>user allow rule?"}
    B -->|"yes"| R["Run in sandbox"]
    B -->|"no"| C{"Edit inside<br/>the project?"}
    C -->|"yes"| R
    C -->|"no"| D{"Irreversible external<br/>effect?"}
    D -->|"yes"| H["Human approval"]
    D -->|"no"| E{"Classifier: did the<br/>user ask for this?"}
    E -->|"allow"| R
    E -->|"deny"| F["Back to agent,<br/>escalate on repeats"]

What a good answer covers

  • A 93% approval rate means the prompt is not a control; people are clicking through
  • That figure is from Claude Code, whose auto mode (March 2026) is a useful reference design
  • It became the default for new sessions on most plans in August 2026
  • Allowlist
  • Scoped writes

Key terms: Tiers, cheapest first · Allowlist · Scoped writes · Classifier · What the classifier sees · Denials and escalation · Tool annotations · Miss rate

Interviewer follow-ups to expect

  1. How would you build the eval set of overeager actions to measure the miss rate?

  2. What changes if the agent runs on a developer's laptop rather than in a cloud sandbox?

  3. How do you stop users from adding allow rules so broad they recreate the 93% problem?

Worked answer from AI-Engineer-Interview-Questions by Om (MIT), reformatted for LLM Prep · answer text last updated 6 November 2026 · scoring and review schedule by LLM Prep