Skip to main content

Module worker_tool_registry

Module worker_tool_registry 

Source
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.