Expand description
Tool abstraction: any side effect the model can request.
Tools are orthogonal to the agent and to each other. To add a capability
you implement Tool and register it; no other file changes.
Re-exports§
pub use apply_patch::ApplyPatch;pub use estimate_tokens::EstimateTokens;pub use fs::ListDir;pub use fs::ReadFile;pub use fs::WriteFile;pub use load_skill::LoadSkill;pub use memory::Forget;pub use memory::Recall;pub use memory::Remember;pub use run_background::BackgroundJobManager;pub use run_background::CheckBackground;pub use run_background::RunBackground;pub use run_skill_script::RunSkillScript;pub use search::SearchFiles;pub use shell::RunShell;pub use sub_agent::SubAgent;pub use transport::DirEntry;pub use transport::ExecResult;pub use transport::LocalTransport;pub use transport::ReadResult;pub use transport::ToolTransport;pub use web_fetch::WebFetch;
Modules§
- apply_
patch apply_patch: apply a structured multi-file patch atomically.- estimate_
tokens - Token estimation tool: estimate token count for text or file contents.
- fs
- Filesystem tools:
read_file,write_file,list_dir. - load_
skill - Tool to load a skill’s content by name.
- memory
- Persistent memory tools:
remember,recall,forget. - run_
background run_backgroundandcheck_background: spawn long-running commands asynchronously and poll their status later.- run_
skill_ script - Tool to run a script from a skill’s
scripts/directory. - search
search_files: substring/regex search across workspace files.- shell
run_shell: execute a command in the workspace.- sub_
agent - Sub-agent tool: spawn a fresh agent loop with a restricted tool subset.
- transport
- Transport abstraction: decouple tools from direct filesystem/shell access.
- web_
fetch web_fetch: HTTP GET tool for fetching web content.