@defai.digital/automatosx 5.4.2 → 5.6.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.
package/README.md CHANGED
@@ -1,865 +1,140 @@
1
1
  # AutomatosX
2
2
 
3
- > **Provider-Agnostic AI Agent Orchestration**
4
- >
5
- > A CLI-first tool for orchestrating specialized AI agents with persistent memory, intelligent delegation, and cross-provider support (Claude, Gemini, OpenAI).
3
+ **Give your AI assistant a long-term memory and a team of autonomous agents.**
4
+
5
+ AutomatosX is a CLI-first orchestration tool that transforms stateless AI assistants into a powerful, collaborative workforce. It provides persistent memory, intelligent agent delegation, and cross-provider support (Claude, Gemini, OpenAI), all running 100% locally.
6
6
 
7
7
  [![npm version](https://img.shields.io/npm/v/@defai.digital/automatosx.svg)](https://www.npmjs.com/package/@defai.digital/automatosx)
8
8
  [![License](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](LICENSE)
9
9
  [![TypeScript](https://img.shields.io/badge/TypeScript-100%25-blue.svg)](https://www.typescriptlang.org/)
10
- [![Tests](https://img.shields.io/badge/tests-1,845%20passing-brightgreen.svg)](#)
10
+ [![Tests](https://img.shields.io/badge/tests-1863%2F1867%20passing-brightgreen.svg)](#)
11
11
  [![macOS](https://img.shields.io/badge/macOS-26.0-blue.svg)](https://www.apple.com/macos)
12
12
  [![Windows](https://img.shields.io/badge/Windows-10+-blue.svg)](https://www.microsoft.com/windows)
13
13
  [![Ubuntu](https://img.shields.io/badge/Ubuntu-24.04-orange.svg)](https://ubuntu.com)
14
14
 
15
- **Status**: ✅ Production Ready · v5.4.2 · October 2025
16
-
17
- Looking for answers? See the [FAQ](FAQ.md).
18
-
19
- ---
20
-
21
- ## 🎯 Built for Claude Code
22
-
23
- **AutomatosX extends Claude Code with specialized AI agents that remember context, delegate tasks, and collaborate autonomously.**
24
-
25
- ### 💡 Best Way to Use: Natural Language Collaboration (Recommended)
26
-
27
- Instead of directly commanding agents, **let Claude Code think and coordinate**:
28
-
29
- ```
30
- ✅ RECOMMENDED: Natural language collaboration
31
- "please work with ax agent to implement user authentication with JWT"
32
-
33
- What happens:
34
- 1. Claude Code analyzes your project structure
35
- 2. AutomatosX selects the most suitable agent automatically
36
- 3. Provides full context to the agent
37
- 4. Validates the results
38
- 5. Helps you understand and iterate
39
- ```
40
-
41
- **vs.**
42
-
43
- ```
44
- ⚡ EXPRESS: Direct slash command (for simple tasks)
45
- /ax:agent backend, implement JWT auth
46
-
47
- What happens:
48
- 1. Backend agent executes directly
49
- 2. Limited project context
50
- 3. No validation or planning
51
- ```
52
-
53
- ### 🎓 Think of it This Way
54
-
55
- - **Natural Collaboration** = Having a conversation with an intelligent coordinator who summons experts
56
- - **Slash Commands** = Directly commanding the experts without coordination
57
-
58
- **Recommendation**: Use natural language for 80% of tasks, slash commands for quick 20%.
59
-
60
- 📖 **[Complete Best Practices Guide](docs/BEST-PRACTICES.md)**
61
-
62
- ---
63
-
64
- ## 💡 Why AutomatosX?
65
-
66
- ### The Problem with Stateless AI
67
-
68
- **Traditional AI assistants** (ChatGPT, vanilla Claude):
69
- - ❌ No memory between conversations
70
- - ❌ You repeat context every time
71
- - ❌ No coordination between tasks
72
- - ❌ Knowledge disappears after each session
73
-
74
- **AutomatosX changes this**:
75
- - ✅ **Persistent memory**: < 1ms search, zero cost, 100% local
76
- - ✅ **Multi-agent delegation**: Agents coordinate automatically
77
- - ✅ **Context retention**: Never explain the same thing twice
78
- - ✅ **Knowledge accumulation**: Your team gets smarter over time
79
-
80
- ### Real-World Impact
81
-
82
- **Without AutomatosX**:
83
- ```
84
- Day 1: You explain architecture to Claude → Response lost
85
- Day 2: You ask to implement → You re-explain architecture
86
- Day 3: Different task → You re-explain everything again
87
- ```
88
-
89
- **With AutomatosX**:
90
- ```
91
- Day 1: Product designs architecture → Saved to memory
92
- Day 2: ax run backend "implement auth" → Backend finds Product's design automatically
93
- Day 3: ax run security "security audit" → Security has full context from Day 1-2
94
- ```
95
-
96
- **Time saved**: Hours per week. **Quality**: Consistent. **Cost**: $0.
97
-
98
- ---
99
-
100
- [📋 Full Changelog](CHANGELOG.md) | [🎉 Release Notes](https://github.com/defai-digital/automatosx/releases)
15
+ **Status**: ✅ Production Ready · **v5.6.1** · October 2025
101
16
 
102
17
  ---
103
18
 
104
- ## 🧠 Core Value: Persistent Memory
105
-
106
- **AutomatosX remembers everything**. Every agent conversation is automatically saved and searchable.
107
-
108
- ### How It Works
19
+ ## 🚀 Quick Start Guide
109
20
 
110
- ```bash
111
- # Automatic memory saving
112
- ax run product "Design calculator with add/subtract"
113
- → Task + Response saved to SQLite FTS5
21
+ 1. **Install AutomatosX:**
22
+ ```bash
23
+ npm install -g @defai.digital/automatosx
24
+ ```
114
25
 
115
- # Automatic memory retrieval
116
- ax run backend "Implement the calculator"
117
- Memory searches "calculator" automatically
118
- Backend receives: "# Relevant Context from Memory: Product's design..."
119
- Backend implements WITHOUT you repeating the spec
120
- ```
121
-
122
- ### The Technology
26
+ 2. **Initialize Your Project & Configure Provider:**
27
+ ```bash
28
+ cd your-project-folder
29
+ ax init
30
+ # Follow prompts to set up your default provider (e.g., Gemini, Claude, OpenAI)
31
+ ```
123
32
 
124
- - **SQLite FTS5**: Built-in full-text search
125
- - **< 1ms search**: 62x faster than v3.x vector search
126
- - **$0 cost**: No embedding APIs, no cloud calls
127
- - **100% local**: Your data never leaves your machine
128
- - **Automatic injection**: Relevant context added to every agent
33
+ 3. **Run Your First Agent:**
34
+ ```bash
35
+ # Use natural language in your IDE (e.g., with the Gemini CLI)
36
+ "work with ax agent to design a REST API for user management"
129
37
 
130
- ### Benefits
38
+ # Or run directly in your terminal
39
+ ax run product "Design a REST API for user management"
40
+ ```
131
41
 
132
- **Cross-day continuity**: Pick up where you left off
133
- ✅ **Cross-agent knowledge**: All agents share the same knowledge base
134
- ✅ **Learning from history**: Agents avoid past mistakes
135
- ✅ **Zero cost scaling**: 10,000 entries = ~10MB, still < 1ms search
136
-
137
- **Learn more**: [Memory System Guide](docs/guide/agent-communication.md) | [Memory Tutorial](docs/tutorials/memory-management.md)
42
+ [➡️ **Full Installation Guide**](docs/guide/installation.md) | [**Core Concepts**](docs/guide/core-concepts.md)
138
43
 
139
44
  ---
140
45
 
141
- ## 🤝 Core Value: Multi-Agent Orchestration
142
-
143
- **Agents coordinate automatically**. Natural language delegation creates complex workflows without manual orchestration.
46
+ ## Key Features
144
47
 
145
- ### How It Works
146
-
147
- ```typescript
148
- // Product Manager analyzes and delegates
149
- ax run product "Build authentication feature"
150
-
151
- Product response:
152
- "I'll design the auth system with JWT + OAuth2.
153
-
154
- @backend Please implement the JWT authentication API based on this design.
155
- @security Please audit the implementation for security issues."
156
-
157
- // AutomatosX automatically:
158
- // 1. Backend receives full spec, implements code
159
- // 2. Security receives spec + code, performs audit
160
- // 3. Results aggregated back to Product
161
- ```
162
-
163
- ### The Technology
164
-
165
- - **7 delegation syntaxes**: `@mention`, `DELEGATE TO`, `Please ask`, etc.
166
- - **Cycle detection**: Prevents infinite loops
167
- - **Depth limits**: Default 2 levels (configurable)
168
- - **Session tracking**: Who did what, when
169
- - **Shared workspace**: Organized PRD/tmp structure for collaboration
170
-
171
- ### Benefits
172
-
173
- ✅ **Automatic coordination**: No manual task switching
174
- ✅ **Parallel execution**: Multiple agents work simultaneously
175
- ✅ **Transparent workflows**: Full delegation chain visible
176
- ✅ **Context preservation**: Every agent has complete context
177
-
178
- **Learn more**: [Multi-Agent Orchestration Guide](docs/guide/multi-agent-orchestration.md)
48
+ | Feature | Description |
49
+ |---|---|
50
+ | **Parallel Agent Execution** | Orchestrate multiple agents to work concurrently, drastically reducing task completion time. (New in v5.6.0) |
51
+ | **Response Cache** | Saves results from previous runs to deliver instant responses for repeated tasks and reduce API costs. (New in v5.5.0) |
52
+ | **Claude Code Integration** | Seamlessly interact with agents using natural language directly within your editor for a fluid workflow. |
53
+ | **Gemini CLI Integration** | Leverage the power of the Gemini CLI to coordinate and execute agent tasks from your command line. |
54
+ | **Persistent Memory** | A local SQLite FTS5 database gives agents long-term memory, enabling context-aware, sub-millisecond responses at zero cost. |
55
+ | **Multi-Agent Orchestration** | Delegate high-level goals to a coordinator agent, which then plans and orchestrates a team of specialists to achieve the objective. |
56
+ | **Provider Agnostic** | Full support for Claude, Gemini, and OpenAI, allowing you to choose the best provider for each task or agent. |
57
+ | **100% Local & Private** | Your data, memory, and configurations stay on your machine. No cloud services, no data privacy concerns. |
179
58
 
180
59
  ---
181
60
 
182
- ## 🎭 12 Specialized Agents with Clear Governance
183
-
184
- **v5.0.12 introduces strict role ownership and delegation controls to eliminate cycles**:
185
- **v5.3.4 Phase 2 Pilot**: 3 coordinator agents now support 3-layer delegation for complex multi-phase workflows
186
-
187
- ### 💻 Engineering Team (Implementers)
188
- **maxDelegationDepth: 1** - Can delegate once for cross-domain needs, no re-delegation
189
- - **Bob** (backend) - API design, database modeling, caching strategies
190
- - Can delegate to: frontend, data, security, quality, devops
191
- - **Frank** (frontend) - Component architecture, state management, accessibility
192
- - Can delegate to: backend, design, security, quality, devops
193
- - **Oliver** (devops) - **🆕 v5.3.4: Infrastructure Coordinator (depth 3)** - Orchestrate complex deployment pipelines
194
- - Can delegate to: backend, frontend, security, quality
195
- - 3-layer capability for multi-phase infrastructure workflows
196
- - **Daisy** (data) - Data modeling, ETL pipelines, SQL optimization
197
- - Can delegate to: backend, security, quality
198
- - **Steve** (security) - **Sole owner** of security-audit, threat modeling, secure coding review
199
- - Can delegate to: backend, frontend, devops, quality
200
- - **Dana** (data-scientist) - **🆕 v5.3.4: Data Science Coordinator (depth 3)** - End-to-end ML pipelines
201
- - Can delegate to: data, backend, quality
202
- - 3-layer capability for complex data science workflows
203
-
204
- ### 🎯 Quality Team (Coordinator Role)
205
- **maxDelegationDepth: 1** - Can delegate fixes back to implementers, no re-delegation
206
- - **Queenie** (quality) - **Sole owner** of code-review and debugging, testing strategies
207
- - Can delegate to: backend, frontend, security, devops, data
208
-
209
- ### 🎨 Content Team (Implementers)
210
- **maxDelegationDepth: 1** - Can delegate once for cross-domain needs, no re-delegation
211
- - **Debbee** (design) - UX research, wireframes, design systems
212
- - Can delegate to: frontend, writer, quality
213
- - **Wendy** (writer) - API documentation, ADRs, release notes
214
- - Can delegate to: backend, frontend, design, quality
215
-
216
- ### 📊 Leadership Team (Coordinators)
217
- **maxDelegationDepth: 1-3** - Delegate to implementers, focus on strategy
218
- - **Paris** (product) - Product strategy, feature planning, roadmap
219
- - Can delegate to: backend, frontend, design, writer, quality
220
- - maxDelegationDepth: 1
221
- - **Eric** (ceo) - Business strategy, organizational leadership
222
- - Can delegate to: paris, tony, all agents
223
- - maxDelegationDepth: 1
224
- - **Tony** (cto) - **🆕 v5.3.4: Strategic Coordinator (depth 3)** - Multi-phase technical initiatives
225
- - Can delegate to: backend, frontend, devops, security, quality
226
- - 3-layer capability for strategic technology projects with sub-coordination
227
-
228
- ### 🔬 Research Team (Specialist)
229
- **maxDelegationDepth: 0** - Execute research work directly, no delegation
230
- - **Rodman** (researcher) - Idea validation, feasibility analysis, research reports
231
- - Specializes in: logical reasoning, risk assessment, literature review
232
- - Produces: executive summaries, feasibility studies, long-form research reports
233
-
234
- **New in v5.0.12**: Each agent has role-specific workflow stages, smart ability loading (abilitySelection), and explicit delegation scopes. Most agents have `maxDelegationDepth: 1` to allow cross-domain collaboration while preventing delegation cycles.
235
-
236
- **New in v5.3.4 (Phase 2 Pilot)**: 3 coordinator agents (Tony/CTO, Oliver/DevOps, Dana/Data Scientist) now support `maxDelegationDepth: 3` for orchestrating complex multi-layer workflows. This enables strategic coordination of multi-phase projects while maintaining safety through depth limits and cycle detection.
237
-
238
- [📖 Complete Agent Directory](examples/AGENTS_INFO.md)
239
-
240
- ---
241
-
242
- ## 🚀 Two Ways to Use AutomatosX
243
-
244
- AutomatosX offers **two powerful modes** to fit your workflow:
245
-
246
- ### 1️⃣ Claude Code Integration (Recommended)
247
-
248
- **The best way**: Use **natural language collaboration** to let Claude Code coordinate agents intelligently.
249
-
250
- #### Natural Language Collaboration (Primary Method - 80% of tasks)
251
-
252
- ```
253
- # Let Claude Code think, plan, and coordinate
254
- "please work with ax agent to implement user authentication"
255
- "please work with ax agent to design a secure API for our application"
256
- "please work with ax agent to refactor this module with best practices"
257
- ```
258
-
259
- **Why this is better**:
260
- - 🧠 Claude Code analyzes your project first
261
- - 🎯 Automatically selects the best agents
262
- - 📚 Provides full context from your codebase
263
- - ✅ Validates results and handles errors
264
- - 🔄 Easy to iterate and refine
265
-
266
- #### Slash Commands (Express Method - 20% of tasks)
267
-
268
- ```bash
269
- # Direct execution for simple, well-defined tasks
270
- /ax:agent Paris, design a REST API for user authentication
271
- /ax:agent Bob, write a function to validate emails
272
- /ax:agent Steve, review this code snippet
273
- ```
274
-
275
- **Use slash commands when**:
276
- - ⚡ Task is simple and well-defined
277
- - 🎯 You know exactly which agent to use
278
- - 🚀 Speed matters more than planning
279
-
280
- **Perfect for**:
281
- - 💬 All types of development workflows
282
- - 🔄 Both simple and complex tasks
283
- - 🤝 Single and multi-agent coordination
284
- - 🎯 Interactive and automated workflows
285
-
286
- **How it works**: Claude Code acts as an intelligent coordinator, analyzing context, selecting agents, and orchestrating their work seamlessly.
287
-
288
- ### 2️⃣ Terminal/CLI Mode (Power Users)
289
-
290
- **Use AutomatosX as a standalone CLI tool** for automation, scripting, and direct control.
291
-
292
- ```bash
293
- # In any terminal (Bash, Zsh, PowerShell)
294
- ax run Paris "Design REST API for user authentication"
295
- ax run Bob "Implement the auth API" # Auto-receives Paris's design from memory
296
- ax run Steve "Security audit the auth code" # Auto-receives design + implementation
297
-
298
- # Full CLI power
299
- ax memory search "authentication"
300
- ax agent list --by-team engineering
301
- ax session list --active
302
- ```
303
-
304
- **Perfect for**:
305
- - ⚙️ CI/CD pipelines and automation scripts
306
- - 🔧 Custom workflows and integrations
307
- - 📊 Batch processing and reporting
308
- - 🎛️ Advanced configuration and debugging
309
-
310
- **How it works**: Direct command-line execution with full control over providers, memory, sessions, and configuration.
311
-
312
- ### Which Mode Should I Use?
61
+ ## 🎭 Available Agents
313
62
 
314
- | Scenario | Recommended Mode |
315
- |----------|------------------|
316
- | Coding in Claude Code | **Claude Code Integration** (`/ax:agent`) |
317
- | Automation scripts | **Terminal Mode** (`ax run`) |
318
- | CI/CD pipelines | **Terminal Mode** |
319
- | Quick questions during dev | **Claude Code Integration** |
320
- | Memory management | **Terminal Mode** |
321
- | Agent creation/management | **Terminal Mode** |
322
- | Multi-agent workflows | **Both work great!** |
63
+ AutomatosX includes a team of 17 specialized agents, ensuring the right expert is always available for the job.
323
64
 
324
- ### 📖 Learn More
325
-
326
- - **Using Terminal Mode?** [Complete Terminal Mode Guide](docs/guide/terminal-mode.md)
327
- - **Using Claude Code?** Continue reading below for slash command examples
328
- - **Want both?** They work together seamlessly! Memory is shared across both modes.
65
+ | Agent | Specialization |
66
+ |---|---|
67
+ | **CEO** | Business strategy, organizational leadership, and product vision. |
68
+ | **CTO** | Technology strategy, technical leadership, and architecture oversight. |
69
+ | **Product Manager** | Product strategy, user research, and feature prioritization. |
70
+ | **Creative Marketer** | GenAI content, digital marketing, SEO, and scriptwriting. |
71
+ | **Backend Engineer** | Server-side architecture, API design, and database optimization. |
72
+ | **Frontend Developer** | User-centric interface design, React patterns, and performance. |
73
+ | **Fullstack Engineer** | End-to-end feature development and cross-layer implementation. |
74
+ | **Mobile Engineer** | Native iOS/Android development and cross-platform frameworks. |
75
+ | **DevOps Engineer** | Infrastructure automation, CI/CD pipelines, and cloud platforms. |
76
+ | **Security Engineer** | Application security, threat modeling, and secure coding reviews. |
77
+ | **Data Scientist** | Data analysis, machine learning, and statistical modeling. |
78
+ | **Data Engineer** | Data pipelines, ETL processes, and data infrastructure. |
79
+ | **Quality Engineer** | Testing strategies, quality assurance, and test automation. |
80
+ | **Researcher** | Idea validation, feasibility studies, and long-form research. |
81
+ | **Technical Writer** | Clear and concise documentation, tutorials, and technical content. |
82
+ | **Design** | UX research, wireframing, and design system implementation. |
83
+ | **Code Analyzer** | Static code analysis, identifying code smells, and suggesting improvements. |
329
84
 
330
85
  ---
331
86
 
332
- ## Quick Start
333
-
334
- ### Step 1: Install AutomatosX
87
+ ## ⚙️ Configuration
335
88
 
336
- **All Platforms** (Windows, macOS, Linux):
337
-
338
- ```bash
339
- npm install -g @defai.digital/automatosx
340
- ```
89
+ AutomatosX uses a `.automatosx/` directory in your project root to store all configurations.
341
90
 
342
- **Verify Installation**:
91
+ - **`automatosx.config.json`**: Main configuration for providers and global settings.
92
+ - **`agents/`**: YAML definitions for each agent's role, abilities, and provider.
93
+ - **`teams/`**: Define teams to share configurations (e.g., provider, abilities) among multiple agents.
94
+ - **`memory/`**: The SQLite database for persistent agent memory.
343
95
 
344
- ```bash
345
- ax --version
346
- # Should show: 5.3.5 (or later)
96
+ ### Example: Agent Configuration (`agents/backend.yaml`)
97
+ ```yaml
98
+ name: backend
99
+ displayName: Bob
100
+ team: engineering
101
+ role: Senior Backend Engineer
102
+ description: "Expert in server-side architecture, API design, and microservices."
103
+ abilities:
104
+ - code-generation
105
+ - api-design
106
+ - db-modeling
347
107
  ```
348
108
 
349
- > **Windows Users**: If `ax` command not found, see [Windows Troubleshooting](docs/troubleshooting/windows-troubleshooting.md)
350
-
351
109
  ---
352
110
 
353
- ### Step 2: Initialize Your Project ⚠️ REQUIRED
354
-
355
- **Navigate to your project directory**, then run:
356
-
357
- ```bash
358
- # Go to your project folder
359
- cd your-project-folder
360
-
361
- # Initialize AutomatosX (MUST do this first!)
362
- ax init
363
- ```
364
-
365
- **If you see "already initialized" but have issues**:
366
-
367
- ```bash
368
- # Force reinitialize (overwrites existing setup)
369
- ax init --force
370
- ```
371
-
372
- > **💡 When to use `--force`**:
373
- > - Seeing "0 agents" despite having `.automatosx` folder
374
- > - Upgrading from older version
375
- > - Files are corrupted or incomplete
376
- > - Want to reset to default configuration
377
-
378
- **What This Does**:
379
- - Creates `.automatosx/` directory with 12 agents, 15 abilities, 4 teams
380
- - Sets up memory database (SQLite FTS5)
381
- - Creates shared workspace structure (PRD for planning, tmp for temporary files)
382
- - Generates `automatosx.config.json`
383
- - **NEW (v5.2.0)**: Automatically initializes git repository (required for Codex provider)
384
-
385
- **Verify Initialization**:
111
+ ## 💻 CLI Commands Reference
386
112
 
387
- ```bash
388
- ax status
389
- # Should show: System is healthy
390
- # With: 12 agents, 15 abilities, providers configured
113
+ | Command | Description |
114
+ |---|---|
115
+ | `ax init` | Initializes a new AutomatosX project and creates the configuration structure. |
116
+ | `ax run <agent> "[prompt]"` | Runs a specific agent with a given task prompt. |
117
+ | `ax agent <list|info>` | Lists all available agents or shows details for a specific agent. |
118
+ | `ax memory <search|clear>` | Searches the agent memory or clears all entries. |
119
+ | `ax status` | Displays the current configuration and project status. |
120
+ | `ax update` | Checks for and installs updates to the AutomatosX tool. |
121
+ | `ax list` | Lists available agents, teams, and abilities. |
122
+ | `ax clear` | Clears logs, cache, or other temporary files. |
391
123
 
392
- ax list agents
393
- # Should list 12 agents: backend, frontend, devops, security, etc.
394
- ```
395
-
396
- > **⚠️ IMPORTANT**: If you still see "0 agents" or "System has issues" after `ax init`, try `ax init --force`!
397
-
398
- ---
399
-
400
- ### 🪟 Windows Support (Fully Tested)
401
-
402
- **AutomatosX v5.3.5+ fully supports Windows 10 & 11** with automatic CLI provider detection and native Claude Code integration.
403
-
404
- #### ✨ NEW in v5.3.5: Automatic Claude Code Detection
405
-
406
- **Windows + Claude Code users no longer need manual configuration!**
407
-
408
- When running AutomatosX inside Claude Code on Windows, the system automatically:
409
- - ✅ **Detects Claude Code environment** (via ENV variables and process detection)
410
- - ✅ **Auto-enables mock providers** (no external CLI tools needed)
411
- - ✅ **Provides helpful error messages** with environment-specific guidance
412
- - ✅ **Zero configuration required** for most users
413
-
414
- ```bash
415
- # In Claude Code on Windows - works automatically!
416
- ax run backend "Create a user authentication API"
417
- # → Auto-detects Claude Code, uses mock providers seamlessly
418
-
419
- # To verify auto-detection:
420
- ax status
421
- # → Should show: "Detected Claude Code environment - auto-enabling mock providers"
422
- ```
423
-
424
- **How it works**: AutomatosX detects you're running inside Claude Code and automatically enables mock providers, eliminating the "claude: command not found" errors that plagued previous versions.
425
-
426
- **Need real AI responses?** You can still use real providers:
427
- ```cmd
428
- REM Windows CMD
429
- set AUTOMATOSX_MOCK_PROVIDERS=false
430
- ax run backend "task"
431
-
432
- REM PowerShell
433
- $env:AUTOMATOSX_MOCK_PROVIDERS="false"
434
- ax run backend "task"
435
- ```
436
-
437
- 📖 **Complete Guide**: [Windows + Claude Code Integration](docs/troubleshooting/windows-claude-code-integration.md)
438
-
439
- #### Quick Start for Windows Users (Terminal Mode)
440
-
441
- **Most users don't need any configuration** - AutomatosX automatically detects provider CLIs installed via npm:
442
-
443
- ```bash
444
- # 1. Install providers (if not already installed)
445
- npm install -g @anthropic-ai/claude-cli
446
- npm install -g @google/generative-ai-cli
447
- npm install -g openai
448
-
449
- # 2. Verify detection
450
- ax status
451
- ```
452
-
453
- **If providers are not detected**, you can manually specify paths:
454
-
455
- **Windows (Command Prompt)**:
456
- ```cmd
457
- set CLAUDE_CLI=C:\Users\YourName\AppData\Roaming\npm\claude.cmd
458
- set GEMINI_CLI=C:\Users\YourName\AppData\Roaming\npm\gemini.cmd
459
- ax status
460
- ```
461
-
462
- **Windows (PowerShell)**:
463
- ```powershell
464
- $env:CLAUDE_CLI="C:\Users\YourName\AppData\Roaming\npm\claude.cmd"
465
- $env:GEMINI_CLI="C:\Users\YourName\AppData\Roaming\npm\gemini.cmd"
466
- ax status
467
- ```
468
-
469
- #### How Provider Detection Works
470
-
471
- AutomatosX uses a **three-layer detection system**:
472
-
473
- 1. **ENV Variables** (highest priority) - `CLAUDE_CLI`, `GEMINI_CLI`, `CODEX_CLI`
474
- 2. **Config File** - Custom paths in `automatosx.config.json`
475
- 3. **PATH Detection** (automatic) - Standard system PATH
476
- - **Windows**: Uses `where.exe` + PATH×PATHEXT scanning
477
- - **Unix/macOS**: Uses `which` command
478
-
479
- #### Windows-Specific Help
480
-
481
- Having issues on Windows? See our comprehensive guides:
482
-
483
- - 📖 **[Windows Setup Guide](docs/troubleshooting/windows-setup.md)** - Complete Windows installation walkthrough
484
- - 🔧 **[Windows Troubleshooting](docs/troubleshooting/windows-troubleshooting.md)** - Common Windows issues and solutions
485
- - ⚙️ **[Advanced Configuration](docs/guide/configuration.md)** - Custom paths, version requirements, and more
486
-
487
- > **💡 Quick Tip**: Run `ax status --verbose` to see exactly which paths are being detected and used.
488
-
489
- ---
490
-
491
- ### Step 3: Run Your First Agent
492
-
493
- #### Option A: Claude Code Integration (Recommended)
494
-
495
- **Best Practice: Natural Language Collaboration**
496
-
497
- Open Claude Code and try these prompts:
498
-
499
- ```
500
- ✅ "please work with ax agent to create a simple calculator function"
501
- ✅ "please work with ax agent to design a REST API for user management"
502
- ✅ "please work with ax agent to implement secure authentication"
503
- ```
504
-
505
- **What happens**:
506
- 1. Claude Code analyzes your project context
507
- 2. Selects and coordinates the best agents
508
- 3. Agents execute with full context
509
- 4. Results are validated and explained
510
- 5. Easy to iterate: "please improve the error handling"
511
-
512
- **Express Option: Slash Commands** (for simple tasks)
513
-
514
- ```bash
515
- # Quick, direct execution
516
- /ax:agent backend, write a function to validate email
517
- /ax:agent quality, review this code snippet
518
- ```
519
-
520
- 📖 **Learn more**: [Best Practices Guide](docs/BEST-PRACTICES.md)
521
-
522
- #### Option B: Terminal Mode (Power Users)
523
-
524
- ```bash
525
- # Test with backend agent
526
- ax run backend "Explain TypeScript in one sentence"
527
-
528
- # Agents automatically share memory
529
- ax run Paris "Design REST API for users"
530
- ax run Bob "Implement the API" # Auto-receives Paris's design
531
- ax run Queenie "Write tests for the API" # Auto-receives design + implementation
532
- ```
533
-
534
- ---
535
-
536
- ### Common Issues
537
-
538
- **"Agent not found" or "0 agents"**:
539
- → You forgot `ax init`. Run it in your project directory.
540
-
541
- **Windows: Command not found**:
542
- → See [Windows Quick Fix](docs/troubleshooting/windows-quick-fix.md)
543
-
544
- **No providers available**:
545
- → Install a provider CLI (Claude, Gemini, or OpenAI) or use mock providers for testing:
546
- ```bash
547
- # Test with mock providers (no API needed)
548
- set AUTOMATOSX_MOCK_PROVIDERS=true # Windows CMD
549
- $env:AUTOMATOSX_MOCK_PROVIDERS="true" # Windows PowerShell
550
- export AUTOMATOSX_MOCK_PROVIDERS=true # macOS/Linux
551
-
552
- ax run backend "Hello"
553
- ```
554
-
555
- **That's it!** Agents now remember everything and coordinate automatically.
556
-
557
- ### MCP Server Mode (Advanced) ✨ NEW in v5.1.0
558
-
559
- **Use AutomatosX as a native MCP server** for direct Claude Code integration via Model Context Protocol.
560
-
561
- ```bash
562
- # Start MCP server
563
- ax mcp
564
-
565
- # Add to Claude Code's claude_desktop_config.json
566
- {
567
- "mcpServers": {
568
- "automatosx": {
569
- "command": "ax",
570
- "args": ["mcp"]
571
- }
572
- }
573
- }
574
- ```
575
-
576
- **What you get**:
577
- - ✅ **16 native MCP tools** for Claude Code
578
- - ✅ **90% faster** than CLI execution (shared state, < 300ms p50 latency)
579
- - ✅ **Persistent services** across requests (MemoryManager, SessionManager)
580
- - ✅ **First-class integration** with Claude Desktop
581
-
582
- **Available MCP Tools**:
583
- - Agent execution: `run_agent`, `list_agents`
584
- - Memory operations: `search_memory`, `memory_add`, `memory_list`, `memory_delete`, `memory_export`, `memory_import`, `memory_stats`, `memory_clear`
585
- - Session management: `session_create`, `session_list`, `session_status`, `session_complete`, `session_fail`
586
- - System info: `get_status`
587
-
588
- **Performance**:
589
- - No subprocess overhead (3-5s → 300ms)
590
- - < 1.5s cold start
591
- - Shared services across requests
592
- - Native JSON-RPC 2.0 protocol
593
-
594
- 📖 **[Terminal Mode Guide](docs/guide/terminal-mode.md)** | **[Installation Guide](docs/guide/installation.md)** | **[Quick Start Tutorial](docs/guide/quick-start.md)**
595
-
596
- ---
597
-
598
- ## ⏱️ Stage Checkpoints & Run History
599
-
600
- AutomatosX 5.3 introduces stage-aware checkpoints so you can pause long-running agent workflows, inspect intermediate outputs, and resume exactly where the run stopped.
601
-
602
- ### Enable resumable runs
603
- - CLI: `ax run <agent> "<task>" --resumable` (add `--interactive` or `--hybrid` for live approval)
604
- - Config: set `execution.stages.enabled` to `true` in `automatosx.config.json` to make stage checkpoints the default. Combine with `execution.stages.autoSaveCheckpoint` to persist after every stage.
605
-
606
- When a stage finishes, AutomatosX stores a checkpoint under `.automatosx/checkpoints/<run-id>/` (artifacts, logs, and metadata). The CLI prints the UUID so you can resume or inspect it later.
607
-
608
- ### Manage checkpoints
609
- - `ax resume <run-id>` — Resume a saved run. Flags such as `--interactive`, `--streaming`, `--hybrid`, or `--auto-continue` override the saved execution mode.
610
- - `ax runs list [--status running|paused|completed|failed|aborted] [--agent <name>] [--limit <n>]` — Review recent checkpoints with progress and status.
611
- - `ax runs show <run-id> [--artifacts]` — Inspect stage history, retry counts, and generated artifacts before resuming.
612
- - `ax runs delete <run-id> [--force]` — Remove stale checkpoints or clear sensitive artifacts once a run is finalized.
613
-
614
- Set `execution.stages.cleanupAfterDays` to control automatic pruning (default 7 days). For an end-to-end guide, see [Checkpoints & Run History](docs/guide/checkpoints-and-resume.md).
615
-
616
- ---
617
-
618
- ## 📚 Documentation
619
-
620
- ### Getting Started
621
- - **[Quick Start Guide](docs/guide/quick-start.md)** - Get up and running in 5 minutes
622
- - **[Terminal Mode Guide](docs/guide/terminal-mode.md)** - Complete CLI usage tutorial
623
- - **[Core Concepts](docs/guide/core-concepts.md)** - Understand agents, memory, providers
624
- - **[Installation Guide](docs/guide/installation.md)** - Detailed setup instructions
625
- - **[FAQ](FAQ.md)** - Common questions and answers
626
- - **[Troubleshooting](TROUBLESHOOTING.md)** - Problem solving and platform-specific issues
627
-
628
- ### Core Features
629
- - **[Agent Communication & Memory](docs/guide/agent-communication.md)** - How agents communicate and remember
630
- - **[Multi-Agent Orchestration](docs/guide/multi-agent-orchestration.md)** - Natural language delegation
631
- - **[Team Configuration](docs/guide/team-configuration.md)** - Team-based agent organization
632
- - **[Agent Templates](docs/guide/agent-templates.md)** - Quick agent creation
633
- - **[Checkpoints & Run History](docs/guide/checkpoints-and-resume.md)** - Manage resumable runs and checkpoint storage
634
-
635
- ### Tutorials
636
- - **[Memory Management](docs/tutorials/memory-management.md)** - Hands-on memory system guide
637
- - **[Creating Your First Agent](docs/tutorials/first-agent.md)** - Build custom agents
638
-
639
- ### Reference
640
- - **[CLI Commands](docs/reference/cli-commands.md)** - Complete command reference
641
- - **[Agent Directory](examples/AGENTS_INFO.md)** - All available agents
642
-
643
- ---
644
-
645
- ## 🔬 The Technical Advantage
646
-
647
- | Feature | Traditional AI Chat | Claude Code | Claude Code + AutomatosX |
648
- |---------|---------------------|-------------|--------------------------|
649
- | **Memory** | No | No | ✅ SQLite FTS5 (< 1ms) |
650
- | **Cost** | $20/month | Included | ✅ $0 (100% local) |
651
- | **Multi-Agent** | No | No | ✅ 12 specialized agents |
652
- | **Coordination** | Manual | Manual | ✅ Automatic delegation |
653
- | **Context Retention** | Copy-paste | Session only | ✅ Persistent (days/weeks) |
654
- | **Knowledge Sharing** | No | No | ✅ Cross-agent memory |
655
- | **Privacy** | Cloud | Claude servers | ✅ 100% local data |
656
- | **Speed** | Web UI | Terminal | ✅ Instant CLI |
657
-
658
- ---
659
-
660
- ## 💼 Real-World Use Cases
661
-
662
- ### 🏗️ Feature Development
663
- ```bash
664
- # Using friendly agent names in terminal
665
- ax run Paris "Design user authentication feature"
666
- # Paris creates spec → Saved to memory
667
-
668
- ax run Bob "Implement auth based on spec"
669
- # Bob auto-receives spec → Implements code
670
-
671
- ax run Steve "Security audit the auth implementation"
672
- # Steve auto-receives spec + code → Performs audit
673
-
674
- ax run Wendy "Document the auth system"
675
- # Wendy auto-receives everything → Creates docs
676
-
677
- # Or in Claude Code:
678
- # /ax:agent Paris, design user authentication feature
679
- # /ax:agent Bob, implement auth based on spec
680
- ```
681
-
682
- **Result**: 4-step workflow, zero context re-explanation, complete audit trail
683
-
684
- ### 🐛 Bug Investigation
685
- ```bash
686
- # Mix of names and roles (both work!)
687
- ax run Queenie "Debug the payment timeout issue"
688
- # Queenie analyzes, saves findings to memory
689
-
690
- ax run backend "Fix the issue Queenie found"
691
- # Backend reads Queenie's analysis → Implements fix
692
-
693
- ax run quality "Test the payment fix"
694
- # Quality knows the bug + fix → Comprehensive testing
695
- ```
696
-
697
- **Result**: Coordinated debugging with full context preservation
698
-
699
- ### 📊 Research & Analysis
700
- ```bash
701
- # Using agent names for clarity
702
- ax run Daisy "Analyze user behavior patterns"
703
- # Daisy analyzes patterns → Findings in memory
704
-
705
- ax run Paris "Design features based on Daisy's analysis"
706
- # Paris reads analysis → Creates product spec
707
-
708
- ax run Eric "Business case for Paris's proposal"
709
- # Eric has analysis + spec → Strategic evaluation
710
- ```
711
-
712
- **Result**: Data-driven decision making with complete context
713
-
714
- ### 🚀 Multi-Agent Delegation
715
- ```bash
716
- # Single command triggers automatic multi-agent coordination
717
- ax run Paris "Build a user dashboard with real-time metrics"
718
-
719
- # Paris analyzes and delegates automatically in its response:
720
- # "I've designed the dashboard architecture:
721
- #
722
- # @Bob Please implement the REST API endpoints for user metrics
723
- # @Frank Please create the React dashboard components
724
- # @Steve Please review the data access security
725
- #
726
- # All specs are in my workspace."
727
-
728
- # AutomatosX automatically:
729
- # ✓ Bob implements backend API → Saves to workspace
730
- # ✓ Frank builds frontend UI → Reads Bob's API spec
731
- # ✓ Steve audits security → Reviews both implementations
732
- # ✓ Results aggregated → Complete dashboard delivered
733
- ```
734
-
735
- **Result**: One command orchestrates 4 agents with automatic coordination
736
-
737
- **Delegation Syntaxes**:
738
- ```bash
739
- @Bob Please implement this # Direct mention
740
- DELEGATE TO Frank: Create the UI # Explicit syntax
741
- Please ask Steve to audit this # Polite request
742
- I need Daisy to analyze the data # Need expression
743
- ```
744
-
745
- ---
746
-
747
- ## 🎯 Why Teams Choose AutomatosX
748
-
749
- ### For Solo Developers
750
- - **Extend Claude Code** with persistent memory
751
- - **Never repeat context** - agents remember everything
752
- - **Coordinate complex tasks** with multi-agent workflows
753
- - **100% local** - your data stays private
754
-
755
- ### For Teams
756
- - **Shared knowledge base** - export/import memory across team
757
- - **Consistent quality** - agents learn from past work
758
- - **Faster onboarding** - new members inherit team knowledge
759
- - **Audit trail** - complete history of all decisions
760
-
761
- ### For Claude Code Power Users
762
- - **Slash command integration** - `/ax:agent` for instant access in Claude Code
763
- - **Terminal-native** - no context switching
764
- - **CLI-based** - scriptable and automatable
765
- - **Zero latency** - local memory = instant search
766
-
767
- ---
768
-
769
- ## 🛠️ Production-Ready
770
-
771
- ✅ **1,845 tests passing** (100% pass rate)
772
- ✅ **TypeScript strict mode** (zero errors)
773
- ✅ **~56% test coverage** (comprehensive testing)
774
- ✅ **458KB bundle** (99.9% smaller than v3.x)
775
- ✅ **< 1ms memory search** (62x faster than v3.x)
776
-
777
- ### Tested Platforms
778
-
779
- AutomatosX has been thoroughly tested across multiple operating systems:
780
-
781
- - ✅ **macOS**: macOS 15+ (tested on macOS 15)
782
- - ✅ **Ubuntu**: Ubuntu 24.04 LTS
783
- - ✅ **Windows**: Windows 10 & Windows 11
784
-
785
- ### Performance Metrics
786
-
787
- ```
788
- Memory Search: < 1ms (10,000 entries)
789
- Bundle Size: 458KB (down from 340MB in v3.x)
790
- Dependencies: 19 packages (down from 589 in v3.x)
791
- Test Coverage: ~56% (1,845 tests passing, 100% pass rate)
792
- Memory Cost: $0 (no API calls)
793
- ```
794
-
795
- ### Technology Stack
796
-
797
- - **Runtime**: Node.js 20+
798
- - **Language**: TypeScript 5.3 (strict mode)
799
- - **Memory**: SQLite + FTS5 (built-in full-text search)
800
- - **Testing**: Vitest 2.x (1,259 tests)
801
- - **Build**: tsup/esbuild
802
- - **Providers**: Claude CLI, Gemini CLI, Codex CLI (OpenAI)
803
-
804
- ---
805
-
806
- ## 🔒 Security
807
-
808
- AutomatosX packages are published with [npm provenance](https://docs.npmjs.com/generating-provenance-statements), providing supply chain security and verifying package authenticity.
809
-
810
- You can verify the provenance of any version:
811
-
812
- ```bash
813
- npm view @defai.digital/automatosx@latest --json | jq .dist
814
- ```
815
-
816
- Look for the `attestations` field which confirms the package was built in GitHub Actions.
817
-
818
- For more information, see our [Security Policy](SECURITY.md).
819
-
820
- ---
821
-
822
- ## 🚧 Coming Soon
823
-
824
- - Enhanced Claude Code integration
825
- - Visual workflow builder
826
- - Advanced memory analytics
827
- - Cross-project knowledge sharing
828
- - Plugin system for custom providers
124
+ [➡️ **Full CLI Command Reference**](docs/reference/cli-commands.md)
829
125
 
830
126
  ---
831
127
 
832
128
  ## 🤝 Contributing
833
129
 
834
- We welcome contributions! AutomatosX is built in the open.
130
+ AutomatosX is an open-source project. We welcome contributions!
835
131
 
836
- - **[Contributing Guide](CONTRIBUTING.md)** - How to contribute
837
- - **[Development Setup](CONTRIBUTING.md#development-setup)** - Local setup
838
- - **[Architecture Guide](docs/guide/core-concepts.md)** - Understand the codebase
839
-
840
- **Join the community**:
841
- - 🐛 [Report Issues](https://github.com/defai-digital/automatosx/issues)
842
- - 💡 [Feature Requests](https://github.com/defai-digital/automatosx/issues/new)
132
+ - [**Contributing Guide**](CONTRIBUTING.md)
133
+ - [**Report an Issue**](https://github.com/defai-digital/automatosx/issues)
134
+ - [**Request a Feature**](https://github.com/defai-digital/automatosx/issues/new)
843
135
 
844
136
  ---
845
137
 
846
138
  ## 📄 License
847
139
 
848
140
  AutomatosX is [Apache 2.0 licensed](LICENSE).
849
-
850
- ---
851
-
852
- ## 🔗 Links
853
-
854
- - **📦 npm**: [@defai.digital/automatosx](https://www.npmjs.com/package/@defai.digital/automatosx)
855
- - **🐙 GitHub**: [defai-digital/automatosx](https://github.com/defai-digital/automatosx)
856
- - **📖 Documentation**: [docs/](docs/)
857
- - **❓ FAQ**: [FAQ.md](FAQ.md)
858
- - **🎉 Releases**: [GitHub Releases](https://github.com/defai-digital/automatosx/releases)
859
- - **📋 Changelog**: [CHANGELOG.md](CHANGELOG.md)
860
-
861
- ---
862
-
863
- **Transform Claude Code into an intelligent, coordinated team with AutomatosX.** 🚀
864
-
865
- **Built with ❤️ by the AutomatosX team**