Greptile

AI-powered codebase search and Q&A

Configuration

Query

Operation
Query
Greptile API Key*
••••••••
GitHub Token*
••••••••
Query*
Ask a question about the codebase...
Repositories*
owner/repo, github:main:owner/repo (comma-separated)
Session ID
Optional session ID for conversation continuity
Genius Mode
Disabled
Query (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
repositorystringRepository name (owner/repo)
remotestringGit remote (github/gitlab)
branchstringBranch name
filepathstringPath to the file
linestartnumberStarting line number
lineendnumberEnding line number
summarystringSummary of the code section

Operation
Search
Greptile API Key*
••••••••
GitHub Token*
••••••••
Search Query*
Search for code patterns, functions, or concepts...
Repositories*
owner/repo, github:main:owner/repo (comma-separated)
Session ID
Optional session ID for conversation continuity
Genius Mode
Disabled
Search (greptile_search)

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
repositorystringRepository name (owner/repo)
remotestringGit remote (github/gitlab)
branchstringBranch name
filepathstringPath to the file
linestartnumberStarting line number
lineendnumberEnding line number
summarystringSummary of the code section

Index Repository

Operation
Index Repository
Greptile API Key*
••••••••
GitHub Token*
••••••••
Git Remote
Select...
Repository*
owner/repo
Branch*
main
Force Re-index
Disabled
Email Notification
Disabled
Index Repository (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

Check Status

Operation
Check Status
Greptile API Key*
••••••••
GitHub Token*
••••••••
Git Remote
Select...
Repository*
owner/repo
Branch*
main
Check Status (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

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.

Notes

  • Category: tools
  • Type: greptile