@tecet/ollm 0.1.4-b → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/docs/README.md +3 -410
- package/package.json +2 -2
- package/docs/Context/CheckpointFlowDiagram.md +0 -673
- package/docs/Context/ContextArchitecture.md +0 -898
- package/docs/Context/ContextCompression.md +0 -1102
- package/docs/Context/ContextManagment.md +0 -750
- package/docs/Context/Index.md +0 -209
- package/docs/Context/README.md +0 -390
- package/docs/DevelopmentRoadmap/Index.md +0 -238
- package/docs/DevelopmentRoadmap/OLLM-CLI_Releases.md +0 -419
- package/docs/DevelopmentRoadmap/PlanedFeatures.md +0 -448
- package/docs/DevelopmentRoadmap/README.md +0 -174
- package/docs/DevelopmentRoadmap/Roadmap.md +0 -572
- package/docs/DevelopmentRoadmap/RoadmapVisual.md +0 -372
- package/docs/Hooks/Architecture.md +0 -885
- package/docs/Hooks/Index.md +0 -244
- package/docs/Hooks/KeyboardShortcuts.md +0 -248
- package/docs/Hooks/Protocol.md +0 -817
- package/docs/Hooks/README.md +0 -403
- package/docs/Hooks/UserGuide.md +0 -1483
- package/docs/Hooks/VisualGuide.md +0 -598
- package/docs/Index.md +0 -506
- package/docs/Installation.md +0 -586
- package/docs/Introduction.md +0 -367
- package/docs/LLM Models/Index.md +0 -239
- package/docs/LLM Models/LLM_GettingStarted.md +0 -748
- package/docs/LLM Models/LLM_Index.md +0 -701
- package/docs/LLM Models/LLM_MemorySystem.md +0 -337
- package/docs/LLM Models/LLM_ModelCompatibility.md +0 -499
- package/docs/LLM Models/LLM_ModelsArchitecture.md +0 -933
- package/docs/LLM Models/LLM_ModelsCommands.md +0 -839
- package/docs/LLM Models/LLM_ModelsConfiguration.md +0 -1094
- package/docs/LLM Models/LLM_ModelsList.md +0 -1071
- package/docs/LLM Models/LLM_ModelsList.md.backup +0 -400
- package/docs/LLM Models/README.md +0 -355
- package/docs/MCP/MCP_Architecture.md +0 -1086
- package/docs/MCP/MCP_Commands.md +0 -1111
- package/docs/MCP/MCP_GettingStarted.md +0 -590
- package/docs/MCP/MCP_Index.md +0 -524
- package/docs/MCP/MCP_Integration.md +0 -866
- package/docs/MCP/MCP_Marketplace.md +0 -160
- package/docs/MCP/README.md +0 -415
- package/docs/Prompts System/Architecture.md +0 -760
- package/docs/Prompts System/Index.md +0 -223
- package/docs/Prompts System/PromptsRouting.md +0 -1047
- package/docs/Prompts System/PromptsTemplates.md +0 -1102
- package/docs/Prompts System/README.md +0 -389
- package/docs/Prompts System/SystemPrompts.md +0 -856
- package/docs/Quickstart.md +0 -535
- package/docs/Tools/Architecture.md +0 -884
- package/docs/Tools/GettingStarted.md +0 -624
- package/docs/Tools/Index.md +0 -216
- package/docs/Tools/ManifestReference.md +0 -141
- package/docs/Tools/README.md +0 -440
- package/docs/Tools/UserGuide.md +0 -773
- package/docs/Troubleshooting.md +0 -1265
- package/docs/UI&Settings/Architecture.md +0 -729
- package/docs/UI&Settings/ColorASCII.md +0 -34
- package/docs/UI&Settings/Commands.md +0 -755
- package/docs/UI&Settings/Configuration.md +0 -872
- package/docs/UI&Settings/Index.md +0 -293
- package/docs/UI&Settings/Keybinds.md +0 -372
- package/docs/UI&Settings/README.md +0 -278
- package/docs/UI&Settings/Terminal.md +0 -637
- package/docs/UI&Settings/Themes.md +0 -604
- package/docs/UI&Settings/UIGuide.md +0 -550
|
@@ -1,839 +0,0 @@
|
|
|
1
|
-
# Model Management Commands Reference
|
|
2
|
-
|
|
3
|
-
**Complete CLI Command Reference**
|
|
4
|
-
|
|
5
|
-
This document provides a comprehensive reference for all model management commands in OLLM CLI.
|
|
6
|
-
|
|
7
|
-
---
|
|
8
|
-
|
|
9
|
-
## 📋 Table of Contents
|
|
10
|
-
|
|
11
|
-
1. [Model Commands](#model-commands)
|
|
12
|
-
2. [Memory Commands](#memory-commands)
|
|
13
|
-
3. [Template Commands](#template-commands)
|
|
14
|
-
4. [Project Commands](#project-commands)
|
|
15
|
-
5. [Comparison Commands](#comparison-commands)
|
|
16
|
-
6. [Configuration Commands](#configuration-commands)
|
|
17
|
-
|
|
18
|
-
**See Also:**
|
|
19
|
-
|
|
20
|
-
- [Getting Started](3%20projects/OLLM%20CLI/LLM%20Models/getting-started.md)
|
|
21
|
-
- [Configuration Guide](Models_configuration.md)
|
|
22
|
-
- [Model Architecture](Models_architecture.md)
|
|
23
|
-
|
|
24
|
-
---
|
|
25
|
-
|
|
26
|
-
## Model Commands
|
|
27
|
-
|
|
28
|
-
### `/model list`
|
|
29
|
-
|
|
30
|
-
List all available models from the current provider.
|
|
31
|
-
|
|
32
|
-
**Syntax:**
|
|
33
|
-
|
|
34
|
-
```bash
|
|
35
|
-
/model list
|
|
36
|
-
```
|
|
37
|
-
|
|
38
|
-
**Output:**
|
|
39
|
-
|
|
40
|
-
```
|
|
41
|
-
Available Models:
|
|
42
|
-
● llama3.1:8b (loaded) 4.7 GB Modified 2 days ago
|
|
43
|
-
mistral:7b 4.1 GB Modified 1 week ago
|
|
44
|
-
codellama:7b 3.8 GB Modified 3 days ago
|
|
45
|
-
phi3:mini 2.3 GB Modified 1 month ago
|
|
46
|
-
```
|
|
47
|
-
|
|
48
|
-
**Information displayed:**
|
|
49
|
-
|
|
50
|
-
- Model name and version
|
|
51
|
-
- Size on disk
|
|
52
|
-
- Last modified date
|
|
53
|
-
- Load status (● = loaded)
|
|
54
|
-
|
|
55
|
-
---
|
|
56
|
-
|
|
57
|
-
### `/model pull <name>`
|
|
58
|
-
|
|
59
|
-
Download a model from the provider registry.
|
|
60
|
-
|
|
61
|
-
**Syntax:**
|
|
62
|
-
|
|
63
|
-
```bash
|
|
64
|
-
/model pull <model-name>
|
|
65
|
-
```
|
|
66
|
-
|
|
67
|
-
**Examples:**
|
|
68
|
-
|
|
69
|
-
```bash
|
|
70
|
-
# Pull a specific model
|
|
71
|
-
/model pull llama3.1:8b
|
|
72
|
-
|
|
73
|
-
# Pull with tag
|
|
74
|
-
/model pull mistral:7b-instruct
|
|
75
|
-
|
|
76
|
-
# Pull latest version
|
|
77
|
-
/model pull qwen:latest
|
|
78
|
-
```
|
|
79
|
-
|
|
80
|
-
**Features:**
|
|
81
|
-
|
|
82
|
-
- Real-time progress display
|
|
83
|
-
- Transfer rate monitoring
|
|
84
|
-
- Cancellable with Ctrl+C
|
|
85
|
-
- Automatic cache invalidation
|
|
86
|
-
|
|
87
|
-
**Progress display:**
|
|
88
|
-
|
|
89
|
-
```
|
|
90
|
-
Pulling llama3.1:8b...
|
|
91
|
-
[████████████████████████] 100% 4.7 GB @ 12.3 MB/s
|
|
92
|
-
Model llama3.1:8b ready.
|
|
93
|
-
```
|
|
94
|
-
|
|
95
|
-
---
|
|
96
|
-
|
|
97
|
-
### `/model delete <name>`
|
|
98
|
-
|
|
99
|
-
Remove a model to free disk space.
|
|
100
|
-
|
|
101
|
-
**Syntax:**
|
|
102
|
-
|
|
103
|
-
```bash
|
|
104
|
-
/model delete <model-name>
|
|
105
|
-
```
|
|
106
|
-
|
|
107
|
-
**Examples:**
|
|
108
|
-
|
|
109
|
-
```bash
|
|
110
|
-
# Delete a specific model
|
|
111
|
-
/model delete codellama:7b
|
|
112
|
-
|
|
113
|
-
# Delete with confirmation
|
|
114
|
-
/model delete old-model:13b
|
|
115
|
-
```
|
|
116
|
-
|
|
117
|
-
**Safety features:**
|
|
118
|
-
|
|
119
|
-
- Confirmation prompt
|
|
120
|
-
- Shows space to be freed
|
|
121
|
-
- Automatic unload if currently loaded
|
|
122
|
-
- Cannot delete active model (switch first)
|
|
123
|
-
|
|
124
|
-
**Example interaction:**
|
|
125
|
-
|
|
126
|
-
```
|
|
127
|
-
Delete codellama:7b? This will free 3.8 GB. [y/N] y
|
|
128
|
-
Unloading model...
|
|
129
|
-
Deleting model files...
|
|
130
|
-
Model codellama:7b removed successfully.
|
|
131
|
-
```
|
|
132
|
-
|
|
133
|
-
---
|
|
134
|
-
|
|
135
|
-
### `/model info <name>`
|
|
136
|
-
|
|
137
|
-
View detailed model metadata and capabilities.
|
|
138
|
-
|
|
139
|
-
**Syntax:**
|
|
140
|
-
|
|
141
|
-
```bash
|
|
142
|
-
/model info <model-name>
|
|
143
|
-
```
|
|
144
|
-
|
|
145
|
-
**Examples:**
|
|
146
|
-
|
|
147
|
-
```bash
|
|
148
|
-
# View model information
|
|
149
|
-
/model info llama3.1:8b
|
|
150
|
-
|
|
151
|
-
# Check capabilities
|
|
152
|
-
/model info mistral:7b
|
|
153
|
-
```
|
|
154
|
-
|
|
155
|
-
**Information displayed:**
|
|
156
|
-
|
|
157
|
-
```
|
|
158
|
-
Model: llama3.1:8b
|
|
159
|
-
Size: 4.7 GB
|
|
160
|
-
Parameters: 8B
|
|
161
|
-
Context Length: 128,000 tokens
|
|
162
|
-
Quantization: Q4_K_M
|
|
163
|
-
Family: llama
|
|
164
|
-
Capabilities:
|
|
165
|
-
✓ Tool calling
|
|
166
|
-
✓ Streaming
|
|
167
|
-
✗ Vision
|
|
168
|
-
License: Llama 3.1 Community License
|
|
169
|
-
```
|
|
170
|
-
|
|
171
|
-
---
|
|
172
|
-
|
|
173
|
-
### `/model use <name>`
|
|
174
|
-
|
|
175
|
-
Switch to a specific model.
|
|
176
|
-
|
|
177
|
-
**Syntax:**
|
|
178
|
-
|
|
179
|
-
```bash
|
|
180
|
-
/model use <model-name>
|
|
181
|
-
```
|
|
182
|
-
|
|
183
|
-
**Examples:**
|
|
184
|
-
|
|
185
|
-
```bash
|
|
186
|
-
# Switch to a model
|
|
187
|
-
/model use llama3.1:8b
|
|
188
|
-
|
|
189
|
-
# Override routing
|
|
190
|
-
/model use deepseek-coder:6.7b
|
|
191
|
-
```
|
|
192
|
-
|
|
193
|
-
**Behavior:**
|
|
194
|
-
|
|
195
|
-
- Overrides routing for current session
|
|
196
|
-
- Loads model if not already loaded
|
|
197
|
-
- Updates status bar
|
|
198
|
-
|
|
199
|
-
---
|
|
200
|
-
|
|
201
|
-
### `/model keep <name>`
|
|
202
|
-
|
|
203
|
-
Keep a model loaded in VRAM for faster responses.
|
|
204
|
-
|
|
205
|
-
**Syntax:**
|
|
206
|
-
|
|
207
|
-
```bash
|
|
208
|
-
/model keep <model-name>
|
|
209
|
-
```
|
|
210
|
-
|
|
211
|
-
**Examples:**
|
|
212
|
-
|
|
213
|
-
```bash
|
|
214
|
-
# Keep model loaded
|
|
215
|
-
/model keep llama3.1:8b
|
|
216
|
-
|
|
217
|
-
# Keep multiple models
|
|
218
|
-
/model keep mistral:7b
|
|
219
|
-
/model keep codellama:7b
|
|
220
|
-
```
|
|
221
|
-
|
|
222
|
-
**Benefits:**
|
|
223
|
-
|
|
224
|
-
- Eliminates model load time (2-5 seconds)
|
|
225
|
-
- Reduces latency for subsequent requests
|
|
226
|
-
- Useful for interactive sessions
|
|
227
|
-
|
|
228
|
-
**How it works:**
|
|
229
|
-
|
|
230
|
-
- Sends periodic keep-alive requests to provider
|
|
231
|
-
- Prevents automatic unloading due to inactivity
|
|
232
|
-
- Continues until manual unload or timeout
|
|
233
|
-
|
|
234
|
-
---
|
|
235
|
-
|
|
236
|
-
### `/model unload <name>`
|
|
237
|
-
|
|
238
|
-
Unload a model from VRAM.
|
|
239
|
-
|
|
240
|
-
**Syntax:**
|
|
241
|
-
|
|
242
|
-
```bash
|
|
243
|
-
/model unload <model-name>
|
|
244
|
-
```
|
|
245
|
-
|
|
246
|
-
**Examples:**
|
|
247
|
-
|
|
248
|
-
```bash
|
|
249
|
-
# Unload a model
|
|
250
|
-
/model unload llama3.1:8b
|
|
251
|
-
|
|
252
|
-
# Free VRAM
|
|
253
|
-
/model unload old-model:13b
|
|
254
|
-
```
|
|
255
|
-
|
|
256
|
-
**When to unload:**
|
|
257
|
-
|
|
258
|
-
- Switching to a different model
|
|
259
|
-
- Freeing VRAM for other applications
|
|
260
|
-
- Reducing power consumption
|
|
261
|
-
|
|
262
|
-
---
|
|
263
|
-
|
|
264
|
-
## Memory Commands
|
|
265
|
-
|
|
266
|
-
### `/memory list`
|
|
267
|
-
|
|
268
|
-
Show all stored memories.
|
|
269
|
-
|
|
270
|
-
**Syntax:**
|
|
271
|
-
|
|
272
|
-
```bash
|
|
273
|
-
/memory list
|
|
274
|
-
```
|
|
275
|
-
|
|
276
|
-
**Output:**
|
|
277
|
-
|
|
278
|
-
```
|
|
279
|
-
Stored Memories:
|
|
280
|
-
user_name: Alice (preference) - Accessed 5 times
|
|
281
|
-
preferred_language: TypeScript (preference) - Accessed 3 times
|
|
282
|
-
project_type: monorepo (context) - Accessed 2 times
|
|
283
|
-
last_task: code review (fact) - Accessed 1 time
|
|
284
|
-
```
|
|
285
|
-
|
|
286
|
-
**Information displayed:**
|
|
287
|
-
|
|
288
|
-
- Key and value
|
|
289
|
-
- Category (fact, preference, context)
|
|
290
|
-
- Access count
|
|
291
|
-
- Last accessed date
|
|
292
|
-
|
|
293
|
-
---
|
|
294
|
-
|
|
295
|
-
### `/memory add <key> <value>`
|
|
296
|
-
|
|
297
|
-
Add a new memory.
|
|
298
|
-
|
|
299
|
-
**Syntax:**
|
|
300
|
-
|
|
301
|
-
```bash
|
|
302
|
-
/memory add <key> <value> [--category <category>]
|
|
303
|
-
```
|
|
304
|
-
|
|
305
|
-
**Examples:**
|
|
306
|
-
|
|
307
|
-
```bash
|
|
308
|
-
# Add a simple memory
|
|
309
|
-
/memory add user_name Alice
|
|
310
|
-
|
|
311
|
-
# Add with category
|
|
312
|
-
/memory add preferred_language TypeScript --category preference
|
|
313
|
-
|
|
314
|
-
# Add a fact
|
|
315
|
-
/memory add project_started "2026-01-15" --category fact
|
|
316
|
-
|
|
317
|
-
# Add context
|
|
318
|
-
/memory add working_on "authentication system" --category context
|
|
319
|
-
```
|
|
320
|
-
|
|
321
|
-
**Categories:**
|
|
322
|
-
|
|
323
|
-
- `fact`: Factual information
|
|
324
|
-
- `preference`: User preferences
|
|
325
|
-
- `context`: Contextual information
|
|
326
|
-
|
|
327
|
-
---
|
|
328
|
-
|
|
329
|
-
### `/memory search <query>`
|
|
330
|
-
|
|
331
|
-
Search memories by key or value.
|
|
332
|
-
|
|
333
|
-
**Syntax:**
|
|
334
|
-
|
|
335
|
-
```bash
|
|
336
|
-
/memory search <query>
|
|
337
|
-
```
|
|
338
|
-
|
|
339
|
-
**Examples:**
|
|
340
|
-
|
|
341
|
-
```bash
|
|
342
|
-
# Search by key
|
|
343
|
-
/memory search user
|
|
344
|
-
|
|
345
|
-
# Search by value
|
|
346
|
-
/memory search TypeScript
|
|
347
|
-
|
|
348
|
-
# Search by partial match
|
|
349
|
-
/memory search project
|
|
350
|
-
```
|
|
351
|
-
|
|
352
|
-
**Output:**
|
|
353
|
-
|
|
354
|
-
```
|
|
355
|
-
Found 2 memories:
|
|
356
|
-
user_name: Alice (preference)
|
|
357
|
-
user_email: alice@example.com (fact)
|
|
358
|
-
```
|
|
359
|
-
|
|
360
|
-
---
|
|
361
|
-
|
|
362
|
-
### `/memory forget <key>`
|
|
363
|
-
|
|
364
|
-
Remove a specific memory.
|
|
365
|
-
|
|
366
|
-
**Syntax:**
|
|
367
|
-
|
|
368
|
-
```bash
|
|
369
|
-
/memory forget <key>
|
|
370
|
-
```
|
|
371
|
-
|
|
372
|
-
**Examples:**
|
|
373
|
-
|
|
374
|
-
```bash
|
|
375
|
-
# Forget a memory
|
|
376
|
-
/memory forget old_preference
|
|
377
|
-
|
|
378
|
-
# Remove outdated information
|
|
379
|
-
/memory forget deprecated_setting
|
|
380
|
-
```
|
|
381
|
-
|
|
382
|
-
---
|
|
383
|
-
|
|
384
|
-
### `/memory clear`
|
|
385
|
-
|
|
386
|
-
Clear all memories.
|
|
387
|
-
|
|
388
|
-
**Syntax:**
|
|
389
|
-
|
|
390
|
-
```bash
|
|
391
|
-
/memory clear
|
|
392
|
-
```
|
|
393
|
-
|
|
394
|
-
**Safety:**
|
|
395
|
-
|
|
396
|
-
- Confirmation prompt
|
|
397
|
-
- Cannot be undone
|
|
398
|
-
- Backup recommended
|
|
399
|
-
|
|
400
|
-
**Example interaction:**
|
|
401
|
-
|
|
402
|
-
```
|
|
403
|
-
Clear all memories? This cannot be undone. [y/N] y
|
|
404
|
-
Cleared 12 memories.
|
|
405
|
-
```
|
|
406
|
-
|
|
407
|
-
---
|
|
408
|
-
|
|
409
|
-
## Template Commands
|
|
410
|
-
|
|
411
|
-
### `/template list`
|
|
412
|
-
|
|
413
|
-
Show all available templates.
|
|
414
|
-
|
|
415
|
-
**Syntax:**
|
|
416
|
-
|
|
417
|
-
```bash
|
|
418
|
-
/template list
|
|
419
|
-
```
|
|
420
|
-
|
|
421
|
-
**Output:**
|
|
422
|
-
|
|
423
|
-
```
|
|
424
|
-
Available Templates:
|
|
425
|
-
code_review (3 variables) - Review code for quality and security
|
|
426
|
-
explain_code (2 variables) - Explain how code works
|
|
427
|
-
write_tests (3 variables) - Generate unit tests for code
|
|
428
|
-
refactor (2 variables) - Suggest code refactoring
|
|
429
|
-
```
|
|
430
|
-
|
|
431
|
-
**Information displayed:**
|
|
432
|
-
|
|
433
|
-
- Template name
|
|
434
|
-
- Number of variables
|
|
435
|
-
- Description
|
|
436
|
-
|
|
437
|
-
---
|
|
438
|
-
|
|
439
|
-
### `/template use <name> [variables...]`
|
|
440
|
-
|
|
441
|
-
Use a template with variable substitution.
|
|
442
|
-
|
|
443
|
-
**Syntax:**
|
|
444
|
-
|
|
445
|
-
```bash
|
|
446
|
-
/template use <template-name> [variable=value ...]
|
|
447
|
-
```
|
|
448
|
-
|
|
449
|
-
**Examples:**
|
|
450
|
-
|
|
451
|
-
```bash
|
|
452
|
-
# Use with all variables
|
|
453
|
-
/template use code_review language=TypeScript code="function add(a, b) { return a + b; }"
|
|
454
|
-
|
|
455
|
-
# Use with default values
|
|
456
|
-
/template use code_review language=TypeScript code="..."
|
|
457
|
-
|
|
458
|
-
# Variables with spaces
|
|
459
|
-
/template use explain_code language="Python" code="def factorial(n): return 1 if n <= 1 else n * factorial(n-1)"
|
|
460
|
-
```
|
|
461
|
-
|
|
462
|
-
**Variable syntax:**
|
|
463
|
-
|
|
464
|
-
- `variable=value` - Set variable
|
|
465
|
-
- `variable="value with spaces"` - Value with spaces
|
|
466
|
-
- Missing optional variables use defaults
|
|
467
|
-
- Missing required variables prompt user
|
|
468
|
-
|
|
469
|
-
---
|
|
470
|
-
|
|
471
|
-
### `/template create <name>`
|
|
472
|
-
|
|
473
|
-
Create a new template.
|
|
474
|
-
|
|
475
|
-
**Syntax:**
|
|
476
|
-
|
|
477
|
-
```bash
|
|
478
|
-
/template create <template-name>
|
|
479
|
-
```
|
|
480
|
-
|
|
481
|
-
**Examples:**
|
|
482
|
-
|
|
483
|
-
```bash
|
|
484
|
-
# Create a new template
|
|
485
|
-
/template create my_template
|
|
486
|
-
|
|
487
|
-
# Create with editor
|
|
488
|
-
/template create code_analysis
|
|
489
|
-
```
|
|
490
|
-
|
|
491
|
-
**Template format (YAML):**
|
|
492
|
-
|
|
493
|
-
```yaml
|
|
494
|
-
name: code_review
|
|
495
|
-
description: Review code for quality and security
|
|
496
|
-
template: "Review this {language} code for {focus:bugs and security}:\n\n{code}"
|
|
497
|
-
variables:
|
|
498
|
-
- name: language
|
|
499
|
-
required: true
|
|
500
|
-
description: Programming language
|
|
501
|
-
- name: focus
|
|
502
|
-
required: false
|
|
503
|
-
default: 'bugs and security'
|
|
504
|
-
description: Review focus areas
|
|
505
|
-
- name: code
|
|
506
|
-
required: true
|
|
507
|
-
description: Code to review
|
|
508
|
-
```
|
|
509
|
-
|
|
510
|
-
**Saved to:** `~/.ollm/templates/<name>.yaml`
|
|
511
|
-
|
|
512
|
-
---
|
|
513
|
-
|
|
514
|
-
### `/template delete <name>`
|
|
515
|
-
|
|
516
|
-
Delete a template.
|
|
517
|
-
|
|
518
|
-
**Syntax:**
|
|
519
|
-
|
|
520
|
-
```bash
|
|
521
|
-
/template delete <template-name>
|
|
522
|
-
```
|
|
523
|
-
|
|
524
|
-
**Examples:**
|
|
525
|
-
|
|
526
|
-
```bash
|
|
527
|
-
# Delete a template
|
|
528
|
-
/template delete old_template
|
|
529
|
-
|
|
530
|
-
# Remove unused template
|
|
531
|
-
/template delete deprecated
|
|
532
|
-
```
|
|
533
|
-
|
|
534
|
-
---
|
|
535
|
-
|
|
536
|
-
## Project Commands
|
|
537
|
-
|
|
538
|
-
### `/project detect`
|
|
539
|
-
|
|
540
|
-
Auto-detect project type from workspace files.
|
|
541
|
-
|
|
542
|
-
**Syntax:**
|
|
543
|
-
|
|
544
|
-
```bash
|
|
545
|
-
/project detect
|
|
546
|
-
```
|
|
547
|
-
|
|
548
|
-
**Output:**
|
|
549
|
-
|
|
550
|
-
```
|
|
551
|
-
Detected project type: TypeScript
|
|
552
|
-
Characteristic files:
|
|
553
|
-
- package.json (with TypeScript dependencies)
|
|
554
|
-
- tsconfig.json
|
|
555
|
-
|
|
556
|
-
Suggested profile: typescript
|
|
557
|
-
```
|
|
558
|
-
|
|
559
|
-
**Detection rules:**
|
|
560
|
-
|
|
561
|
-
- **TypeScript**: `package.json` with TypeScript dependencies
|
|
562
|
-
- **Python**: `requirements.txt`, `pyproject.toml`, `setup.py`
|
|
563
|
-
- **Rust**: `Cargo.toml`
|
|
564
|
-
- **Go**: `go.mod`
|
|
565
|
-
|
|
566
|
-
---
|
|
567
|
-
|
|
568
|
-
### `/project use <profile>`
|
|
569
|
-
|
|
570
|
-
Select a project profile.
|
|
571
|
-
|
|
572
|
-
**Syntax:**
|
|
573
|
-
|
|
574
|
-
```bash
|
|
575
|
-
/project use <profile-name>
|
|
576
|
-
```
|
|
577
|
-
|
|
578
|
-
**Examples:**
|
|
579
|
-
|
|
580
|
-
```bash
|
|
581
|
-
# Use TypeScript profile
|
|
582
|
-
/project use typescript
|
|
583
|
-
|
|
584
|
-
# Use Python profile
|
|
585
|
-
/project use python
|
|
586
|
-
|
|
587
|
-
# Use custom profile
|
|
588
|
-
/project use my-profile
|
|
589
|
-
```
|
|
590
|
-
|
|
591
|
-
**Built-in profiles:**
|
|
592
|
-
|
|
593
|
-
- `typescript` - TypeScript projects
|
|
594
|
-
- `python` - Python projects
|
|
595
|
-
- `rust` - Rust projects
|
|
596
|
-
- `go` - Go projects
|
|
597
|
-
- `documentation` - Documentation projects
|
|
598
|
-
|
|
599
|
-
---
|
|
600
|
-
|
|
601
|
-
### `/project init`
|
|
602
|
-
|
|
603
|
-
Initialize project configuration file.
|
|
604
|
-
|
|
605
|
-
**Syntax:**
|
|
606
|
-
|
|
607
|
-
```bash
|
|
608
|
-
/project init [profile-name]
|
|
609
|
-
```
|
|
610
|
-
|
|
611
|
-
**Examples:**
|
|
612
|
-
|
|
613
|
-
```bash
|
|
614
|
-
# Initialize with detected profile
|
|
615
|
-
/project init
|
|
616
|
-
|
|
617
|
-
# Initialize with specific profile
|
|
618
|
-
/project init typescript
|
|
619
|
-
|
|
620
|
-
# Initialize with custom settings
|
|
621
|
-
/project init my-profile
|
|
622
|
-
```
|
|
623
|
-
|
|
624
|
-
**Creates:** `.ollm/project.yaml`
|
|
625
|
-
|
|
626
|
-
**Example file:**
|
|
627
|
-
|
|
628
|
-
```yaml
|
|
629
|
-
# Project profile
|
|
630
|
-
profile: typescript
|
|
631
|
-
|
|
632
|
-
# Override global model
|
|
633
|
-
model: deepseek-coder:6.7b
|
|
634
|
-
|
|
635
|
-
# Project-specific routing
|
|
636
|
-
routing:
|
|
637
|
-
defaultProfile: code
|
|
638
|
-
|
|
639
|
-
# Project-specific options
|
|
640
|
-
options:
|
|
641
|
-
temperature: 0.3
|
|
642
|
-
maxTokens: 4096
|
|
643
|
-
```
|
|
644
|
-
|
|
645
|
-
---
|
|
646
|
-
|
|
647
|
-
## Comparison Commands
|
|
648
|
-
|
|
649
|
-
### `/compare "<prompt>" <model1> <model2> [model3...]`
|
|
650
|
-
|
|
651
|
-
Run the same prompt through multiple models for comparison.
|
|
652
|
-
|
|
653
|
-
**Syntax:**
|
|
654
|
-
|
|
655
|
-
```bash
|
|
656
|
-
/compare "<prompt>" <model1> <model2> [model3...]
|
|
657
|
-
```
|
|
658
|
-
|
|
659
|
-
**Examples:**
|
|
660
|
-
|
|
661
|
-
```bash
|
|
662
|
-
# Compare two models
|
|
663
|
-
/compare "Explain recursion" llama3.1:8b mistral:7b
|
|
664
|
-
|
|
665
|
-
# Compare three models
|
|
666
|
-
/compare "Write a sorting algorithm" codellama:7b deepseek-coder:6.7b qwen:7b
|
|
667
|
-
|
|
668
|
-
# Compare with complex prompt
|
|
669
|
-
/compare "Review this code: function add(a, b) { return a + b; }" llama3.1:8b codellama:7b
|
|
670
|
-
```
|
|
671
|
-
|
|
672
|
-
**Output:**
|
|
673
|
-
|
|
674
|
-
```
|
|
675
|
-
Comparison Results:
|
|
676
|
-
|
|
677
|
-
┌─────────────────┬──────────────┬──────────┬─────────────┐
|
|
678
|
-
│ Model │ Tokens │ Latency │ Tokens/sec │
|
|
679
|
-
├─────────────────┼──────────────┼──────────┼─────────────┤
|
|
680
|
-
│ llama3.1:8b │ 245 │ 2.3s │ 106.5 │
|
|
681
|
-
│ mistral:7b │ 198 │ 1.8s │ 110.0 │
|
|
682
|
-
│ codellama:7b │ 312 │ 3.1s │ 100.6 │
|
|
683
|
-
└─────────────────┴──────────────┴──────────┴─────────────┘
|
|
684
|
-
|
|
685
|
-
[Responses displayed side-by-side below]
|
|
686
|
-
```
|
|
687
|
-
|
|
688
|
-
**Features:**
|
|
689
|
-
|
|
690
|
-
- Parallel execution
|
|
691
|
-
- Performance metrics
|
|
692
|
-
- Side-by-side display
|
|
693
|
-
- Partial failure handling
|
|
694
|
-
|
|
695
|
-
---
|
|
696
|
-
|
|
697
|
-
## Configuration Commands
|
|
698
|
-
|
|
699
|
-
### `/config show`
|
|
700
|
-
|
|
701
|
-
Display current configuration.
|
|
702
|
-
|
|
703
|
-
**Syntax:**
|
|
704
|
-
|
|
705
|
-
```bash
|
|
706
|
-
/config show
|
|
707
|
-
```
|
|
708
|
-
|
|
709
|
-
**Output:**
|
|
710
|
-
|
|
711
|
-
```
|
|
712
|
-
Current Configuration:
|
|
713
|
-
|
|
714
|
-
Model:
|
|
715
|
-
Default: llama3.1:8b
|
|
716
|
-
Routing: enabled (general profile)
|
|
717
|
-
Keep-alive: enabled (1 model)
|
|
718
|
-
|
|
719
|
-
Memory:
|
|
720
|
-
Enabled: true
|
|
721
|
-
Token budget: 500
|
|
722
|
-
Stored memories: 12
|
|
723
|
-
|
|
724
|
-
Templates:
|
|
725
|
-
User templates: 5
|
|
726
|
-
Workspace templates: 2
|
|
727
|
-
|
|
728
|
-
Project:
|
|
729
|
-
Profile: typescript
|
|
730
|
-
Auto-detect: true
|
|
731
|
-
```
|
|
732
|
-
|
|
733
|
-
---
|
|
734
|
-
|
|
735
|
-
### `/config set <key> <value>`
|
|
736
|
-
|
|
737
|
-
Set a configuration value.
|
|
738
|
-
|
|
739
|
-
**Syntax:**
|
|
740
|
-
|
|
741
|
-
```bash
|
|
742
|
-
/config set <key> <value>
|
|
743
|
-
```
|
|
744
|
-
|
|
745
|
-
**Examples:**
|
|
746
|
-
|
|
747
|
-
```bash
|
|
748
|
-
# Set default model
|
|
749
|
-
/config set model.default llama3.1:8b
|
|
750
|
-
|
|
751
|
-
# Enable routing
|
|
752
|
-
/config set model.routing.enabled true
|
|
753
|
-
|
|
754
|
-
# Set routing profile
|
|
755
|
-
/config set model.routing.defaultProfile code
|
|
756
|
-
|
|
757
|
-
# Set temperature
|
|
758
|
-
/config set options.temperature 0.7
|
|
759
|
-
|
|
760
|
-
# Set memory token budget
|
|
761
|
-
/config set memory.tokenBudget 500
|
|
762
|
-
```
|
|
763
|
-
|
|
764
|
-
---
|
|
765
|
-
|
|
766
|
-
### `/config reset`
|
|
767
|
-
|
|
768
|
-
Reset configuration to defaults.
|
|
769
|
-
|
|
770
|
-
**Syntax:**
|
|
771
|
-
|
|
772
|
-
```bash
|
|
773
|
-
/config reset [section]
|
|
774
|
-
```
|
|
775
|
-
|
|
776
|
-
**Examples:**
|
|
777
|
-
|
|
778
|
-
```bash
|
|
779
|
-
# Reset all configuration
|
|
780
|
-
/config reset
|
|
781
|
-
|
|
782
|
-
# Reset model configuration
|
|
783
|
-
/config reset model
|
|
784
|
-
|
|
785
|
-
# Reset memory configuration
|
|
786
|
-
/config reset memory
|
|
787
|
-
```
|
|
788
|
-
|
|
789
|
-
---
|
|
790
|
-
|
|
791
|
-
## Environment Variables
|
|
792
|
-
|
|
793
|
-
Configuration can also be set via environment variables:
|
|
794
|
-
|
|
795
|
-
```bash
|
|
796
|
-
# Model selection
|
|
797
|
-
export OLLM_MODEL=llama3.1:8b
|
|
798
|
-
|
|
799
|
-
# Generation parameters
|
|
800
|
-
export OLLM_TEMPERATURE=0.7
|
|
801
|
-
export OLLM_MAX_TOKENS=4096
|
|
802
|
-
export OLLM_CONTEXT_SIZE=8192
|
|
803
|
-
|
|
804
|
-
# Provider URL
|
|
805
|
-
export OLLAMA_HOST=http://localhost:11434
|
|
806
|
-
```
|
|
807
|
-
|
|
808
|
-
**Precedence:** Environment variables > Project config > Global config
|
|
809
|
-
|
|
810
|
-
---
|
|
811
|
-
|
|
812
|
-
## Command Aliases
|
|
813
|
-
|
|
814
|
-
Some commands have shorter aliases:
|
|
815
|
-
|
|
816
|
-
| Command | Alias |
|
|
817
|
-
| ----------------- | ------------ |
|
|
818
|
-
| `/model list` | `/models` |
|
|
819
|
-
| `/model use` | `/use` |
|
|
820
|
-
| `/memory list` | `/memories` |
|
|
821
|
-
| `/template list` | `/templates` |
|
|
822
|
-
| `/project detect` | `/detect` |
|
|
823
|
-
|
|
824
|
-
---
|
|
825
|
-
|
|
826
|
-
## See Also
|
|
827
|
-
|
|
828
|
-
- [Getting Started](3%20projects/OLLM%20CLI/LLM%20Models/getting-started.md)
|
|
829
|
-
- [Configuration Guide](Models_configuration.md)
|
|
830
|
-
- [Model Architecture](Models_architecture.md)
|
|
831
|
-
- [Routing Guide](3%20projects/OLLM%20CLI/LLM%20Models/routing/user-guide.md)
|
|
832
|
-
- [Memory Guide](3%20projects/OLLM%20CLI/LLM%20Models/memory/user-guide.md)
|
|
833
|
-
- [Templates Guide](3%20projects/OLLM%20CLI/LLM%20Models/templates/user-guide.md)
|
|
834
|
-
- [Profiles Guide](3%20projects/OLLM%20CLI/LLM%20Models/profiles/user-guide.md)
|
|
835
|
-
|
|
836
|
-
---
|
|
837
|
-
|
|
838
|
-
**Last Updated:** 2026-01-16
|
|
839
|
-
**Version:** 0.1.0
|