Saltar al contenido principal
Versión: 0.15.0

Function: createFileScopeGate()

function createFileScopeGate(scope): HookCallback;

Defined in: core/hooks/fileScopeGate.ts:76

PreToolUse hook enforcing scope on Read/Write/Edit/Grep, for the main agent and its subagents alike. Bash, when a subagent has it, is not covered: it can reach any path, which is why Bash-granting features stay opt-in.

Parameters​

ParameterType
scopeFileScope

Returns​

HookCallback