@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
package/docs/Tools/README.md
DELETED
|
@@ -1,440 +0,0 @@
|
|
|
1
|
-
# Tool System Documentation
|
|
2
|
-
|
|
3
|
-
**Complete Documentation for the Tool Execution System**
|
|
4
|
-
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
## 📚 Quick Navigation
|
|
8
|
-
|
|
9
|
-
- [User Guide](UserGuide.md) - Using tools in OLLM CLI
|
|
10
|
-
- [Architecture](Architecture.md) - Technical architecture and design
|
|
11
|
-
- [Extension System](GettingStarted.md) - Extension tools
|
|
12
|
-
- [Manifest Reference](ManifestReference.md) - Extension manifest schema
|
|
13
|
-
|
|
14
|
-
---
|
|
15
|
-
|
|
16
|
-
## Overview
|
|
17
|
-
|
|
18
|
-
The Tool Execution System enables LLMs to perform actions through a unified interface. Tools can read files, access the web, execute commands, manage memory, and more.
|
|
19
|
-
|
|
20
|
-
### Key Features
|
|
21
|
-
|
|
22
|
-
- ✅ Unified tool registry for all tool types
|
|
23
|
-
- ✅ Schema-based parameter validation
|
|
24
|
-
- ✅ Permission-based approval system
|
|
25
|
-
- ✅ Dynamic tool registration at runtime
|
|
26
|
-
- ✅ MCP tool integration
|
|
27
|
-
- ✅ Result formatting and truncation
|
|
28
|
-
- ✅ Error handling and recovery
|
|
29
|
-
|
|
30
|
-
---
|
|
31
|
-
|
|
32
|
-
## Documentation by Audience
|
|
33
|
-
|
|
34
|
-
### For New Users
|
|
35
|
-
|
|
36
|
-
**Start Here:**
|
|
37
|
-
|
|
38
|
-
1. [User Guide](UserGuide.md) - Complete guide to using tools
|
|
39
|
-
2. [Available Tools](#available-tools) - Tool reference
|
|
40
|
-
3. [Approval Modes](#approval-modes) - Safety settings
|
|
41
|
-
|
|
42
|
-
**Then Explore:**
|
|
43
|
-
|
|
44
|
-
- [Extension System](GettingStarted.md) - Adding more tools
|
|
45
|
-
- [MCP Integration](../MCP/MCP_Integration.md) - External tools
|
|
46
|
-
|
|
47
|
-
---
|
|
48
|
-
|
|
49
|
-
### For Developers
|
|
50
|
-
|
|
51
|
-
**Start Here:**
|
|
52
|
-
|
|
53
|
-
1. [Architecture](Architecture.md) - System design
|
|
54
|
-
2. [Tool Categories](#tool-categories) - Tool organization
|
|
55
|
-
3. [Integration Points](#integration-points) - System integration
|
|
56
|
-
|
|
57
|
-
**Then Explore:**
|
|
58
|
-
|
|
59
|
-
- [MCP Architecture](../MCP/MCP_Architecture.md) - MCP tool integration
|
|
60
|
-
- [Hook Architecture](../Hooks/Architecture.md) - Hook integration
|
|
61
|
-
- [Extension Development](GettingStarted.md) - Creating tools
|
|
62
|
-
|
|
63
|
-
---
|
|
64
|
-
|
|
65
|
-
## Available Tools
|
|
66
|
-
|
|
67
|
-
### File Discovery
|
|
68
|
-
|
|
69
|
-
| Tool | Description | Risk Level | Auto-Approve |
|
|
70
|
-
| ------ | ----------------------- | ---------- | ------------ |
|
|
71
|
-
| `glob` | Find files by pattern | Low | ✅ Yes |
|
|
72
|
-
| `ls` | List directory contents | Low | ✅ Yes |
|
|
73
|
-
| `grep` | Search file contents | Low | ✅ Yes |
|
|
74
|
-
|
|
75
|
-
### File Operations
|
|
76
|
-
|
|
77
|
-
| Tool | Description | Risk Level | Auto-Approve |
|
|
78
|
-
| ----------------- | ---------------------- | ---------- | ------------ |
|
|
79
|
-
| `read_file` | Read single file | Low | ✅ Yes |
|
|
80
|
-
| `read_many_files` | Read multiple files | Low | ✅ Yes |
|
|
81
|
-
| `edit_file` | Edit file sections | Medium | ❌ No |
|
|
82
|
-
| `write_file` | Create/overwrite files | Medium | ❌ No |
|
|
83
|
-
|
|
84
|
-
### Web Tools
|
|
85
|
-
|
|
86
|
-
| Tool | Description | Risk Level | Auto-Approve |
|
|
87
|
-
| ------------ | ----------------- | ---------- | ------------ |
|
|
88
|
-
| `web_search` | Search internet | Low | ✅ Yes |
|
|
89
|
-
| `web_fetch` | Fetch URL content | Low | ✅ Yes |
|
|
90
|
-
|
|
91
|
-
### Shell Tool
|
|
92
|
-
|
|
93
|
-
| Tool | Description | Risk Level | Auto-Approve |
|
|
94
|
-
| ------- | ---------------- | ---------- | ------------ |
|
|
95
|
-
| `shell` | Execute commands | High | ❌ No |
|
|
96
|
-
|
|
97
|
-
### Memory Tools
|
|
98
|
-
|
|
99
|
-
| Tool | Description | Risk Level | Auto-Approve |
|
|
100
|
-
| ------------------- | --------------------- | ---------- | ------------ |
|
|
101
|
-
| `memory` | Persistent memory | Low | ✅ Yes |
|
|
102
|
-
| `remember` | Simplified memory | Low | ✅ Yes |
|
|
103
|
-
| `write_memory_dump` | Context snapshot | Low | ✅ Yes |
|
|
104
|
-
| `read_reasoning` | Review past reasoning | Low | ✅ Yes |
|
|
105
|
-
|
|
106
|
-
### Goal Tools
|
|
107
|
-
|
|
108
|
-
| Tool | Description | Risk Level | Auto-Approve |
|
|
109
|
-
| ------------------- | ------------------ | ---------- | ------------ |
|
|
110
|
-
| `create_goal` | Create new goal | Low | ✅ Yes |
|
|
111
|
-
| `switch_goal` | Switch active goal | Low | ✅ Yes |
|
|
112
|
-
| `complete_goal` | Mark goal complete | Low | ✅ Yes |
|
|
113
|
-
| `create_checkpoint` | Create checkpoint | Low | ✅ Yes |
|
|
114
|
-
| `record_decision` | Record decision | Low | ✅ Yes |
|
|
115
|
-
|
|
116
|
-
---
|
|
117
|
-
|
|
118
|
-
## Approval Modes
|
|
119
|
-
|
|
120
|
-
### YOLO Mode
|
|
121
|
-
|
|
122
|
-
**Description:** Auto-approve all tools
|
|
123
|
-
|
|
124
|
-
**Use When:** Maximum speed, trusted environment
|
|
125
|
-
|
|
126
|
-
**Risks:** No safety checks, potential for mistakes
|
|
127
|
-
|
|
128
|
-
### AUTO Mode (Recommended)
|
|
129
|
-
|
|
130
|
-
**Description:** Auto-approve safe tools, ask for dangerous ones
|
|
131
|
-
|
|
132
|
-
**Use When:** Normal development work, balanced safety
|
|
133
|
-
|
|
134
|
-
**Behavior:**
|
|
135
|
-
|
|
136
|
-
- ✅ Auto-approve: Read operations, web search
|
|
137
|
-
- ❌ Require approval: Write operations, shell commands
|
|
138
|
-
|
|
139
|
-
### ASK Mode
|
|
140
|
-
|
|
141
|
-
**Description:** Confirm every tool
|
|
142
|
-
|
|
143
|
-
**Use When:** Learning, critical data, maximum safety
|
|
144
|
-
|
|
145
|
-
**Behavior:**
|
|
146
|
-
|
|
147
|
-
- ❌ Require approval: All tools
|
|
148
|
-
|
|
149
|
-
---
|
|
150
|
-
|
|
151
|
-
## Tool Categories
|
|
152
|
-
|
|
153
|
-
### By Purpose
|
|
154
|
-
|
|
155
|
-
**File Operations:**
|
|
156
|
-
|
|
157
|
-
- Discovery: glob, ls, grep
|
|
158
|
-
- Reading: read_file, read_many_files
|
|
159
|
-
- Writing: edit_file, write_file
|
|
160
|
-
|
|
161
|
-
**Web Access:**
|
|
162
|
-
|
|
163
|
-
- Search: web_search
|
|
164
|
-
- Fetch: web_fetch
|
|
165
|
-
|
|
166
|
-
**System:**
|
|
167
|
-
|
|
168
|
-
- Shell: shell
|
|
169
|
-
|
|
170
|
-
**Data Management:**
|
|
171
|
-
|
|
172
|
-
- Memory: memory, remember
|
|
173
|
-
- Context: write_memory_dump, read_reasoning
|
|
174
|
-
- Goals: create_goal, switch_goal, complete_goal, create_checkpoint, record_decision
|
|
175
|
-
|
|
176
|
-
### By Risk Level
|
|
177
|
-
|
|
178
|
-
**Low Risk (Auto-Approve in AUTO mode):**
|
|
179
|
-
|
|
180
|
-
- All read operations
|
|
181
|
-
- Web search and fetch
|
|
182
|
-
- Memory operations
|
|
183
|
-
- Goal management
|
|
184
|
-
|
|
185
|
-
**Medium Risk (Require Approval):**
|
|
186
|
-
|
|
187
|
-
- File write operations
|
|
188
|
-
- File edit operations
|
|
189
|
-
|
|
190
|
-
**High Risk (Always Require Approval):**
|
|
191
|
-
|
|
192
|
-
- Shell command execution
|
|
193
|
-
|
|
194
|
-
---
|
|
195
|
-
|
|
196
|
-
## Integration Points
|
|
197
|
-
|
|
198
|
-
### MCP Integration
|
|
199
|
-
|
|
200
|
-
MCP tools are automatically registered in the Tool Registry:
|
|
201
|
-
|
|
202
|
-
```
|
|
203
|
-
MCP Server → Tool Discovery → Schema Conversion → Tool Registration → Available to LLM
|
|
204
|
-
```
|
|
205
|
-
|
|
206
|
-
**See:** [MCP Integration](../MCP/MCP_Integration.md)
|
|
207
|
-
|
|
208
|
-
### Hook Integration
|
|
209
|
-
|
|
210
|
-
Hooks can trigger tool execution through `askAgent` action:
|
|
211
|
-
|
|
212
|
-
```json
|
|
213
|
-
{
|
|
214
|
-
"action": {
|
|
215
|
-
"type": "askAgent",
|
|
216
|
-
"prompt": "Run linting using the shell tool"
|
|
217
|
-
}
|
|
218
|
-
}
|
|
219
|
-
```
|
|
220
|
-
|
|
221
|
-
**See:** [Hook Architecture](../Hooks/Architecture.md)
|
|
222
|
-
|
|
223
|
-
### Extension Integration
|
|
224
|
-
|
|
225
|
-
Extensions can provide tools via MCP servers:
|
|
226
|
-
|
|
227
|
-
```json
|
|
228
|
-
{
|
|
229
|
-
"mcpServers": {
|
|
230
|
-
"custom-tools": {
|
|
231
|
-
"command": "node",
|
|
232
|
-
"args": ["server.js"]
|
|
233
|
-
}
|
|
234
|
-
}
|
|
235
|
-
}
|
|
236
|
-
```
|
|
237
|
-
|
|
238
|
-
**See:** [Extension System](GettingStarted.md)
|
|
239
|
-
|
|
240
|
-
---
|
|
241
|
-
|
|
242
|
-
## Quick Start
|
|
243
|
-
|
|
244
|
-
### Using Tools
|
|
245
|
-
|
|
246
|
-
Simply ask the LLM to perform actions:
|
|
247
|
-
|
|
248
|
-
```
|
|
249
|
-
"Read the README file"
|
|
250
|
-
"Search for React documentation"
|
|
251
|
-
"Run npm test"
|
|
252
|
-
"Create a new component file"
|
|
253
|
-
```
|
|
254
|
-
|
|
255
|
-
### Setting Approval Mode
|
|
256
|
-
|
|
257
|
-
```bash
|
|
258
|
-
# Recommended: AUTO mode
|
|
259
|
-
/config set approvalMode AUTO
|
|
260
|
-
|
|
261
|
-
# Maximum speed: YOLO mode
|
|
262
|
-
/config set approvalMode YOLO
|
|
263
|
-
|
|
264
|
-
# Maximum safety: ASK mode
|
|
265
|
-
/config set approvalMode ASK
|
|
266
|
-
```
|
|
267
|
-
|
|
268
|
-
### Approving Tools
|
|
269
|
-
|
|
270
|
-
When prompted:
|
|
271
|
-
|
|
272
|
-
- `y` - Approve this execution
|
|
273
|
-
- `n` - Deny this execution
|
|
274
|
-
- `a` - Approve all (switch to YOLO)
|
|
275
|
-
- `s` - Skip and continue
|
|
276
|
-
|
|
277
|
-
---
|
|
278
|
-
|
|
279
|
-
## Troubleshooting
|
|
280
|
-
|
|
281
|
-
### Tools Not Working
|
|
282
|
-
|
|
283
|
-
**Check approval mode:**
|
|
284
|
-
|
|
285
|
-
```bash
|
|
286
|
-
/config get approvalMode
|
|
287
|
-
```
|
|
288
|
-
|
|
289
|
-
**Check tool registration:**
|
|
290
|
-
|
|
291
|
-
```bash
|
|
292
|
-
/tools list
|
|
293
|
-
```
|
|
294
|
-
|
|
295
|
-
**Known Issue:** Tools not being passed to provider
|
|
296
|
-
**Status:** Fix in progress
|
|
297
|
-
|
|
298
|
-
**See:** [Troubleshooting](UserGuide.md#troubleshooting)
|
|
299
|
-
|
|
300
|
-
### Tool Execution Fails
|
|
301
|
-
|
|
302
|
-
**Check error message:**
|
|
303
|
-
|
|
304
|
-
- Read error carefully
|
|
305
|
-
- Verify parameters
|
|
306
|
-
- Check file paths
|
|
307
|
-
- Verify permissions
|
|
308
|
-
|
|
309
|
-
**See:** [Troubleshooting](UserGuide.md#troubleshooting)
|
|
310
|
-
|
|
311
|
-
---
|
|
312
|
-
|
|
313
|
-
## Best Practices
|
|
314
|
-
|
|
315
|
-
### Tool Usage
|
|
316
|
-
|
|
317
|
-
**Do:**
|
|
318
|
-
|
|
319
|
-
- ✅ Use natural language requests
|
|
320
|
-
- ✅ Let LLM choose tools
|
|
321
|
-
- ✅ Review actions before approval
|
|
322
|
-
- ✅ Use AUTO mode for balance
|
|
323
|
-
|
|
324
|
-
**Don't:**
|
|
325
|
-
|
|
326
|
-
- ❌ Manually invoke tools
|
|
327
|
-
- ❌ Use YOLO on critical data
|
|
328
|
-
- ❌ Ignore approval prompts
|
|
329
|
-
- ❌ Approve without reading
|
|
330
|
-
|
|
331
|
-
**See:** [Best Practices](UserGuide.md#best-practices)
|
|
332
|
-
|
|
333
|
-
---
|
|
334
|
-
|
|
335
|
-
## Examples
|
|
336
|
-
|
|
337
|
-
### File Operations
|
|
338
|
-
|
|
339
|
-
```
|
|
340
|
-
User: "Read package.json and update the version to 2.0.0"
|
|
341
|
-
|
|
342
|
-
LLM: [Uses read_file tool]
|
|
343
|
-
LLM: [Uses edit_file tool with approval]
|
|
344
|
-
LLM: "Version updated to 2.0.0"
|
|
345
|
-
```
|
|
346
|
-
|
|
347
|
-
### Web Research
|
|
348
|
-
|
|
349
|
-
```
|
|
350
|
-
User: "Search for React hooks best practices and summarize"
|
|
351
|
-
|
|
352
|
-
LLM: [Uses web_search tool]
|
|
353
|
-
LLM: [Uses web_fetch tool]
|
|
354
|
-
LLM: "Here's a summary..."
|
|
355
|
-
```
|
|
356
|
-
|
|
357
|
-
### Development Workflow
|
|
358
|
-
|
|
359
|
-
```
|
|
360
|
-
User: "Run tests, and if they fail, show me the errors"
|
|
361
|
-
|
|
362
|
-
LLM: [Uses shell tool with approval]
|
|
363
|
-
LLM: [Uses read_file tool if needed]
|
|
364
|
-
LLM: "Tests failed with 2 errors..."
|
|
365
|
-
```
|
|
366
|
-
|
|
367
|
-
**See:** [Examples](UserGuide.md#examples)
|
|
368
|
-
|
|
369
|
-
---
|
|
370
|
-
|
|
371
|
-
## Documentation Status
|
|
372
|
-
|
|
373
|
-
### Completed ✅
|
|
374
|
-
|
|
375
|
-
| Document | Status |
|
|
376
|
-
| -------------------- | ----------- |
|
|
377
|
-
| README.md | ✅ Complete |
|
|
378
|
-
| UserGuide.md | ✅ Complete |
|
|
379
|
-
| Architecture.md | ✅ Complete |
|
|
380
|
-
| GettingStarted.md | ✅ Complete |
|
|
381
|
-
| ManifestReference.md | ✅ Complete |
|
|
382
|
-
|
|
383
|
-
**Overall Progress:** 100% complete (5/5 files)
|
|
384
|
-
|
|
385
|
-
---
|
|
386
|
-
|
|
387
|
-
## External Resources
|
|
388
|
-
|
|
389
|
-
### Official Resources
|
|
390
|
-
|
|
391
|
-
- Tool Use Patterns (https://docs.anthropic.com/claude/docs/tool-use)
|
|
392
|
-
- JSON Schema (https://json-schema.org/)
|
|
393
|
-
|
|
394
|
-
### OLLM CLI Resources
|
|
395
|
-
|
|
396
|
-
- [Main Documentation](../) - OLLM CLI docs
|
|
397
|
-
- [MCP Documentation](../MCP/) - MCP integration
|
|
398
|
-
- [Hook Documentation](../Hooks/) - Hook system
|
|
399
|
-
|
|
400
|
-
---
|
|
401
|
-
|
|
402
|
-
## Contributing
|
|
403
|
-
|
|
404
|
-
Want to contribute to Tool documentation?
|
|
405
|
-
|
|
406
|
-
1. Read Contributing Guide (../../CONTRIBUTING.md)
|
|
407
|
-
2. Check Documentation Tracking
|
|
408
|
-
3. Submit pull requests
|
|
409
|
-
|
|
410
|
-
---
|
|
411
|
-
|
|
412
|
-
## Search Tips
|
|
413
|
-
|
|
414
|
-
### Finding Information
|
|
415
|
-
|
|
416
|
-
**By Task:**
|
|
417
|
-
|
|
418
|
-
- Using tools → [User Guide](UserGuide.md)
|
|
419
|
-
- Understanding architecture → [Architecture](Architecture.md)
|
|
420
|
-
- Adding tools → [Extension System](GettingStarted.md)
|
|
421
|
-
|
|
422
|
-
**By Tool:**
|
|
423
|
-
|
|
424
|
-
- File operations → [File Tools](#file-operations)
|
|
425
|
-
- Web access → [Web Tools](#web-tools)
|
|
426
|
-
- Shell commands → [Shell Tool](#shell-tool)
|
|
427
|
-
- Memory → [Memory Tools](#memory-tools)
|
|
428
|
-
- Goals → [Goal Tools](#goal-tools)
|
|
429
|
-
|
|
430
|
-
**By Topic:**
|
|
431
|
-
|
|
432
|
-
- Approval → [Approval Modes](#approval-modes)
|
|
433
|
-
- Security → [Architecture - Security Model](Architecture.md#security-model)
|
|
434
|
-
- Integration → [Integration Points](#integration-points)
|
|
435
|
-
|
|
436
|
-
---
|
|
437
|
-
|
|
438
|
-
**Last Updated:** 2026-01-26
|
|
439
|
-
**Version:** 0.1.0
|
|
440
|
-
**Documentation Progress:** 100% complete
|