Skip to main content

Module tools

Module tools 

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

ProfileHookBuildError
Hook engine build failed for a subagent profile; include the profile name for identification.

Functions§

build_process_tools
Assembles the process_tools tool set from the [tools] section (shared across sessions for a given AgentCore instance).
build_process_tools_with_subagents
Assembles the process tool set, overlaying spawn_agent and skill tools when profiles or skills are present.
project_skills
Project SkillSpec from defect-config into the agent-side SkillEntry, mirroring the cross-crate assembly-boundary projection pattern used in project_profiles.