Sim

Greptile

AI-powered codebase search and Q&A

Greptile is an AI-powered developer tool for searching and querying source code across one or more repositories. Greptile enables engineers to quickly answer complex codebase questions in natural language, locate relevant files or symbols, and gain insights into unfamiliar or legacy code.

With Greptile, you can:

  • Ask complex questions about your codebase in natural language: Get AI-generated answers about architecture, usage patterns, or specific implementations.
  • Find relevant code, files, or functions instantly: Search using keywords or natural language queries and jump right to matching lines, files, or code blocks.
  • Understand dependencies and relationships: Uncover where functions are called, how modules are related, or where APIs are used across large codebases.
  • Accelerate onboarding and code exploration: Quickly ramp up on new projects or debug tricky issues without needing deep prior context.

The Sim Greptile integration allows your AI agents to:

  • Query and search private and public repositories using Greptile’s advanced language models.
  • Retrieve contextually relevant code snippets, file references, and explanations to support code review, documentation, and development workflows.
  • Trigger automations in Sim workflows based on search/query results or embed code intelligence directly into your processes.

Whether you’re trying to accelerate developer productivity, automate documentation, or supercharge your team’s understanding of a complex codebase, Greptile and Sim provide seamless access to code intelligence and search—right where you need it.

Usage Instructions

Query and search codebases using natural language with Greptile. Get AI-generated answers about your code, find relevant files, and understand complex codebases.

Tools

greptile_query

Query repositories in natural language and get answers with relevant code references. Greptile uses AI to understand your codebase and answer questions.

Input

ParameterTypeRequiredDescription
querystringYesNatural language question about the codebase
repositoriesstringYesComma-separated list of repositories. Format: "github:branch:owner/repo" or just "owner/repo" (defaults to github:main)
sessionIdstringNoSession ID for conversation continuity
geniusbooleanNoEnable genius mode for more thorough analysis (slower but more accurate)
apiKeystringYesGreptile API key
githubTokenstringYesGitHub Personal Access Token with repo read access

Output

ParameterTypeDescription
messagestringAI-generated answer to the query
sourcesarrayRelevant code references that support the answer

Search repositories in natural language and get relevant code references without generating an answer. Useful for finding specific code locations.

Input

ParameterTypeRequiredDescription
querystringYesNatural language search query to find relevant code
repositoriesstringYesComma-separated list of repositories. Format: "github:branch:owner/repo" or just "owner/repo" (defaults to github:main)
sessionIdstringNoSession ID for conversation continuity
geniusbooleanNoEnable genius mode for more thorough search (slower but more accurate)
apiKeystringYesGreptile API key
githubTokenstringYesGitHub Personal Access Token with repo read access

Output

ParameterTypeDescription
sourcesarrayRelevant code references matching the search query

greptile_index_repo

Submit a repository to be indexed by Greptile. Indexing must complete before the repository can be queried. Small repos take 3-5 minutes, larger ones can take over an hour.

Input

ParameterTypeRequiredDescription
remotestringYesGit remote type: github or gitlab
repositorystringYesRepository in owner/repo format (e.g., "facebook/react")
branchstringYesBranch to index (e.g., "main" or "master")
reloadbooleanNoForce re-indexing even if already indexed
notifybooleanNoSend email notification when indexing completes
apiKeystringYesGreptile API key
githubTokenstringYesGitHub Personal Access Token with repo read access

Output

ParameterTypeDescription
repositoryIdstringUnique identifier for the indexed repository (format: remote:branch:owner/repo)
statusEndpointstringURL endpoint to check indexing status
messagestringStatus message about the indexing operation

greptile_status

Check the indexing status of a repository. Use this to verify if a repository is ready to be queried or to monitor indexing progress.

Input

ParameterTypeRequiredDescription
remotestringYesGit remote type: github or gitlab
repositorystringYesRepository in owner/repo format (e.g., "facebook/react")
branchstringYesBranch name (e.g., "main" or "master")
apiKeystringYesGreptile API key
githubTokenstringYesGitHub Personal Access Token with repo read access

Output

ParameterTypeDescription
repositorystringRepository name (owner/repo)
remotestringGit remote (github/gitlab)
branchstringBranch name
privatebooleanWhether the repository is private
statusstringIndexing status: submitted, cloning, processing, completed, or failed
filesProcessednumberNumber of files processed so far
numFilesnumberTotal number of files in the repository
sampleQuestionsarraySample questions for the indexed repository
shastringGit commit SHA of the indexed version

Notes

  • Category: tools
  • Type: greptile
On this page

On this page

Start building today
Trusted by over 60,000 builders.
Build Agentic workflows visually on a drag-and-drop canvas or with natural language.
Get started