@defai.digital/automatosx 5.0.13 → 5.1.2

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 (92) hide show
  1. package/CHANGELOG.md +110 -0
  2. package/README.md +310 -92
  3. package/dist/index.js +7784 -6097
  4. package/dist/index.js.map +1 -1
  5. package/dist/version.json +3 -3
  6. package/examples/AGENTS_INFO.md +495 -0
  7. package/examples/README.md +434 -0
  8. package/examples/abilities/accessibility.md +115 -0
  9. package/examples/abilities/api-design.md +159 -0
  10. package/examples/abilities/best-practices.md +102 -0
  11. package/examples/abilities/caching-strategy.md +165 -0
  12. package/examples/abilities/ci-cd.md +61 -0
  13. package/examples/abilities/code-generation.md +95 -0
  14. package/examples/abilities/code-review.md +42 -0
  15. package/examples/abilities/component-architecture.md +112 -0
  16. package/examples/abilities/content-creation.md +97 -0
  17. package/examples/abilities/data-modeling.md +171 -0
  18. package/examples/abilities/data-validation.md +50 -0
  19. package/examples/abilities/db-modeling.md +158 -0
  20. package/examples/abilities/debugging.md +43 -0
  21. package/examples/abilities/dependency-audit.md +60 -0
  22. package/examples/abilities/design-system-implementation.md +126 -0
  23. package/examples/abilities/documentation.md +54 -0
  24. package/examples/abilities/error-analysis.md +107 -0
  25. package/examples/abilities/etl-pipelines.md +44 -0
  26. package/examples/abilities/feasibility-study.md +20 -0
  27. package/examples/abilities/general-assistance.md +26 -0
  28. package/examples/abilities/idea-evaluation.md +21 -0
  29. package/examples/abilities/infra-as-code.md +57 -0
  30. package/examples/abilities/job-orchestration.md +44 -0
  31. package/examples/abilities/literature-review.md +19 -0
  32. package/examples/abilities/logical-analysis.md +21 -0
  33. package/examples/abilities/longform-report.md +25 -0
  34. package/examples/abilities/observability.md +61 -0
  35. package/examples/abilities/our-architecture-decisions.md +180 -0
  36. package/examples/abilities/our-code-review-checklist.md +149 -0
  37. package/examples/abilities/our-coding-standards.md +270 -0
  38. package/examples/abilities/our-project-structure.md +175 -0
  39. package/examples/abilities/performance-analysis.md +56 -0
  40. package/examples/abilities/performance.md +80 -0
  41. package/examples/abilities/problem-solving.md +50 -0
  42. package/examples/abilities/refactoring.md +49 -0
  43. package/examples/abilities/release-strategy.md +58 -0
  44. package/examples/abilities/risk-assessment.md +19 -0
  45. package/examples/abilities/secrets-policy.md +61 -0
  46. package/examples/abilities/secure-coding-review.md +51 -0
  47. package/examples/abilities/security-audit.md +65 -0
  48. package/examples/abilities/sql-optimization.md +84 -0
  49. package/examples/abilities/state-management.md +96 -0
  50. package/examples/abilities/task-planning.md +65 -0
  51. package/examples/abilities/technical-writing.md +77 -0
  52. package/examples/abilities/testing.md +47 -0
  53. package/examples/abilities/threat-modeling.md +49 -0
  54. package/examples/abilities/troubleshooting.md +80 -0
  55. package/examples/agents/.tmp +0 -0
  56. package/examples/agents/backend.yaml +69 -0
  57. package/examples/agents/ceo.yaml +60 -0
  58. package/examples/agents/cto.yaml +59 -0
  59. package/examples/agents/data.yaml +77 -0
  60. package/examples/agents/design.yaml +73 -0
  61. package/examples/agents/devops.yaml +82 -0
  62. package/examples/agents/frontend.yaml +74 -0
  63. package/examples/agents/product.yaml +69 -0
  64. package/examples/agents/quality.yaml +70 -0
  65. package/examples/agents/researcher.yaml +71 -0
  66. package/examples/agents/security.yaml +84 -0
  67. package/examples/agents/writer.yaml +77 -0
  68. package/examples/claude/commands/ax:agent.md +37 -0
  69. package/examples/claude/commands/ax:clear.md +22 -0
  70. package/examples/claude/commands/ax:init.md +25 -0
  71. package/examples/claude/commands/ax:list.md +19 -0
  72. package/examples/claude/commands/ax:memory.md +25 -0
  73. package/examples/claude/commands/ax:status.md +24 -0
  74. package/examples/claude/commands/ax:update.md +28 -0
  75. package/examples/claude/mcp/automatosx.json +244 -0
  76. package/examples/teams/business.yaml +56 -0
  77. package/examples/teams/core.yaml +59 -0
  78. package/examples/teams/design.yaml +58 -0
  79. package/examples/teams/engineering.yaml +69 -0
  80. package/examples/teams/research.yaml +56 -0
  81. package/examples/templates/analyst.yaml +60 -0
  82. package/examples/templates/assistant.yaml +48 -0
  83. package/examples/templates/basic-agent.yaml +28 -0
  84. package/examples/templates/code-reviewer.yaml +52 -0
  85. package/examples/templates/debugger.yaml +63 -0
  86. package/examples/templates/designer.yaml +69 -0
  87. package/examples/templates/developer.yaml +60 -0
  88. package/examples/templates/fullstack-developer.yaml +395 -0
  89. package/examples/templates/qa-specialist.yaml +71 -0
  90. package/examples/use-cases/01-web-app-development.md +374 -0
  91. package/package.json +2 -1
  92. package/version.json +3 -3
package/dist/version.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
- "version": "5.0.13",
3
- "releaseDate": "2025-10-10",
4
- "codename": "Smart Cleanup & UX Improvements",
2
+ "version": "5.1.2",
3
+ "releaseDate": "2025-10-11",
4
+ "codename": "Code Quality Improvements",
5
5
  "phase": "Phase 2.1 Complete"
6
6
  }
@@ -0,0 +1,495 @@
1
+ # AutomatosX Agent Directory
2
+
3
+ **v5.0.12 Update**: Major agent governance rework to eliminate delegation cycles and improve role clarity.
4
+
5
+ AutomatosX agents have **human-friendly names** to make them easier to remember and use. Each agent has both a technical role name and a memorable display name.
6
+
7
+ ## 🎯 v5.0.12: Agent Governance & Delegation Controls
8
+
9
+ **Key Changes**:
10
+ - ✅ **Role Ownership**: Quality owns code-review/debugging, Security owns security-audit
11
+ - ✅ **Delegation Depth**: Most agents (1), Research only (0)
12
+ - ✅ **Smart Ability Loading**: `abilitySelection` reduces prompt tokens by 30-50%
13
+ - ✅ **Role-Specific Stages**: 8 unique workflow sequences
14
+ - ✅ **No Cycles**: maxDelegationDepth: 1 prevents re-delegation
15
+
16
+ **Agent Categories by Delegation Depth**:
17
+ - **Implementers** (depth 1): backend, frontend, devops, data, security, design, writer
18
+ - **Quality** (depth 1): quality (can delegate fixes to implementers)
19
+ - **Coordinators** (depth 1): product, ceo, cto (delegate to implementers)
20
+ - **Research** (depth 0): researcher (executes directly, no delegation)
21
+
22
+ ## 🚀 Quick Overview: 12 Agents, 4 Teams, 3 Providers
23
+
24
+ AutomatosX agents are organized into **4 professional teams**, each optimized with the best AI provider for their domain:
25
+
26
+ | Team | Primary Provider | Agent Count | Expertise |
27
+ |------|------------------|-------------|-----------|
28
+ | **💻 Engineering Team** | 🟣 **Claude** (claude-code) | 5 | Backend, frontend, security, DevOps, data engineering |
29
+ | **🎯 Quality Team** | 🟣 **Claude** (claude-code) | 1 | Code review, debugging, testing (sole ownership) |
30
+ | **🎨 Content Team** | Various | 2 | UX/UI design, technical documentation |
31
+ | **📊 Leadership Team** | Various | 4 | CEO, CTO, Product Management, research & feasibility analysis |
32
+
33
+ ### 🛡️ Intelligent 3-Layer Fallback System
34
+
35
+ Each agent uses a **smart fallback strategy** to ensure maximum reliability:
36
+
37
+ 1. **Primary Provider**: Team-optimized AI (🟢 OpenAI / 🟣 Claude / 🔵 Gemini)
38
+ 2. **Fallback Provider**: Agent-specific backup (configured per agent)
39
+ 3. **Router Fallback**: Auto-routing through all available providers (priority-based)
40
+
41
+ **Example**: If an Engineering agent (primary: claude-code) encounters an issue:
42
+ - ✅ Try Claude first (primary: `claude-code`)
43
+ - ✅ Fall back to OpenAI (configured fallback: `openai`)
44
+ - ✅ Try Gemini (router fallback: `gemini-cli`)
45
+
46
+ This ensures **99.9% uptime** even if one provider has issues!
47
+
48
+ ## Why Names?
49
+
50
+ Research shows humans remember names better than roles. Instead of remembering "backend engineer", you can just think "ask Bob".
51
+
52
+ ## Agent Directory
53
+
54
+ ### 💻 Engineering Team (Implementers)
55
+
56
+ **maxDelegationDepth: 1** - Can delegate once for cross-domain needs, no re-delegation
57
+
58
+ | Name | Agent | Expertise | Best For | Primary | Fallback | Can Delegate To |
59
+ |------|-------|-----------|----------|---------|----------|-----------------|
60
+ | **Bob** | backend | API design, database modeling, caching | Backend development, microservices | 🟣 claude-code | 🟢 openai | frontend, data, security, quality, devops |
61
+ | **Frank** | frontend | Component architecture, state management | Frontend development, React, accessibility | 🟣 claude-code | 🟢 openai | backend, design, security, quality, devops |
62
+ | **Oliver** | devops | Infrastructure as code, CI/CD pipelines | DevOps, deployment, observability | 🟣 claude-code | 🟢 openai | backend, frontend, security, quality |
63
+ | **Steve** | security | **SOLE OWNER** of security-audit | Security review, threat modeling | 🟢 openai | 🔵 gemini-cli | backend, frontend, devops, quality |
64
+
65
+ ### 🎯 Quality Team (Coordinator Role)
66
+
67
+ **maxDelegationDepth: 1** - Can delegate fixes back to implementers, no re-delegation
68
+
69
+ | Name | Agent | Expertise | Best For | Primary | Fallback | Can Delegate To |
70
+ |------|-------|-----------|----------|---------|----------|-----------------|
71
+ | **Queenie** | quality | **SOLE OWNER** of code-review & debugging | Test planning, automation, quality gates | 🟢 openai | 🔵 gemini-cli | backend, frontend, security, devops, data |
72
+
73
+ ### 🎨 Content Team (Implementers)
74
+
75
+ **maxDelegationDepth: 1** - Can delegate once for cross-domain needs, no re-delegation
76
+
77
+ | Name | Agent | Expertise | Best For | Primary | Fallback | Can Delegate To |
78
+ |------|-------|-----------|----------|---------|----------|-----------------|
79
+ | **Debbee** | design | UX research, wireframes, design systems | UX design, prototyping, accessibility | 🔵 gemini-cli | 🟢 openai | frontend, writer, quality |
80
+ | **Wendy** | writer | API docs, ADRs, release notes | Technical writing, documentation | 🟢 openai | 🟣 claude-code | backend, frontend, design, quality |
81
+
82
+ ### 📊 Leadership Team (Coordinators)
83
+
84
+ **maxDelegationDepth: 1** - Delegate to implementers, focus on strategy, no re-delegation
85
+
86
+ | Name | Agent | Expertise | Best For | Primary | Fallback | Can Delegate To |
87
+ |------|-------|-----------|----------|---------|----------|-----------------|
88
+ | **Paris** | product | Product strategy, feature planning | Product planning, roadmap prioritization | 🔵 gemini-cli | 🟣 claude-code | backend, frontend, design, writer, quality |
89
+ | **Eric** | ceo | Business strategy, vision | Strategic decisions, organizational leadership | 🔵 gemini-cli | 🟣 claude-code | paris, tony, all agents |
90
+ | **Tony** | cto | Technology strategy, leadership | Tech strategy, architecture decisions | 🔵 gemini-cli | 🟣 claude-code | backend, frontend, devops, security, quality |
91
+
92
+ ### 🔬 Research Team (Specialist)
93
+
94
+ **maxDelegationDepth: 0** - Execute research work directly, no delegation
95
+
96
+ | Name | Agent | Expertise | Best For | Primary | Fallback | Can Delegate To |
97
+ |------|-------|-----------|----------|---------|----------|-----------------|
98
+ | **Rodman** | researcher | Idea validation, feasibility analysis | Research reports, literature review | 🟢 openai | 🔵 gemini-cli | None (depth: 0) |
99
+
100
+ ### 💾 Data Team (Implementer)
101
+
102
+ **maxDelegationDepth: 1** - Can delegate once for cross-domain needs, no re-delegation
103
+
104
+ | Name | Agent | Expertise | Best For | Primary | Fallback | Can Delegate To |
105
+ |------|-------|-----------|----------|---------|----------|-----------------|
106
+ | **Daisy** | data | Data modeling, ETL pipelines, SQL optimization | Data engineering, analytics | 🔵 gemini-cli | 🟣 claude-code | backend, security, quality |
107
+
108
+ ---
109
+
110
+ **Note**: General-purpose agents (assistant, coder, debugger, reviewer) have been moved to templates (`examples/templates/`) to prevent delegation cycles. Use `ax agent create` to add them when specifically needed for your project.
111
+
112
+ ## Provider Configuration
113
+
114
+ ### ✅ Best Practice: Model Parameters
115
+
116
+ **v5.0.11+ Recommendation**: Let provider CLIs use their optimized defaults
117
+
118
+ **What Changed**:
119
+ - All `temperature` and `maxTokens` parameters have been **removed from default agents**
120
+ - Provider CLIs (Claude, Gemini, OpenAI) use their own optimized settings
121
+ - This gives agents **full access to provider capabilities** (Claude: 200K tokens, Gemini: 2M tokens)
122
+
123
+ **Why This Is Better**:
124
+ 1. **No Artificial Limits**: Agents can generate complete, comprehensive answers
125
+ 2. **Provider Optimization**: Each CLI is tuned for its model's strengths
126
+ 3. **Simpler Configuration**: Less to maintain and understand
127
+ 4. **Fewer Mistakes**: Can't accidentally limit powerful models to 4K tokens
128
+
129
+ **When to Add Parameters** (optional):
130
+ - **Cost Control**: Set `maxTokens` to limit API usage for specific agents
131
+ - **Determinism**: Set `temperature: 0` for QA/testing agents that need consistent output
132
+ - **OpenAI Only**: Currently only OpenAI provider supports these parameters
133
+
134
+ **How to Add Parameters** (if needed):
135
+ ```yaml
136
+ # Example: Cost-controlled agent
137
+ config:
138
+ maxTokens: 2000 # Limit output length
139
+
140
+ # Example: Deterministic QA agent
141
+ config:
142
+ temperature: 0 # Consistent output
143
+ ```
144
+
145
+ **References**:
146
+ - See `CLAUDE.md` § Provider Model Parameters for technical details
147
+ - Track Gemini CLI support: [Issue #5280](https://github.com/google-gemini/gemini-cli/issues/5280)
148
+
149
+ ---
150
+
151
+ AutomatosX uses a **3-layer fallback system** for maximum reliability:
152
+
153
+ 1. **Primary Provider**: Each agent's preferred AI provider (configured in agent YAML)
154
+ 2. **Fallback Provider**: Optional per-agent fallback (can be configured via `fallbackProvider` field)
155
+ 3. **Router Fallback**: Auto-routing through multiple providers (OpenAI → Gemini)
156
+
157
+ ### Supported AI Providers
158
+
159
+ | Brand | CLI Tool | Best For |
160
+ |-------|----------|----------|
161
+ | 🟣 **Claude** | `claude` or `claude-code` | General purpose, coding, analysis, debugging |
162
+ | 🟢 **OpenAI** | `codex` | Code generation, planning |
163
+ | 🔵 **Gemini** | `gemini` | Creative tasks, multimodal |
164
+
165
+ ### Current Provider Distribution
166
+
167
+ | AI Provider | Agent Count | Agents |
168
+ |-------------|-------------|--------|
169
+ | 🔵 **Gemini** (gemini-cli) | 5 | Eric, Tony, Paris, Daisy, Debbee |
170
+ | 🟢 **OpenAI** (openai) | 4 | Wendy, Queenie, Steve, Rodman |
171
+ | 🟣 **Claude** (claude-code) | 3 | Bob, Frank, Oliver |
172
+
173
+ ### Provider Selection Logic
174
+
175
+ ```text
176
+ Agent Request → Try Primary Provider (varies by team)
177
+ ↓ (if fails)
178
+ Try Fallback Provider (configured per agent)
179
+ ↓ (if fails)
180
+ Use Auto-Routing Priority:
181
+ 1. 🟢 OpenAI (priority 1)
182
+ 2. 🔵 Gemini (priority 2)
183
+ 3. 🟣 Claude (priority 3)
184
+ ```
185
+
186
+ **Example 1**: If Sofia (Core Team: primary 🟢 **OpenAI**, fallback 🟣 **Claude**) encounters an error:
187
+
188
+ 1. Try 🟢 **OpenAI** first
189
+ 2. If fails, try fallback 🟣 **Claude**
190
+ 3. If still fails, router tries 🔵 **Gemini** (remaining provider)
191
+
192
+ **Example 2**: If Bob (Engineering: primary 🟣 **Claude**, fallback 🟢 **OpenAI**) encounters an error:
193
+
194
+ 1. Try 🟣 **Claude** first
195
+ 2. If fails, try fallback 🟢 **OpenAI**
196
+ 3. If still fails, router tries 🔵 **Gemini** (remaining provider)
197
+
198
+ **Example 3**: If Eric (Business: primary 🔵 **Gemini**, fallback 🟣 **Claude**) encounters an error:
199
+
200
+ 1. Try 🔵 **Gemini** first
201
+ 2. If fails, try fallback 🟣 **Claude**
202
+ 3. If still fails, router tries 🟢 **OpenAI** (remaining provider)
203
+
204
+ ### Customizing Provider Configuration
205
+
206
+ You can customize provider preferences for any agent:
207
+
208
+ ```yaml
209
+ # Example 1: Core Team configuration (OpenAI → Claude → Gemini)
210
+ name: assistant
211
+ displayName: Alex
212
+ provider: openai # Primary: 🟢 OpenAI
213
+ fallbackProvider: claude-code # Fallback: 🟣 Claude
214
+
215
+ # Example 2: Engineering Team configuration (Claude → OpenAI → Gemini)
216
+ name: backend
217
+ displayName: Bob
218
+ provider: claude # Primary: 🟣 Claude
219
+ fallbackProvider: openai # Fallback: 🟢 OpenAI (using 'codex' CLI)
220
+
221
+ # Example 3: Business Team configuration (Gemini → Claude → OpenAI)
222
+ name: ceo
223
+ displayName: Eric
224
+ provider: gemini-cli # Primary: 🔵 Gemini
225
+ fallbackProvider: claude # Fallback: 🟣 Claude
226
+
227
+ # Example 4: Design Team configuration (Gemini → OpenAI → Claude)
228
+ name: design
229
+ displayName: Debbee
230
+ provider: gemini-cli # Primary: 🔵 Gemini
231
+ fallbackProvider: openai # Fallback: 🟢 OpenAI
232
+
233
+ # Available provider options:
234
+ # - claude or claude-code (🟣 Claude - both are Anthropic Claude)
235
+ # - openai or codex (🟢 OpenAI - both use 'codex' CLI)
236
+ # - gemini-cli or gemini (🔵 Gemini - both use 'gemini' CLI)
237
+ ```
238
+
239
+ **Why choose each provider?**
240
+
241
+ - 🟣 **Claude**: Best for general reasoning, long-context tasks, detailed analysis, and coding
242
+ - 🟢 **OpenAI**: Excellent for code generation, technical planning, and structured outputs
243
+ - 🔵 **Gemini**: Great for creative tasks, multimodal processing, and strategic thinking
244
+
245
+ ## Usage Examples
246
+
247
+ ### Using Agent Names
248
+
249
+ ```bash
250
+ # Use the agent name from the table above
251
+ automatosx run backend "Design a RESTful API for user management"
252
+ automatosx run frontend "Create a React login component"
253
+ automatosx run security "Review this authentication code"
254
+ ```
255
+
256
+ ### Using Display Names (Human-Friendly)
257
+
258
+ ```bash
259
+ # More memorable! Use the human-friendly display name
260
+ automatosx run Bob "Design a RESTful API for user management"
261
+ automatosx run Frank "Create a React login component"
262
+ automatosx run Steve "Review this authentication code"
263
+
264
+ # Quick help from experts
265
+ automatosx run Eric "Should we prioritize mobile or web?"
266
+ automatosx run Tony "What's our cloud migration strategy?"
267
+ automatosx run Paris "How should we price this feature?"
268
+
269
+ # Get insights
270
+ automatosx run Daisy "Analyze our user engagement trends"
271
+ automatosx run Debbee "Review this dashboard design"
272
+ ```
273
+
274
+ ## Complete Agent List
275
+
276
+ ### Old Version (v3.x) Name Mapping
277
+
278
+ For reference, here are the names from AutomatosX v3.x:
279
+
280
+ | v4.0 Name | v3.x Name | Agent |
281
+ |-----------|-----------|-------|
282
+ | Alex | Alex | assistant |
283
+ | Sofia | - | coder (new) |
284
+ | Ryan | - | reviewer (new) |
285
+ | Danny | - | debugger (new) |
286
+ | Wendy | - | writer (new) |
287
+ | Bob | Bob | backend |
288
+ | Frank | Frank | frontend |
289
+ | Oliver | Oliver | devops |
290
+ | Steve | Steve | security |
291
+ | Queenie | Queenie | quality |
292
+ | Eric | Eric | ceo |
293
+ | Tony | Tony | cto |
294
+ | Paris | Paris | product |
295
+ | Daisy | Daisy | data |
296
+ | Debbee | Debbee | design |
297
+
298
+ ### Additional Agents from v3.x
299
+
300
+ These agents are available in v3.x but not yet ported to v4.0:
301
+
302
+ - **Adrian** - Architect (Solution Architect)
303
+ - **Anna** - Analyst (Business Analyst)
304
+ - **Flora** - CFO (Chief Financial Officer)
305
+ - **Doris** - Docs (Documentation Specialist)
306
+ - **Emily** - Edge (Edge Computing Engineer)
307
+ - **Louis** - Legal (Legal Counsel)
308
+ - **Maggie** - Marketer (Marketing Manager)
309
+ - **Nicolas** - Network (Network Engineer)
310
+ - **Quian** - Quantum (Quantum Computing Specialist)
311
+
312
+ ## Customizing Agents
313
+
314
+ You can customize any agent or create new ones:
315
+
316
+ ```bash
317
+ # Copy an example agent
318
+ cp examples/agents/backend.yaml .automatosx/agents/my-backend.yaml
319
+
320
+ # Edit the profile
321
+ vim .automatosx/agents/my-backend.yaml
322
+ ```
323
+
324
+ Change the `displayName` field to give your agent a memorable name:
325
+
326
+ ```yaml
327
+ name: my-backend
328
+ displayName: MyBob # Your custom name!
329
+ role: Custom Backend Engineer
330
+ ```
331
+
332
+ ## Tips for Remembering
333
+
334
+ ### Mnemonic Devices
335
+
336
+ - **Bob** - "Bob the **B**ackend **B**uilder"
337
+ - **Frank** - "**F**rank the **F**rontend friend"
338
+ - **Steve** - "**S**teve keeps it **S**ecure"
339
+ - **Oliver** - "**O**liver **O**perates servers"
340
+ - **Queenie** - "**Q**ueenie ensures **Q**uality"
341
+ - **Eric** - "**E**ric's the **E**xecutive"
342
+ - **Tony** - "**T**ony leads **T**echnology"
343
+ - **Paris** - "**P**aris plans **P**roducts"
344
+ - **Daisy** - "**D**aisy dives into **D**ata"
345
+ - **Debbee** - "**D**ebbee **D**esigns beautifully"
346
+
347
+ ### Team Analogy
348
+
349
+ Think of AutomatosX like assembling your dream team:
350
+
351
+ - Need backend work? **Call Bob**
352
+ - UI problems? **Ask Frank**
353
+ - Security concerns? **Talk to Steve**
354
+ - Strategy questions? **Consult Eric**
355
+ - Product decisions? **Meet with Paris**
356
+
357
+ ## Next Steps
358
+
359
+ - Browse `examples/agents/` to see all agent profiles
360
+ - Copy agents to `.automatosx/agents/` to use them
361
+ - Customize agent personalities and abilities
362
+ - Create your own agents with memorable names!
363
+
364
+ ---
365
+
366
+ ## 🎯 Agent Maintenance Principles (v5.0.11+)
367
+
368
+ To prevent delegation cycles and maintain a clean agent ecosystem, AutomatosX follows these principles:
369
+
370
+ ### Core Principles
371
+
372
+ 1. **Unique Responsibility**: Each default agent must have a clearly defined, non-overlapping responsibility area.
373
+ 2. **Prevent Duplication**: No two agents should cover the same type of task.
374
+ 3. **Prefer Specialization**: Default agents should be specialists, not generalists.
375
+ 4. **Templates for Flexibility**: General-purpose agents should be templates, not defaults.
376
+
377
+ ### Delegation Strategy
378
+
379
+ **Broad-scope agents** (CEO, CTO, Product) are configured with:
380
+ - `maxDelegationDepth: 1` - Limits multi-layer delegation
381
+ - **Delegation evaluation guidance** in systemPrompt:
382
+ ```
383
+ Before delegating, evaluate:
384
+ 1. Can I handle this with my expertise? If yes, do it yourself.
385
+ 2. Does this require specialized skills? If yes, delegate to specialists.
386
+ 3. Delegation should be intentional, not automatic.
387
+ ```
388
+
389
+ ### Adding New Agents
390
+
391
+ When creating or modifying agents:
392
+
393
+ 1. **Check for overlaps**: Ensure the new agent doesn't duplicate existing agents
394
+ 2. **Update team configuration**: Assign to appropriate team (core/engineering/business/design)
395
+ 3. **Set delegation limits**: For coordinators, set `maxDelegationDepth: 1`
396
+ 4. **Add delegation guidance**: Include evaluation criteria in systemPrompt
397
+ 5. **Document responsibilities**: Update this file with the agent's clear scope
398
+
399
+ ### Templates vs. Default Agents
400
+
401
+ **Default Agents** (`automatosx/agents/`):
402
+ - Specialized roles with clear boundaries
403
+ - Always available by default
404
+ - Current: backend, frontend, devops, security, quality, data, product, design, writer, ceo, cto
405
+
406
+ **Templates** (`examples/templates/`):
407
+ - General-purpose or situational roles
408
+ - Created on-demand with `ax agent create`
409
+ - Current: assistant, fullstack-developer, code-reviewer, debugger, developer, analyst, designer, qa-specialist
410
+
411
+ ### How to Re-enable Template Agents
412
+
413
+ If your project genuinely needs a general-purpose agent (e.g., assistant, fullstack-developer), follow these steps:
414
+
415
+ #### Evaluation Checklist
416
+
417
+ **Before creating a template agent, ask:**
418
+ 1. ✅ Can specialized agents (backend, frontend, quality) handle this task?
419
+ 2. ✅ Will this agent overlap with existing default agents?
420
+ 3. ✅ Is this for a specific project phase or temporary need?
421
+ 4. ✅ Have I read the template's "TEMPLATE ROLE NOTICE"?
422
+
423
+ **If all answers are satisfactory, proceed:**
424
+
425
+ #### Step 1: Create from Template
426
+
427
+ ```bash
428
+ # Interactive creation (recommended)
429
+ ax agent create my-assistant --template assistant --interactive
430
+
431
+ # Or non-interactive
432
+ ax agent create my-fullstack --template fullstack-developer \
433
+ --display-name "Sofia" \
434
+ --role "Full-stack Developer" \
435
+ --team engineering
436
+ ```
437
+
438
+ #### Step 2: Review Configuration
439
+
440
+ After creation, review the agent YAML in `.automatosx/agents/`:
441
+ - ✅ Check `maxDelegationDepth` (set to 1 for general-purpose agents)
442
+ - ✅ Review delegation guidance in systemPrompt
443
+ - ✅ Ensure abilities don't completely overlap with existing agents
444
+
445
+ #### Step 3: Test for Delegation Cycles
446
+
447
+ Run a test task and monitor delegation behavior:
448
+ ```bash
449
+ # Test the agent
450
+ ax run my-assistant "Create a simple REST API"
451
+
452
+ # Watch for delegation patterns
453
+ # ❌ Bad: Agent immediately delegates to backend/frontend
454
+ # ✅ Good: Agent attempts task first, delegates only when necessary
455
+ ```
456
+
457
+ #### Step 4: Adjust if Needed
458
+
459
+ If delegation cycles occur:
460
+ - Lower `maxDelegationDepth` to 1
461
+ - Add stronger "do it yourself first" guidance in systemPrompt
462
+ - Consider removing the agent and using specialized agents instead
463
+
464
+ #### Step 5: Document Your Decision
465
+
466
+ Add a comment to your project's `CLAUDE.md`:
467
+ ```markdown
468
+ ## Custom Agents
469
+
470
+ ### my-assistant (General Assistant)
471
+ - **Why needed**: Handles cross-domain tasks during prototyping phase
472
+ - **Overlap mitigation**: maxDelegationDepth=1, explicit self-evaluation
473
+ - **Review date**: 2025-11-01
474
+ ```
475
+
476
+ ### Preventing Delegation Cycles
477
+
478
+ Common causes of infinite delegation:
479
+ - ❌ Two generalists with overlapping skills
480
+ - ❌ Agents with identical abilities but different names
481
+ - ❌ No clear "stop condition" in delegation logic
482
+
483
+ Solutions:
484
+ - ✅ Move generalists to templates
485
+ - ✅ Limit maxDelegationDepth for broad-scope agents
486
+ - ✅ Add explicit delegation evaluation in systemPrompt
487
+ - ✅ Prefer specialized agents with clear boundaries
488
+
489
+ ---
490
+
491
+ **Pro tip**: You can list all available agents with:
492
+
493
+ ```bash
494
+ automatosx list agents
495
+ ```