Protection Beta 0.1.0-beta.1

The decision pipeline

Follow a proposed tool call from the hook to a decision.

1. The hook presents the proposal

Claude Code runs TraceRook's PreToolUse hook before every tool call. The tracerook-hook bridge reads the JSON with strict bounds and forwards a deadline-bound request to the background service over a private socket. This is the moment an action can still be prevented.

2. Local policy inspects the original action

The policy engine examines the exact action in memory: command structure, pipelines, sensitive paths, network destinations, mutation scope and task-related features. Concrete catastrophic evidence produces an immediate denial. Routine work, like cleaning a build directory, stays routine.

3. Claude adds context

When the local evidence is ambiguous, the service sends TraceRook Cloud a projection of the action (task category, action category and local signal codes) and Claude Haiku 5.5 returns a strictly validated verdict. Claude can recommend a warning or a human review; it can never lower a critical local decision.

4. Review binds to the pending call

A high-risk decision creates a pending review bound to the exact action fingerprint and a per-invocation nonce, with a 45-second deadline. The app shows it in the review window, the menu bar and the Approvals queue. Allow once releases that call; Block or expiry denies it.

5. The decision goes back to the agent

A denial is returned as permissionDecision: "deny" with a short reason the agent can read. No override returns empty output, handing the call back to Claude Code's own permission flow. The session timeline records what was intercepted, blocked, allowed and observed.