Skip to content

Ripgrep

Base classes

Name Children Inherits
ClaudeCodeBaseModel
clawd_code_sdk.models.base
Base model for all Claude Code Pydantic models.

⋔ Inheritance diagram

graph TD
  845713679["settings.Ripgrep"]
  2604142835["base.ClaudeCodeBaseModel"]
  3879467795["main.BaseModel"]
  2751680898["builtins.object"]
  2604142835 --> 845713679
  3879467795 --> 2604142835
  2751680898 --> 3879467795

🛈 DocStrings

Bases: ClaudeCodeBaseModel

Custom ripgrep configuration for Claude Code's bundled ripgrep support. Overrides the bundled binary and arguments.

Source code in src/clawd_code_sdk/models/settings.py
class Ripgrep(ClaudeCodeBaseModel):
    """Custom ripgrep configuration for Claude Code's bundled ripgrep support. Overrides the bundled binary and arguments."""

    model_config = ConfigDict(
        extra="forbid",
    )
    command: str = Field(..., min_length=1)
    """
    Path to the ripgrep binary to use
    """
    args: list[str] | None = None
    """
    Additional arguments to pass to the ripgrep binary
    """

args class-attribute instance-attribute

args: list[str] | None = None

Additional arguments to pass to the ripgrep binary

command class-attribute instance-attribute

command: str = Field(..., min_length=1)

Path to the ripgrep binary to use

:fa-brands-github: Show source on GitHub