@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
package/README.md ADDED
@@ -0,0 +1,603 @@
1
+ # AutomatosX
2
+
3
+ > **The control tower for shipping customer-facing ideas—without the chaos**
4
+ > Orchestrate specialized AI agents to move work from slide decks to production, keeping product, engineering, and stakeholders in sync.
5
+
6
+ [![npm version](https://img.shields.io/npm/v/@defai.digital/automatosx.svg)](https://www.npmjs.com/package/@defai.digital/automatosx)
7
+ [![License](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](LICENSE)
8
+ [![TypeScript](https://img.shields.io/badge/TypeScript-100%25-blue.svg)](https://www.typescriptlang.org/)
9
+ [![Tests](https://img.shields.io/badge/tests-passing-brightgreen.svg)](#production-ready-toolkit)
10
+
11
+ **Teams and solo builders choose AutomatosX because:**
12
+
13
+ - 🎯 **Keeps people aligned, not just code moving** – track roadmaps, builds, and launch tasks in one place
14
+ - 🛡️ **Protects quality across the whole release** – built-in guardrails for tests, docs, compliance, approvals
15
+ - ⚡ **Shortens idea-to-impact gap** – organized workflows mean faster onboarding, tighter handoffs, confident timelines
16
+ - 💰 **10× more cost-effective** – CLI-based orchestration beats expensive assistants APIs
17
+
18
+ **🤖 4 Specialized Teams**: AutomatosX agents are [organized into 4 professional teams](https://github.com/defai-digital/automatosx/blob/main/examples/AGENTS_INFO.md) (Core, Engineering, Business, Design), each optimized with the best AI provider for their domain—**Claude** for deep reasoning, **Gemini** for strategic thinking, and **OpenAI** for fast execution. Every team uses intelligent fallback strategies to ensure maximum reliability across all your workflows.
19
+
20
+ **Status**: ✅ Production Release · **Latest**: October 2025
21
+
22
+ ---
23
+
24
+ ## 📣 What's New
25
+
26
+ **v5.0.1 (October 2025)**: Critical Bug Fixes
27
+ - 🐛 **Provider timeout fixed** - Complex tasks no longer timeout (15 min timeout now consistent)
28
+ - 🐛 **Delegation parser improved** - Zero false positives from documentation examples
29
+ - 🐛 **FTS5 search stabilized** - Handles all special characters reliably
30
+ - ✅ **1050 tests passing** - 100% pass rate with comprehensive test coverage
31
+
32
+ **v5.0.0 (October 2025)**: Agent Template System
33
+
34
+ - 🎉 **Quick agent creation** - Create agents from templates in seconds with `ax agent create`
35
+ - 📋 **5 pre-built templates** - Ready-to-use templates for common roles (developer, analyst, designer, qa, basic)
36
+ - 🛠️ **Complete CLI toolset** - `ax agent templates`, `list`, `show`, `create`, `remove`
37
+ - 🔄 **Interactive mode** - Guided creation with prompts for all values
38
+ - ⚡ **One-line creation** - Fast creation with all parameters in command line
39
+ - 📦 **Auto-installation** - Templates automatically installed on `ax init`
40
+
41
+ **New Commands**:
42
+ ```bash
43
+ # Quick agent creation from template
44
+ ax agent create backend --template developer --interactive
45
+
46
+ # List all agents by team
47
+ ax agent list --by-team engineering
48
+
49
+ # Show agent details
50
+ ax agent show backend
51
+ ```
52
+
53
+ **v4.11.0 (October 2025)**: FTS5 Full-Text Search
54
+ - 🎯 **No embedding costs** - Removed OpenAI embedding dependency
55
+ - ⚡ **< 1ms search** - Pure SQLite FTS5 for blazing fast text search
56
+ - 🔒 **Better privacy** - All data stays local (no cloud API calls)
57
+
58
+ **v4.10.0 (October 2025)**: Team-Based Configuration
59
+ - 🎯 **No configuration duplication** - Agents inherit settings from team
60
+ - 👥 **4 built-in teams** - Core, Engineering, Business, Design
61
+ - ♻️ **Shared abilities** - Team-wide abilities automatically included
62
+
63
+ For detailed release notes, new features, and upgrade instructions, see:
64
+
65
+ - 📋 **[Release Notes](https://github.com/defai-digital/automatosx/releases)** - Latest updates and changes
66
+ - 📝 **[Changelog](CHANGELOG.md)** - Complete version history
67
+
68
+ **Quick Install:**
69
+
70
+ ```bash
71
+ npm install -g @defai.digital/automatosx
72
+ ```
73
+
74
+ ---
75
+
76
+ ## Why AutomatosX?
77
+
78
+ ### The Real Problem: Coordination, Not Code
79
+
80
+ Building software is easy. **Shipping it reliably is hard.**
81
+
82
+ Your team faces:
83
+
84
+ - **Context chaos**: Marketing doesn't know what's shipping next week. Sales asks "who owns this?" Nobody remembers what was decided.
85
+ - **Quality gaps**: Deadlines loom. Release notes go stale. Compliance updates get skipped. Tests aren't run.
86
+ - **Handoff friction**: New contributors ask the same questions. Cross-team work stalls. Executives lose confidence in timelines.
87
+
88
+ **Claude or ChatGPT can write code fast—but they can't tell your team what to ship, in what order, or who's responsible.**
89
+
90
+ ### The AutomatosX Solution
91
+
92
+ **Think of AutomatosX as your operating system for launches.** Every plan, checklist, test result, and approval lives in one orchestrated workflow—so your team stays in sync from kickoff to post-launch.
93
+
94
+ ```bash
95
+ # PRD: Kickoff sprint
96
+ automatosx run planner "Draft Q1 roadmap with marketing milestones"
97
+
98
+ # Engineer: Build with guardrails
99
+ automatosx run coder "Scaffold auth with Supabase"
100
+ automatosx run reviewer "Audit API security before launch"
101
+
102
+ # QA: Run pre-launch checks
103
+ automatosx run tester "Execute integration test suite"
104
+
105
+ # Marketing: Coordinate launch
106
+ automatosx run writer "Draft release notes and changelog"
107
+ automatosx memory search "What did sales promise Customer #1234?"
108
+ ```
109
+
110
+ **Every agent has:**
111
+
112
+ - 🧠 **Persistent memory** – recalls every decision, deadline, and dependency
113
+ - 🎭 **Defined roles** – researcher, coder, reviewer, tester, writer (no context-switching)
114
+ - 🔒 **Workspace isolation** – agents work independently without colliding
115
+ - 💸 **Cost controls** – pay per CLI call, not expensive subscription seats
116
+
117
+ ### Real Impact: Before vs After
118
+
119
+ | Without AutomatosX | With AutomatosX |
120
+ |-------------------|-----------------|
121
+ | 📋 Scattered docs, Slack threads, "who owns this?" | 🎯 Single source of truth—everyone works from the same playbook |
122
+ | 🐌 New hires take weeks to ramp | ⚡ Organized workflows = onboarding in days |
123
+ | 💸 Expensive subscription plans per seat | 💰 Pay-per-use CLI pricing = significant cost savings |
124
+ | 🤯 Release notes forgotten, compliance skipped | 🛡️ Built-in guardrails catch gaps before launch |
125
+ | ⏳ 3 weeks from plan to production | 🚀 3 days—agents handle research, build, review, docs in parallel |
126
+
127
+ ### "Why not just use Claude Code or ChatGPT?"
128
+
129
+ **Claude Code / ChatGPT**: Brilliant for answering quick questions or generating snippets. But they can't:
130
+
131
+ - Track who approved the launch plan
132
+ - Remind you the release checklist is incomplete
133
+ - Coordinate work across product, engineering, and marketing
134
+ - Remember context from last quarter's sprint
135
+
136
+ **AutomatosX**: Built for **shipping outcomes, not just code**. It's the glue that:
137
+
138
+ - Keeps teams aligned on what's shipping and when
139
+ - Enforces quality gates (tests, docs, compliance) automatically
140
+ - Turns scattered tribal knowledge into dependable workflows
141
+ - Runs unattended in CI/CD while remembering every conversation
142
+
143
+ **In plain terms**: Claude is a smart assistant. AutomatosX is your launch control center. Use both—but only AutomatosX ensures the right work happens, in the right order, by the right people.
144
+
145
+ ---
146
+
147
+ ## What You Can Build in Minutes
148
+
149
+ ### 🔍 Research Assistant
150
+
151
+ ```bash
152
+ automatosx run researcher "Analyze the top 5 TypeScript frameworks in 2025"
153
+ # → Searches web, summarizes findings, cites sources
154
+ ```
155
+
156
+ ### 🚨 On-Call Incident Bot
157
+
158
+ ```bash
159
+ automatosx run oncall "Check error logs from the last hour"
160
+ # → Scans logs, identifies critical errors, auto-creates tickets
161
+ ```
162
+
163
+ ### 💬 Customer Support Copilot
164
+
165
+ ```bash
166
+ automatosx chat support
167
+ > "What did Customer #1234 ask about last week?"
168
+ # → Searches memory, recalls context, suggests responses
169
+ ```
170
+
171
+ ### 🔄 Batch Processing with Fallbacks
172
+
173
+ ```bash
174
+ automatosx run batch-analyzer "Process all user feedback from Q3"
175
+ # → Tries Claude → falls back to Gemini if rate-limited → exports results
176
+ ```
177
+
178
+ See `examples/` for ready-to-run agent profiles.
179
+
180
+ ---
181
+
182
+ ## Quick Start (< 2 minutes)
183
+
184
+ ### 1. Install
185
+
186
+ ```bash
187
+ npm install -g @defai.digital/automatosx
188
+ # or run without installing
189
+ npx @defai.digital/automatosx --help
190
+ ```
191
+
192
+ ### 2. Setup Provider CLI (one-time)
193
+
194
+ AutomatosX uses your installed CLI tools—**no API keys needed**:
195
+
196
+ ```bash
197
+ # Install Claude CLI (if you use Claude)
198
+ brew install claude
199
+
200
+ # Or install Gemini CLI (if you use Gemini)
201
+ # Follow: https://ai.google.dev/gemini-api/docs/cli
202
+
203
+ # Or install Codex CLI (if you use Codex)
204
+ # Install from: https://github.com/anthropics/codex-cli
205
+ ```
206
+
207
+ AutomatosX will automatically detect and use your installed CLIs.
208
+
209
+ ### 3. Run your first agent
210
+
211
+ ```bash
212
+ automatosx run assistant "Explain quantum computing in 3 sentences"
213
+ # AutomatosX calls your installed claude/gemini/codex CLI under the hood
214
+ ```
215
+
216
+ **That's it!** Now explore:
217
+
218
+ ```bash
219
+ automatosx list agents # See available agents
220
+ automatosx chat assistant # Interactive mode
221
+ automatosx memory search "quantum" # Recall past conversations
222
+ ```
223
+
224
+ ---
225
+
226
+ ## Key Capabilities
227
+
228
+ **Composable Agents** *(v4.10.0+: Team-Based Configuration)*
229
+ Define roles, abilities, and guardrails in `.automatosx/agents/*.yaml`. Agents inherit provider configuration from their team—no duplication needed.
230
+
231
+ ```yaml
232
+ # .automatosx/agents/researcher.yaml (v4.10.0+)
233
+ name: researcher
234
+ team: core # 🆕 Inherits provider from team config
235
+ displayName: "Ryan" # Optional memorable name
236
+ description: Research specialist with web search and citation abilities
237
+ abilities:
238
+ - web_search
239
+ - summarize
240
+ - cite_sources
241
+ # Note: Team sharedAbilities automatically included
242
+ ```
243
+
244
+ **Team Configuration** (`.automatosx/teams/core.yaml`):
245
+ ```yaml
246
+ name: core
247
+ displayName: "Core Team"
248
+ provider:
249
+ primary: claude
250
+ fallbackChain: [claude, gemini, codex]
251
+ sharedAbilities:
252
+ - our-code-review-checklist
253
+ - testing
254
+ ```
255
+
256
+ **Benefits**: No need to specify `provider`, `model`, `temperature` in each agent—just assign a team!
257
+
258
+ **Intelligent Memory**
259
+ SQLite FTS5 full-text search delivers millisecond recall with export/import, quotas, and deterministic search.
260
+
261
+ ```bash
262
+ # Store information
263
+ automatosx run assistant "Remember: Project Alpha launches Q1 2025"
264
+
265
+ # Search later (even in different sessions)
266
+ automatosx memory search "when does Alpha launch"
267
+ # → Returns: "Project Alpha launches Q1 2025" (0.72ms)
268
+ ```
269
+
270
+ **Multi-Agent Orchestration** *(v4.7.0+)*
271
+ Agents collaborate autonomously through natural language delegation—no complex APIs needed.
272
+
273
+ ```bash
274
+ # Coordinator agent automatically delegates to specialists:
275
+ automatosx run coordinator "Build authentication feature"
276
+
277
+ # Agent response includes natural language delegations:
278
+ # "@agent-a Create login UI with email/password fields."
279
+ # "@agent-b Implement JWT auth API."
280
+ #
281
+ # System automatically:
282
+ # 1. Detects delegation requests (@agent-a, @agent-b)
283
+ # 2. Executes delegated tasks in parallel
284
+ # 3. Collects and returns all results
285
+ ```
286
+
287
+ **Supported delegation syntaxes:**
288
+
289
+ - `@[agent-name] Create login UI` - Concise mention
290
+ - `DELEGATE TO [agent]: Implement API` - Explicit command
291
+ - `Please ask [agent] to design schema` - Natural request
292
+ - `I need [agent] to handle the UI` - Need expression
293
+ - `請 [agent] 建立 UI` - Chinese support
294
+
295
+ **Safety features:**
296
+
297
+ - ✅ Autonomous collaboration (no whitelists needed)
298
+ - ✅ Cycle detection prevents infinite loops
299
+ - ✅ Depth limits control delegation chains (default: 3)
300
+ - ✅ Self-delegation automatically blocked
301
+ - ✅ Session tracking for multi-agent workflows
302
+
303
+ **Secure Execution**
304
+ Path boundary validation, workspace sandboxes, and deterministic config precedence keep agents in safe lanes.
305
+
306
+ - ✅ Agents read user files (validated paths only)
307
+ - ✅ Agents write to isolated workspaces (`.automatosx/workspaces/<agent>/`)
308
+ - ✅ Input sanitization prevents path traversal attacks
309
+
310
+ **Developer Experience**
311
+ Strict TypeScript, CLI ergonomics, and rich docs unblock contributors quickly.
312
+
313
+ ```bash
314
+ npm run dev -- run assistant "test" # Dev mode with hot reload
315
+ npm test # 994 tests with Vitest
316
+ npm run typecheck # Strict TS validation
317
+ ```
318
+
319
+ ---
320
+
321
+ ## Architecture at a Glance
322
+
323
+ ```text
324
+ automatosx/
325
+ ├── src/
326
+ │ ├── core/ # config, routing, memory, path resolution, team-manager (v4.10.0+)
327
+ │ ├── cli/ # command definitions (run, chat, memory, etc.)
328
+ │ ├── agents/ # profile-loader, abilities-manager, context-manager
329
+ │ ├── providers/ # Claude, Gemini, Codex adapters
330
+ │ ├── types/ # TypeScript type definitions (agent, team, provider, etc.)
331
+ │ └── utils/ # logger, performance tracking
332
+ ├── .automatosx/
333
+ │ ├── agents/ # Agent YAML profiles (17 agents)
334
+ │ ├── teams/ # 🆕 Team YAML configs (4 teams) - v4.10.0+
335
+ │ ├── abilities/ # Markdown knowledge bases
336
+ │ ├── memory/ # SQLite FTS5 database
337
+ │ └── workspaces/ # Agent isolated workspaces
338
+ ├── tests/
339
+ │ ├── unit/ # 928 tests (core modules)
340
+ │ ├── integration/ # 66 tests (CLI commands)
341
+ │ └── e2e/ # Complete workflows
342
+ ├── docs/ # guides, references, troubleshooting
343
+ └── examples/ # agent profiles and abilities
344
+ ```
345
+
346
+ **v4.10.0 Highlights:**
347
+ - 🆕 `.automatosx/teams/` - Team-based configuration (4 teams)
348
+ - 🆕 `src/core/team-manager.ts` - Team configuration management
349
+ - 🆕 `src/types/team.ts` - TeamConfig type definitions
350
+
351
+ Strict mode TypeScript + Vitest ensures every module is covered before it ships.
352
+
353
+ ---
354
+
355
+ ## Production-Ready Toolkit
356
+
357
+ | Metric | v3.1 | v4.10.0 | Improvement |
358
+ |--------|------|---------|-------------|
359
+ | Bundle size | 340 MB | 46 MB | **87% ↓** |
360
+ | Text search (FTS5) | 45 ms | 0.72 ms | **62× ↑** |
361
+ | Dependencies | 589 | 158 | **73% ↓** |
362
+ | Tests passing | 512 | 994 | **94% ↑** |
363
+
364
+ **Run the essentials:**
365
+
366
+ ```bash
367
+ npm run build # Bundle via tsup into dist/
368
+ npm test # All test suites
369
+ npm run typecheck # Strict TS validation
370
+ npm run test:coverage # Generate coverage report
371
+ ```
372
+
373
+ ---
374
+
375
+ ## Commands You'll Use Daily
376
+
377
+ ```bash
378
+ # Execute agents
379
+ automatosx run <agent> "<task>" # One-time execution
380
+ automatosx chat <agent> # Interactive session
381
+
382
+ # Agents have memorable names! 🎉
383
+ automatosx run Bob "Design a RESTful API" # Bob = Backend Engineer
384
+ automatosx run Frank "Create login component" # Frank = Frontend Developer
385
+ automatosx run Steve "Review auth code" # Steve = Security Engineer
386
+
387
+ # See all agents with their memorable names
388
+ # 📖 Full agent directory: examples/AGENTS_INFO.md
389
+
390
+ # Manage agents
391
+ automatosx list agents # Show available agents
392
+ automatosx list abilities # Show available abilities
393
+
394
+ # Memory operations
395
+ automatosx memory search "<query>" # Semantic search
396
+ automatosx memory export --output memories.json
397
+ automatosx memory import --input memories.json
398
+ automatosx memory clear # Clear all memories
399
+
400
+ # Configuration
401
+ automatosx init [path] # Initialize project
402
+ automatosx config --list # View settings
403
+ automatosx config --set <key> --value <val>
404
+ automatosx status # System status
405
+ ```
406
+
407
+ Full CLI reference: `docs/reference/cli-commands.md`
408
+
409
+ ---
410
+
411
+ ## Real-World Examples
412
+
413
+ ### Research Pipeline
414
+
415
+ ```bash
416
+ # 1. Define researcher agent (v4.10.0+ team-based config)
417
+ cat > .automatosx/agents/researcher.yaml <<EOF
418
+ name: researcher
419
+ team: core # Inherits provider from team
420
+ displayName: "Ryan"
421
+ abilities: [web_search, summarize, cite_sources]
422
+ EOF
423
+
424
+ # 2. Run research task
425
+ automatosx run researcher "Compare Redis vs PostgreSQL for session storage"
426
+ # Or use display name: automatosx run Ryan "..."
427
+
428
+ # 3. Search results later
429
+ automatosx memory search "session storage comparison"
430
+ ```
431
+
432
+ ### CI/CD Integration
433
+
434
+ ```yaml
435
+ # .github/workflows/code-review.yml
436
+ - name: AI Code Review
437
+ run: |
438
+ automatosx run reviewer "Review changes in PR #${{ github.event.number }}"
439
+ ```
440
+
441
+ ### Cron Job Monitoring
442
+
443
+ ```bash
444
+ # Monitor logs every hour
445
+ 0 * * * * automatosx run oncall "Check last hour logs for errors" | mail -s "Hourly Report" team@company.com
446
+ ```
447
+
448
+ ---
449
+
450
+ ## Configuration
451
+
452
+ ### Global Configuration
453
+
454
+ AutomatosX uses JSON configuration with priority order:
455
+
456
+ 1. `.automatosx/config.json` (project-specific)
457
+ 2. `automatosx.config.json` (project root)
458
+ 3. `~/.automatosx/config.json` (user global)
459
+
460
+ **Example configuration:**
461
+
462
+ ```json
463
+ {
464
+ "$schema": "https://automatosx.com/schema/config.json",
465
+ "version": "4.10.0",
466
+ "providers": {
467
+ "preferred": "claude",
468
+ "claude": {
469
+ "command": "claude"
470
+ },
471
+ "gemini": {
472
+ "command": "gemini"
473
+ },
474
+ "openai": {
475
+ "command": "codex"
476
+ }
477
+ },
478
+ "memory": {
479
+ "maxEntries": 10000
480
+ }
481
+ }
482
+ ```
483
+
484
+ ### Team Configuration (v4.10.0+)
485
+
486
+ **NEW**: Organize agents into teams with shared provider configurations:
487
+
488
+ ```yaml
489
+ # .automatosx/teams/engineering.yaml
490
+ name: engineering
491
+ displayName: "Engineering Team"
492
+ description: Software development specialists
493
+
494
+ # Provider configuration (inherited by all team members)
495
+ provider:
496
+ primary: codex
497
+ fallbackChain: [codex, gemini, claude]
498
+
499
+ # Shared abilities (automatically added to all team agents)
500
+ sharedAbilities:
501
+ - our-coding-standards
502
+ - code-generation
503
+ - refactoring
504
+ - testing
505
+
506
+ # Team-level orchestration defaults
507
+ orchestration:
508
+ maxDelegationDepth: 2 # Default: 2 (v4.11.0+)
509
+
510
+ metadata:
511
+ owner: "Engineering Lead"
512
+ created: "2025-10-08"
513
+ ```
514
+
515
+ **Built-in Teams:**
516
+ - **core**: Quality assurance (primary: claude)
517
+ - **engineering**: Software development (primary: codex)
518
+ - **business**: Product & planning (primary: gemini)
519
+ - **design**: Design & content (primary: gemini)
520
+
521
+ **Benefits:**
522
+ - ✅ Agents inherit provider settings from their team
523
+ - ✅ Change provider for entire team at once
524
+ - ✅ Shared abilities automatically included
525
+ - ✅ No duplication across agent configs
526
+
527
+ ### Provider Configuration
528
+
529
+ **How it works:**
530
+
531
+ - AutomatosX calls your installed CLI commands (`claude`, `gemini`, `codex`)
532
+ - Each CLI uses its own default model (you can override via CLI config if needed)
533
+ - No need to specify model versions—CLIs auto-update to latest models
534
+ - You manage your own subscription/plan directly with the provider
535
+ - No API keys stored in AutomatosX—your CLI handles authentication
536
+ - Pay only for what you use via your existing CLI plan
537
+
538
+ **Provider Selection Priority** (v4.10.0+):
539
+ 1. **CLI option** (highest): `ax run agent "task" --provider gemini`
540
+ 2. **Team config**: From `.automatosx/teams/<team>.yaml`
541
+ 3. **Agent config** (deprecated): From agent's `provider` field
542
+ 4. **Router fallback** (lowest): Global provider routing
543
+
544
+ ---
545
+
546
+ ## Documentation & Support
547
+
548
+ - **Agent Directory**: `examples/AGENTS_INFO.md` (complete list of agents with memorable names)
549
+ - **Guides**: `docs/guide/` (installation, quick start, core concepts)
550
+ - **FAQ**: `FAQ.md`
551
+ - **Troubleshooting**: `TROUBLESHOOTING.md`
552
+ - **Issues**: [GitHub Issues](https://github.com/defai-digital/automatosx/issues)
553
+ - **Discussions**: [GitHub Discussions](https://github.com/defai-digital/automatosx/discussions)
554
+ - **npm**: <https://www.npmjs.com/package/@defai.digital/automatosx>
555
+ - **Website**: <https://automatosx.com>
556
+
557
+ ---
558
+
559
+ ## Migration from v3.1
560
+
561
+ ⚠️ **No automatic migration path** – v4.0 requires clean installation due to fundamental architectural changes.
562
+
563
+ **Key changes:**
564
+
565
+ - Memory: Milvus vector DB → SQLite FTS5 full-text search
566
+ - Language: JavaScript → TypeScript
567
+ - Config: `.defai/` → `.automatosx/`, YAML → JSON
568
+ - Bundle: 340MB → 46MB (87% reduction)
569
+
570
+ See [CHANGELOG.md](CHANGELOG.md#400---2025-10-06) for detailed upgrade instructions.
571
+
572
+ ---
573
+
574
+ ## Contributing
575
+
576
+ We welcome contributions! Please:
577
+
578
+ 1. Read [CONTRIBUTING.md](CONTRIBUTING.md)
579
+ 2. Follow [Conventional Commits](https://www.conventionalcommits.org/)
580
+ 3. Run tests before submitting: `npm test -- --coverage`
581
+ 4. Update docs when changing architecture or APIs
582
+
583
+ **Development setup:**
584
+
585
+ ```bash
586
+ git clone https://github.com/defai-digital/automatosx.git
587
+ cd automatosx
588
+ npm install
589
+ npm test
590
+ npm run build
591
+ ```
592
+
593
+ ---
594
+
595
+ ## License
596
+
597
+ Apache License 2.0 — see [LICENSE](LICENSE) for details.
598
+
599
+ ---
600
+
601
+ **Built by the DEFAI team for practitioners who ship agents, not demos.**
602
+
603
+ *Need enterprise support, custom integrations, or SLA guarantees? Contact us at <support@defai.digital>*