Expand description
Built-in local ToolProvider + ExecBackend.
The built-in tool set is local fs + exec, confined to a root directory. Two disciplines are baked in:
- Log-before-execute is enforced by the loop (it appends the
tool/callevent before invoking this provider); side-effecting built-ins (fs_write,exec) rely on that ordering for their audit trail. - Never block a tokio worker: every fs operation and every local
process runs inside
spawn_blocking, so a sleeping tool cannot stall concurrent drains (AGENTS.md async gotcha).
Structs§
- Filtered
Tools - A config-driven allowlist over another
ToolProvider. - Local
Exec Backend - Local command execution via
spawn_blocking(DESIGN §6.2ExecBackendbuilt-). argv is executed directly — never a shell string. - Local
Tools - The built-in local tool set, confined to
root:
Constants§
- DEFAULT_
EXEC_ TIMEOUT_ MS - Default wall-clock bound for one local exec, milliseconds.
Functions§
- unmatched_
tool_ names - The
listedtool names that appear nowhere inmounted— the assembly-time fail-closed check forAgentDef.tools: a typo’d name refuses boot instead of silently shrinking the agent’s surface.