Expand description
Tool system: traits, registry, and the delegate tool.
Why: The PM loop needs a polymorphic tool dispatch layer so new capabilities
plug in without touching orchestration code.
What: ToolExecutor, AgentRunner, RunContext, AgentOutput,
SearchProvider, SkillResolver, ToolResult, ToolRegistry,
DelegateToAgentTool, UseSkillTool (#2069’s progressive-disclosure
on-invoke skill-body loader).
Test: tools::traits::tests::*, tools::registry::tests::*,
tools::delegate::tests::*, tools::skill::tests::*.
Tool system for tcode — traits, registry, and the delegate tool.
Why: The PM loop and sub-agent loops need a polymorphic tool dispatch layer
so new capabilities (web search, file ops, memory, etc.) plug in without
touching the core orchestration code. This module is the assembly point.
What: Re-exports ToolExecutor, AgentRunner, RunContext, AgentOutput,
SearchProvider, SearchResult, SkillResolver, and ToolResult from
traits; ToolRegistry from registry; DelegateToAgentTool from
delegate; FinishTaskTool (#2072) from finish_task; and UseSkillTool
plus USE_SKILL_TOOL_NAME (#2069’s progressive-disclosure on-invoke
loader; the constant lets #2070’s compaction pin skill outputs by tool
name) from skill.
Test: Unit tests live in each submodule; integration tests use
DelegateToAgentTool with a MockAgentRunner.
Re-exports§
pub use bash::BashTool;pub use delegate::DelegateToAgentTool;pub use finish_task::FINISH_TASK_TOOL_NAME;pub use finish_task::FinishTaskArgs;pub use finish_task::FinishTaskTool;pub use finish_task::render_finish_summary;pub use fs::EditTool;pub use fs::ReadFileTool;pub use fs::WriteFileTool;pub use registry::ToolRegistry;pub use skill::USE_SKILL_TOOL_NAME;pub use skill::UseSkillTool;pub use traits::AgentOutput;pub use traits::AgentRunner;pub use traits::HistoryMessage;pub use traits::RunContext;pub use traits::SearchProvider;pub use traits::SearchResult;pub use traits::ServiceTier;pub use traits::SkillResolver;pub use traits::ToolExecutor;pub use traits::ToolResult;
Modules§
- bash
bashtool — execute a shell command with timeout enforcement and output capture.- delegate
delegate_to_agenttool — the PM’s primary tool for dispatching to sub-agents.- finish_
task finish_tasktool — structured, schema-validated task completion (#2072, §5.8).- fs
- Filesystem tools for the tcode tool registry.
- registry
- Tool registry — HashMap dispatcher + schema emitter.
- skill
use_skilltool — the on-invoke half of progressive-disclosure skill loading (#2069).- traits
- Core trait abstractions for tool execution, agent running, search, and skills.