Elffuss BraidHub

kikocis/continue public

972ea8cfaef0 · 23.6 KiBRawPermalink
1---
2title: Context providers
3description: Type '@' to select content to the LLM as context
4keywords: [context, "@", provider, LLM]
5---
6
7import TabItem from "@theme/TabItem";
8import Tabs from "@theme/Tabs";
9
10Context Providers allow you to type '@' and see a dropdown of content that can all be fed to the LLM as context. Every context provider is a plugin, which means if you want to reference some source of information that you don't see here, you can request (or build!) a new context provider.
11
12As an example, say you are working on solving a new GitHub Issue. You type '@Issue' and select the one you are working on. Continue can now see the issue title and contents. You also know that the issue is related to the files 'readme.md' and 'helloNested.py', so you type '@readme' and '@hello' to find and select them. Now these 3 "Context Items" are displayed inline with the rest of your input.
13
14![Context Items](/img/context-provider-example.png)
15
16## Context blocks
17
18You can add context providers to assistants using [`context` blocks](../hub/blocks/block-types.md#context). Explore available context blocks in [the hub](https://hub.continue.dev/explore/context).
19
20## Built-in Context Providers
21
22You can add any built-in context-providers in your config file as shown below:
23
24### `@File`
25
26Reference any file in your current workspace.
27
28<Tabs groupId="config-example">
29 <TabItem value="yaml" label="YAML">
30 ```yaml title="config.yaml"
31 context:
32 - provider: file
33 ```
34 </TabItem>
35 <TabItem value="json" label="JSON">
36 ```json title="config.json"
37 {
38 "contextProviders": [
39 {
40 "name": "file"
41 }
42 ]
43 }
44 ```
45 </TabItem>
46</Tabs>
47
48### `@Code`
49
50Reference specific functions or classes from throughout your project.
51
52<Tabs groupId="config-example">
53 <TabItem value="yaml" label="YAML">
54 ```yaml title="config.yaml"
55 context:
56 - provider: code
57 ```
58 </TabItem>
59 <TabItem value="json" label="JSON">
60 ```json title="config.json"
61 {
62 "contextProviders": [
63 {
64 "name": "code"
65 }
66 ]
67 }
68 ```
69 </TabItem>
70</Tabs>
71
72### `@Git Diff`
73
74Reference all of the changes you've made to your current branch. This is useful if you want to summarize what you've done or ask for a general review of your work before committing.
75
76<Tabs groupId="config-example">
77 <TabItem value="yaml" label="YAML">
78 ```yaml title="config.yaml"
79 context:
80 - provider: diff
81 ```
82 </TabItem>
83 <TabItem value="json" label="JSON">
84 ```json title="config.json"
85 {
86 "contextProviders": [
87 {
88 "name": "diff"
89 }
90 ]
91 }
92 ```
93 </TabItem>
94</Tabs>
95
96### `@Current File`
97
98Reference the currently open file.
99
100<Tabs groupId="config-example">
101 <TabItem value="yaml" label="YAML">
102 ```yaml title="config.yaml"
103 context:
104 - provider: currentFile
105 ```
106 </TabItem>
107 <TabItem value="json" label="JSON">
108 ```json title="config.json"
109 {
110 "contextProviders": [
111 {
112 "name": "currentFile"
113 }
114 ]
115 }
116 ```
117 </TabItem>
118</Tabs>
119
120### `@Terminal`
121
122Reference the last command you ran in your IDE's terminal and its output.
123
124<Tabs groupId="config-example">
125 <TabItem value="yaml" label="YAML">
126 ```yaml title="config.yaml"
127 context:
128 - provider: terminal
129 ```
130 </TabItem>
131 <TabItem value="json" label="JSON">
132 ```json title="config.json"
133 {
134 "contextProviders": [
135 {
136 "name": "terminal"
137 }
138 ]
139 }
140 ```
141 </TabItem>
142</Tabs>
143
144### `@Docs`
145
146Reference the contents from any documentation site.
147
148<Tabs groupId="config-example">
149 <TabItem value="yaml" label="YAML">
150 ```yaml title="config.yaml"
151 context:
152 - provider: docs
153 ```
154 </TabItem>
155 <TabItem value="json" label="JSON">
156 ```json title="config.json"
157 {
158 "contextProviders": [
159 {
160 "name": "docs"
161 }
162 ]
163 }
164 ```
165 </TabItem>
166</Tabs>
167
168Note that this will only enable the `@Docs` context provider.
169
170To use it, you need to add a documentation site to your config file. See the [docs](../customize/deep-dives/docs.mdx) page for more information.
171
172### `@Open`
173
174Reference the contents of all of your open files. Set `onlyPinned` to `true` to only reference pinned files.
175
176<Tabs groupId="config-example">
177 <TabItem value="yaml" label="YAML">
178 ```yaml title="config.yaml"
179 context:
180 - provider: open
181 params:
182 onlyPinned: true
183 ```
184 </TabItem>
185 <TabItem value="json" label="JSON">
186 ```json title="config.json"
187 {
188 "contextProviders": [
189 {
190 "name": "open",
191 "params": {
192 "onlyPinned": true
193 }
194 }
195 ]
196 }
197 ```
198 </TabItem>
199</Tabs>
200
201### `@Web`
202
203Reference relevant pages from across the web, automatically determined from your input.
204
205Optionally, set `n` to limit the number of results returned (default 6).
206
207<Tabs groupId="config-example">
208 <TabItem value="yaml" label="YAML">
209 ```yaml title="config.yaml"
210 context:
211 - provider: web
212 params:
213 n: 5
214 ```
215 </TabItem>
216 <TabItem value="json" label="JSON">
217 ```json title="config.json"
218 {
219 "contextProviders": [
220 {
221 "name": "web",
222 "params": {
223 "n": 5
224 }
225 }
226 ]
227 }
228 ```
229 </TabItem>
230</Tabs>
231
232### `@Codebase`
233
234Reference the most relevant snippets from your codebase.
235
236<Tabs groupId="config-example">
237 <TabItem value="yaml" label="YAML">
238 ```yaml title="config.yaml"
239 context:
240 - provider: codebase
241 ```
242 </TabItem>
243 <TabItem value="json" label="JSON">
244 ```json title="config.json"
245 {
246 "contextProviders": [
247 {
248 "name": "codebase"
249 }
250 ]
251 }
252 ```
253 </TabItem>
254</Tabs>
255
256Read more about indexing and retrieval [here](../customize/deep-dives/codebase.mdx).
257
258### `@Folder`
259
260Uses the same retrieval mechanism as `@Codebase`, but only on a single folder.
261
262<Tabs groupId="config-example">
263 <TabItem value="yaml" label="YAML">
264 ```yaml title="config.yaml"
265 context:
266 - provider: folder
267 ```
268 </TabItem>
269 <TabItem value="json" label="JSON">
270 ```json title="config.json"
271 {
272 "contextProviders": [
273 {
274 "name": "folder"
275 }
276 ]
277 }
278 ```
279 </TabItem>
280</Tabs>
281
282### `@Search`
283
284Reference the results of codebase search, just like the results you would get from VS Code search.
285
286<Tabs groupId="config-example">
287 <TabItem value="yaml" label="YAML">
288 ```yaml title="config.yaml"
289 context:
290 - provider: search
291 ```
292 </TabItem>
293 <TabItem value="json" label="JSON">
294 ```json title="config.json"
295 {
296 "contextProviders": [
297 {
298 "name": "search"
299 }
300 ]
301 }
302 ```
303 </TabItem>
304</Tabs>
305
306This context provider is powered by [ripgrep](https://github.com/BurntSushi/ripgrep).
307
308### `@Url`
309
310Reference the markdown converted contents of a given URL.
311
312<Tabs groupId="config-example">
313 <TabItem value="yaml" label="YAML">
314 ```yaml title="config.yaml"
315 context:
316 - provider: url
317 ```
318 </TabItem>
319 <TabItem value="json" label="JSON">
320 ```json title="config.json"
321 {
322 "contextProviders": [
323 {
324 "name": "url"
325 }
326 ]
327 }
328 ```
329 </TabItem>
330</Tabs>
331
332### `@Clipboard`
333
334Reference recent clipboard items
335
336<Tabs groupId="config-example">
337 <TabItem value="yaml" label="YAML">
338 ```yaml title="config.yaml"
339 context:
340 - provider: clipboard
341 ```
342 </TabItem>
343 <TabItem value="json" label="JSON">
344 ```json title="config.json"
345 {
346 "contextProviders": [
347 {
348 "name": "clipboard"
349 }
350 ]
351 }
352 ```
353 </TabItem>
354</Tabs>
355
356### `@Tree`
357
358Reference the structure of your current workspace.
359
360<Tabs groupId="config-example">
361 <TabItem value="yaml" label="YAML">
362 ```yaml title="config.yaml"
363 context:
364 - provider: tree
365 ```
366 </TabItem>
367 <TabItem value="json" label="JSON">
368 ```json title="config.json"
369 {
370 "contextProviders": [
371 {
372 "name": "tree"
373 }
374 ]
375 }
376 ```
377 </TabItem>
378</Tabs>
379
380### `@Problems`
381
382Get Problems from the current file.
383
384<Tabs groupId="config-example">
385 <TabItem value="yaml" label="YAML">
386 ```yaml title="config.yaml"
387 context:
388 - provider: problems
389 ```
390 </TabItem>
391 <TabItem value="json" label="JSON">
392 ```json title="config.json"
393 {
394 "contextProviders": [
395 {
396 "name": "problems"
397 }
398 ]
399 }
400 ```
401 </TabItem>
402</Tabs>
403
404### `@Debugger`
405
406Reference the contents of the local variables in the debugger. Currently only available in VS Code.
407
408<Tabs groupId="config-example">
409 <TabItem value="yaml" label="YAML">
410 ```yaml title="config.yaml"
411 context:
412 - provider: debugger
413 params:
414 stackDepth: 3
415 ```
416 </TabItem>
417 <TabItem value="json" label="JSON">
418 ```json title="config.json"
419 {
420 "contextProviders": [
421 {
422 "name": "debugger",
423 "params": {
424 "stackDepth": 3
425 }
426 }
427 ]
428 }
429 ```
430 </TabItem>
431</Tabs>
432
433Uses the top _n_ levels (defaulting to 3) of the call stack for that thread.
434
435### `@Repository Map`
436
437Reference the outline of your codebase. By default, signatures are included along with file in the repo map.
438
439`includeSignatures` params can be set to false to exclude signatures. This could be necessary for large codebases and/or to reduce context size significantly. Signatures will not be included if indexing is disabled.
440
441<Tabs groupId="config-example">
442 <TabItem value="yaml" label="YAML">
443 ```yaml title="config.yaml"
444 context:
445 - provider: repo-map
446 params:
447 includeSignatures: false # default true
448 ```
449 </TabItem>
450 <TabItem value="json" label="JSON">
451 ```json title="config.json"
452 {
453 "contextProviders": [
454 {
455 "name": "repo-map",
456 "params": {
457 "includeSignatures": false // default true
458 }
459 }
460 ]
461 }
462 ```
463 </TabItem>
464</Tabs>
465
466Provides a list of files and the call signatures of top-level classes, functions, and methods in those files. This helps the model better understand how a particular piece of code relates to the rest of the codebase.
467
468In the submenu that appears, you can select either `Entire codebase`, or specify a subfolder to generate the repostiory map from.
469
470This context provider is inpsired by [Aider's repository map](https://aider.chat/2023/10/22/repomap.html).
471
472### `@Operating System`
473
474Reference the architecture and platform of your current operating system.
475
476<Tabs groupId="config-example">
477 <TabItem value="yaml" label="YAML">
478 ```yaml title="config.yaml"
479 context:
480 - provider: os
481 ```
482 </TabItem>
483 <TabItem value="json" label="JSON">
484 ```json title="config.json"
485 {
486 "contextProviders": [
487 {
488 "name": "os"
489 }
490 ]
491 }
492 ```
493 </TabItem>
494</Tabs>
495
496### Model Context Protocol
497
498The [Model Context Protocol](https://modelcontextprotocol.io/introduction) is a standard proposed by Anthropic to unify prompts, context, and tool use. Continue supports any MCP server with the MCP context provider. Read their [quickstart](https://modelcontextprotocol.io/quickstart) to learn how to set up a local server and then set up your configuration like this:
499
500<Tabs groupId="config-example">
501 <TabItem value="yaml" label="YAML">
502 ```yaml title="config.yaml"
503 mcpServers:
504 - name: My MCP Server
505 command: uvx
506 args:
507 - mcp-server-sqlite
508 - --db-path
509 - /Users/NAME/test.db
510 ```
511 </TabItem>
512 <TabItem value="json" label="JSON">
513 ```json title="config.json"
514 {
515 "experimental": {
516 "modelContextProtocolServers": [
517 {
518 "transport": {
519 "type": "stdio",
520 "command": "uvx",
521 "args": ["mcp-server-sqlite", "--db-path", "/Users/NAME/test.db"]
522 }
523 }
524 ]
525 }
526 }
527 ```
528 </TabItem>
529</Tabs>
530
531You'll then be able to type "@" and see "MCP" in the context providers dropdown.
532
533### `@Issue`
534
535Reference the conversation in a GitHub issue.
536
537<Tabs groupId="config-example">
538 <TabItem value="yaml" label="YAML">
539 ```yaml title="config.yaml"
540 context:
541 - provider: issue
542 params:
543 repos:
544 - owner: continuedev
545 repo: continue
546 githubToken: ghp_xxx
547 ```
548 </TabItem>
549 <TabItem value="json" label="JSON">
550 ```json title="config.json"
551 {
552 "contextProviders": [
553 {
554 "name": "issue",
555 "params": {
556 "repos": [
557 {
558 "owner": "continuedev",
559 "repo": "continue"
560 }
561 ],
562 "githubToken": "ghp_xxx"
563 }
564 }
565 ]
566 }
567 ```
568 </TabItem>
569</Tabs>
570
571Make sure to include your own [GitHub personal access token](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens#creating-a-fine-grained-personal-access-token) to avoid being rate-limited.
572
573### `@Database`
574
575Reference table schemas from Sqlite, Postgres, MSSQL, and MySQL databases.
576
577<Tabs groupId="config-example">
578 <TabItem value="yaml" label="YAML">
579 ```yaml title="config.yaml"
580 context:
581 - provider: database
582 params:
583 connections:
584 - name: examplePostgres
585 connection_type: postgres
586 connection:
587 user: username
588 host: localhost
589 database: exampleDB
590 password: yourPassword
591 port: 5432
592 - name: exampleMssql
593 connection_type: mssql
594 connection:
595 user: username
596 server: localhost
597 database: exampleDB
598 password: yourPassword
599 - name: exampleSqlite
600 connection_type: sqlite
601 connection:
602 filename: /path/to/your/sqlite/database.db
603 ```
604 </TabItem>
605 <TabItem value="json" label="JSON">
606 ```json title="config.json"
607 {
608 "contextProviders": [
609 {
610 "name": "database",
611 "params": {
612 "connections": [
613 {
614 "name": "examplePostgres",
615 "connection_type": "postgres",
616 "connection": {
617 "user": "username",
618 "host": "localhost",
619 "database": "exampleDB",
620 "password": "yourPassword",
621 "port": 5432
622 }
623 },
624 {
625 "name": "exampleMssql",
626 "connection_type": "mssql",
627 "connection": {
628 "user": "username",
629 "server": "localhost",
630 "database": "exampleDB",
631 "password": "yourPassword"
632 }
633 },
634 {
635 "name": "exampleSqlite",
636 "connection_type": "sqlite",
637 "connection": {
638 "filename": "/path/to/your/sqlite/database.db"
639 }
640 }
641 ]
642 }
643 }
644 ]
645 }
646 ```
647 </TabItem>
648</Tabs>
649
650Each connection should include a unique name, the `connection_type`, and the necessary connection parameters specific to each database type.
651
652Available connection types:
653
654- `postgres`
655- `mysql`
656- `sqlite`
657
658### `@Postgres`
659
660Reference the schema of a table, and some sample rows
661
662<Tabs groupId="config-example">
663 <TabItem value="yaml" label="YAML">
664 ```yaml title="config.yaml"
665 context:
666 - provider: postgres
667 params:
668 host: localhost
669 port: 5436
670 user: myuser
671 password: catsarecool
672 database: animals
673 schema: public
674 sampleRows: 3
675 ```
676 </TabItem>
677 <TabItem value="json" label="JSON">
678 ```json title="config.json"
679 {
680 "contextProviders": [
681 {
682 "name": "postgres",
683 "params": {
684 "host": "localhost",
685 "port": 5436,
686 "user": "myuser",
687 "password": "catsarecool",
688 "database": "animals",
689 "schema": "public",
690 "sampleRows": 3
691 }
692 }
693 ]
694 }
695 ```
696 </TabItem>
697</Tabs>
698
699The only required settings are those for creating the database connection: `host`, `port`, `user`, `password`, and `database`.
700
701By default, the `schema` filter is set to `public`, and the `sampleRows` is set to 3. You may unset the schema if you want to include tables from all schemas.
702
703[Here is a short demo.](https://github.com/continuedev/continue/pull/859)
704
705### `@Google`
706
707Reference the results of a Google search.
708
709<Tabs groupId="config-example">
710 <TabItem value="yaml" label="YAML">
711 ```yaml title="config.yaml"
712 context:
713 - provider: google
714 params:
715 serperApiKey: <YOUR_SERPER.DEV_API_KEY>
716 ```
717 </TabItem>
718 <TabItem value="json" label="JSON">
719 ```json title="config.json"
720 {
721 "contextProviders": [
722 {
723 "name": "google",
724 "params": {
725 "serperApiKey": "<YOUR_SERPER.DEV_API_KEY>"
726 }
727 }
728 ]
729 }
730 ```
731 </TabItem>
732</Tabs>
733
734For example, type "@Google python tutorial" if you want to search and discuss ways of learning Python.
735
736Note: You can get an API key for free at [serper.dev](https://serper.dev).
737
738### `@Gitlab Merge Request`
739
740Reference an open MR for this branch on GitLab.
741
742<Tabs groupId="config-example">
743 <TabItem value="yaml" label="YAML">
744 ```yaml title="config.yaml"
745 context:
746 - provider: gitlab-mr
747 params:
748 token: "..."
749 ```
750 </TabItem>
751 <TabItem value="json" label="JSON">
752 ```json title="config.json"
753 {
754 "contextProviders": [
755 {
756 "name": "gitlab-mr",
757 "params": {
758 "token": "..."
759 }
760 }
761 ]
762 }
763 ```
764 </TabItem>
765</Tabs>
766
767You will need to create a [personal access token](https://docs.gitlab.com/ee/user/profile/personal_access_tokens.html) with the `read_api` scope.
768
769#### Using Self-Hosted GitLab
770
771You can specify the domain to communicate with by setting the `domain` parameter in your configurtion. By default this is set to `gitlab.com`.
772
773<Tabs groupId="config-example">
774 <TabItem value="yaml" label="YAML">
775 ```yaml title="config.yaml"
776 context:
777 - provider: gitlab-mr
778 params:
779 token: "..."
780 domain: "gitlab.example.com"
781 ```
782 </TabItem>
783 <TabItem value="json" label="JSON">
784 ```json title="config.json"
785 {
786 "contextProviders": [
787 {
788 "name": "gitlab-mr",
789 "params": {
790 "token": "...",
791 "domain": "gitlab.example.com"
792 }
793 }
794 ]
795 }
796 ```
797 </TabItem>
798</Tabs>
799
800#### Filtering Comments
801
802If you select some code to be edited, you can have the context provider filter out comments for other files. To enable this feature, set `filterComments` to `true`.
803
804### `@Jira`
805
806Reference the conversation in a Jira issue.
807
808<Tabs groupId="config-example">
809 <TabItem value="yaml" label="YAML">
810 ```yaml title="config.yaml"
811 context:
812 - provider: jira
813 params:
814 domain: company.atlassian.net
815 token: ATATT...
816 ```
817 </TabItem>
818 <TabItem value="json" label="JSON">
819 ```json title="config.json"
820 {
821 "contextProviders": [
822 {
823 "name": "jira",
824 "params": {
825 "domain": "company.atlassian.net",
826 "token": "ATATT..."
827 }
828 }
829 ]
830 }
831 ```
832 </TabItem>
833</Tabs>
834
835Make sure to include your own [Atlassian API Token](https://id.atlassian.com/manage-profile/security/api-tokens), or use your `email` and `token`, with token set to your password for basic authentication. If you use your own Atlassian API Token, don't configure your email.
836
837#### Jira Datacenter Support
838
839This context provider supports both Jira API version 2 and 3. It will use version 3 by default since
840that's what the cloud version uses, but if you have the datacenter version of Jira, you'll need
841to set the API Version to 2 using the `apiVersion` property.
842
843<Tabs groupId="config-example">
844 <TabItem value="yaml" label="YAML">
845 ```yaml title="config.yaml"
846 context:
847 - provider: jira
848 params:
849 apiVersion: "2"
850 ```
851 </TabItem>
852 <TabItem value="json" label="JSON">
853 ```json title="config.json"
854 {
855 "contextProviders": [
856 {
857 "name": "jira",
858 "params": {
859 "apiVersion": "2"
860 }
861 }
862 ]
863 }
864 ```
865 </TabItem>
866</Tabs>
867
868#### Issue Query
869
870By default, the following query will be used to find issues:
871
872```jql
873assignee = currentUser() AND resolution = Unresolved order by updated DESC
874```
875
876You can override this query by setting the `issueQuery` parameter.
877
878#### Max results
879
880You can set the `maxResults` parameter to limit the number of results returned. The default is `50`.
881
882### `@Discord`
883
884Reference the messages in a Discord channel.
885
886<Tabs groupId="config-example">
887 <TabItem value="yaml" label="YAML">
888 ```yaml title="config.yaml"
889 context:
890 - provider: discord
891 params:
892 discordKey: "bot token"
893 guildId: "1234567890"
894 channels:
895 - id: "123456"
896 name: "example-channel"
897 - id: "678901"
898 name: "example-channel-2"
899 ```
900 </TabItem>
901 <TabItem value="json" label="JSON">
902 ```json title="config.json"
903 {
904 "contextProviders": [
905 {
906 "name": "discord",
907 "params": {
908 "discordKey": "bot token",
909 "guildId": "1234567890",
910 "channels": [
911 {
912 "id": "123456",
913 "name": "example-channel"
914 },
915 {
916 "id": "678901",
917 "name": "example-channel-2"
918 }
919 ]
920 }
921 }
922 ]
923 }
924 ```
925 </TabItem>
926</Tabs>
927
928Make sure to include your own [Bot Token](https://discord.com/developers/applications), and join it to your related server . If you want more granular control over which channels are searched, you can specify a list of channel IDs to search in. If you don't want to specify any channels, just include the guild id(Server ID) and all channels will be included. The provider only reads text channels.
929
930### `@HTTP`
931
932The HttpContextProvider makes a POST request to the url passed in the configuration. The server must return 200 OK with a ContextItem object or an array of ContextItems.
933
934<Tabs groupId="config-example">
935 <TabItem value="yaml" label="YAML">
936 ```yaml title="config.yaml"
937 context:
938 - provider: http
939 params:
940 url: "https://api.example.com/v1/users"
941 ```
942 </TabItem>
943 <TabItem value="json" label="JSON">
944 ```json title="config.json"
945 {
946 "contextProviders": [
947 {
948 "name": "http",
949 "params": {
950 "url": "https://api.example.com/v1/users"
951 }
952 }
953 ]
954 }
955 ```
956 </TabItem>
957</Tabs>
958
959The receiving URL should expect to receive the following parameters:
960
961```js title="POST parameters"
962{
963 query: string,
964 fullInput: string
965}
966```
967
968The response 200 OK should be a JSON object with the following structure:
969
970```json title="Response"
971[
972 {
973 "name": "",
974 "description": "",
975 "content": ""
976 }
977]
978
979// OR
980{
981 "name": "",
982 "description": "",
983 "content": ""
984}
985```
986
987### `@Commits`
988
989Reference specific git commit metadata and diff or all of the recent commits.
990
991<Tabs groupId="config-example">
992 <TabItem value="yaml" label="YAML">
993 ```yaml title="config.yaml"
994 context:
995 - provider: commit
996 params:
997 Depth: 50
998 LastXCommitsDepth: 10
999 ```
1000 </TabItem>
1001 <TabItem value="json" label="JSON">
1002 ```json title="config.json"
1003 {
1004 "contextProviders": [
1005 {
1006 "name": "commit",
1007 "params": {
1008 "Depth": 50,
1009 "LastXCommitsDepth": 10
1010 }
1011 }
1012 ]
1013 }
1014 ```
1015 </TabItem>
1016</Tabs>
1017
1018The depth is how many commits will be loaded into the submenu, defaults to 50.
1019The LastXCommitsDepth is how many recent commits will be included, defaults to 10.
1020
1021### `@Greptile`
1022
1023Query a [Greptile](https://www.greptile.com/) index of the current repo/branch.
1024
1025<Tabs groupId="config-example">
1026 <TabItem value="yaml" label="YAML">
1027 ```yaml title="config.yaml"
1028 context:
1029 - provider: greptile
1030 params:
1031 greptileToken: "..."
1032 githubToken: "..."
1033 ```
1034 </TabItem>
1035 <TabItem value="json" label="JSON">
1036 ```json title="config.json"
1037 {
1038 "contextProviders": [
1039 {
1040 "name": "greptile",
1041 "params": {
1042 "GreptileToken": "...",
1043 "GithubToken": "..."
1044 }
1045 }
1046 ]
1047 }
1048 ```
1049 </TabItem>
1050</Tabs>
1051
1052### Requesting Context Providers
1053
1054Not seeing what you want? Create an issue [here](https://github.com/continuedev/continue/issues/new?assignees=TyDunn&labels=enhancement&projects=&template=feature-request-%F0%9F%92%AA.md&title=) to request a new Context Provider.