You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Greptile](https://greptile.com/) 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.
15
+
16
+
With Greptile, you can:
17
+
18
+
-**Ask complex questions about your codebase in natural language**: Get AI-generated answers about architecture, usage patterns, or specific implementations.
19
+
-**Find relevant code, files, or functions instantly**: Search using keywords or natural language queries and jump right to matching lines, files, or code blocks.
20
+
-**Understand dependencies and relationships**: Uncover where functions are called, how modules are related, or where APIs are used across large codebases.
21
+
-**Accelerate onboarding and code exploration**: Quickly ramp up on new projects or debug tricky issues without needing deep prior context.
22
+
23
+
The Sim Greptile integration allows your AI agents to:
24
+
25
+
- Query and search private and public repositories using Greptile’s advanced language models.
26
+
- Retrieve contextually relevant code snippets, file references, and explanations to support code review, documentation, and development workflows.
27
+
- Trigger automations in Sim workflows based on search/query results or embed code intelligence directly into your processes.
28
+
29
+
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.
30
+
{/* MANUAL-CONTENT-END */}
31
+
32
+
33
+
## Usage Instructions
34
+
35
+
Query and search codebases using natural language with Greptile. Get AI-generated answers about your code, find relevant files, and understand complex codebases.
36
+
37
+
38
+
39
+
## Tools
40
+
41
+
### `greptile_query`
42
+
43
+
Query repositories in natural language and get answers with relevant code references. Greptile uses AI to understand your codebase and answer questions.
44
+
45
+
#### Input
46
+
47
+
| Parameter | Type | Required | Description |
48
+
| --------- | ---- | -------- | ----------- |
49
+
|`query`| string | Yes | Natural language question about the codebase |
50
+
|`repositories`| string | Yes | Comma-separated list of repositories. Format: "github:branch:owner/repo" or just "owner/repo" \(defaults to github:main\)|
51
+
|`sessionId`| string | No | Session ID for conversation continuity |
52
+
|`genius`| boolean | No | Enable genius mode for more thorough analysis \(slower but more accurate\)|
53
+
|`apiKey`| string | Yes | Greptile API key |
54
+
|`githubToken`| string | Yes | GitHub Personal Access Token with repo read access |
55
+
56
+
#### Output
57
+
58
+
| Parameter | Type | Description |
59
+
| --------- | ---- | ----------- |
60
+
|`message`| string | AI-generated answer to the query |
61
+
|`sources`| array | Relevant code references that support the answer |
62
+
63
+
### `greptile_search`
64
+
65
+
Search repositories in natural language and get relevant code references without generating an answer. Useful for finding specific code locations.
66
+
67
+
#### Input
68
+
69
+
| Parameter | Type | Required | Description |
70
+
| --------- | ---- | -------- | ----------- |
71
+
|`query`| string | Yes | Natural language search query to find relevant code |
72
+
|`repositories`| string | Yes | Comma-separated list of repositories. Format: "github:branch:owner/repo" or just "owner/repo" \(defaults to github:main\)|
73
+
|`sessionId`| string | No | Session ID for conversation continuity |
74
+
|`genius`| boolean | No | Enable genius mode for more thorough search \(slower but more accurate\)|
75
+
|`apiKey`| string | Yes | Greptile API key |
76
+
|`githubToken`| string | Yes | GitHub Personal Access Token with repo read access |
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.
Copy file name to clipboardExpand all lines: apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/copilot/components/copilot-message/components/markdown-renderer.tsx
0 commit comments