Expand description
Worker-local tool registry construction.
This module keeps worker approval policy and workspace-aware tool wiring out of the main worker loop.
Functions§
- create_
filtered_ registry - Build the worker’s tool registry for the current workspace and approval mode.
- is_
tool_ allowed - Return whether a tool may run under the selected auto-approve policy.
- register_
mutating_ tools - Register the worker’s state-changing tools against the current workspace root.
- register_
safe_ tools - Register the worker’s read-only tools against the current workspace root.