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
| Parameter | Type | Required | Description |
|---|---|---|---|
query | string | Yes | Natural language question about the codebase |
repositories | string | Yes | Comma-separated list of repositories. Format: "github:branch:owner/repo" or just "owner/repo" (defaults to github:main) |
sessionId | string | No | Session ID for conversation continuity |
genius | boolean | No | Enable genius mode for more thorough analysis (slower but more accurate) |
apiKey | string | Yes | Greptile API key |
githubToken | string | Yes | GitHub Personal Access Token with repo read access |
Output
| Parameter | Type | Description |
|---|---|---|
message | string | AI-generated answer to the query |
sources | array | Relevant code references that support the answer |
Index Repository
Operation
Index Repository
Greptile API Key*
••••••••
GitHub Token*
••••••••
Git Remote
GitHub
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
| Parameter | Type | Required | Description |
|---|---|---|---|
remote | string | Yes | Git remote type: github or gitlab |
repository | string | Yes | Repository in owner/repo format (e.g., "facebook/react") |
branch | string | Yes | Branch to index (e.g., "main" or "master") |
reload | boolean | No | Force re-indexing even if already indexed |
notify | boolean | No | Send email notification when indexing completes |
apiKey | string | Yes | Greptile API key |
githubToken | string | Yes | GitHub Personal Access Token with repo read access |
Output
| Parameter | Type | Description |
|---|---|---|
repositoryId | string | Unique identifier for the indexed repository (format: remote:branch:owner/repo) |
statusEndpoint | string | URL endpoint to check indexing status |
message | string | Status message about the indexing operation |
Check Status
Operation
Check Status
Greptile API Key*
••••••••
GitHub Token*
••••••••
Git Remote
GitHub
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
| Parameter | Type | Required | Description |
|---|---|---|---|
remote | string | Yes | Git remote type: github or gitlab |
repository | string | Yes | Repository in owner/repo format (e.g., "facebook/react") |
branch | string | Yes | Branch name (e.g., "main" or "master") |
apiKey | string | Yes | Greptile API key |
githubToken | string | Yes | GitHub Personal Access Token with repo read access |
Output
| Parameter | Type | Description |
|---|---|---|
repository | string | Repository name (owner/repo) |
remote | string | Git remote (github/gitlab) |
branch | string | Branch name |
private | boolean | Whether the repository is private |
status | string | Indexing status: submitted, cloning, processing, completed, or failed |
filesProcessed | number | Number of files processed so far |
numFiles | number | Total number of files in the repository |
sampleQuestions | array | Sample questions for the indexed repository |
sha | string | Git commit SHA of the indexed version |
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