Skip to main content
Cheetah AI provides powerful search capabilities that help you find code, understand your codebase, and research solutions. Unlike simple text search, the AI understands the meaning of code and can find relevant results even when they don’t contain your exact search terms. Search is fundamental to how the AI operates. When you ask questions or request changes, the AI automatically searches your codebase to gather relevant context. You can also explicitly search to explore your project or find specific code. Semantic search finds code by meaning and intent, not just keywords. This is the most powerful way to explore your codebase because it understands what code does, not just what it’s called.
"Find code related to user authentication"
This search finds authentication logic even if it’s in files called session.ts, login.ts, or middleware.ts. The AI understands that these are all related to authentication.
"Where is the payment processing logic?"
"Show me how errors are handled in this project"
"Find the code that validates user input"
How semantic search works: The AI analyzes your codebase to understand what each piece of code does. When you search, it compares your query against this understanding to find relevant matches. This means you can describe what you’re looking for in natural language without knowing the exact function names or file locations. When to use semantic search:
  • Exploring an unfamiliar codebase
  • Finding code when you don’t know the exact terminology
  • Understanding how a feature is implemented across multiple files
  • Locating code related to a concept or functionality
Content search finds exact text matches in your codebase. Use this when you know the specific text you’re looking for.
"Find all files containing 'TODO'"
"Search for 'deprecated' in comments"
"Find all uses of console.log"
"Search for 'FIXME' annotations"
Content search is literal - it finds exactly what you type. This is useful for finding specific strings, variable names, or patterns that you know exist in your code. For complex patterns, you can use regular expressions:
"Search for /api\/v[0-9]+/ in the codebase"
"Find all imports from @/components using regex"
"Search for functions matching /handle[A-Z]\w+/"
Regex search gives you precise control over pattern matching. It’s useful for finding variations of names, specific code patterns, or text that follows a particular format. Find files by their name or location:
"Find files named config"
"Search for files in the utils folder"
"Find all .test.ts files"
"List all files in src/components/"
Path search is useful when you know roughly where something is or what it’s called, but not the exact location. The AI can search the web to find documentation, solutions, and best practices. This is useful for troubleshooting errors, researching libraries, and learning new techniques.
"Search for best practices for React form validation"
"Find solutions for CORS errors in Express"
"What are the recommended state management libraries for React?"
"Search for how to implement WebSocket reconnection"
What web search is good for:
  • Troubleshooting error messages
  • Finding documentation for libraries and frameworks
  • Comparing different approaches or libraries
  • Learning best practices and patterns
  • Researching new technologies
How the AI uses web search: When you ask a question that requires current information or external knowledge, the AI searches the web, reads relevant pages, and synthesizes the information into a response. It cites sources so you can verify the information or read more.

Documentation Lookup

The AI can access official documentation for libraries and frameworks:
"Look up React useEffect documentation"
"Show me the Prisma schema syntax"
"Find Next.js API routes documentation"
"What are the TypeScript utility types?"
Documentation lookup fetches current, accurate information from official sources. This is more reliable than the AI’s training data, which may be outdated for rapidly evolving libraries. Supported sources:
  • Official library documentation
  • Framework guides and tutorials
  • API references
  • Package documentation from npm, PyPI, and other registries

Search Within Files

Find specific content within a single file:
"Find all function definitions in this file"
"Search for 'error' in app.ts"
"Where is handleSubmit defined in this component?"
"List all exports from this module"
This is useful when you’re working in a large file and need to locate specific code quickly.

Directory Tree

Visualize and understand your project structure:
"Show the directory tree"
"What's the structure of src/components?"
"List all top-level folders in the project"
"Show me the folder hierarchy for the api/ directory"
Understanding your project’s structure helps you navigate effectively and understand how code is organized. Different search types are suited for different needs:
NeedSearch TypeExample
Find related codeSemantic search”Find authentication logic”
Find exact textContent search”Search for ‘API_KEY‘“
Find by patternRegex search”Find /useState(.*)/“
Find filesPath search”Find all .tsx files”
Troubleshoot errorsWeb search”Search for ‘TypeError: Cannot read property‘“
Learn library APIsDocumentation lookup”Look up fetch API documentation”
Understand structureDirectory tree”Show project structure”

Search Strategies

Start Broad, Then Narrow

Begin with semantic search to find the general area of code, then use content search for specifics:
1. "Find code related to user sessions"
2. "Search for 'sessionStorage' in those files"
This approach helps you locate relevant code even when you don’t know exactly what you’re looking for.

Use Natural Language

Describe what you’re looking for in plain English. The AI understands context and intent:
"Find where we handle failed API requests"
This is more effective than trying to guess specific function names or file locations.

Combine Search Types

Chain different searches for comprehensive results:
"Find the authentication middleware and show me how it validates tokens"
The AI uses multiple search strategies to gather complete information.

Search Before Editing

In unfamiliar codebases, always search first to understand existing patterns:
"How are API calls structured in this project?"
This helps you follow established conventions when making changes.

Use Web Search for Errors

When encountering unfamiliar errors, web search often finds solutions faster than trying to debug from first principles:
"Search for 'Module not found: Can't resolve @/components'"
The AI finds relevant Stack Overflow answers, GitHub issues, and documentation that explain the error and how to fix it.

Search in Different Modes

Search capabilities vary by mode: Normal Mode - No search capabilities. The AI only sees open files and conversation context. Gather Mode - Full search capabilities including semantic search, content search, path search, and web search. Read-only access to files. Plan Mode - Same search capabilities as Gather mode, plus the ability to use search results to inform planning. Agent Mode - Full search capabilities plus the ability to act on search results by editing files, running commands, etc. For exploration and research, Gather mode provides all the search capabilities you need without the risk of unintended changes. For tasks that require both searching and acting on results, Agent mode combines search with full editing capabilities.