Expand description
Assembles the process_tools registry.
The tools grouped here (bash / fs / fetch / search / skill / spawn_agent, etc.) are
mounted once on a StaticToolRegistry as the process_tools of an AgentCore
instance, shared across all sessions of that core — not a process-global singleton
(when using defect as a library, a single process may have multiple AgentCore
instances, each with its own copy). MCP tools go through the session-level
McpToolFactory assembled in the mcp_servers module.
Structs§
- Profile
Hook Build Error - Hook engine build failed for a subagent profile; include the profile name for identification.
Functions§
- build_
process_ tools - Assembles the
process_toolstool set from the[tools]section (shared across sessions for a givenAgentCoreinstance). - build_
process_ tools_ with_ subagents - Assembles the process tool set, overlaying
spawn_agentandskilltools when profiles or skills are present. - filter_
tools_ by_ allowlist - Filters the base tool set to a subset according to an allowlist, for use with the
top-level
--profile(which runs the entire session as a single profile). Unknown tool names are a hard error (fail loud).spawn_agentis excluded even if present in the allowlist — a top-level profile is a leaf agent and does not spawn child agents. - project_
skills - Project
SkillSpecfromdefect-configinto the agent-sideSkillEntry, mirroring the cross-crate assembly-boundary projection pattern used inproject_profiles.