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; 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; BASH_TOOL_NAME (#2279’s verify-before-finish
gate matches bash tool calls by this literal) from bash; and
RecallSessionTool plus RECALL_SESSION_TOOL_NAME (#2348’s
session-scoped memory query — registered only on task::executor’s
daemon-session path, never on run_task’s one-shot/bake-off path) from
recall_session.
Test: Unit tests live in each submodule; integration tests use
DelegateToAgentTool with a MockAgentRunner.
(#2347) goals adds set_goal/clear_goal — the model-facing write path
onto agent_loop::GoalSlots, registered only in the daemon-session PM
registry (task::executor::run_and_record), never in run_task’s
one-shot/bake-off path or a delegated engineer’s registry.
Re-exports§
pub use bash::BASH_TOOL_NAME;pub use bash::BashTool;pub use delegate::DelegateToAgentTool;pub use delegate::EngineerCompletionSignal;pub use finish_task::FINISH_TASK_TOOL_NAME;pub use finish_task::FinishStatus;pub use finish_task::FinishTaskArgs;pub use finish_task::FinishTaskTool;pub use finish_task::render_finish_summary;pub use fs::EditTool;pub use fs::GlobTool;pub use fs::GrepTool;pub use fs::ListDirTool;pub use fs::ReadFileTool;pub use fs::WRITE_FILES_TOOL_NAME;pub use fs::WriteFileTool;pub use fs::WriteFilesTool;pub use goals::CLEAR_GOAL_TOOL_NAME;pub use goals::ClearGoalTool;pub use goals::SET_GOAL_TOOL_NAME;pub use goals::SetGoalTool;pub use recall_session::RECALL_SESSION_TOOL_NAME;pub use recall_session::RecallSessionTool;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;pub use trusty_search::SEARCH_CODE_TOOL_NAME;pub use trusty_search::TrustySearchTool;
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.
- goals
set_goal/clear_goaltools — model-driven writes to the session’s 5 fixed privileged goal slots (#2347, epic #2343 pillar 3).- recall_
session recall_sessiontool (#2348): session-scoped memory query (RAG over session history).- 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.
- trusty_
search search_codetool: trusty-search-backed code discovery (PR A).