Skip to content

Grep/Glob require ripgrep but it isn't declared or checked #21

Description

@Scratchydisk

GlobTool (glob.py:9) and GrepTool shell out to rg:

command = ["rg", "--files", directory, "--glob", pattern]

ripgrep isn't a declared dependency and there's no existence check. When it's missing, the tools fail with a raw FileNotFoundError: [Errno 2] No such file or directory: 'rg'. In an agent loop this is opaque: the model can't search, reads nothing, and returns no/garbage citations with no indication that the cause is a missing binary.

Suggested fix: detect rg at startup and emit a clear, actionable error (or document it as a hard requirement / fall back to a Python search).

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions