Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
316 lines (316 loc) · 9.52 KB
/
Copy pathpackage.json
File metadata and controls
316 lines (316 loc) · 9.52 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
{
"name": "tinycoder",
"displayName": "TinyCoder AI",
"description": "Local AI coding assistant powered by Qwen2.5-Coder, Gemma 4, and Qwen3.6 GGUF models. Native C++ inference with AVX2/AVX-512/AMX SIMD acceleration and CUDA GPU support. Runs entirely offline on limited resources.",
"version": "0.5.0",
"publisher": "tinycoder",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/mgorshkov/TinyCoder"
},
"engines": {
"vscode": "^1.85.0"
},
"categories": [
"Programming Languages",
"Machine Learning",
"Debuggers",
"Education"
],
"keywords": [
"ai",
"coding",
"code assistant",
"code generation",
"qwen",
"qwen2.5-coder",
"qwen3.6",
"qwen3.8",
"gemma4",
"llm",
"local ai",
"offline",
"gguf",
"quantization",
"iq3_xxs",
"simd",
"avx2",
"avx512",
"amx",
"cpu",
"gpu",
"cuda",
"native"
],
"icon": "media/icon.png",
"extensionKind": [
"workspace"
],
"activationEvents": [
"onView:tinycoder.chat",
"onCommand:tinycoder.openPanel",
"onCommand:tinycoder.explainCode",
"onCommand:tinycoder.completeCode",
"onCommand:tinycoder.generateCode",
"onCommand:tinycoder.loadModel",
"onCommand:tinycoder.showStatus",
"onCommand:tinycoder.inferFromTerminal",
"onCommand:tinycoder.agentRun",
"onCommand:tinycoder.openAgentOptions",
"onCommand:tinycoder.openSettings"
],
"main": "./out/extension.js",
"contributes": {
"viewsContainers": {
"activitybar": [
{
"id": "tinycoder-sidebar",
"title": "TinyCoder AI",
"icon": "media/icon.svg"
}
]
},
"views": {
"tinycoder-sidebar": [
{
"type": "webview",
"id": "tinycoder.chat",
"name": "Chat"
}
]
},
"menus": {
"view/title": [
{
"command": "tinycoder.openAgentOptions",
"when": "view == tinycoder.chat",
"group": "navigation"
},
{
"command": "tinycoder.openSettings",
"when": "view == tinycoder.chat",
"group": "navigation@1"
}
]
},
"commands": [
{
"command": "tinycoder.openPanel",
"title": "TinyCoder: Open AI Chat Panel"
},
{
"command": "tinycoder.explainCode",
"title": "TinyCoder: Explain Selected Code"
},
{
"command": "tinycoder.completeCode",
"title": "TinyCoder: Complete Code"
},
{
"command": "tinycoder.generateCode",
"title": "TinyCoder: Generate Code from Comment"
},
{
"command": "tinycoder.loadModel",
"title": "TinyCoder: Load Model..."
},
{
"command": "tinycoder.showStatus",
"title": "TinyCoder: Show Status"
},
{
"command": "tinycoder.inferFromTerminal",
"title": "TinyCoder: Infer from Terminal Selection"
},
{
"command": "tinycoder.agentRun",
"title": "TinyCoder: Run Agent (Autonomous Coding)"
},
{
"command": "tinycoder.openAgentOptions",
"title": "TinyCoder: Open Agent Options",
"icon": "$(gear)"
},
{
"command": "tinycoder.openSettings",
"title": "TinyCoder: Open Settings",
"icon": "$(settings-gear)"
}
],
"keybindings": [
{
"command": "tinycoder.openPanel",
"key": "ctrl+alt+t",
"mac": "cmd+alt+t"
},
{
"command": "tinycoder.explainCode",
"key": "ctrl+alt+e",
"mac": "cmd+alt+e"
},
{
"command": "tinycoder.completeCode",
"key": "ctrl+alt+c",
"mac": "cmd+alt+c"
}
],
"configuration": {
"title": "TinyCoder",
"properties": {
"tinycoder.modelPath": {
"type": "string",
"default": "/data/models/qwen/Qwen3.6-35B-A3B-UD-Q4_K_M.gguf",
"description": "Path to the GGUF model file"
},
"tinycoder.nThreads": {
"type": "number",
"default": 0,
"minimum": 0,
"maximum": 64,
"description": "Number of CPU threads for inference (0 = auto: logical CPU count, the measured optimum; physical-core count regresses on memory-bound generation)"
},
"tinycoder.maxSeqLen": {
"type": "number",
"default": 8192,
"minimum": 512,
"maximum": 32768,
"description": "Maximum sequence length (context window)"
},
"tinycoder.maxTokens": {
"type": "number",
"default": 2048,
"minimum": 64,
"maximum": 32768,
"description": "Maximum tokens to generate per response"
},
"tinycoder.temperature": {
"type": "number",
"default": 0.7,
"minimum": 0,
"maximum": 2,
"description": "Sampling temperature (higher = more creative)"
},
"tinycoder.topP": {
"type": "number",
"default": 0.9,
"minimum": 0,
"maximum": 1,
"description": "Top-P nucleus sampling threshold"
},
"tinycoder.topK": {
"type": "number",
"default": 40,
"minimum": 0,
"maximum": 200,
"description": "Top-K sampling (0 = disabled)"
},
"tinycoder.repeatPenalty": {
"type": "number",
"default": 1.1,
"minimum": 1,
"maximum": 2,
"description": "Repetition penalty"
},
"tinycoder.repeatLastN": {
"type": "number",
"default": 64,
"minimum": 0,
"maximum": 1024,
"description": "Number of recent tokens to consider for repetition penalty"
},
"tinycoder.agent.maxIterations": {
"type": "number",
"default": 8,
"minimum": 1,
"maximum": 100,
"description": "Maximum ReAct loop iterations (tool calls + follow-ups) before forcing a final answer"
},
"tinycoder.agent.compactionThreshold": {
"type": "number",
"default": 24,
"minimum": 4,
"maximum": 1000,
"description": "History depth (messages) at which older tool results are truncated for context management"
},
"tinycoder.agent.compactionPreserveRecent": {
"type": "number",
"default": 8,
"minimum": 0,
"maximum": 200,
"description": "How many of the most recent messages to keep verbatim during compaction"
},
"tinycoder.agent.workspaceRoot": {
"type": "string",
"default": "",
"description": "Root directory the agent may operate on. Empty = first workspace folder"
},
"tinycoder.agent.terminalName": {
"type": "string",
"default": "TinyCoder Agent",
"description": "Name of the VS Code terminal used for runTerminalCommand"
},
"tinycoder.agent.terminalMode": {
"type": "string",
"default": "vscode",
"enum": ["vscode", "child", "auto"],
"description": "vscode: createTerminal + output capture. child: shell subprocess (deterministic capture). auto: try vscode, fall back to child"
},
"tinycoder.agent.systemPrompt": {
"type": "string",
"default": "",
"description": "Optional base system prompt override. The tool protocol is always appended"
},
"tinycoder.agent.enableReadFile": {
"type": "boolean",
"default": true,
"description": "Expose the readFile tool to the agent"
},
"tinycoder.agent.enableWriteFile": {
"type": "boolean",
"default": true,
"description": "Expose the writeFile tool to the agent"
},
"tinycoder.agent.enablePatchFile": {
"type": "boolean",
"default": true,
"description": "Expose the patchFile tool to the agent"
},
"tinycoder.agent.enableTerminal": {
"type": "boolean",
"default": true,
"description": "Expose the executeTerminalCommand tool to the agent"
},
"tinycoder.agent.enableSearch": {
"type": "boolean",
"default": true,
"description": "Expose the searchCodebase tool to the agent"
}
}
}
},
"scripts": {
"vscode:prepublish": "npm run compile && npm run build:native",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"build:native": "cmake -B build -DCMAKE_BUILD_TYPE=Release -DENABLE_CUDA=ON && cmake --build build --config Release",
"build:native:cpu": "cmake -B build -DCMAKE_BUILD_TYPE=Release -DENABLE_CUDA=OFF && cmake --build build --config Release",
"build:native:avx2": "cmake -B build -DCMAKE_BUILD_TYPE=Release -DENABLE_AVX512=OFF -DENABLE_AMX=OFF && cmake --build build --config Release",
"build:native:cuda": "cmake -B build -DCMAKE_BUILD_TYPE=Release -DENABLE_CUDA=ON && cmake --build build --config Release",
"lint": "eslint src --ext ts",
"pretest": "npm run compile",
"test": "node ./out/test/runTest.js",
"test:agent": "npm run compile && node tests/agentSmoke.test.js && node tests/agentLoop.test.js"
},
"devDependencies": {
"@types/node": "^20.11.0",
"@types/vscode": "^1.85.0",
"@typescript-eslint/eslint-plugin": "^6.19.0",
"@typescript-eslint/parser": "^6.19.0",
"eslint": "^8.56.0",
"typescript": "^5.9.3"
},
"dependencies": {
"node-addon-api": "^8.0.0"
}
}