@defai.digital/automatosx 11.2.5 → 11.2.7
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/README.md +1 -1
- package/dist/index.js +546 -465
- package/dist/mcp/index.js +243 -173
- package/examples/providers/README.md +58 -169
- package/package.json +1 -1
- package/CHANGELOG.md +0 -41
- package/CODE_OF_CONDUCT.md +0 -133
- package/CONTRIBUTING.md +0 -427
- package/FAQ.md +0 -895
- package/TROUBLESHOOTING.md +0 -972
- package/templates/providers/README.md +0 -117
- /package/examples/{claude → providers/claude}/CLAUDE_INTEGRATION.md +0 -0
- /package/examples/{claude → providers/claude}/mcp/automatosx.json +0 -0
- /package/examples/{codex → providers/codex}/CODEX_INTEGRATION.md +0 -0
- /package/examples/{codex → providers/codex}/README.md +0 -0
- /package/examples/{codex → providers/codex}/usage-examples.ts +0 -0
- /package/examples/{gemini → providers/gemini}/GEMINI_INTEGRATION.md +0 -0
- /package/examples/{gemini → providers/gemini}/README.md +0 -0
- /package/examples/{integrations → providers}/openai-codex-example.ts +0 -0
- /package/{templates → examples}/specs/enterprise.yaml.mustache +0 -0
- /package/{templates → examples}/specs/government.yaml.mustache +0 -0
- /package/{templates → examples}/specs/minimal.yaml.mustache +0 -0
- /package/examples/{templates → workflows}/analyst.yaml +0 -0
- /package/examples/{templates → workflows}/assistant.yaml +0 -0
- /package/examples/{templates → workflows}/basic-agent.yaml +0 -0
- /package/examples/{templates → workflows}/code-reviewer.yaml +0 -0
- /package/examples/{templates → workflows}/debugger.yaml +0 -0
- /package/examples/{templates → workflows}/designer.yaml +0 -0
- /package/examples/{templates → workflows}/developer.yaml +0 -0
- /package/examples/{templates → workflows}/fullstack-developer.yaml +0 -0
- /package/examples/{templates → workflows}/qa-specialist.yaml +0 -0
package/TROUBLESHOOTING.md
DELETED
|
@@ -1,972 +0,0 @@
|
|
|
1
|
-
# Troubleshooting Guide
|
|
2
|
-
|
|
3
|
-
This guide helps you resolve common issues when using AutomatosX.
|
|
4
|
-
|
|
5
|
-
## Table of Contents
|
|
6
|
-
|
|
7
|
-
- [Installation Issues](#installation-issues)
|
|
8
|
-
- [Updating AutomatosX to Latest Version](#updating-automatosx-to-latest-version)
|
|
9
|
-
- [Error: Node version not supported](#error-node-version-not-supported)
|
|
10
|
-
- [Error: SQLite compilation fails](#error-sqlite-compilation-fails)
|
|
11
|
-
- [Error: Permission denied during global install](#error-permission-denied-during-global-install)
|
|
12
|
-
- [Configuration Problems](#configuration-problems)
|
|
13
|
-
- [Initializing or Reinitializing AutomatosX](#initializing-or-reinitializing-automatosx)
|
|
14
|
-
- [First Time Setup](#first-time-setup)
|
|
15
|
-
- [Force Reinitialization (IMPORTANT)](#force-reinitialization-important)
|
|
16
|
-
- [Error: Config file not found](#error-config-file-not-found)
|
|
17
|
-
- [Error: Provider CLI not authenticated](#error-provider-cli-not-authenticated)
|
|
18
|
-
- [Config priority not working as expected](#config-priority-not-working-as-expected)
|
|
19
|
-
- [Memory System Issues](#memory-system-issues)
|
|
20
|
-
- [Database locked error](#database-locked-error)
|
|
21
|
-
- [Memory search returns no results](#memory-search-returns-no-results)
|
|
22
|
-
- [Memory export/import fails](#memory-exportimport-fails)
|
|
23
|
-
- [Provider Issues](#provider-issues)
|
|
24
|
-
- [Claude API errors](#claude-api-errors)
|
|
25
|
-
- [Gemini API errors](#gemini-api-errors)
|
|
26
|
-
- [Provider selection not working](#provider-selection-not-working)
|
|
27
|
-
- [Codex CLI requires git initialization](#openai-codex-requires-git-initialization)
|
|
28
|
-
- [Agent Execution Problems](#agent-execution-problems)
|
|
29
|
-
- [Agent not found](#agent-not-found)
|
|
30
|
-
- [Ability files not loaded](#ability-files-not-loaded)
|
|
31
|
-
- [Agent execution timeout](#agent-execution-timeout)
|
|
32
|
-
- [Path resolution errors](#path-resolution-errors)
|
|
33
|
-
- [Performance Issues](#performance-issues)
|
|
34
|
-
- [Slow startup time](#slow-startup-time)
|
|
35
|
-
- [High memory usage](#high-memory-usage)
|
|
36
|
-
- [Memory search is slow](#memory-search-is-slow)
|
|
37
|
-
- [Error Messages](#error-messages)
|
|
38
|
-
- [`ENOENT: no such file or directory`](#enoent-no-such-file-or-directory)
|
|
39
|
-
- [`SQLITE_CANTOPEN: unable to open database file`](#sqlite_cantopen-unable-to-open-database-file)
|
|
40
|
-
- [`SyntaxError: Unexpected token`](#syntaxerror-unexpected-token)
|
|
41
|
-
- [`Error: Cannot find module`](#error-cannot-find-module)
|
|
42
|
-
- [`Delegation cycle detected: agent -> agent -> agent`](#delegation-cycle-detected-agent---agent---agent)
|
|
43
|
-
- [`fts5: syntax error near "."`](#fts5-syntax-error-near-)
|
|
44
|
-
- [Quick Reference](#quick-reference)
|
|
45
|
-
- [Most Common Solutions](#most-common-solutions)
|
|
46
|
-
- [Upgrade Checklist](#upgrade-checklist)
|
|
47
|
-
- [Platform-Specific Issues](#platform-specific-issues)
|
|
48
|
-
- [Windows](#windows)
|
|
49
|
-
- [Getting More Help](#getting-more-help)
|
|
50
|
-
|
|
51
|
-
---
|
|
52
|
-
|
|
53
|
-
## Installation Issues
|
|
54
|
-
|
|
55
|
-
### Updating AutomatosX to Latest Version
|
|
56
|
-
|
|
57
|
-
**Recommended**: Use the built-in `ax update` command
|
|
58
|
-
|
|
59
|
-
```bash
|
|
60
|
-
# Check for updates and install latest version
|
|
61
|
-
ax update
|
|
62
|
-
|
|
63
|
-
# Or using full command name
|
|
64
|
-
automatosx update
|
|
65
|
-
|
|
66
|
-
# Check for updates without installing
|
|
67
|
-
ax update --check
|
|
68
|
-
|
|
69
|
-
# Update without confirmation prompt
|
|
70
|
-
ax update --yes
|
|
71
|
-
```
|
|
72
|
-
|
|
73
|
-
**Alternative**: Manual update via npm
|
|
74
|
-
|
|
75
|
-
```bash
|
|
76
|
-
# Update to latest version
|
|
77
|
-
npm install -g @defai.digital/automatosx@latest
|
|
78
|
-
|
|
79
|
-
# Update to specific version
|
|
80
|
-
npm install -g @defai.digital/automatosx@5.0.1
|
|
81
|
-
|
|
82
|
-
# Verify installation
|
|
83
|
-
ax --version
|
|
84
|
-
```
|
|
85
|
-
|
|
86
|
-
**What the update command does**:
|
|
87
|
-
1. Checks current installed version
|
|
88
|
-
2. Fetches latest version from npm registry
|
|
89
|
-
3. Shows changelog and what's new
|
|
90
|
-
4. Prompts for confirmation (unless `--yes` flag used)
|
|
91
|
-
5. Installs the update automatically
|
|
92
|
-
|
|
93
|
-
### Error: Node version not supported
|
|
94
|
-
|
|
95
|
-
**Symptom**: Installation fails with error about Node.js version
|
|
96
|
-
|
|
97
|
-
**Solution**:
|
|
98
|
-
|
|
99
|
-
```bash
|
|
100
|
-
# Check your Node version
|
|
101
|
-
node --version
|
|
102
|
-
|
|
103
|
-
# AutomatosX requires Node.js 24 or higher
|
|
104
|
-
# Install Node 24+ using nvm (recommended)
|
|
105
|
-
nvm install 24
|
|
106
|
-
nvm use 24
|
|
107
|
-
|
|
108
|
-
# Or use n
|
|
109
|
-
npm install -g n
|
|
110
|
-
n 24
|
|
111
|
-
```
|
|
112
|
-
|
|
113
|
-
### Error: SQLite compilation fails
|
|
114
|
-
|
|
115
|
-
**Symptom**: `better-sqlite3` or `sqlite-vec` fails to compile
|
|
116
|
-
|
|
117
|
-
**Solution**:
|
|
118
|
-
|
|
119
|
-
```bash
|
|
120
|
-
# On macOS
|
|
121
|
-
xcode-select --install
|
|
122
|
-
|
|
123
|
-
# On Ubuntu/Debian
|
|
124
|
-
sudo apt-get install build-essential python3
|
|
125
|
-
|
|
126
|
-
# On Windows
|
|
127
|
-
# Install windows-build-tools
|
|
128
|
-
npm install --global windows-build-tools
|
|
129
|
-
|
|
130
|
-
# Try clean install
|
|
131
|
-
rm -rf node_modules package-lock.json
|
|
132
|
-
npm install
|
|
133
|
-
```
|
|
134
|
-
|
|
135
|
-
### Error: Permission denied during global install
|
|
136
|
-
|
|
137
|
-
**Symptom**: `EACCES: permission denied` when running `npm install -g`
|
|
138
|
-
|
|
139
|
-
**Solution**:
|
|
140
|
-
|
|
141
|
-
```bash
|
|
142
|
-
# Option 1: Use npx (recommended)
|
|
143
|
-
npx automatosx --help
|
|
144
|
-
|
|
145
|
-
# Option 2: Fix npm permissions
|
|
146
|
-
mkdir ~/.npm-global
|
|
147
|
-
npm config set prefix '~/.npm-global'
|
|
148
|
-
echo 'export PATH=~/.npm-global/bin:$PATH' >> ~/.bashrc
|
|
149
|
-
source ~/.bashrc
|
|
150
|
-
|
|
151
|
-
# Then install again
|
|
152
|
-
npm install -g automatosx
|
|
153
|
-
```
|
|
154
|
-
|
|
155
|
-
---
|
|
156
|
-
|
|
157
|
-
## Configuration Problems
|
|
158
|
-
|
|
159
|
-
### Initializing or Reinitializing AutomatosX
|
|
160
|
-
|
|
161
|
-
#### First Time Setup
|
|
162
|
-
|
|
163
|
-
```bash
|
|
164
|
-
# Initialize in current directory
|
|
165
|
-
ax init
|
|
166
|
-
|
|
167
|
-
# Initialize in specific directory
|
|
168
|
-
ax init /path/to/project
|
|
169
|
-
```
|
|
170
|
-
|
|
171
|
-
#### Force Reinitialization (IMPORTANT)
|
|
172
|
-
|
|
173
|
-
**Use `--force` flag when you need to:**
|
|
174
|
-
- Update to new template structure (v5.0+)
|
|
175
|
-
- Fix broken or missing configuration files
|
|
176
|
-
- Reinstall example agents and abilities
|
|
177
|
-
- Reset to default configuration
|
|
178
|
-
|
|
179
|
-
```bash
|
|
180
|
-
# Force reinitialize (overwrites existing files)
|
|
181
|
-
ax init --force
|
|
182
|
-
|
|
183
|
-
# Or using short flag
|
|
184
|
-
ax init -f
|
|
185
|
-
|
|
186
|
-
# Force init in specific directory
|
|
187
|
-
ax init /path/to/project --force
|
|
188
|
-
```
|
|
189
|
-
|
|
190
|
-
**⚠️ Important**: By default, `ax init` will NOT overwrite existing files or folders if `.automatosx/` already exists. This prevents accidental data loss. **Use `--force` flag to overwrite.**
|
|
191
|
-
|
|
192
|
-
**What `ax init --force` does**:
|
|
193
|
-
1. ✅ Creates/overwrites `.automatosx/` directory structure
|
|
194
|
-
2. ✅ Installs/updates 5 example agents
|
|
195
|
-
3. ✅ Installs/updates 15 example abilities
|
|
196
|
-
4. ✅ Installs/updates 5 agent templates (v5.0+)
|
|
197
|
-
5. ✅ Creates/updates `ax.config.json`
|
|
198
|
-
6. ✅ Sets up Claude Code integration (`.claude/` directory)
|
|
199
|
-
7. ✅ Updates `.gitignore` with AutomatosX entries
|
|
200
|
-
|
|
201
|
-
**Common scenarios requiring `--force`**:
|
|
202
|
-
|
|
203
|
-
```bash
|
|
204
|
-
# After upgrading to v5.0+ (to get new templates)
|
|
205
|
-
npm install -g @defai.digital/automatosx@latest
|
|
206
|
-
ax init --force
|
|
207
|
-
|
|
208
|
-
# When .automatosx directory is corrupted
|
|
209
|
-
ax init --force
|
|
210
|
-
|
|
211
|
-
# To reset all example files to defaults
|
|
212
|
-
ax init --force
|
|
213
|
-
```
|
|
214
|
-
|
|
215
|
-
### Error: Config file not found
|
|
216
|
-
|
|
217
|
-
**Symptom**: `Configuration file not found`
|
|
218
|
-
|
|
219
|
-
**Solution**:
|
|
220
|
-
|
|
221
|
-
```bash
|
|
222
|
-
# Initialize configuration in your project
|
|
223
|
-
automatosx init
|
|
224
|
-
|
|
225
|
-
# Or force reinitialize if already exists
|
|
226
|
-
automatosx init --force
|
|
227
|
-
|
|
228
|
-
# Or manually create config
|
|
229
|
-
mkdir -p .automatosx
|
|
230
|
-
cat > .automatosx/config.json << EOF
|
|
231
|
-
{
|
|
232
|
-
"$schema": "https://raw.githubusercontent.com/defai-digital/automatosx/main/schema/config.json",
|
|
233
|
-
"version": "4.0.0",
|
|
234
|
-
"providers": {
|
|
235
|
-
"claude": {
|
|
236
|
-
"apiKey": "sk-ant-..."
|
|
237
|
-
}
|
|
238
|
-
}
|
|
239
|
-
}
|
|
240
|
-
EOF
|
|
241
|
-
```
|
|
242
|
-
|
|
243
|
-
### Error: Provider CLI not authenticated
|
|
244
|
-
|
|
245
|
-
**Symptom**: `Authentication required` or `401 Unauthorized`
|
|
246
|
-
|
|
247
|
-
**Solution**: AutomatosX v4.0+ uses CLI tools for authentication. Each CLI manages its own credentials.
|
|
248
|
-
|
|
249
|
-
```bash
|
|
250
|
-
# Claude CLI authentication
|
|
251
|
-
claude auth login
|
|
252
|
-
|
|
253
|
-
# Gemini CLI authentication
|
|
254
|
-
gemini auth login
|
|
255
|
-
|
|
256
|
-
# Codex CLI authentication
|
|
257
|
-
codex auth login
|
|
258
|
-
|
|
259
|
-
# Verify authentication
|
|
260
|
-
claude --version
|
|
261
|
-
gemini --version
|
|
262
|
-
codex --version
|
|
263
|
-
```
|
|
264
|
-
|
|
265
|
-
### Config priority not working as expected
|
|
266
|
-
|
|
267
|
-
**Issue**: Config from wrong location is being used
|
|
268
|
-
|
|
269
|
-
**Explanation**: AutomatosX loads config in this priority order:
|
|
270
|
-
|
|
271
|
-
1. `.automatosx/config.json` (project-specific)
|
|
272
|
-
2. `ax.config.json` (project root)
|
|
273
|
-
3. `~/.automatosx/config.json` (user global)
|
|
274
|
-
|
|
275
|
-
**Solution**:
|
|
276
|
-
|
|
277
|
-
```bash
|
|
278
|
-
# Check which config file is being used
|
|
279
|
-
automatosx config
|
|
280
|
-
|
|
281
|
-
# Use --config flag to specify exact file
|
|
282
|
-
automatosx run backend "hello" --config /path/to/config.json
|
|
283
|
-
```
|
|
284
|
-
|
|
285
|
-
---
|
|
286
|
-
|
|
287
|
-
## Memory System Issues
|
|
288
|
-
|
|
289
|
-
### Database locked error
|
|
290
|
-
|
|
291
|
-
**Symptom**: `Error: database is locked`
|
|
292
|
-
|
|
293
|
-
**Solution**:
|
|
294
|
-
|
|
295
|
-
```bash
|
|
296
|
-
# Check for other AutomatosX processes
|
|
297
|
-
ps aux | grep automatosx
|
|
298
|
-
|
|
299
|
-
# Kill hanging processes
|
|
300
|
-
pkill -f automatosx
|
|
301
|
-
|
|
302
|
-
# If problem persists, backup and recreate database
|
|
303
|
-
cp .automatosx/memory.db .automatosx/memory.db.backup
|
|
304
|
-
rm .automatosx/memory.db
|
|
305
|
-
automatosx memory list # Will recreate database
|
|
306
|
-
```
|
|
307
|
-
|
|
308
|
-
### Memory search returns no results
|
|
309
|
-
|
|
310
|
-
**Symptom**: Memory search returns empty results despite having data
|
|
311
|
-
|
|
312
|
-
**Solution**: AutomatosX uses FTS5 full-text search (no embeddings).
|
|
313
|
-
|
|
314
|
-
```bash
|
|
315
|
-
# Check if memories exist
|
|
316
|
-
automatosx memory list
|
|
317
|
-
|
|
318
|
-
# Check database exists
|
|
319
|
-
ls -lh .automatosx/memory/memories.db
|
|
320
|
-
|
|
321
|
-
# Try broader search terms
|
|
322
|
-
automatosx memory search "auth" # Instead of "authentication API"
|
|
323
|
-
|
|
324
|
-
# Rebuild if corrupted
|
|
325
|
-
automatosx memory export --output backup.json
|
|
326
|
-
rm -rf .automatosx/memory/
|
|
327
|
-
automatosx memory import --input backup.json
|
|
328
|
-
```
|
|
329
|
-
|
|
330
|
-
### Memory export/import fails
|
|
331
|
-
|
|
332
|
-
**Symptom**: Export or import command fails with validation errors
|
|
333
|
-
|
|
334
|
-
**Solution**:
|
|
335
|
-
|
|
336
|
-
```bash
|
|
337
|
-
# Export with validation disabled (not recommended)
|
|
338
|
-
automatosx memory export --output backup.json --no-validate
|
|
339
|
-
|
|
340
|
-
# Check export file format
|
|
341
|
-
cat backup.json | jq '.[0]'
|
|
342
|
-
# Should have: content, timestamp, metadata, embedding
|
|
343
|
-
|
|
344
|
-
# Import with validation to see specific errors
|
|
345
|
-
automatosx memory import --input backup.json --validate
|
|
346
|
-
```
|
|
347
|
-
|
|
348
|
-
---
|
|
349
|
-
|
|
350
|
-
## Provider Issues
|
|
351
|
-
|
|
352
|
-
### Claude API errors
|
|
353
|
-
|
|
354
|
-
**Error**: `overloaded_error` or `rate_limit_error`
|
|
355
|
-
|
|
356
|
-
**Solution**:
|
|
357
|
-
|
|
358
|
-
```bash
|
|
359
|
-
# Wait and retry (AutomatosX has built-in retry logic)
|
|
360
|
-
# Or reduce request rate by adjusting config
|
|
361
|
-
|
|
362
|
-
automatosx config --set providers.claude.maxRetries --value 5
|
|
363
|
-
automatosx config --set providers.claude.retryDelay --value 2000
|
|
364
|
-
```
|
|
365
|
-
|
|
366
|
-
**Error**: `context_length_exceeded`
|
|
367
|
-
|
|
368
|
-
**Solution**:
|
|
369
|
-
|
|
370
|
-
```bash
|
|
371
|
-
# Use a model with larger context window
|
|
372
|
-
automatosx config --set providers.claude.model --value claude-3-opus-20240229
|
|
373
|
-
|
|
374
|
-
# Or reduce input size
|
|
375
|
-
# - Truncate long files
|
|
376
|
-
# - Summarize previous conversation history
|
|
377
|
-
# - Use fewer examples in prompts
|
|
378
|
-
```
|
|
379
|
-
|
|
380
|
-
### Gemini API errors
|
|
381
|
-
|
|
382
|
-
#### Free Tier Not Working
|
|
383
|
-
|
|
384
|
-
**Symptom**: Gemini always shows paid usage, never uses free tier
|
|
385
|
-
|
|
386
|
-
**Causes**:
|
|
387
|
-
1. Free tier quota already exhausted
|
|
388
|
-
2. Gemini CLI not authenticated
|
|
389
|
-
3. Free tier tracking disabled
|
|
390
|
-
|
|
391
|
-
**Solution**:
|
|
392
|
-
|
|
393
|
-
```bash
|
|
394
|
-
# Check authentication
|
|
395
|
-
gemini whoami
|
|
396
|
-
|
|
397
|
-
# Check free tier status
|
|
398
|
-
ax free-tier status
|
|
399
|
-
|
|
400
|
-
# Expected output:
|
|
401
|
-
# Daily Requests: 342 / 1,500 (23%)
|
|
402
|
-
# Daily Tokens: 256,789 / 1,000,000 (26%)
|
|
403
|
-
# Status: ✅ Healthy
|
|
404
|
-
|
|
405
|
-
# If exhausted, wait for midnight UTC reset
|
|
406
|
-
# Or enable fallback providers:
|
|
407
|
-
# Edit ax.config.json:
|
|
408
|
-
{
|
|
409
|
-
"providers": {
|
|
410
|
-
"gemini-cli": { "priority": 1 },
|
|
411
|
-
"openai": { "priority": 2 } // Fallback when free tier exhausted
|
|
412
|
-
}
|
|
413
|
-
}
|
|
414
|
-
|
|
415
|
-
# Check tracking is enabled
|
|
416
|
-
cat ax.config.json | grep -A3 "limitTracking"
|
|
417
|
-
# Should show: "enabled": true, "window": "daily"
|
|
418
|
-
```
|
|
419
|
-
|
|
420
|
-
#### Error: `RESOURCE_EXHAUSTED`
|
|
421
|
-
|
|
422
|
-
**Cause**: Free tier limit reached (1,500 requests/day or 1M tokens/day)
|
|
423
|
-
|
|
424
|
-
**Solution**:
|
|
425
|
-
|
|
426
|
-
```bash
|
|
427
|
-
# Check current usage
|
|
428
|
-
ax free-tier status
|
|
429
|
-
|
|
430
|
-
# View usage history
|
|
431
|
-
ax free-tier history --days 7
|
|
432
|
-
|
|
433
|
-
# Options:
|
|
434
|
-
# 1. Wait for midnight UTC reset (automatic)
|
|
435
|
-
# 2. Enable fallback providers (automatic with multi-provider setup)
|
|
436
|
-
# 3. Upgrade to paid tier (10K requests/day, 10M tokens/day)
|
|
437
|
-
|
|
438
|
-
# Check when quota resets
|
|
439
|
-
ax free-tier status | grep "Resets in"
|
|
440
|
-
```
|
|
441
|
-
|
|
442
|
-
#### Error: "Authentication failed"
|
|
443
|
-
|
|
444
|
-
**Cause**: Gemini CLI not authenticated or credentials expired
|
|
445
|
-
|
|
446
|
-
**Solution**:
|
|
447
|
-
|
|
448
|
-
```bash
|
|
449
|
-
# Check authentication status
|
|
450
|
-
gemini whoami
|
|
451
|
-
|
|
452
|
-
# If not authenticated:
|
|
453
|
-
gemini login
|
|
454
|
-
|
|
455
|
-
# Follow the browser authentication flow
|
|
456
|
-
# Then verify:
|
|
457
|
-
ax providers test --provider gemini-cli
|
|
458
|
-
# Should show: ✓ gemini-cli: Available
|
|
459
|
-
```
|
|
460
|
-
|
|
461
|
-
#### Error: "Model not available"
|
|
462
|
-
|
|
463
|
-
**Cause**: Gemini CLI selecting unavailable model
|
|
464
|
-
|
|
465
|
-
**Solution**:
|
|
466
|
-
|
|
467
|
-
```bash
|
|
468
|
-
# Update Gemini CLI to latest version
|
|
469
|
-
gemini update
|
|
470
|
-
|
|
471
|
-
# Or reinstall:
|
|
472
|
-
brew upgrade gemini-cli # macOS
|
|
473
|
-
apt upgrade gemini-cli # Ubuntu
|
|
474
|
-
|
|
475
|
-
# Verify version
|
|
476
|
-
gemini --version
|
|
477
|
-
# Verify gemini is installed
|
|
478
|
-
```
|
|
479
|
-
|
|
480
|
-
#### Streaming Not Working
|
|
481
|
-
|
|
482
|
-
**Symptom**: Responses come all at once, not streamed
|
|
483
|
-
|
|
484
|
-
**Causes**:
|
|
485
|
-
1. Feature flag not enabled
|
|
486
|
-
2. Client doesn't support streaming
|
|
487
|
-
|
|
488
|
-
**Solution**:
|
|
489
|
-
|
|
490
|
-
```bash
|
|
491
|
-
# Check feature flag status
|
|
492
|
-
ax flags list
|
|
493
|
-
# Should show: gemini_streaming: 100% rollout
|
|
494
|
-
|
|
495
|
-
# If not 100%, increase rollout:
|
|
496
|
-
ax flags rollout gemini_streaming 100
|
|
497
|
-
|
|
498
|
-
# Verify streaming in provider info
|
|
499
|
-
ax providers info gemini-cli
|
|
500
|
-
# Features section should show: Streaming: ✓
|
|
501
|
-
|
|
502
|
-
# Test streaming
|
|
503
|
-
ax run backend "create hello world" --verbose
|
|
504
|
-
# Watch for incremental output
|
|
505
|
-
```
|
|
506
|
-
|
|
507
|
-
#### Parameter Warnings: "temperature not supported"
|
|
508
|
-
|
|
509
|
-
**Symptom**: Warning messages about unsupported parameters
|
|
510
|
-
|
|
511
|
-
**Cause**: Gemini CLI doesn't support `maxTokens`, `temperature`, `topP` parameters
|
|
512
|
-
|
|
513
|
-
**This is expected behavior**: Gemini CLI limitation ([Issue #5280](https://github.com/google-gemini/gemini-cli/issues/5280))
|
|
514
|
-
|
|
515
|
-
**Solution** (if you need parameter control):
|
|
516
|
-
|
|
517
|
-
```yaml
|
|
518
|
-
# Option 1: Use OpenAI for agents requiring parameters
|
|
519
|
-
# .automatosx/agents/qa-specialist.yaml
|
|
520
|
-
name: qa-specialist
|
|
521
|
-
provider:
|
|
522
|
-
primary: openai # Supports temperature=0 for determinism
|
|
523
|
-
defaults:
|
|
524
|
-
temperature: 0
|
|
525
|
-
|
|
526
|
-
# Option 2: Use role/prompt instead of parameters
|
|
527
|
-
# .automatosx/agents/qa-specialist.yaml
|
|
528
|
-
name: qa-specialist
|
|
529
|
-
role: Deterministic QA Specialist
|
|
530
|
-
systemPrompt: |
|
|
531
|
-
Provide consistent, reproducible test results.
|
|
532
|
-
Follow the same patterns every time.
|
|
533
|
-
provider:
|
|
534
|
-
primary: gemini-cli # Cost-effective, use prompt for determinism
|
|
535
|
-
```
|
|
536
|
-
|
|
537
|
-
#### Provider Not Being Used
|
|
538
|
-
|
|
539
|
-
**Symptom**: Policy set to `cost` but Gemini never selected
|
|
540
|
-
|
|
541
|
-
**Causes**:
|
|
542
|
-
1. Gemini CLI not installed
|
|
543
|
-
2. Provider disabled in config
|
|
544
|
-
3. Circuit breaker tripped (too many failures)
|
|
545
|
-
|
|
546
|
-
**Solution**:
|
|
547
|
-
|
|
548
|
-
```bash
|
|
549
|
-
# Check provider status
|
|
550
|
-
ax providers list
|
|
551
|
-
# Should show: ✅ gemini-cli (Priority: 1)
|
|
552
|
-
|
|
553
|
-
# If not available:
|
|
554
|
-
ax providers test --provider gemini-cli
|
|
555
|
-
|
|
556
|
-
# If test fails:
|
|
557
|
-
# 1. Check installation: gemini --version
|
|
558
|
-
# 2. Check authentication: gemini whoami
|
|
559
|
-
# 3. Check config: cat ax.config.json | grep -A5 "gemini-cli"
|
|
560
|
-
|
|
561
|
-
# View routing trace to debug
|
|
562
|
-
ax providers trace --follow
|
|
563
|
-
# Run a command in another terminal:
|
|
564
|
-
ax run backend "test"
|
|
565
|
-
# Check trace for why Gemini wasn't selected
|
|
566
|
-
```
|
|
567
|
-
|
|
568
|
-
See also: [Gemini Integration Guide](docs/guide/gemini-integration.md) for detailed troubleshooting
|
|
569
|
-
|
|
570
|
-
### Provider selection not working
|
|
571
|
-
|
|
572
|
-
**Symptom**: Wrong provider is being used
|
|
573
|
-
|
|
574
|
-
**Solution**:
|
|
575
|
-
|
|
576
|
-
```bash
|
|
577
|
-
# Check provider configuration
|
|
578
|
-
automatosx config --list | grep -A 20 "Providers"
|
|
579
|
-
|
|
580
|
-
# Set preferred provider
|
|
581
|
-
automatosx config --set providers.preferred --value claude
|
|
582
|
-
|
|
583
|
-
# Or specify provider in command
|
|
584
|
-
automatosx run backend "hello" --provider claude
|
|
585
|
-
```
|
|
586
|
-
|
|
587
|
-
### Codex CLI requires git initialization
|
|
588
|
-
|
|
589
|
-
**Symptom**: Codex provider fails with error or doesn't work as expected
|
|
590
|
-
|
|
591
|
-
**Cause**: Codex CLI CLI requires the project to be a git repository to function properly.
|
|
592
|
-
|
|
593
|
-
**Solution**:
|
|
594
|
-
|
|
595
|
-
```bash
|
|
596
|
-
# Check if current directory is a git repository
|
|
597
|
-
git status
|
|
598
|
-
|
|
599
|
-
# If not initialized, initialize git:
|
|
600
|
-
git init
|
|
601
|
-
|
|
602
|
-
# Configure git user (if not already configured)
|
|
603
|
-
git config user.name "Your Name"
|
|
604
|
-
git config user.email "your.email@example.com"
|
|
605
|
-
|
|
606
|
-
# Verify codex now works
|
|
607
|
-
ax run backend "Hello" --provider codex
|
|
608
|
-
|
|
609
|
-
# Or test with codex directly
|
|
610
|
-
codex --version
|
|
611
|
-
```
|
|
612
|
-
|
|
613
|
-
**Important Notes**:
|
|
614
|
-
|
|
615
|
-
- This is a requirement from the Codex CLI CLI, not AutomatosX
|
|
616
|
-
- The project must have `.git/` directory for codex to work
|
|
617
|
-
- You don't need to commit any files, just `git init` is sufficient
|
|
618
|
-
- Other providers (Claude, Gemini) do not have this requirement
|
|
619
|
-
|
|
620
|
-
**Alternative Solution** (if you can't use git):
|
|
621
|
-
|
|
622
|
-
```bash
|
|
623
|
-
# Use a different provider that doesn't require git
|
|
624
|
-
ax run backend "Hello" --provider claude
|
|
625
|
-
ax run backend "Hello" --provider gemini
|
|
626
|
-
|
|
627
|
-
# Or change your team's default provider
|
|
628
|
-
# Edit .automatosx/teams/<team-name>.yaml
|
|
629
|
-
provider:
|
|
630
|
-
primary: claude # Change from codex to claude
|
|
631
|
-
fallbackChain: [claude, gemini, codex]
|
|
632
|
-
```
|
|
633
|
-
|
|
634
|
-
---
|
|
635
|
-
|
|
636
|
-
## Agent Execution Problems
|
|
637
|
-
|
|
638
|
-
### Agent not found
|
|
639
|
-
|
|
640
|
-
**Symptom**: `Agent profile not found: <name>`
|
|
641
|
-
|
|
642
|
-
**Solution**:
|
|
643
|
-
|
|
644
|
-
```bash
|
|
645
|
-
# List available agents
|
|
646
|
-
automatosx list agents
|
|
647
|
-
|
|
648
|
-
# Check agent paths configuration
|
|
649
|
-
automatosx config --get paths.agents
|
|
650
|
-
|
|
651
|
-
# Verify agent profile exists
|
|
652
|
-
ls -la .automatosx/agents/
|
|
653
|
-
ls -la ~/.automatosx/agents/
|
|
654
|
-
|
|
655
|
-
# Agent profile should be: <name>.yaml
|
|
656
|
-
cat .automatosx/agents/backend.yaml
|
|
657
|
-
```
|
|
658
|
-
|
|
659
|
-
### Ability files not loaded
|
|
660
|
-
|
|
661
|
-
**Symptom**: Agent cannot find abilities
|
|
662
|
-
|
|
663
|
-
**Solution**:
|
|
664
|
-
|
|
665
|
-
```bash
|
|
666
|
-
# List available abilities
|
|
667
|
-
automatosx list abilities
|
|
668
|
-
|
|
669
|
-
# Check abilities path
|
|
670
|
-
automatosx config --get paths.abilities
|
|
671
|
-
|
|
672
|
-
# Verify ability files exist (should be .md files)
|
|
673
|
-
ls -la .automatosx/abilities/
|
|
674
|
-
```
|
|
675
|
-
|
|
676
|
-
### Agent execution timeout
|
|
677
|
-
|
|
678
|
-
**Symptom**: `Error: Request timeout after 300000ms` or `Provider codex execution failed`
|
|
679
|
-
|
|
680
|
-
**Root Cause**: Provider timeout may be shorter than agent timeout.
|
|
681
|
-
|
|
682
|
-
**Solution**:
|
|
683
|
-
|
|
684
|
-
```bash
|
|
685
|
-
# Set all provider timeouts to 25 minutes (1500000ms)
|
|
686
|
-
automatosx config set providers.claude-code.timeout 1500000
|
|
687
|
-
automatosx config set providers.gemini-cli.timeout 1500000
|
|
688
|
-
automatosx config set providers.openai.timeout 1500000
|
|
689
|
-
|
|
690
|
-
# Verify the changes
|
|
691
|
-
automatosx config show | grep -A2 "timeout"
|
|
692
|
-
# All provider timeouts should show 1500000
|
|
693
|
-
```
|
|
694
|
-
|
|
695
|
-
#### 📝 For very long-running tasks (45+ minutes)
|
|
696
|
-
|
|
697
|
-
```bash
|
|
698
|
-
# Increase both agent and provider timeouts
|
|
699
|
-
automatosx config set execution.defaultTimeout 2700000 # 45 minutes
|
|
700
|
-
automatosx config set providers.claude-code.timeout 2700000
|
|
701
|
-
automatosx config set providers.gemini-cli.timeout 2700000
|
|
702
|
-
automatosx config set providers.openai.timeout 2700000
|
|
703
|
-
```
|
|
704
|
-
|
|
705
|
-
**Verification**:
|
|
706
|
-
|
|
707
|
-
```bash
|
|
708
|
-
# Run a complex task to test
|
|
709
|
-
automatosx run backend "Perform comprehensive code review"
|
|
710
|
-
# Should no longer timeout prematurely
|
|
711
|
-
```
|
|
712
|
-
|
|
713
|
-
### Path resolution errors
|
|
714
|
-
|
|
715
|
-
**Symptom**: `Path outside project boundary` or `Invalid path`
|
|
716
|
-
|
|
717
|
-
**Solution**:
|
|
718
|
-
|
|
719
|
-
```bash
|
|
720
|
-
# AutomatosX prevents path traversal for security
|
|
721
|
-
# Paths must be within project directory
|
|
722
|
-
|
|
723
|
-
# Check your project root
|
|
724
|
-
automatosx status
|
|
725
|
-
|
|
726
|
-
# Use absolute paths within project
|
|
727
|
-
automatosx run backend "analyze /full/path/to/project/src/file.ts"
|
|
728
|
-
|
|
729
|
-
# Not allowed:
|
|
730
|
-
automatosx run backend "analyze ../../etc/passwd" # ❌ Path traversal
|
|
731
|
-
```
|
|
732
|
-
|
|
733
|
-
---
|
|
734
|
-
|
|
735
|
-
## Performance Issues
|
|
736
|
-
|
|
737
|
-
### Slow startup time
|
|
738
|
-
|
|
739
|
-
**Issue**: CLI takes long to start
|
|
740
|
-
|
|
741
|
-
**Solution**:
|
|
742
|
-
|
|
743
|
-
```bash
|
|
744
|
-
# Enable lazy loading (should be default)
|
|
745
|
-
automatosx config --set performance.lazyLoad --value true
|
|
746
|
-
|
|
747
|
-
# Warm cache for faster subsequent runs
|
|
748
|
-
automatosx status # This warms the cache
|
|
749
|
-
|
|
750
|
-
# Check if cache is working
|
|
751
|
-
automatosx config --get performance.cache.enabled
|
|
752
|
-
```
|
|
753
|
-
|
|
754
|
-
### High memory usage
|
|
755
|
-
|
|
756
|
-
**Issue**: AutomatosX uses too much RAM
|
|
757
|
-
|
|
758
|
-
**Solution**:
|
|
759
|
-
|
|
760
|
-
```bash
|
|
761
|
-
# Reduce cache size
|
|
762
|
-
automatosx config --set performance.cache.maxSize --value 50
|
|
763
|
-
|
|
764
|
-
# Reduce memory entries limit
|
|
765
|
-
automatosx config --set memory.maxEntries --value 5000
|
|
766
|
-
|
|
767
|
-
# Clear old memories
|
|
768
|
-
automatosx memory list
|
|
769
|
-
# Delete old or unneeded memories manually
|
|
770
|
-
```
|
|
771
|
-
|
|
772
|
-
### Memory search is slow
|
|
773
|
-
|
|
774
|
-
**Issue**: Memory search takes too long (should be < 1ms with FTS5)
|
|
775
|
-
|
|
776
|
-
**Solution**:
|
|
777
|
-
|
|
778
|
-
```bash
|
|
779
|
-
# Check database size
|
|
780
|
-
ls -lh .automatosx/memory/memories.db
|
|
781
|
-
|
|
782
|
-
# Optimize database
|
|
783
|
-
sqlite3 .automatosx/memory/memories.db "VACUUM; ANALYZE;"
|
|
784
|
-
|
|
785
|
-
# Reduce search results
|
|
786
|
-
automatosx memory search "query" --limit 10 # Default is 50
|
|
787
|
-
|
|
788
|
-
# Clean old memories (v4.11.0+: pure FTS5 is very fast)
|
|
789
|
-
automatosx memory export --output backup.json
|
|
790
|
-
# Edit backup.json to remove old entries
|
|
791
|
-
rm -rf .automatosx/memory/
|
|
792
|
-
automatosx memory import --input backup.json
|
|
793
|
-
```
|
|
794
|
-
|
|
795
|
-
---
|
|
796
|
-
|
|
797
|
-
## Error Messages
|
|
798
|
-
|
|
799
|
-
### `ENOENT: no such file or directory`
|
|
800
|
-
|
|
801
|
-
**Cause**: Missing configuration or agent files
|
|
802
|
-
|
|
803
|
-
**Solution**: See [Agent not found](#agent-not-found) or [Config file not found](#error-config-file-not-found)
|
|
804
|
-
|
|
805
|
-
### `SQLITE_CANTOPEN: unable to open database file`
|
|
806
|
-
|
|
807
|
-
**Cause**: Insufficient permissions or missing directory
|
|
808
|
-
|
|
809
|
-
**Solution**:
|
|
810
|
-
|
|
811
|
-
```bash
|
|
812
|
-
# Check directory permissions
|
|
813
|
-
ls -la .automatosx
|
|
814
|
-
|
|
815
|
-
# Create directory with correct permissions
|
|
816
|
-
mkdir -p .automatosx
|
|
817
|
-
chmod 755 .automatosx
|
|
818
|
-
|
|
819
|
-
# Recreate database
|
|
820
|
-
rm .automatosx/memory.db
|
|
821
|
-
automatosx memory list
|
|
822
|
-
```
|
|
823
|
-
|
|
824
|
-
### `SyntaxError: Unexpected token`
|
|
825
|
-
|
|
826
|
-
**Cause**: Invalid JSON in config file
|
|
827
|
-
|
|
828
|
-
**Solution**:
|
|
829
|
-
|
|
830
|
-
```bash
|
|
831
|
-
# Validate JSON syntax
|
|
832
|
-
cat .automatosx/config.json | jq .
|
|
833
|
-
|
|
834
|
-
# If invalid, reset to defaults
|
|
835
|
-
automatosx config --reset
|
|
836
|
-
```
|
|
837
|
-
|
|
838
|
-
### `Error: Cannot find module`
|
|
839
|
-
|
|
840
|
-
**Cause**: Dependencies not installed properly
|
|
841
|
-
|
|
842
|
-
**Solution**:
|
|
843
|
-
|
|
844
|
-
```bash
|
|
845
|
-
# Reinstall dependencies
|
|
846
|
-
rm -rf node_modules package-lock.json
|
|
847
|
-
npm install
|
|
848
|
-
|
|
849
|
-
# For global installation
|
|
850
|
-
npm uninstall -g automatosx
|
|
851
|
-
npm install -g automatosx
|
|
852
|
-
|
|
853
|
-
# Or use npx
|
|
854
|
-
npx automatosx --help
|
|
855
|
-
```
|
|
856
|
-
|
|
857
|
-
### `Delegation cycle detected: agent -> agent -> agent`
|
|
858
|
-
|
|
859
|
-
**Symptom**: Error message showing delegation cycles like `quality -> frontend -> frontend`
|
|
860
|
-
|
|
861
|
-
**Cause**: Delegation parser may incorrectly parse documentation examples as actual delegation requests.
|
|
862
|
-
|
|
863
|
-
**Solution**: Avoid including delegation syntax examples in your agent instructions or system prompts. The parser automatically filters:
|
|
864
|
-
|
|
865
|
-
- Quoted examples: `"@frontend Create UI"`
|
|
866
|
-
- Documentation markers: "Example:", "Supported syntaxes:"
|
|
867
|
-
- Numbered lists: `1. "...", 2. "..."`
|
|
868
|
-
- Circular delegation cycles
|
|
869
|
-
|
|
870
|
-
### `fts5: syntax error near "."`
|
|
871
|
-
|
|
872
|
-
**Symptom**: Memory search fails with `Search failed: fts5: syntax error near "."` or similar errors for special characters
|
|
873
|
-
|
|
874
|
-
**Cause**: FTS5 search may have issues with special characters.
|
|
875
|
-
|
|
876
|
-
**Solution**: Remove special characters from your search queries:
|
|
877
|
-
|
|
878
|
-
```bash
|
|
879
|
-
# Instead of: "config.json settings"
|
|
880
|
-
automatosx memory search "config json settings"
|
|
881
|
-
|
|
882
|
-
# Instead of: "timeout (300ms)"
|
|
883
|
-
automatosx memory search "timeout 300ms"
|
|
884
|
-
```
|
|
885
|
-
|
|
886
|
-
---
|
|
887
|
-
|
|
888
|
-
## Quick Reference
|
|
889
|
-
|
|
890
|
-
### Most Common Solutions
|
|
891
|
-
|
|
892
|
-
1. **Update to latest version**: `ax update`
|
|
893
|
-
2. **Force reinitialize**: `ax init --force`
|
|
894
|
-
3. **Check system status**: `ax status`
|
|
895
|
-
4. **Enable debug mode**: `ax run <agent> "<task>" --debug`
|
|
896
|
-
5. **Verify configuration**: `ax config show`
|
|
897
|
-
|
|
898
|
-
### Upgrade Checklist
|
|
899
|
-
|
|
900
|
-
```bash
|
|
901
|
-
# 1. Update to latest version
|
|
902
|
-
ax update
|
|
903
|
-
|
|
904
|
-
# 2. Force reinitialize to get updated templates
|
|
905
|
-
ax init --force
|
|
906
|
-
|
|
907
|
-
# 3. Verify version
|
|
908
|
-
ax --version
|
|
909
|
-
|
|
910
|
-
# 4. Test with a simple command
|
|
911
|
-
ax run backend "Hello"
|
|
912
|
-
```
|
|
913
|
-
|
|
914
|
-
---
|
|
915
|
-
|
|
916
|
-
## Platform-Specific Issues
|
|
917
|
-
|
|
918
|
-
### Windows
|
|
919
|
-
|
|
920
|
-
If you're experiencing issues on Windows 10/11:
|
|
921
|
-
|
|
922
|
-
- **[Windows Quick Fix Guide](docs/troubleshooting/windows-quick-fix.md)** - Quick solutions for common Windows problems
|
|
923
|
-
- Initialization issues (0 agents, 0 providers)
|
|
924
|
-
- Mock provider testing
|
|
925
|
-
- Expected vs actual results
|
|
926
|
-
|
|
927
|
-
- **[Windows Troubleshooting Guide](docs/troubleshooting/windows-troubleshooting.md)** - Comprehensive Windows troubleshooting
|
|
928
|
-
- Path separator problems
|
|
929
|
-
- PowerShell execution policy
|
|
930
|
-
- npm global installation path
|
|
931
|
-
- Long path issues
|
|
932
|
-
- File permission issues
|
|
933
|
-
- Provider CLI configuration
|
|
934
|
-
- Full diagnostic commands
|
|
935
|
-
|
|
936
|
-
---
|
|
937
|
-
|
|
938
|
-
## Getting More Help
|
|
939
|
-
|
|
940
|
-
If your issue is not covered here:
|
|
941
|
-
|
|
942
|
-
1. **Check Documentation**:
|
|
943
|
-
- [README.md](./README.md) - Getting started guide
|
|
944
|
-
- [FAQ.md](./FAQ.md) - Frequently asked questions
|
|
945
|
-
- [API Documentation](./docs/) - Detailed API reference
|
|
946
|
-
|
|
947
|
-
2. **Search Issues**: Check [GitHub Issues](https://github.com/defai-digital/automatosx/issues)
|
|
948
|
-
|
|
949
|
-
3. **Enable Debug Logging**:
|
|
950
|
-
|
|
951
|
-
```bash
|
|
952
|
-
automatosx run backend "hello" --debug
|
|
953
|
-
```
|
|
954
|
-
|
|
955
|
-
4. **Get System Info**:
|
|
956
|
-
|
|
957
|
-
```bash
|
|
958
|
-
automatosx status
|
|
959
|
-
node --version
|
|
960
|
-
npm --version
|
|
961
|
-
```
|
|
962
|
-
|
|
963
|
-
5. **Report a Bug**: [Create an issue](https://github.com/defai-digital/automatosx/issues/new)
|
|
964
|
-
- Include debug output
|
|
965
|
-
- Include system info
|
|
966
|
-
- Describe steps to reproduce
|
|
967
|
-
|
|
968
|
-
6. **Get Help**:
|
|
969
|
-
- GitHub Issues: [Report bugs, ask questions, or request features](https://github.com/defai-digital/automatosx/issues)
|
|
970
|
-
- 🐛 Bug reports
|
|
971
|
-
- ✨ Feature requests (use "enhancement" label)
|
|
972
|
-
- ❓ Questions
|