forked from ggml-org/llama.vscode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
2302 lines (2302 loc) · 99.3 KB
/
Copy pathpackage.json
File metadata and controls
2302 lines (2302 loc) · 99.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
{
"name": "llama-vscode",
"displayName": "llama-vscode",
"description": "Local LLM-assisted text completion using llama.cpp",
"version": "0.0.47",
"publisher": "ggml-org",
"repository": "https://github.com/ggml-org/llama.vscode",
"engines": {
"vscode": "^1.109.0"
},
"icon": "llama.png",
"activationEvents": [
"onLanguage:plaintext",
"onLanguage:javascript",
"onLanguage:typescript",
"onCommand.acceptFirstLine"
],
"main": "./dist/extension.js",
"contributes": {
"languageModelChatProviders": [
{
"vendor": "llama-vscode",
"displayName": "llama.vscode",
"managementCommand": "extension.showMenu"
}
],
"viewsContainers": {
"activitybar": [
{
"id": "llama-vscode-sidebar",
"title": "llama-vscode",
"icon": "resources/llama-sidebar.svg"
}
]
},
"languages": [
{
"id": "plaintext",
"aliases": [
"Plain Text"
],
"extensions": [
".txt"
]
}
],
"commands": [
{
"command": "extension.triggerInlineCompletion",
"title": "llama-vscode: Trigger Inline Completion"
},
{
"command": "extension.triggerNoCacheCompletion",
"title": "llama-vscode: Trigger No Cache Completion"
},
{
"command": "extension.copyIntercept",
"title": "llama-vscode: Copy Intercept"
},
{
"command": "extension.cutIntercept",
"title": "llama-vscode: Cut Intercept"
},
{
"command": "extension.acceptFirstLine",
"title": "llama-vscode: Accept First Line"
},
{
"command": "extension.acceptFirstWord",
"title": "llama-vscode: Accept First Word"
},
{
"command": "extension.copyChunks",
"title": "llama-vscode: Copy Chunks"
},
{
"command": "extension.showMenu",
"title": "llama-vscode: Show Menu"
},
{
"command": "extension.askAi",
"title": "llama-vscode: Ask AI"
},
{
"command": "extension.editSelectedText",
"title": "llama-vscode: Edit Selected Text with AI"
},
{
"command": "extension.editAllSearchFiles",
"title": "llama-vscode: Edit All Search Files"
},
{
"command": "extension.acceptTextEdit",
"title": "llama-vscode: Accept Text Edit Suggestion"
},
{
"command": "extension.rejectTextEdit",
"title": "llama-vscode: Reject Text Edit Suggestion"
},
{
"command": "extension.killAgent",
"title": "llama-vscode: Kill Agent Session"
},
{
"command": "extension.generateGitCommitMessage",
"title": "llama-vscode: Generate Commit Message",
"icon": "$(sparkle)"
},
{
"command": "extension.showLlamaWebview",
"title": "llama-vscode: Show Llama Agent",
"icon": "$(window)"
}
],
"views": {
"llama-vscode-sidebar": [
{
"id": "llama-vscode.webview",
"name": "llama-vscode",
"when": "true",
"type": "webview",
"icon": "resources/llama-sidebar.svg"
}
]
},
"keybindings": [
{
"key": "tab",
"command": "editor.action.inlineSuggest.commit",
"when": "inlineSuggestionVisible"
},
{
"command": "extension.triggerInlineCompletion",
"key": "ctrl+l",
"when": "editorTextFocus"
},
{
"command": "extension.triggerNoCacheCompletion",
"key": "ctrl+shift+l",
"when": "editorTextFocus"
},
{
"command": "extension.copyChunks",
"key": "ctrl+shift+,",
"when": "true"
},
{
"command": "extension.copyIntercept",
"key": "ctrl+c",
"when": "editorTextFocus"
},
{
"command": "extension.cutIntercept",
"key": "ctrl+x",
"when": "editorTextFocus"
},
{
"command": "extension.selectNextSuggestion",
"key": "alt+]",
"when": "editorTextFocus && inlineSuggestionVisible"
},
{
"command": "extension.selectPreviousSuggestion",
"key": "alt+[",
"when": "editorTextFocus && inlineSuggestionVisible"
},
{
"command": "extension.acceptFirstLine",
"key": "shift+tab",
"when": "editorTextFocus && inlineSuggestionVisible"
},
{
"command": "extension.acceptFirstWord",
"key": "ctrl+right",
"when": "editorTextFocus && inlineSuggestionVisible"
},
{
"command": "extension.showMenu",
"key": "ctrl+shift+m",
"when": "true"
},
{
"command": "extension.showLlamaWebview",
"key": "ctrl+shift+a",
"when": "true"
},
{
"command": "extension.askAi",
"key": "ctrl+;",
"when": "editorTextFocus"
},
{
"command": "extension.askAiWithTools",
"key": "ctrl+Shift+t",
"when": "editorTextFocus"
},
{
"command": "extension.editSelectedText",
"key": "ctrl+shift+e",
"when": "editorHasSelection"
},
{
"command": "extension.acceptTextEdit",
"key": "tab",
"when": "editorTextFocus && textEditSuggestionVisible && resourceScheme == 'llama-suggestion'"
},
{
"command": "extension.killAgent",
"key": "ctrl+k ctrl+a",
"when": "editorTextFocus"
},
{
"command": "extension.rejectTextEdit",
"key": "escape",
"when": "editorTextFocus && textEditSuggestionVisible && resourceScheme == 'llama-suggestion'"
}
],
"configuration": {
"type": "object",
"title": "llama.vscode Configuration",
"properties": {
"llama-vscode.launch_completion": {
"type": "string",
"default": "",
"description": "Shell command for starting local fim llama.cpp server"
},
"llama-vscode.launch_chat": {
"type": "string",
"default": "",
"description": "Shell command for starting local chat llama.cpp server"
},
"llama-vscode.launch_embeddings": {
"type": "string",
"default": "",
"description": "Shell command for starting local embeddings llama.cpp server"
},
"llama-vscode.launch_tools": {
"type": "string",
"default": "",
"description": "Shell command for starting local lools llama.cpp server"
},
"llama-vscode.launch_training_completion": {
"type": "string",
"default": "",
"description": "Shell command for starting training a completion (fim) model from the menu"
},
"llama-vscode.launch_training_chat": {
"type": "string",
"default": "",
"description": "Shell command for starting training a chat model from the menu"
},
"llama-vscode.lora_completion": {
"type": "string",
"default": "",
"description": "Path to the lora adapter file for the completion model. If not empty it will be used (appends --lora lora_completion) on starting the completion server with launch_completion"
},
"llama-vscode.lora_chat": {
"type": "string",
"default": "",
"description": "Path to the lora adapter file for the chat model. If not empty it will be used (appends --lora lora_chat) on starting the completion server with launch_chat"
},
"llama-vscode.endpoint": {
"type": "string",
"default": "",
"description": "The URL to be used by the extension for code completion."
},
"llama-vscode.endpoint_chat": {
"type": "string",
"default": "",
"description": "The URL to be used by the extension for chat with ai."
},
"llama-vscode.endpoint_tools": {
"type": "string",
"default": "",
"description": "The URL to be used by the extension for chat with ai with tools use."
},
"llama-vscode.endpoint_embeddings": {
"type": "string",
"default": "",
"description": "The URL to be used by the extension for creating embeddings."
},
"llama-vscode.max_parallel_completions": {
"type": "number",
"default": 3,
"description": "The max number of parallel completions. Switching between completions could be done with Alt+] (next) or Alt =+[ (previous). "
},
"llama-vscode.new_completion_model_port": {
"type": "number",
"default": 8012,
"description": "The port will be used when a new completion model is created."
},
"llama-vscode.new_chat_model_port": {
"type": "number",
"default": 8011,
"description": "The port will be used when a new chat model is created."
},
"llama-vscode.new_embeddings_model_port": {
"type": "number",
"default": 8010,
"description": "The port will be used when a new embeddings model is created."
},
"llama-vscode.new_tools_model_port": {
"type": "number",
"default": 8009,
"description": "The port will be used when a new tools model is created."
},
"llama-vscode.new_completion_model_host": {
"type": "string",
"default": "127.0.0.1",
"description": "The host will be used when a new completion model is created."
},
"llama-vscode.new_chat_model_host": {
"type": "string",
"default": "127.0.0.1",
"description": "The host will be used when a new chat model is created."
},
"llama-vscode.new_embeddings_model_host": {
"type": "string",
"default": "127.0.0.1",
"description": "The host will be used when a new embeddings model is created."
},
"llama-vscode.new_tools_model_host": {
"type": "string",
"default": "127.0.0.1",
"description": "The host will be used when a new tools model is created."
},
"llama-vscode.ai_api_version": {
"type": "string",
"default": "v1",
"description": "The version of the API of the model. It is appended to the endpoints for chat and tools"
},
"llama-vscode.ai_model": {
"type": "string",
"default": "google/gemini-2.5-flash",
"description": "The model name. This is used in the request to the API. It is important when OpenRouter is used (for example google/gemini-2.5-flash)."
},
"llama-vscode.agents_list": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name for this agent to be shown to the user"
},
"description": {
"type": "string",
"description": "Description of the agent - for what purposes should be used, what are his strengths, etc."
},
"subagentEnabled": {
"type": "boolean",
"default": false,
"description": "If the agent could be used as subagent of another agent to execute a specific task."
},
"systemInstruction": {
"type": "array",
"items": {
"type": "string"
},
"description": "The system instructions for this agent",
"default": ""
},
"system_instruction": {
"type": "array",
"items": {
"type": "string"
},
"description": "Deprecated alias for systemInstruction",
"default": ""
},
"toolsModel": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name for this model to be shown to the user"
},
"endpoint": {
"type": "string",
"description": "The endpoint, from where to access the model",
"default": ""
},
"aiModel": {
"type": "string",
"description": "The name of the AI model as expected by the provider",
"default": ""
},
"isKeyRequired": {
"type": "boolean",
"description": "Is key requried for the endpoint",
"default": false
},
"localStartCommand": {
"type": "string",
"description": "Command to be used for sterting the model locally.",
"default": ""
}
},
"required": [
"name"
]
},
"tools": {
"type": "array",
"items": {
"type": "string"
},
"description": "Tools, which will be used by default by this agent",
"default": []
}
},
"required": [
"name"
]
},
"default": [
{
"name": "llama-vscode help",
"description": "This is an agent for helping how to use llama-vscode.",
"systemInstruction": [
"You are an agent for helping the user how to use llama-vscode.",
"Use the available tools to get the help documentation for llama-vscode and answer the questions from the user.",
"Base your answers on the help documentation from the tools."
],
"tools": [
"llama_vscode_help"
]
},
{
"name": "default",
"description": "This is the default agent.",
"systemInstruction": [
"You are an agent for software development - please keep going until the user’s query is completely resolved, before ending your turn and yielding back to the user.",
"Only terminate your turn when you are sure that the problem is solved.",
"If you are not sure about anything pertaining to the user’s request, use your tools to read files and gather the relevant information: do NOT guess or make up an answer.",
"You MUST plan extensively before each function call, and reflect extensively on the outcomes of the previous function calls. DO NOT do this entire process by making function calls only, as this can impair your ability to solve the problem and think insightfully.",
"Read the file content or a section of the file before editing a the file.",
"",
"# Workflow",
"",
"## High-Level Problem Solving Strategy",
"",
"1. Understand the problem deeply. Carefully read the issue and think critically about what is required.",
"2. Investigate the codebase. Explore relevant files, search for key functions, and gather context.",
"3. Develop a clear, step-by-step plan. Break down the fix into manageable, incremental steps.",
"4. Implement the fix incrementally. Make small, testable code changes.",
"5. Debug as needed. Use debugging techniques to isolate and resolve issues.",
"6. Iterate until the root cause is fixed.",
"7. Reflect and validate comprehensively.",
"",
"Refer to the detailed sections below for more information on each step.",
"",
"## 1. Deeply Understand the Problem",
"Carefully read the issue and think hard about a plan to solve it before coding.",
"",
"## 2. Codebase Investigation",
"- Explore relevant files and directories.",
"- Search for key functions, classes, or variables related to the issue.",
"- Read and understand relevant code snippets.",
"- Identify the root cause of the problem.",
"- Validate and update your understanding continuously as you gather more context.",
"",
"## 3. Develop a Detailed Plan",
"- Outline a specific, simple, and verifiable sequence of steps to fix the problem.",
"- Break down the fix into small, incremental changes.",
"",
"## 4. Making Code Changes",
"- Before editing, always read the relevant file contents or section to ensure complete context.",
"- If a patch is not applied correctly, attempt to reapply it.",
"- Make small, testable, incremental changes that logically follow from your investigation and plan.",
"",
"## 5. Debugging",
"- Make code changes only if you have high confidence they can solve the problem",
"- When debugging, try to determine the root cause rather than addressing symptoms",
"- Debug for as long as needed to identify the root cause and identify a fix",
"- Use print statements, logs, or temporary code to inspect program state, including descriptive statements or error messages to understand what's happening",
"- To test hypotheses, you can also add test statements or functions",
"- Revisit your assumptions if unexpected behavior occurs.",
"",
"",
"## 6. Final Verification",
"- Confirm the root cause is fixed.",
"- Review your solution for logic correctness and robustness.",
"- Iterate until you are extremely confident the fix is complete.",
"",
"## 7. Final Reflection",
"- If there are changed files, build the application to check for errors.",
"- Reflect carefully on the original intent of the user and the problem statement.",
"- Think about potential edge cases or scenarios.",
"- Continue refining until you are confident the fix is robust and comprehensive.",
""
],
"tools": [
"run_terminal_command",
"search_source",
"read_file",
"list_directory",
"regex_search",
"delete_file",
"get_diff",
"edit_file",
"ask_user",
"update_todo_list",
"delegate_task"
]
},
{
"name": "Unite test writer",
"description": "Writes the unit tests. The input should provide a path to a source file to be tested.",
"systemInstruction": [
"You are an expert software engineer specializing in writing unit tests. Your task is to generate high‑quality, reliable, and maintainable unit tests based on the user’s instructions and the provided source code. You must infer the programming language, testing framework, and project conventions from the source file and any accompanying context (such as imports, file extensions, or existing test files).",
"Tools & Environment",
"",
" read_file – to examine the source code and any relevant configuration files (e.g., package.json, pom.xml, requirements.txt, Cargo.toml, etc.).",
"",
" edit_file – to create or modify test files.",
"",
" run_terminal_command – to execute tests and report results.",
"",
"Input & Context",
"",
"The user will give you the path to a source file that needs unit tests (e.g., src/services/user_service.py, lib/user.dart, internal/user.go). They may also include additional instructions, such as specific scenarios to cover or edge cases to consider.",
"Your Thought Process (Internal Reasoning)",
"",
"Before generating any code, work through these steps in your mind:",
"",
" Analyze the Source Code",
"",
" Use read_file to understand the module’s purpose, its exported functions/classes/methods, input parameters, return types, and dependencies.",
"",
" Determine the programming language (from the file extension, shebang, or import/require statements).",
"",
" Identify all public APIs that need testing.",
"",
" Note side effects, asynchronous operations, or interactions with external systems (databases, APIs, file system, etc.).",
"",
" Infer the Testing Conventions",
"",
" Look for an existing test directory (e.g., test/, tests/, spec/, __tests__/) and the naming pattern of existing test files (e.g., *.test.js, *_test.py, *_spec.rb).",
"",
" Detect the testing framework being used:",
"",
" JavaScript/TypeScript: look for mocha, jest, jasmine in package.json.",
"",
" Python: look for pytest, unittest in imports or config files.",
"",
" Java: look for JUnit in pom.xml or build.gradle.",
"",
" Go: look for testing package imports, etc.",
"",
" Determine the preferred assertion style (e.g., assert module, expect, should, assertThat).",
"",
" If no existing tests or configuration are found, use the most common default for that language (e.g., pytest for Python, JUnit 5 for Java, go test for Go, Mocha + assert for Node.js).",
"",
" Plan the Test Structure",
"",
" Test file location: For a source file at src/path/to/file.ext, the test file should normally be placed at test/path/to/file_test.ext or follow the project’s convention (mirroring the source directory under a test/ or tests/ root). Ensure the directory structure is created if needed.",
"",
" Plan the outer test suite (e.g., describe('moduleName', ...) in Mocha, a test class in JUnit, or a module‑level docstring in pytest).",
"",
" Plan nested suites for each function or method.",
"",
" List all test cases (happy path, edge cases, error cases) with clear, descriptive names.",
"",
" Consider Dependencies and Mocking",
"",
" Identify the module’s dependencies.",
"",
" Design the module under test to allow dependency injection – your tests should inject simple, manual mocks or stubs to replace real dependencies.",
"",
" Do not introduce third‑party mocking libraries unless they are already present in the project. Rely on manual mocks (e.g., creating test doubles yourself).",
"",
" Example: If a function imports an HTTP client, your test should inject a mock client that returns controlled data or throws predictable errors.",
"",
"Core Principles & Rules",
"",
"Adhere strictly to these principles in every test you write:",
"",
" Test Location: Test files must be created in the appropriate test directory (commonly test/, tests/, spec/, etc.) mirroring the source structure. Use the naming convention inferred from the project.",
"",
" Framework & Style: Use the testing framework and assertion style that the project already uses (or the default you inferred). Write idiomatic tests for that language.",
"",
" Test Quality:",
"",
" Tests must be isolated and idempotent – the outcome of one test must not depend on another.",
"",
" Each test should verify one specific behavior.",
"",
" Test descriptions must be clear and descriptive, explaining the scenario and expected outcome.",
"",
" Properly handle asynchronous code using the language’s native async patterns (e.g., async/await, Future, Promise). Ensure the test framework waits for completion.",
"",
" Reset any module state or mocks in setup/teardown hooks (e.g., beforeEach, setUp, @BeforeEach) to guarantee tests can run in any order.",
"",
" Code Generation:",
"",
" Output only the pure code for the test file, properly formatted.",
"",
" Include all necessary imports/requires for the module under test and the testing/assertion libraries.",
"",
" Import the actual functions/classes from the source file. Mocking is done inside the test, not by mocking the import itself.",
"",
" No Source Modification: You cannot modify the source code. If the source is untestable due to poor design (e.g., hard‑coded dependencies), inform the user of the challenges and suggest refactoring the source to allow proper unit testing.",
"",
"Output Format",
"",
"Your final response must contain:",
"",
" A brief, non‑technical confirmation stating the language you inferred and the test file path you will create.",
"",
"Use the edit_file tool to create the file and the run_terminal_command tool (e.g., npx mocha 'test/services/userService.spec.ts') to verify your work, reporting the results back to the user.",
"",
"Crucially, you cannot modify the source code itself. If the source code is not testable due to poor design (e.g., hard-to-mock dependencies), you must inform the user of the challenges and suggest refactoring the source to allow for proper unit testing.",
""
],
"tools": [
"run_terminal_command",
"search_source",
"read_file",
"list_directory",
"regex_search",
"delete_file",
"edit_file",
"update_todo_list"
],
"subagentEnabled": true
},
{
"name": "Agent creator",
"description": "Creates new agent. Assists the user on creating a new agent by asking relevant questions and making suggestions.",
"subagentEnabled": true,
"systemInstruction": [
"You are an AI assistant specialized in helping users create new agents. Your task is to guide the user step by step, asking one question at a time, to collect all the necessary information for creating a new agent. Once you have all the required details, you will use the create_agent tool, passing the information as a JSON string in the format expected by the tool (as described in its documentation). After the agent is successfully created, inform the user that they can edit the newly created agent using the agent editor (Ctrl+Shift+M → Agents… → Edit agent…).",
"",
"Required Information:",
"",
" name (string): The name of the new agent.",
"",
" description (string): A brief description of what the agent does.",
"",
" systemInstruction (string): The system prompt or instructions that define the agent's behavior.",
"",
"Optional Information:",
"",
" subagentEnabled (boolean): Whether the agent can be used as a subagent within other agents. Ask the user for a yes/no answer; convert it to true or false (default to false if not specified).",
"",
" tools (string): A comma-separated list of tool names that the agent should have access to. If the user says \"none\" or leaves it blank, omit this field or set it to an empty string.",
"",
"Process:",
"",
" Begin by greeting the user and explaining that you will ask a series of questions to gather the details for the new agent.",
"",
" Ask for the name first. Wait for the user's response.",
"",
" After receiving the name, ask for the description.",
"",
" Then ask for the systemInstruction.",
"",
" Next, ask whether the agent should be usable as a subagent (subagentEnabled). Prompt for a yes/no answer. If the answer is ambiguous, ask for clarification.",
"",
" Finally, ask for any tools the agent should have. Prompt for a comma-separated list or indicate that they can say \"none\".",
"The available tools for the new agent are:",
"run_terminal_command: runs a terminal command and returns the output",
"search_source: searches the code base for the provided query and returns the most relevant chungs (works if RAG is enabled)",
"read_file: reads a file",
"list_directory: returns the content of a directory/folder",
"regex_search: does a regex search in the code base (requires RAG)",
"delete_file: deletes the a file",
"edit_file: creates are changes a source file",
"ask_user: asks user a question without interrupting the tools loop of the agent",
"llama_vscode_help: returns the documentation for llama-vscode extension",
"update_todo_list: creates or updates a todo list (plan)",
"delegate_task: delegates a task to a subagent and returns only the result (the subagent executes in another session, which reduces the context size)",
"create_agent: creates a new agent from the provided json string",
"",
" Once all information is collected, construct a JSON object with the appropriate keys. Ensure that boolean values are represented as true or false (without quotes) and that the tools string is included only if provided.",
"",
" Example JSON:",
" {",
" \"name\": \"ExampleAgent\",",
" \"description\": \"An agent that helps with example tasks.\",",
" \"systemInstruction\": \"You are a helpful assistant specialized in examples.\",",
" \"subagentEnabled\": true,",
" \"tools\": \"web_search,calculator\"",
" }",
"",
" Call the create_agent tool with this JSON string as the argument.",
"",
" After the tool executes successfully, inform the user that the agent has been created and remind them that they can edit it later via the agent editor (Ctrl+Shift+M → Agents… → Edit agent…). If the tool returns an error, explain the issue and ask the user to provide corrected information.",
"",
"Important Guidelines:",
"",
" Ask only one question at a time and wait for the user's response before proceeding.",
"",
" If the user provides incomplete or unclear answers, politely ask for clarification or more details.",
"",
" Do not assume default values without asking; always ask explicitly for optional fields, but you can mention that they can skip them if they want.",
"",
" Keep your tone friendly and helpful. Make the process feel like a guided conversation.",
"",
" After the agent is created, do not continue asking for more information unless the user wants to create another agent. If they do, you may restart the process.",
"",
""
],
"tools": [
"create_agent"
]
}
],
"description": "The list of the agents, which could be selected"
},
"llama-vscode.agent_commands": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name for this agent to be shown to the user"
},
"description": {
"type": "string",
"description": "Description of the model - for what purposes should be used, what are his strengths, etc."
},
"prompt": {
"type": "array",
"items": {
"type": "string"
},
"description": "The prompt to be sent to the agent",
"default": ""
},
"context": {
"type": "array",
"items": {
"type": "string"
},
"description": "Key words, which will be transformed to additional context for the agent",
"default": []
}
},
"required": [
"name",
"prompt"
]
},
"default": [
{
"name": "about",
"description": "Reviews the project and provides information about it.",
"prompt": [
"What is this project about?",
"Provide an overview of the project - purpose, architecture, language, etc."
],
"context": []
},
{
"name": "explain",
"description": "Explains the attached code/file.",
"prompt": [
"Explain the provided source code."
],
"context": []
}
],
"description": "The list of agent commands, which could be selected by the user"
},
"llama-vscode.completion_models_list": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name for this model to be shown to the user"
},
"endpoint": {
"type": "string",
"description": "The endpoint, from where to access the model",
"default": ""
},
"aiModel": {
"type": "string",
"description": "The name of the AI model as expected by the provider",
"default": ""
},
"isKeyRequired": {
"type": "boolean",
"description": "Is key requried for the endpoint",
"default": false
},
"localStartCommand": {
"type": "string",
"description": "Command to be used for sterting the model locally.",
"default": ""
}
},
"required": [
"name"
]
},
"default": [
{
"name": "Qwen2.5-Coder-1.5B-Q8_0-GGUF (<= 8GB VRAM)",
"localStartCommand": "llama-server --fim-qwen-1.5b-default -ngl 99 --port 8012",
"endpoint": "http://localhost:8012",
"aiModel": "",
"isKeyRequired": false
},
{
"name": "Qwen2.5-Coder-3B-Q8_0-GGUF (<= 16GB VRAM)",
"localStartCommand": "llama-server --fim-qwen-3b-default -ngl 99 --port 8012",
"endpoint": "http://localhost:8012",
"aiModel": "",
"isKeyRequired": false
},
{
"name": "Qwen2.5-Coder-7B-Q8_0-GGUF (> 16GB VRAM)",
"localStartCommand": "llama-server --fim-qwen-7b-default -ngl 99 --port 8012",
"endpoint": "http://localhost:8012",
"aiModel": "",
"isKeyRequired": false
},
{
"name": "Qwen2.5-Coder-1.5B-Q8_0-GGUF (CPU Only)",
"localStartCommand": "llama-server -hf ggml-org/Qwen2.5-Coder-1.5B-Q8_0-GGUF -ub 1024 -b 1024 -dt 0.1 --ctx-size 0 --cache-reuse 256 --port 8012",
"endpoint": "http://localhost:8012",
"aiModel": "",
"isKeyRequired": false
}
],
"description": "The list of the completion (FIM) models, which could be selected"
},
"llama-vscode.chat_models_list": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name for this model to be shown to the user"
},
"endpoint": {
"type": "string",
"description": "The endpoint, from where to access the model",
"default": ""
},
"aiModel": {
"type": "string",
"description": "The name of the AI model as expected by the provider",
"default": ""
},
"isKeyRequired": {
"type": "boolean",
"description": "Is key requried for the endpoint",
"default": false
},
"localStartCommand": {
"type": "string",
"description": "Command to be used for sterting the model locally.",
"default": ""
}
},
"required": [
"name"
]
},
"default": [
{
"name": "Qwen2.5-Coder-1.5B-Instruct-Q8_0-GGUF (<= 8GB VRAM)",
"localStartCommand": "llama-server -hf ggml-org/Qwen2.5-Coder-1.5B-Instruct-Q8_0-GGUF -ngl 99 -ub 1024 -b 1024 --ctx-size 0 --cache-reuse 256 -np 2 --port 8011",
"endpoint": "http://127.0.0.1:8011"
},
{
"name": "Qwen2.5-Coder-3B-Instruct-Q8_0-GGUF (<= 16GB VRAM)",
"localStartCommand": "llama-server -hf ggml-org/Qwen2.5-Coder-3B-Instruct-Q8_0-GGUF -ngl 99 -ub 1024 -b 1024 --ctx-size 0 --cache-reuse 256 -np 2 --port 8011",
"endpoint": "http://127.0.0.1:8011"
},
{
"name": "Qwen2.5-Coder-7B-Instruct-Q8_0-GGUF (> 16GB VRAM)",
"localStartCommand": "llama-server -hf ggml-org/Qwen2.5-Coder-7B-Instruct-Q8_0-GGUF -ngl 99 -ub 1024 -b 1024 --ctx-size 0 --cache-reuse 256 -np 2 --port 8011",
"endpoint": "http://127.0.0.1:8011"
},
{
"name": "Qwen2.5-Coder-14B-Instruct-Q8_0-GGUF (> 32GB VRAM)",
"localStartCommand": "llama-server -hf ggml-org/Qwen2.5-Coder-14B-Instruct-Q8_0-GGUF -ngl 99 -ub 1024 -b 1024 --ctx-size 0 --cache-reuse 256 -np 2 --port 8011",
"endpoint": "http://127.0.0.1:8011"
},
{
"name": "Qwen2.5-Coder-1.5B-Instruct-Q8_0-GGUF (CPU Only)",
"localStartCommand": "llama-server -hf ggml-org/Qwen2.5-Coder-1.5B-Instruct-Q8_0-GGUF -ub 1024 -b 1024 -dt 0.1 --ctx-size 0 --cache-reuse 256 -np 2 --port 8011",
"endpoint": "http://127.0.0.1:8011"
},
{
"name": "gemini qat tools",
"localStartCommand": "llama-server -m c:\\ai\\gemma-3-4B-it-QAT-Q4_0.gguf --port 8011",
"endpoint": "http://localhost:8011",
"aiModel": "",
"isKeyRequired": false
},
{
"name": "OpenAI gpt-oss 20B",
"localStartCommand": "llama-server -hf ggml-org/gpt-oss-20b-GGUF -c 0 --jinja --reasoning-format none -np 2 --port 8011",
"endpoint": "http://localhost:8011",
"aiModel": "",
"isKeyRequired": false
}
],
"description": "The list of chat models, which could be selected"
},
"llama-vscode.embeddings_models_list": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name for this model to be shown to the user"
},
"endpoint": {
"type": "string",
"description": "The endpoint, from where to access the model",
"default": ""
},
"aiModel": {
"type": "string",
"description": "The name of the AI model as expected by the provider",
"default": ""
},
"isKeyRequired": {
"type": "boolean",
"description": "Is key requried for the endpoint",
"default": false
},
"localStartCommand": {
"type": "string",
"description": "Command to be used for sterting the model locally.",
"default": ""
}
},
"required": [
"name"
]
},
"default": [
{
"name": "Nomic-Embed-Text-V2-GGUF",
"localStartCommand": "llama-server -hf ggml-org/Nomic-Embed-Text-V2-GGUF -ub 2048 -b 2048 --ctx-size 2048 --embeddings --port 8010",
"endpoint": "http://127.0.0.1:8010"
}
],
"description": "The list of embeddings models, which could be selected"
},
"llama-vscode.tools_models_list": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name for this model to be shown to the user"
},
"endpoint": {
"type": "string",
"description": "The endpoint, from where to access the model",
"default": ""
},
"aiModel": {
"type": "string",
"description": "The name of the AI model as expected by the provider",
"default": ""
},
"isKeyRequired": {
"type": "boolean",
"description": "Is key requried for the endpoint",
"default": false
},
"localStartCommand": {
"type": "string",
"description": "Command to be used for sterting the model locally.",
"default": ""
}
},
"required": [
"name"
]
},
"default": [
{
"name": "OpenAI gpt-oss 20B (LOCAL) (> 19GB VRAM)",
"localStartCommand": "llama-server -hf ggml-org/gpt-oss-20b-GGUF -c 0 --jinja --reasoning-format none -np 2 --port 8009",
"endpoint": "http://localhost:8009",
"aiModel": "",
"isKeyRequired": false
},
{
"name": "xAI: Grok 4 Fast (free for limited period), context: 2 000 000",
"localStartCommand": "",
"endpoint": "https://openrouter.ai/api",
"isKeyRequired": true,