Expand description
Discrete, typed corpus-interaction tools exposed to a rig Agent.
Each tool is a thin, strongly-typed wrapper over crate::engine that
runs the blocking engine work on a worker thread under a wall-clock
timeout. The tools are intentionally narrow (search / find / read / list)
rather than a single “run a shell command” tool: bounded, structured
commands are what state-of-the-art agentic-search systems converged on, and
they remove the shell-injection surface entirely.
Structs§
- Corpus
Tools - Bundle of the four corpus tools, all sharing one
CorpusRoot. - Find
Args - Arguments for
FindTool. - Find
Tool - Locate files by a glob over their corpus-relative path.
- List
Args - Arguments for
ListTool. - List
Tool - List the immediate entries of a corpus directory.
- Read
Args - Arguments for
ReadTool. - Read
Tool - Read a bounded, line-numbered window from one file.
- Search
Args - Arguments for
SearchTool. - Search
Tool - Regex search across the corpus, returning
file:lineevidence.