Expand description
Glob tool — Rust port of @agent-sh/harness-glob.
Conforms to agent-knowledge/design/glob.md (language-neutral spec).
Same two-stage pipeline as the TS version: ignore walker for
gitignore-respecting enumeration, then in-process globset match
with bash-glob semantics.
Structs§
- Error
Result - Glob
Engine Input - Glob
Params - Ported from
@agent-sh/harness-glob/src/schema.ts. Serde’sdeny_unknown_fieldsplus a pre-check for the known-alias table lets us return the same targeted hints the TS version ships. - Glob
Paths Meta - Glob
Paths Result - Glob
Session Config
Enums§
Constants§
- DEFAULT_
HEAD_ LIMIT - DEFAULT_
OFFSET - DEFAULT_
TIMEOUT_ MS - FUZZY_
SUGGESTION_ LIMIT - GLOB_
MAX_ BYTES - GLOB_
MAX_ FILE_ SIZE - GLOB_
MAX_ PATHS_ SCANNED - GLOB_
TOOL_ DESCRIPTION - GLOB_
TOOL_ NAME
Traits§
- Glob
Engine - Pluggable engine — default enumerates files via
ignore::WalkBuilder(the same machinery ripgrep uses for its ignore-aware walk). The pattern filter happens OUTSIDE this engine in the orchestrator, matching the TS design where the engine is pure enumeration.