Expand description
Tools layer. The tool registry (Tool trait, Registry, ToolResult,
ToolCtx) and most tool implementations (fs, edit, search, web, browser,
git, exec, todo, media, code-nav, the memory tool…) live in the
sparrow-tools crate so the heavy tool code compiles once and is cached.
Re-exported here so existing crate::tools::* imports keep working.
extras and subagent stay in the binary crate: they sit at the top of the
dependency graph (they hold an Arc<Engine>, spawn sub-agents via the
Engine/Router, and carry gateway::GatewayResponse), which would create
cycles if pulled below the engine.
Modules§
- browser_
sandbox - builder_
tools - code_
exec - Code execution in sandbox — runs code with timeout.
- code_
nav - Code navigation tools that bring Sparrow’s self-coding loop closer to a
frontier agent’s:
glob(find files by name pattern) andsymbols(find where a symbol is defined / who calls it). Thesymbolstool is a regex-based index today; a tree-sitter AST upgrade keeps the same name/schema. - edit
- exec
- extras
- file_
search - File search tool for Sparrow.
- fs
- git
- knowledge_
graph - media
- Multimodal tools: image generation + text-to-speech (§15).
- memory
- search_
and_ web - stt
- Speech-to-Text tool for Sparrow.
- subagent
- todo
- tts
- Text-to-Speech tool for Sparrow.
- voice
- Voice command for Sparrow.
- web_
search - Web search tool — DuckDuckGo-based search with structured results.
Structs§
Constants§
Traits§
- Tool
- What an agent can do. Every tool declares a JSON schema and a risk level used by the autonomy gate.