Codumentor logo Codumentor

Ripgrep

Gives the agent a ripgrep tool for regex (or literal) search across workspace files, so it does not need find / grep via the shell.

Requirement: rg must be on PATH (rg --version). If it is missing, the plugin logs an error and does not register the tool.

Configuration

plugins:
  - module: codumentor.plugins.ripgrep
    class: RipgrepPlugin
    args:
      enabled: true
      max_results: 1000          # default 1000
      max_result_length: 30000   # bytes; default 30000

There is no target_agents setting; both the main agent and subagents can use the tool.

Tool: ripgrep

ArgumentRequiredDefaultDescription
patternyesRegex (or literal text).
search_dirno"."Directory relative to the workspace. Multi-repo: "repo_name" or "repo_name/subdir". Single-repo: a path under the working directory. Omit or "." to search everything.
file_typesnoGlob or list of globs, e.g. ".py" or [".js", "*.ts"].
files_onlynofalseIf true, return matching file paths only (like grep -l).
case_sensitivenotrueSet false for case-insensitive search.
max_resultsnoplugin defaultPer-call cap (1–10000).

Searches stay inside the workspace. With workspace isolation enabled, they run in the conversation sandbox. A search times out after 30 seconds.

Notes