> ## Documentation Index
> Fetch the complete documentation index at: https://docs.paradime.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Code Search Tool

> The Code Search Tool lets DinoAI search your repository for code patterns with ripgrep, quickly locating usages, definitions, and references.

export const ToolIds = ({ids = []}) => <div style={{
  margin: '1.25rem 0'
}}>
    <p style={{
  fontSize: '13px',
  fontWeight: 600,
  color: '#6B7280',
  margin: '0 0 8px'
}}>
      Allow-list ids — use in a Programmable Agent's <code>tools.list</code>:
    </p>
    <div style={{
  display: 'flex',
  flexWrap: 'wrap',
  gap: '6px'
}}>
      {ids.map(id => <code key={id} style={{
  fontSize: '12.5px',
  padding: '2px 8px',
  borderRadius: '6px',
  background: 'rgba(114,106,227,0.08)',
  border: '1px solid rgba(114,106,227,0.2)',
  color: '#5943D6'
}}>
          {id}
        </code>)}
    </div>
  </div>;

export const ToolMeta = ({copilot = false, agent = false, backedBy, name, href}) => {
  const pill = on => ({
    display: 'inline-flex',
    alignItems: 'center',
    gap: '5px',
    padding: '2px 10px',
    borderRadius: '9999px',
    fontSize: '13px',
    fontWeight: 500,
    border: '1px solid',
    borderColor: on ? 'rgba(114,106,227,0.35)' : 'rgba(128,128,140,0.22)',
    background: on ? 'rgba(114,106,227,0.12)' : 'transparent',
    color: on ? '#5943D6' : '#9AA0AA'
  });
  return <div style={{
    display: 'flex',
    flexWrap: 'wrap',
    alignItems: 'center',
    gap: '8px',
    margin: '0 0 1.5rem'
  }}>
      <span style={{
    fontSize: '13px',
    fontWeight: 600,
    color: '#6B7280'
  }}>Available in</span>
      <span style={pill(copilot)}>{copilot ? '✓' : '—'} Copilot</span>
      <span style={pill(agent)}>{agent ? '✓' : '—'} Agent</span>
      {backedBy === 'native' && <span style={{
    fontSize: '13px',
    color: '#9AA0AA'
  }}>· Built-in</span>}
      {(backedBy === 'integration' || backedBy === 'connection') && name && <span style={{
    fontSize: '13px',
    color: '#6B7280'
  }}>
          · Backed by {href ? <a href={href}>{name}</a> : name} {backedBy}
        </span>}
    </div>;
};

<ToolMeta copilot agent backedBy="native" />

<ToolIds ids={["ripgrep_search"]} />

The Code Search Tool lets DinoAI search across your repository for code patterns using ripgrep. It is the fastest way for DinoAI to locate where a model, macro, column, or string is used before making a change.

### Capabilities

| Capability    | What it does                                                                    |
| ------------- | ------------------------------------------------------------------------------- |
| Grep codebase | Search files for a text or regex pattern with ripgrep and return matching lines |

<Info>
  For reading and editing the files you find, DinoAI uses the [File System Tool](/products/dino-ai/tools-and-features/file-system-tool).
</Info>


## Related topics

- [Tools Reference](/products/dino-ai/programmable-agents/tools-reference.md)
- [Web Search Tool](/products/dino-ai/tools-and-features/web-search-tool.md)
- [Google Drive Search Tool](/products/dino-ai/tools-and-features/google-drive-search-tool.md)
- [Catalog Tool](/products/dino-ai/tools-and-features/catalog-tool.md)
- [File System Tool](/products/dino-ai/tools-and-features/file-system-tool.md)
