Expand description
§agnt-tools
Built-in tools for the agnt agent runtime.
Ships seven default tools that implement agnt_core::Tool:
- Filesystem:
ReadFile,WriteFile,EditFile,ListDir - Search:
Glob,Grep - Network:
Fetch
Plus one opt-in CVE-class tool behind the shell feature:
- Shell (
shellfeature): [Shell] — arbitrary command execution, default-OFF, requires an explicit sandbox config at construction.
§Security notes
- All filesystem tools accept an optional
sandbox::FilesystemRootviawith_sandbox. Without a sandbox they can read / write / list anywhere the process has access; with one, every path is canonicalized and rejected if it escapes the root. Fetchhas a built-in SSRF guard that runs atomically with DNS resolution via a customureq::Resolver(ssrf::SsrfResolver). http/https only, IPv4/IPv6 private / loopback / link-local / multicast / metadata addresses rejected in the same lookup thatureqthen uses to connect — no DNS-rebinding TOCTOU. Redirects are disabled on the per-instance agent.Shellis gated behind theshellcargo feature; it has no unsandboxed constructor. On Linux, thebwrap-shellfeature adds a bubblewrap namespace on top of the argv allowlist for defense in depth.
See THREAT_MODEL.md in the repo root for the current threat model
(updated for v0.3.1).
Re-exports§
pub use builtins::EditFile;pub use builtins::Fetch;pub use builtins::Glob;pub use builtins::Grep;pub use builtins::ListDir;pub use builtins::ReadFile;pub use builtins::WriteFile;pub use sandbox::FilesystemRoot;