Give your agents the context
Install ripgrep first. This command installs its capability description and registers your local executable. It doesn't install or run the tool.
clip registry add rg --purpose "Search file contents and list project files"
clip syncCoverage: Text search and file listing; excludes preprocessing and indexing. This is a partial community description, not a claim of full CLI Spec conformance. Missing mutation markers mean unknown.
Agent validation
The schema has changed since its last eval run, so the result below no longer applies.
An agent (claude-sonnet-5, Claude Code 2.1.278) completed 4 of 4 read-only tasks with this schema and 4 of 4 without it, against ripgrep 15.2.0, on 2026-09-21. A schema can pass without adding anything the model didn't already know, so compare the two.
what's described
Capabilities
rg <pattern> [path...]
Search a regular expression in files or stdin. Hidden and ignored files are skipped by default.
rg --no-config --json --max-count 20 --glob '*.ts' 'validateSchema' packagesrg --no-config --line-number --fixed-strings -- 'TODO' srcrg --files [path...]
List searchable files without inspecting their contents.
rg --no-config --files --glob '*.ts' packagesInspect the source
Review the schema's arguments and output fields before use. Community descriptions provide context, not authorization.
Full capability document
{
"name": "rg",
"description": "Search file contents with ripgrep. Search mutation status is unknown because --pre runs a program for each searched file. File listing does not search files, so it is read-only. Partial community schema covering text search and file listing; preprocessing, indexing, and replacement options are excluded. Examples disable configuration.",
"documentation": "https://github.com/BurntSushi/ripgrep/blob/master/crates/core/flags/defs.rs",
"global_args": [
{
"name": "--no-config",
"type": "boolean",
"description": "Ignore RIPGREP_CONFIG_PATH configuration."
}
],
"capabilities": [
{
"name": "<pattern> [path...]",
"description": "Search a regular expression in files or stdin. Hidden and ignored files are skipped by default.",
"args": [
{
"name": "pattern",
"type": "string",
"required": true
},
{
"name": "path",
"type": "string",
"description": "One or more files or directories; use - for stdin."
},
{
"name": "--fixed-strings",
"type": "boolean",
"description": "Match literal text instead of a regular expression."
},
{
"name": "--ignore-case",
"type": "boolean"
},
{
"name": "--glob",
"type": "string",
"description": "Include matching paths; a leading ! excludes them. Repeatable."
},
{
"name": "--line-number",
"type": "boolean"
},
{
"name": "--max-count",
"aliases": [
"-m"
],
"type": "integer",
"description": "Stop after this many matching lines in each file."
},
{
"name": "--json",
"type": "boolean",
"description": "Emit newline-delimited JSON events."
}
],
"examples": [
"rg --no-config --json --max-count 20 --glob '*.ts' 'validateSchema' packages",
"rg --no-config --line-number --fixed-strings -- 'TODO' src"
],
"output_fields": [
{
"name": "stdout",
"type": "string",
"description": "Matching text, or JSON events with --json; not a JSON array."
}
],
"exit_codes": {
"0": "Matches found.",
"1": "No matches found.",
"2": "An error occurred."
}
},
{
"name": "--files [path...]",
"description": "List searchable files without inspecting their contents.",
"mutating": false,
"args": [
{
"name": "path",
"type": "string",
"description": "One or more directories; defaults to the current directory."
},
{
"name": "--glob",
"type": "string",
"description": "Filter paths with a glob. Repeatable."
},
{
"name": "--hidden",
"type": "boolean",
"description": "Include hidden files and directories."
},
{
"name": "--null",
"type": "boolean",
"description": "Terminate paths with NUL instead of a newline."
}
],
"examples": [
"rg --no-config --files --glob '*.ts' packages"
],
"output_fields": [
{
"name": "stdout",
"type": "string",
"description": "File paths separated by newlines, or NUL with --null."
}
]
}
]
}