@defai.digital/automatosx 5.0.1

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.
Files changed (77) hide show
  1. package/CHANGELOG.md +2877 -0
  2. package/CONTRIBUTING.md +357 -0
  3. package/FAQ.md +604 -0
  4. package/FIXES.md +277 -0
  5. package/LICENSE +190 -0
  6. package/README.md +603 -0
  7. package/REVIEW-REPORT.md +278 -0
  8. package/TROUBLESHOOTING.md +612 -0
  9. package/automatosx.config.json +219 -0
  10. package/dist/index.d.ts +2 -0
  11. package/dist/index.js +11806 -0
  12. package/dist/index.js.map +1 -0
  13. package/docs/README.md +227 -0
  14. package/docs/guide/core-concepts.md +568 -0
  15. package/docs/guide/installation.md +406 -0
  16. package/docs/guide/introduction.md +199 -0
  17. package/docs/guide/quick-start.md +387 -0
  18. package/docs/index.md +132 -0
  19. package/docs/reference/cli-commands.md +894 -0
  20. package/docs/tutorials/first-agent.md +691 -0
  21. package/docs/tutorials/memory-management.md +785 -0
  22. package/examples/AGENTS_INFO.md +293 -0
  23. package/examples/README.md +434 -0
  24. package/examples/abilities/best-practices.md +102 -0
  25. package/examples/abilities/code-generation.md +1035 -0
  26. package/examples/abilities/code-review.md +42 -0
  27. package/examples/abilities/content-creation.md +97 -0
  28. package/examples/abilities/debugging.md +43 -0
  29. package/examples/abilities/documentation.md +54 -0
  30. package/examples/abilities/error-analysis.md +107 -0
  31. package/examples/abilities/general-assistance.md +26 -0
  32. package/examples/abilities/our-architecture-decisions.md +242 -0
  33. package/examples/abilities/our-code-review-checklist.md +217 -0
  34. package/examples/abilities/our-coding-standards.md +389 -0
  35. package/examples/abilities/our-project-structure.md +502 -0
  36. package/examples/abilities/performance-analysis.md +56 -0
  37. package/examples/abilities/problem-solving.md +50 -0
  38. package/examples/abilities/refactoring.md +49 -0
  39. package/examples/abilities/security-audit.md +65 -0
  40. package/examples/abilities/task-planning.md +65 -0
  41. package/examples/abilities/technical-writing.md +77 -0
  42. package/examples/abilities/testing.md +47 -0
  43. package/examples/abilities/troubleshooting.md +80 -0
  44. package/examples/agents/assistant.yaml +45 -0
  45. package/examples/agents/backend.yaml +60 -0
  46. package/examples/agents/ceo.yaml +47 -0
  47. package/examples/agents/coder.yaml +388 -0
  48. package/examples/agents/cto.yaml +47 -0
  49. package/examples/agents/data.yaml +47 -0
  50. package/examples/agents/debugger.yaml +59 -0
  51. package/examples/agents/design.yaml +46 -0
  52. package/examples/agents/devops.yaml +47 -0
  53. package/examples/agents/frontend.yaml +61 -0
  54. package/examples/agents/product.yaml +47 -0
  55. package/examples/agents/quality.yaml +47 -0
  56. package/examples/agents/reviewer.yaml +49 -0
  57. package/examples/agents/security.yaml +47 -0
  58. package/examples/agents/writer.yaml +66 -0
  59. package/examples/claude/commands/ax:agent.md +37 -0
  60. package/examples/claude/commands/ax:clear.md +22 -0
  61. package/examples/claude/commands/ax:init.md +25 -0
  62. package/examples/claude/commands/ax:list.md +19 -0
  63. package/examples/claude/commands/ax:memory.md +25 -0
  64. package/examples/claude/commands/ax:status.md +24 -0
  65. package/examples/claude/commands/ax:update.md +28 -0
  66. package/examples/claude/mcp/automatosx.json +74 -0
  67. package/examples/templates/analyst.yaml +60 -0
  68. package/examples/templates/basic-agent.yaml +28 -0
  69. package/examples/templates/designer.yaml +69 -0
  70. package/examples/templates/developer.yaml +60 -0
  71. package/examples/templates/qa-specialist.yaml +71 -0
  72. package/examples/use-cases/01-web-app-development.md +374 -0
  73. package/package.json +86 -0
  74. package/scripts/check-release.js +128 -0
  75. package/scripts/real-provider-test.sh +357 -0
  76. package/scripts/smoke-test.sh +286 -0
  77. package/tsup.config.ts +16 -0
@@ -0,0 +1,894 @@
1
+ # CLI Commands Reference
2
+
3
+ Complete reference for all AutomatosX CLI commands.
4
+
5
+ ---
6
+
7
+ ## Global Options
8
+
9
+ Available for all commands:
10
+
11
+ ```bash
12
+ -d, --debug Enable debug mode with verbose output
13
+ -q, --quiet Suppress non-essential output
14
+ -c, --config Path to custom config file
15
+ -h, --help Show help
16
+ -v, --version Show version number
17
+ ```
18
+
19
+ **Examples**:
20
+
21
+ ```bash
22
+ # Enable debug output
23
+ automatosx run assistant "Hello" --debug
24
+
25
+ # Use custom config
26
+ automatosx --config ./custom-config.json status
27
+
28
+ # Show version
29
+ automatosx --version
30
+ ```
31
+
32
+ ---
33
+
34
+ ## Commands Overview
35
+
36
+ AutomatosX provides **6 core commands**:
37
+
38
+ | Command | Purpose | Usage |
39
+ |---------|---------|-------|
40
+ | [`init`](#init) | Initialize project | One-time setup |
41
+ | [`run`](#run) | Execute agent | Primary command |
42
+ | [`list`](#list) | List resources | Discovery |
43
+ | [`status`](#status) | System health | Diagnostics |
44
+ | [`config`](#config) | Configuration | Setup & management |
45
+ | [`memory`](#memory) | Memory operations | Context management |
46
+
47
+ ---
48
+
49
+ ## `init`
50
+
51
+ Initialize AutomatosX in a directory.
52
+
53
+ ### Syntax
54
+
55
+ ```bash
56
+ automatosx init [path] [options]
57
+ ```
58
+
59
+ ### Parameters
60
+
61
+ - `path` (optional) - Target directory (default: current directory)
62
+
63
+ ### Options
64
+
65
+ ```bash
66
+ -f, --force Force initialization even if .automatosx exists
67
+ ```
68
+
69
+ ### Behavior
70
+
71
+ Creates the following structure:
72
+
73
+ ```
74
+ project/
75
+ ├── automatosx.config.json # Configuration file
76
+ └── .automatosx/
77
+ ├── agents/ # Agent profiles (5 examples)
78
+ │ ├── assistant.yaml
79
+ │ ├── coder.yaml
80
+ │ ├── reviewer.yaml
81
+ │ ├── debugger.yaml
82
+ │ └── writer.yaml
83
+ ├── abilities/ # Abilities (15 examples)
84
+ │ ├── web-search.md
85
+ │ ├── code-analysis.md
86
+ │ └── ...
87
+ ├── memory/ # Memory database
88
+ │ └── memory.db
89
+ ├── workspaces/ # Agent workspaces
90
+ ├── logs/ # Execution logs
91
+ └── .gitignore # Git ignore patterns
92
+ ```
93
+
94
+ ### Examples
95
+
96
+ ```bash
97
+ # Initialize in current directory
98
+ automatosx init
99
+
100
+ # Initialize in specific directory
101
+ automatosx init ./my-project
102
+
103
+ # Force reinitialize (overwrites existing)
104
+ automatosx init --force
105
+
106
+ # Initialize with custom config
107
+ automatosx init --config ./my-config.json
108
+ ```
109
+
110
+ ### Output
111
+
112
+ ```
113
+ 🤖 AutomatosX v4.0 - Project Initialization
114
+
115
+ 📁 Creating directory structure...
116
+ ✓ Directories created
117
+ 🤖 Installing example agents...
118
+ ✓ 5 example agents installed
119
+ ⚡ Installing example abilities...
120
+ ✓ 15 example abilities installed
121
+ ⚙️ Generating configuration...
122
+ ✓ Configuration created
123
+ 📝 Updating .gitignore...
124
+ ✓ .gitignore updated
125
+
126
+ ✅ AutomatosX initialized successfully!
127
+
128
+ Next steps:
129
+ 1. Review automatosx.config.json
130
+ 2. Explore example agents: automatosx list agents
131
+ 3. Run an agent: automatosx run assistant "Hello!"
132
+
133
+ Available example agents:
134
+ • assistant - General purpose helper
135
+ • coder - Code generation specialist
136
+ • reviewer - Code review expert
137
+ • debugger - Debug assistance
138
+ • writer - Content creation
139
+ ```
140
+
141
+ ---
142
+
143
+ ## `run`
144
+
145
+ Execute an agent with a task.
146
+
147
+ ### Syntax
148
+
149
+ ```bash
150
+ automatosx run <agent> <task> [options]
151
+ ```
152
+
153
+ ### Parameters
154
+
155
+ - `agent` (required) - Agent name (from `.automatosx/agents/`)
156
+ - `task` (required) - Task description or prompt
157
+
158
+ ### Options
159
+
160
+ ```bash
161
+ --provider <name> Override AI provider (claude, gemini)
162
+ --model <name> Override model name
163
+ --memory Enable memory context (default: from profile)
164
+ --no-memory Disable memory context
165
+ --save-memory Save interaction to memory
166
+ --verbose Show detailed execution info
167
+ --format <type> Output format: text, json, markdown
168
+ --save <path> Save output to file
169
+ --timeout <seconds> Execution timeout
170
+ ```
171
+
172
+ ### Examples
173
+
174
+ ```bash
175
+ # Basic usage
176
+ automatosx run assistant "What is TypeScript?"
177
+
178
+ # With specific provider
179
+ automatosx run coder "Refactor this function" --provider gemini
180
+
181
+ # With memory disabled
182
+ automatosx run assistant "Quick question" --no-memory
183
+
184
+ # Save output to file
185
+ automatosx run coder "Generate user model" --save ./models/user.ts
186
+
187
+ # JSON output
188
+ automatosx run assistant "Explain APIs" --format json
189
+
190
+ # Verbose mode
191
+ automatosx run debugger "Find the bug" --verbose
192
+
193
+ # With timeout
194
+ automatosx run assistant "Long task" --timeout 300
195
+ ```
196
+
197
+ ### Output
198
+
199
+ **Text Format** (default):
200
+
201
+ ```
202
+ 🤖 AutomatosX v4.0
203
+
204
+ Agent: assistant
205
+ Task: What is TypeScript?
206
+
207
+ ─────────────────────────────────────
208
+
209
+ TypeScript is a strongly typed programming language that builds on
210
+ JavaScript, giving you better tooling at any scale.
211
+
212
+ Key features:
213
+ - Static type checking
214
+ - Enhanced IDE support
215
+ - Modern JavaScript features
216
+ - Compiles to clean JavaScript
217
+
218
+ ─────────────────────────────────────
219
+
220
+ ✓ Complete (1.2s)
221
+ ```
222
+
223
+ **JSON Format**:
224
+
225
+ ```json
226
+ {
227
+ "agent": "assistant",
228
+ "task": "What is TypeScript?",
229
+ "response": "TypeScript is a strongly typed...",
230
+ "provider": "claude",
231
+ "command": "claude",
232
+ "duration": 1234,
233
+ "timestamp": "2025-10-06T03:15:00.000Z",
234
+ "memoryUsed": true,
235
+ "memorySaved": true
236
+ }
237
+ ```
238
+
239
+ ---
240
+
241
+ ## `list`
242
+
243
+ List available resources (agents, abilities, providers).
244
+
245
+ ### Syntax
246
+
247
+ ```bash
248
+ automatosx list <type> [options]
249
+ ```
250
+
251
+ ### Parameters
252
+
253
+ - `type` (required) - Resource type: `agents`, `abilities`, or `providers`
254
+
255
+ ### Options
256
+
257
+ ```bash
258
+ --format <type> Output format: table, json
259
+ --filter <name> Filter by name pattern
260
+ ```
261
+
262
+ ### Examples
263
+
264
+ ```bash
265
+ # List all agents
266
+ automatosx list agents
267
+
268
+ # List abilities
269
+ automatosx list abilities
270
+
271
+ # List providers
272
+ automatosx list providers
273
+
274
+ # JSON format
275
+ automatosx list agents --format json
276
+
277
+ # Filter by name
278
+ automatosx list agents --filter "code*"
279
+ ```
280
+
281
+ ### Output: List Agents
282
+
283
+ ```
284
+ Available Agents (5):
285
+
286
+ ┌─────────────┬──────────────────────────────┬──────────┬─────────┐
287
+ │ Name │ Description │ Provider │ Version │
288
+ ├─────────────┼──────────────────────────────┼──────────┼─────────┤
289
+ │ assistant │ General purpose helper │ claude │ 1.0.0 │
290
+ │ coder │ Code generation specialist │ claude │ 1.0.0 │
291
+ │ reviewer │ Code review expert │ claude │ 1.0.0 │
292
+ │ debugger │ Debug assistance │ gemini │ 1.0.0 │
293
+ │ writer │ Content creation │ claude │ 1.0.0 │
294
+ └─────────────┴──────────────────────────────┴──────────┴─────────┘
295
+ ```
296
+
297
+ ### Output: List Abilities
298
+
299
+ ```
300
+ Available Abilities (15):
301
+
302
+ ┌──────────────────┬────────────────────────────────┐
303
+ │ Name │ Description │
304
+ ├──────────────────┼────────────────────────────────┤
305
+ │ web-search │ Search the web for information │
306
+ │ code-analysis │ Analyze code structure │
307
+ │ file-operations │ Read/write files │
308
+ │ git-operations │ Git commands │
309
+ │ database-query │ Query databases │
310
+ └──────────────────┴────────────────────────────────┘
311
+ ```
312
+
313
+ ### Output: List Providers
314
+
315
+ ```
316
+ Configured Providers (2):
317
+
318
+ ┌─────────────┬─────────┬──────────┬─────────┬─────────┐
319
+ │ Name │ Enabled │ Priority │ Timeout │ Status │
320
+ ├─────────────┼─────────┼──────────┼─────────┼─────────┤
321
+ │ claude-code │ ✓ │ 1 │ 120s │ Healthy │
322
+ │ gemini-cli │ ✓ │ 2 │ 180s │ Healthy │
323
+ └─────────────┴─────────┴──────────┴─────────┴─────────┘
324
+ ```
325
+
326
+ ---
327
+
328
+ ## `status`
329
+
330
+ Display system status and health.
331
+
332
+ ### Syntax
333
+
334
+ ```bash
335
+ automatosx status [options]
336
+ ```
337
+
338
+ ### Options
339
+
340
+ ```bash
341
+ --format <type> Output format: table, json
342
+ --check-providers Test provider connectivity
343
+ ```
344
+
345
+ ### Examples
346
+
347
+ ```bash
348
+ # Basic status
349
+ automatosx status
350
+
351
+ # JSON format
352
+ automatosx status --format json
353
+
354
+ # Test providers
355
+ automatosx status --check-providers
356
+ ```
357
+
358
+ ### Output
359
+
360
+ ```
361
+ 🤖 AutomatosX v4.0 - System Status
362
+
363
+ 📊 System Health: ✅ HEALTHY
364
+
365
+ Configuration:
366
+ Config File: /project/automatosx.config.json
367
+ Status: ✅ Valid
368
+
369
+ Providers:
370
+ claude-code: ✅ Enabled (Priority 1)
371
+ gemini-cli: ✅ Enabled (Priority 2)
372
+
373
+ Memory:
374
+ Database: /project/.automatosx/memory/memory.db
375
+ Entries: 1,234
376
+ Size: 3.2 MB
377
+ Last Cleanup: 2 days ago
378
+
379
+ Agents:
380
+ Available: 5
381
+ Custom: 0
382
+
383
+ Performance:
384
+ Startup Time: ~280ms
385
+ Memory Usage: 57MB
386
+ Last Run: 5 minutes ago
387
+
388
+ Workspace:
389
+ Path: /project/.automatosx/workspaces
390
+ Size: 12.5 MB
391
+ Agents: 3 active
392
+
393
+ Logs:
394
+ Path: /project/.automatosx/logs
395
+ Latest: app.log (234 KB)
396
+ ```
397
+
398
+ ---
399
+
400
+ ## `config`
401
+
402
+ Manage configuration settings.
403
+
404
+ ### Syntax
405
+
406
+ ```bash
407
+ automatosx config [options]
408
+ ```
409
+
410
+ ### Options
411
+
412
+ ```bash
413
+ --list List all configuration
414
+ --get <key> Get specific config value
415
+ --set <key> Set config value (requires --value)
416
+ --value <value> Value to set (used with --set)
417
+ --reset Reset to defaults
418
+ --export <path> Export config to file
419
+ --import <path> Import config from file
420
+ ```
421
+
422
+ ### Examples
423
+
424
+ ```bash
425
+ # View all configuration
426
+ automatosx config --list
427
+
428
+ # Get specific value
429
+ automatosx config --get providers.claude.enabled
430
+
431
+ # Set a value
432
+ automatosx config --set memory.maxEntries --value 20000
433
+
434
+ # Enable provider
435
+ automatosx config --set providers.gemini.enabled --value true
436
+
437
+ # Reset to defaults
438
+ automatosx config --reset
439
+
440
+ # Export config
441
+ automatosx config --export ./backup-config.json
442
+
443
+ # Import config
444
+ automatosx config --import ./custom-config.json
445
+ ```
446
+
447
+ ### Output
448
+
449
+ ```bash
450
+ $ automatosx config --list
451
+
452
+ 📋 AutomatosX Configuration
453
+
454
+ Providers:
455
+ claude-code:
456
+ enabled: true
457
+ priority: 1
458
+ timeout: 120000
459
+ gemini-cli:
460
+ enabled: true
461
+ priority: 2
462
+ timeout: 180000
463
+
464
+ Memory:
465
+ maxEntries: 10000
466
+ persistPath: .automatosx/memory
467
+ autoCleanup: true
468
+ cleanupDays: 30
469
+
470
+ Workspace:
471
+ basePath: .automatosx/workspaces
472
+ maxFiles: 100
473
+ autoCleanup: true
474
+
475
+ Logging:
476
+ level: info
477
+ path: .automatosx/logs
478
+ console: true
479
+ ```
480
+
481
+ ---
482
+
483
+ ## `memory`
484
+
485
+ Memory management commands.
486
+
487
+ ### Syntax
488
+
489
+ ```bash
490
+ automatosx memory <command> [options]
491
+ ```
492
+
493
+ ### Subcommands
494
+
495
+ - `list` - List memory entries
496
+ - `search` - Search memories by semantic similarity
497
+ - `add` - Add a memory entry
498
+ - `delete` - Delete a memory entry
499
+ - `clear` - Clear all memories
500
+ - `export` - Export memories to file
501
+ - `import` - Import memories from file
502
+ - `stats` - Show memory statistics
503
+
504
+ ---
505
+
506
+ ### `memory list`
507
+
508
+ List memory entries.
509
+
510
+ **Syntax**:
511
+
512
+ ```bash
513
+ automatosx memory list [options]
514
+ ```
515
+
516
+ **Options**:
517
+
518
+ ```bash
519
+ --type <type> Filter by type (conversation, code, document, task)
520
+ --tags <tags> Filter by tags (comma-separated)
521
+ --limit <number> Max entries to show (default: 50)
522
+ --offset <number> Skip N entries
523
+ --sort <field> Sort by: date, access, relevance
524
+ --order <dir> Sort order: asc, desc
525
+ --output <format> Output format: table, json
526
+ ```
527
+
528
+ **Examples**:
529
+
530
+ ```bash
531
+ # List recent memories
532
+ automatosx memory list
533
+
534
+ # Filter by type
535
+ automatosx memory list --type code
536
+
537
+ # Filter by tags
538
+ automatosx memory list --tags typescript,react
539
+
540
+ # Limit results
541
+ automatosx memory list --limit 10
542
+
543
+ # JSON output
544
+ automatosx memory list --output json
545
+ ```
546
+
547
+ ---
548
+
549
+ ### `memory search`
550
+
551
+ Search memories by semantic similarity (requires OpenAI API key).
552
+
553
+ **Syntax**:
554
+
555
+ ```bash
556
+ automatosx memory search <query> [options]
557
+ ```
558
+
559
+ **Parameters**:
560
+
561
+ - `query` (required) - Search query
562
+
563
+ **Options**:
564
+
565
+ ```bash
566
+ --limit <number> Max results (default: 10)
567
+ --threshold <number> Min similarity score (0.0-1.0, default: 0.7)
568
+ --output <format> Output format: table, json
569
+ ```
570
+
571
+ **Examples**:
572
+
573
+ ```bash
574
+ # Semantic search
575
+ automatosx memory search "How to use TypeScript generics"
576
+
577
+ # Limit results
578
+ automatosx memory search "React hooks" --limit 5
579
+
580
+ # Set similarity threshold
581
+ automatosx memory search "API design" --threshold 0.8
582
+
583
+ # JSON output
584
+ automatosx memory search "debugging" --output json
585
+ ```
586
+
587
+ **Output**:
588
+
589
+ ```
590
+ 🔍 Memory Search Results
591
+
592
+ Query: "How to use TypeScript generics"
593
+
594
+ ┌────┬────────────┬─────────────────────────────────┬──────────┐
595
+ │ ID │ Similarity │ Content │ Tags │
596
+ ├────┼────────────┼─────────────────────────────────┼──────────┤
597
+ │ 42 │ 0.91 │ TypeScript generics allow you │ ts,code │
598
+ │ │ │ to create reusable components │ │
599
+ │ 18 │ 0.85 │ Generic types in TypeScript... │ ts,types │
600
+ │ 97 │ 0.78 │ Function generics example... │ ts,func │
601
+ └────┴────────────┴─────────────────────────────────┴──────────┘
602
+
603
+ Found 3 results in 12ms
604
+ ```
605
+
606
+ ---
607
+
608
+ ### `memory add`
609
+
610
+ Add a memory entry.
611
+
612
+ **Syntax**:
613
+
614
+ ```bash
615
+ automatosx memory add <content> [options]
616
+ ```
617
+
618
+ **Parameters**:
619
+
620
+ - `content` (required) - Memory content
621
+
622
+ **Options**:
623
+
624
+ ```bash
625
+ --type <type> Entry type: conversation, code, document, task, other
626
+ --tags <tags> Comma-separated tags
627
+ --source <agent> Source agent name
628
+ ```
629
+
630
+ **Examples**:
631
+
632
+ ```bash
633
+ # Add basic memory
634
+ automatosx memory add "TypeScript uses structural typing"
635
+
636
+ # With type and tags
637
+ automatosx memory add "React hooks simplify state" \
638
+ --type knowledge \
639
+ --tags react,hooks
640
+
641
+ # With source
642
+ automatosx memory add "Fixed bug in auth" \
643
+ --type task \
644
+ --source debugger
645
+ ```
646
+
647
+ ---
648
+
649
+ ### `memory delete`
650
+
651
+ Delete a memory entry.
652
+
653
+ **Syntax**:
654
+
655
+ ```bash
656
+ automatosx memory delete <id> [options]
657
+ ```
658
+
659
+ **Parameters**:
660
+
661
+ - `id` (required) - Entry ID
662
+
663
+ **Options**:
664
+
665
+ ```bash
666
+ -y, --confirm Skip confirmation prompt
667
+ ```
668
+
669
+ **Examples**:
670
+
671
+ ```bash
672
+ # Delete with confirmation
673
+ automatosx memory delete 42
674
+
675
+ # Skip confirmation
676
+ automatosx memory delete 42 --confirm
677
+ ```
678
+
679
+ ---
680
+
681
+ ### `memory clear`
682
+
683
+ Clear all memories.
684
+
685
+ **Syntax**:
686
+
687
+ ```bash
688
+ automatosx memory clear [options]
689
+ ```
690
+
691
+ **Options**:
692
+
693
+ ```bash
694
+ --all Clear all entries
695
+ --confirm Skip confirmation
696
+ --type <type> Clear only specific type
697
+ --older-than <days> Clear entries older than N days
698
+ ```
699
+
700
+ **Examples**:
701
+
702
+ ```bash
703
+ # Clear all (with confirmation)
704
+ automatosx memory clear --all
705
+
706
+ # Clear specific type
707
+ automatosx memory clear --type conversation --confirm
708
+
709
+ # Clear old entries
710
+ automatosx memory clear --older-than 30 --confirm
711
+ ```
712
+
713
+ ---
714
+
715
+ ### `memory export`
716
+
717
+ Export memories to JSON file.
718
+
719
+ **Syntax**:
720
+
721
+ ```bash
722
+ automatosx memory export <output> [options]
723
+ ```
724
+
725
+ **Parameters**:
726
+
727
+ - `output` (required) - Output file path
728
+
729
+ **Options**:
730
+
731
+ ```bash
732
+ --format <type> Export format: json, csv
733
+ ```
734
+
735
+ **Examples**:
736
+
737
+ ```bash
738
+ # Export to JSON
739
+ automatosx memory export ./backup.json
740
+
741
+ # Export to CSV
742
+ automatosx memory export ./memories.csv --format csv
743
+ ```
744
+
745
+ ---
746
+
747
+ ### `memory import`
748
+
749
+ Import memories from file.
750
+
751
+ **Syntax**:
752
+
753
+ ```bash
754
+ automatosx memory import <input> [options]
755
+ ```
756
+
757
+ **Parameters**:
758
+
759
+ - `input` (required) - Input file path
760
+
761
+ **Options**:
762
+
763
+ ```bash
764
+ --validate Validate only, don't import
765
+ --batch-size <n> Batch size for import (default: 100)
766
+ --skip-duplicates Skip duplicate entries (default: true)
767
+ ```
768
+
769
+ **Examples**:
770
+
771
+ ```bash
772
+ # Import from file
773
+ automatosx memory import ./backup.json
774
+
775
+ # Validate first
776
+ automatosx memory import ./backup.json --validate
777
+
778
+ # Import all (including duplicates)
779
+ automatosx memory import ./backup.json --skip-duplicates=false
780
+ ```
781
+
782
+ ---
783
+
784
+ ### `memory stats`
785
+
786
+ Show memory statistics.
787
+
788
+ **Syntax**:
789
+
790
+ ```bash
791
+ automatosx memory stats [options]
792
+ ```
793
+
794
+ **Options**:
795
+
796
+ ```bash
797
+ --output <format> Output format: table, json
798
+ ```
799
+
800
+ **Examples**:
801
+
802
+ ```bash
803
+ # Show stats
804
+ automatosx memory stats
805
+
806
+ # JSON format
807
+ automatosx memory stats --output json
808
+ ```
809
+
810
+ **Output**:
811
+
812
+ ```
813
+ 📊 Memory Statistics
814
+
815
+ Database:
816
+ Path: .automatosx/memory/memory.db
817
+ Size: 3.2 MB
818
+ Entries: 1,234
819
+
820
+ Breakdown by Type:
821
+ conversation: 456 (37%)
822
+ code: 321 (26%)
823
+ document: 234 (19%)
824
+ task: 123 (10%)
825
+ other: 100 (8%)
826
+
827
+ Activity:
828
+ Created Today: 12
829
+ Accessed Today: 45
830
+ Most Accessed: ID 789 (42 times)
831
+
832
+ Performance:
833
+ Avg Query Time: 0.72ms
834
+ Last Cleanup: 2 days ago
835
+ Next Cleanup: in 28 days
836
+ ```
837
+
838
+ ---
839
+
840
+ ## Exit Codes
841
+
842
+ All commands use standard exit codes:
843
+
844
+ | Code | Meaning |
845
+ |------|---------|
846
+ | 0 | Success |
847
+ | 1 | General error |
848
+ | 2 | Configuration error |
849
+ | 3 | Provider error |
850
+ | 4 | Memory error |
851
+ | 5 | Validation error |
852
+
853
+ **Example**:
854
+
855
+ ```bash
856
+ automatosx run assistant "Hello"
857
+ echo $? # 0 if successful, non-zero if error
858
+ ```
859
+
860
+ ---
861
+
862
+ ## Environment Variables
863
+
864
+ Configure AutomatosX via environment variables:
865
+
866
+ ```bash
867
+ # Gemini API key (if using Gemini)
868
+ export GEMINI_API_KEY="..."
869
+
870
+ # Debug mode
871
+ export AUTOMATOSX_DEBUG=true
872
+
873
+ # Mock providers (for testing)
874
+ export AUTOMATOSX_MOCK_PROVIDERS=true
875
+
876
+ # Custom config path
877
+ export AUTOMATOSX_CONFIG_PATH="./custom-config.json"
878
+
879
+ # Quiet mode
880
+ export AUTOMATOSX_QUIET=true
881
+ ```
882
+
883
+ ---
884
+
885
+ ## Next Steps
886
+
887
+ - [Quick Start Guide](../guide/quick-start.md) - Get started quickly
888
+ - [Core Concepts](../guide/core-concepts.md) - Understand the basics
889
+ - [Configuration Guide](../guide/configuration.md) - Configure AutomatosX
890
+ - [Troubleshooting](../troubleshooting/common-issues.md) - Fix common issues
891
+
892
+ ---
893
+
894
+ **Questions?** [Open an issue](https://github.com/defai-digital/automatosx/issues)