@defai.digital/automatosx 5.6.13 → 5.6.14
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/CHANGELOG.md +75 -0
- package/dist/index.js +78 -0
- package/examples/claude/CLAUDE_INTEGRATION.md +256 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,81 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
## [5.6.14](https://github.com/defai-digital/automatosx/compare/v5.6.13...v5.6.14) (2025-10-22)
|
|
6
|
+
|
|
7
|
+
### New Features - Claude Code Integration Enhancement
|
|
8
|
+
|
|
9
|
+
* **feat(init):** Automatic CLAUDE.md generation with AutomatosX integration guide 📖 NEW
|
|
10
|
+
- **Problem Solved**: Claude Code didn't know how to use AutomatosX agents in new projects
|
|
11
|
+
- **Solution**: `ax init` now automatically creates/updates project CLAUDE.md with comprehensive integration guide
|
|
12
|
+
- **File**: `examples/claude/CLAUDE_INTEGRATION.md` - Complete AutomatosX usage template
|
|
13
|
+
- **Features**:
|
|
14
|
+
- Natural language examples: "Please work with ax agent backend to implement authentication"
|
|
15
|
+
- Slash command examples: `/ax-agent backend, create REST API`
|
|
16
|
+
- Complete agent directory (24 specialized agents)
|
|
17
|
+
- Memory system explanation
|
|
18
|
+
- Multi-agent collaboration examples
|
|
19
|
+
- Configuration guide
|
|
20
|
+
- Troubleshooting tips
|
|
21
|
+
- **Smart Update Behavior**:
|
|
22
|
+
- New projects: Creates full CLAUDE.md with AutomatosX integration
|
|
23
|
+
- Existing CLAUDE.md: Appends AutomatosX section without overwriting user content
|
|
24
|
+
- Force mode (`--force`): Updates existing AutomatosX section
|
|
25
|
+
- **Impact**: Claude Code now automatically understands how to work with AutomatosX agents in every project
|
|
26
|
+
- **Files Changed**:
|
|
27
|
+
- `src/cli/commands/init.ts` - Added `setupProjectClaudeMd()` function
|
|
28
|
+
- `examples/claude/CLAUDE_INTEGRATION.md` - New integration template (370 lines)
|
|
29
|
+
|
|
30
|
+
### Documentation Updates
|
|
31
|
+
|
|
32
|
+
* **docs(quick-start):** Updated Quick Start guide to v5.6.13 specifications
|
|
33
|
+
- Updated version references: 5.1.0 → 5.6.13
|
|
34
|
+
- Updated agent count: 12 → 24 specialized agents
|
|
35
|
+
- Updated ability count: 15 → 56 abilities
|
|
36
|
+
- Updated team count: 4 → 5 teams
|
|
37
|
+
- Added new directory structure (templates, .claude, CLAUDE.md)
|
|
38
|
+
- Added router health check output example
|
|
39
|
+
- Updated expected output examples
|
|
40
|
+
|
|
41
|
+
* **docs(claude-md):** Updated CLAUDE.md with v5.6.13 performance improvements
|
|
42
|
+
- Fixed test timeout documentation: 30s → 60s
|
|
43
|
+
- Expanded core modules documentation with v5.6.13 additions
|
|
44
|
+
- Added cache-warmer, adaptive-cache, db-connection-pool modules
|
|
45
|
+
|
|
46
|
+
### Developer Experience
|
|
47
|
+
|
|
48
|
+
* **Before this release**:
|
|
49
|
+
```
|
|
50
|
+
User: "Please use ax agent to help me"
|
|
51
|
+
Claude Code: "I don't have AutomatosX agent. I'll use my Task tool instead..."
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
* **After this release**:
|
|
55
|
+
```bash
|
|
56
|
+
cd new-project
|
|
57
|
+
ax init
|
|
58
|
+
# → Creates CLAUDE.md with AutomatosX integration guide
|
|
59
|
+
|
|
60
|
+
# Now in Claude Code:
|
|
61
|
+
User: "Please work with ax agent backend to implement auth API"
|
|
62
|
+
Claude Code: "I'll execute: ax run backend 'implement auth API'" ✅
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
### Configuration
|
|
66
|
+
|
|
67
|
+
No configuration changes required. The feature works automatically when running `ax init`.
|
|
68
|
+
|
|
69
|
+
**Optional customization**:
|
|
70
|
+
```bash
|
|
71
|
+
# Force update existing CLAUDE.md
|
|
72
|
+
ax init --force
|
|
73
|
+
|
|
74
|
+
# Template location for customization
|
|
75
|
+
examples/claude/CLAUDE_INTEGRATION.md
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
---
|
|
79
|
+
|
|
5
80
|
## [5.6.13](https://github.com/defai-digital/automatosx/compare/v5.6.12...v5.6.13) (2025-10-21)
|
|
6
81
|
|
|
7
82
|
### New Features - Phase 3 Advanced Optimizations
|
package/dist/index.js
CHANGED
|
@@ -5480,6 +5480,9 @@ var initCommand = {
|
|
|
5480
5480
|
await setupClaudeIntegration(projectDir, packageRoot);
|
|
5481
5481
|
createdResources.push(join(projectDir, ".claude"));
|
|
5482
5482
|
console.log(chalk27.green(" \u2713 Claude Code integration configured"));
|
|
5483
|
+
console.log(chalk27.cyan("\u{1F4D6} Setting up CLAUDE.md with AutomatosX integration..."));
|
|
5484
|
+
await setupProjectClaudeMd(projectDir, packageRoot, argv2.force ?? false);
|
|
5485
|
+
console.log(chalk27.green(" \u2713 CLAUDE.md configured"));
|
|
5483
5486
|
console.log(chalk27.cyan("\u{1F527} Initializing git repository..."));
|
|
5484
5487
|
await initializeGitRepository(projectDir);
|
|
5485
5488
|
console.log(chalk27.green(" \u2713 Git repository initialized"));
|
|
@@ -5777,6 +5780,81 @@ async function updateGitignore(projectDir) {
|
|
|
5777
5780
|
logger.warn("Failed to update .gitignore", { error: error.message });
|
|
5778
5781
|
}
|
|
5779
5782
|
}
|
|
5783
|
+
async function setupProjectClaudeMd(projectDir, packageRoot, force) {
|
|
5784
|
+
const claudeMdPath = join(projectDir, "CLAUDE.md");
|
|
5785
|
+
const templatePath = join(packageRoot, "examples/claude/CLAUDE_INTEGRATION.md");
|
|
5786
|
+
try {
|
|
5787
|
+
const { readFile: readFile9 } = await import('fs/promises');
|
|
5788
|
+
const template = await readFile9(templatePath, "utf-8");
|
|
5789
|
+
const exists = await checkExists2(claudeMdPath);
|
|
5790
|
+
if (!exists) {
|
|
5791
|
+
const content = [
|
|
5792
|
+
"# CLAUDE.md",
|
|
5793
|
+
"",
|
|
5794
|
+
"This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.",
|
|
5795
|
+
"",
|
|
5796
|
+
"---",
|
|
5797
|
+
"",
|
|
5798
|
+
template
|
|
5799
|
+
].join("\n");
|
|
5800
|
+
await writeFile(claudeMdPath, content, "utf-8");
|
|
5801
|
+
logger.info("Created CLAUDE.md with AutomatosX integration", { path: claudeMdPath });
|
|
5802
|
+
} else {
|
|
5803
|
+
const existingContent = await readFile9(claudeMdPath, "utf-8");
|
|
5804
|
+
if (existingContent.includes("# AutomatosX Integration")) {
|
|
5805
|
+
if (!force) {
|
|
5806
|
+
logger.info("CLAUDE.md already contains AutomatosX integration", { path: claudeMdPath });
|
|
5807
|
+
return;
|
|
5808
|
+
}
|
|
5809
|
+
const updatedContent = replaceAutomatosXSection(existingContent, template);
|
|
5810
|
+
await writeFile(claudeMdPath, updatedContent, "utf-8");
|
|
5811
|
+
logger.info("Updated AutomatosX integration in CLAUDE.md", { path: claudeMdPath });
|
|
5812
|
+
} else {
|
|
5813
|
+
const updatedContent = [
|
|
5814
|
+
existingContent.trimEnd(),
|
|
5815
|
+
"",
|
|
5816
|
+
"---",
|
|
5817
|
+
"",
|
|
5818
|
+
template
|
|
5819
|
+
].join("\n");
|
|
5820
|
+
await writeFile(claudeMdPath, updatedContent, "utf-8");
|
|
5821
|
+
logger.info("Added AutomatosX integration to existing CLAUDE.md", { path: claudeMdPath });
|
|
5822
|
+
}
|
|
5823
|
+
}
|
|
5824
|
+
} catch (error) {
|
|
5825
|
+
logger.warn("Failed to setup CLAUDE.md", {
|
|
5826
|
+
error: error.message,
|
|
5827
|
+
path: claudeMdPath
|
|
5828
|
+
});
|
|
5829
|
+
}
|
|
5830
|
+
}
|
|
5831
|
+
function replaceAutomatosXSection(content, newSection) {
|
|
5832
|
+
const sectionStart = content.indexOf("# AutomatosX Integration");
|
|
5833
|
+
if (sectionStart === -1) {
|
|
5834
|
+
return [
|
|
5835
|
+
content.trimEnd(),
|
|
5836
|
+
"",
|
|
5837
|
+
"---",
|
|
5838
|
+
"",
|
|
5839
|
+
newSection
|
|
5840
|
+
].join("\n");
|
|
5841
|
+
}
|
|
5842
|
+
const afterSection = content.substring(sectionStart + 1);
|
|
5843
|
+
const nextSectionMatch = afterSection.match(/\n#(?!#) /);
|
|
5844
|
+
let sectionEnd;
|
|
5845
|
+
if (nextSectionMatch && nextSectionMatch.index !== void 0) {
|
|
5846
|
+
sectionEnd = sectionStart + 1 + nextSectionMatch.index;
|
|
5847
|
+
} else {
|
|
5848
|
+
sectionEnd = content.length;
|
|
5849
|
+
}
|
|
5850
|
+
const before = content.substring(0, sectionStart);
|
|
5851
|
+
const after = content.substring(sectionEnd);
|
|
5852
|
+
return [
|
|
5853
|
+
before.trimEnd(),
|
|
5854
|
+
newSection,
|
|
5855
|
+
after.trimStart()
|
|
5856
|
+
].join("\n\n");
|
|
5857
|
+
}
|
|
5780
5858
|
|
|
5781
5859
|
// src/cli/commands/list.ts
|
|
5782
5860
|
init_esm_shims();
|
|
@@ -0,0 +1,256 @@
|
|
|
1
|
+
# AutomatosX Integration
|
|
2
|
+
|
|
3
|
+
This project uses [AutomatosX](https://github.com/defai-digital/automatosx) - an AI agent orchestration platform with persistent memory and multi-agent collaboration.
|
|
4
|
+
|
|
5
|
+
## Quick Start
|
|
6
|
+
|
|
7
|
+
### Available Commands
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
# List all available agents
|
|
11
|
+
ax list agents
|
|
12
|
+
|
|
13
|
+
# Run an agent with a task
|
|
14
|
+
ax run <agent-name> "your task description"
|
|
15
|
+
|
|
16
|
+
# Example: Ask the backend agent to create an API
|
|
17
|
+
ax run backend "create a REST API for user management"
|
|
18
|
+
|
|
19
|
+
# Search memory for past conversations
|
|
20
|
+
ax memory search "keyword"
|
|
21
|
+
|
|
22
|
+
# View system status
|
|
23
|
+
ax status
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
### Using AutomatosX in Claude Code
|
|
27
|
+
|
|
28
|
+
You can interact with AutomatosX agents directly in Claude Code using natural language or slash commands:
|
|
29
|
+
|
|
30
|
+
**Natural Language (Recommended)**:
|
|
31
|
+
```
|
|
32
|
+
"Please work with ax agent backend to implement user authentication"
|
|
33
|
+
"Ask the ax security agent to audit this code for vulnerabilities"
|
|
34
|
+
"Have the ax quality agent write tests for this feature"
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
**Slash Command**:
|
|
38
|
+
```
|
|
39
|
+
/ax-agent backend, create a REST API for user management
|
|
40
|
+
/ax-agent security, audit the authentication flow
|
|
41
|
+
/ax-agent quality, write unit tests for the API
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
### Available Agents
|
|
45
|
+
|
|
46
|
+
This project includes the following specialized agents:
|
|
47
|
+
|
|
48
|
+
- **backend** - Backend development (Go/Rust/Python systems)
|
|
49
|
+
- **frontend** - Frontend development (React/Next.js/Swift)
|
|
50
|
+
- **fullstack** - Full-stack development (Node.js/TypeScript + Python)
|
|
51
|
+
- **mobile** - Mobile development (iOS/Android, Swift/Kotlin/Flutter)
|
|
52
|
+
- **devops** - DevOps and infrastructure
|
|
53
|
+
- **security** - Security auditing and threat modeling
|
|
54
|
+
- **data** - Data engineering and ETL
|
|
55
|
+
- **quality** - QA and testing
|
|
56
|
+
- **design** - UX/UI design
|
|
57
|
+
- **writer** - Technical writing
|
|
58
|
+
- **product** - Product management
|
|
59
|
+
- **cto** - Technical strategy
|
|
60
|
+
- **ceo** - Business leadership
|
|
61
|
+
- **researcher** - Research and analysis
|
|
62
|
+
|
|
63
|
+
For a complete list with capabilities, run: `ax list agents --format json`
|
|
64
|
+
|
|
65
|
+
## Key Features
|
|
66
|
+
|
|
67
|
+
### 1. Persistent Memory
|
|
68
|
+
|
|
69
|
+
AutomatosX agents remember all previous conversations and decisions:
|
|
70
|
+
|
|
71
|
+
```bash
|
|
72
|
+
# First task - design is saved to memory
|
|
73
|
+
ax run product "Design a calculator with add/subtract features"
|
|
74
|
+
|
|
75
|
+
# Later task - automatically retrieves the design from memory
|
|
76
|
+
ax run backend "Implement the calculator API"
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
### 2. Multi-Agent Collaboration
|
|
80
|
+
|
|
81
|
+
Agents can delegate tasks to each other automatically:
|
|
82
|
+
|
|
83
|
+
```bash
|
|
84
|
+
ax run product "Build a complete user authentication feature"
|
|
85
|
+
# → Product agent designs the system
|
|
86
|
+
# → Automatically delegates implementation to backend agent
|
|
87
|
+
# → Automatically delegates security audit to security agent
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
### 3. Cross-Provider Support
|
|
91
|
+
|
|
92
|
+
AutomatosX supports multiple AI providers with automatic fallback:
|
|
93
|
+
- Claude (Anthropic)
|
|
94
|
+
- Gemini (Google)
|
|
95
|
+
- OpenAI (GPT)
|
|
96
|
+
|
|
97
|
+
Configuration is in `automatosx.config.json`.
|
|
98
|
+
|
|
99
|
+
## Configuration
|
|
100
|
+
|
|
101
|
+
### Project Configuration
|
|
102
|
+
|
|
103
|
+
Edit `automatosx.config.json` to customize:
|
|
104
|
+
|
|
105
|
+
```json
|
|
106
|
+
{
|
|
107
|
+
"providers": {
|
|
108
|
+
"claude-code": {
|
|
109
|
+
"enabled": true,
|
|
110
|
+
"priority": 1
|
|
111
|
+
},
|
|
112
|
+
"gemini-cli": {
|
|
113
|
+
"enabled": true,
|
|
114
|
+
"priority": 2
|
|
115
|
+
}
|
|
116
|
+
},
|
|
117
|
+
"execution": {
|
|
118
|
+
"defaultTimeout": 1500000, // 25 minutes
|
|
119
|
+
"maxRetries": 3
|
|
120
|
+
},
|
|
121
|
+
"memory": {
|
|
122
|
+
"enabled": true,
|
|
123
|
+
"maxEntries": 10000
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
### Agent Customization
|
|
129
|
+
|
|
130
|
+
Create custom agents in `.automatosx/agents/`:
|
|
131
|
+
|
|
132
|
+
```bash
|
|
133
|
+
ax agent create my-agent --template developer --interactive
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
## Memory System
|
|
137
|
+
|
|
138
|
+
### Search Memory
|
|
139
|
+
|
|
140
|
+
```bash
|
|
141
|
+
# Search for past conversations
|
|
142
|
+
ax memory search "authentication"
|
|
143
|
+
ax memory search "API design"
|
|
144
|
+
|
|
145
|
+
# List recent memories
|
|
146
|
+
ax memory list --limit 10
|
|
147
|
+
|
|
148
|
+
# Export memory for backup
|
|
149
|
+
ax memory export > backup.json
|
|
150
|
+
```
|
|
151
|
+
|
|
152
|
+
### How Memory Works
|
|
153
|
+
|
|
154
|
+
- **Automatic**: All agent conversations are saved automatically
|
|
155
|
+
- **Fast**: SQLite FTS5 full-text search (< 1ms)
|
|
156
|
+
- **Local**: 100% private, data never leaves your machine
|
|
157
|
+
- **Cost**: $0 (no API calls for memory operations)
|
|
158
|
+
|
|
159
|
+
## Advanced Usage
|
|
160
|
+
|
|
161
|
+
### Parallel Execution (v5.6.0+)
|
|
162
|
+
|
|
163
|
+
Run multiple agents in parallel for faster workflows:
|
|
164
|
+
|
|
165
|
+
```bash
|
|
166
|
+
ax run product "Design authentication system" --parallel
|
|
167
|
+
```
|
|
168
|
+
|
|
169
|
+
### Resumable Runs (v5.3.0+)
|
|
170
|
+
|
|
171
|
+
For long-running tasks, enable checkpoints:
|
|
172
|
+
|
|
173
|
+
```bash
|
|
174
|
+
ax run backend "Refactor entire codebase" --resumable
|
|
175
|
+
|
|
176
|
+
# If interrupted, resume with:
|
|
177
|
+
ax resume <run-id>
|
|
178
|
+
|
|
179
|
+
# List all runs
|
|
180
|
+
ax runs list
|
|
181
|
+
```
|
|
182
|
+
|
|
183
|
+
### Streaming Output (v5.6.5+)
|
|
184
|
+
|
|
185
|
+
See real-time output from AI providers:
|
|
186
|
+
|
|
187
|
+
```bash
|
|
188
|
+
ax run backend "Explain this codebase" --streaming
|
|
189
|
+
```
|
|
190
|
+
|
|
191
|
+
## Troubleshooting
|
|
192
|
+
|
|
193
|
+
### Common Issues
|
|
194
|
+
|
|
195
|
+
**"Agent not found"**
|
|
196
|
+
```bash
|
|
197
|
+
# List available agents
|
|
198
|
+
ax list agents
|
|
199
|
+
|
|
200
|
+
# Make sure agent name is correct
|
|
201
|
+
ax run backend "task" # ✓ Correct
|
|
202
|
+
ax run Backend "task" # ✗ Wrong (case-sensitive)
|
|
203
|
+
```
|
|
204
|
+
|
|
205
|
+
**"Provider not available"**
|
|
206
|
+
```bash
|
|
207
|
+
# Check system status
|
|
208
|
+
ax status
|
|
209
|
+
|
|
210
|
+
# View configuration
|
|
211
|
+
ax config show
|
|
212
|
+
```
|
|
213
|
+
|
|
214
|
+
**"Out of memory"**
|
|
215
|
+
```bash
|
|
216
|
+
# Clear old memories
|
|
217
|
+
ax memory clear --before "2024-01-01"
|
|
218
|
+
|
|
219
|
+
# View memory stats
|
|
220
|
+
ax cache stats
|
|
221
|
+
```
|
|
222
|
+
|
|
223
|
+
### Getting Help
|
|
224
|
+
|
|
225
|
+
```bash
|
|
226
|
+
# View command help
|
|
227
|
+
ax --help
|
|
228
|
+
ax run --help
|
|
229
|
+
|
|
230
|
+
# Enable debug mode
|
|
231
|
+
ax --debug run backend "task"
|
|
232
|
+
|
|
233
|
+
# Search memory for similar past tasks
|
|
234
|
+
ax memory search "similar task"
|
|
235
|
+
```
|
|
236
|
+
|
|
237
|
+
## Best Practices
|
|
238
|
+
|
|
239
|
+
1. **Use Natural Language in Claude Code**: Let Claude Code coordinate with agents for complex tasks
|
|
240
|
+
2. **Leverage Memory**: Reference past decisions and designs
|
|
241
|
+
3. **Start Simple**: Test with small tasks before complex workflows
|
|
242
|
+
4. **Review Configurations**: Check `automatosx.config.json` for timeouts and retries
|
|
243
|
+
5. **Keep Agents Specialized**: Use the right agent for each task type
|
|
244
|
+
|
|
245
|
+
## Documentation
|
|
246
|
+
|
|
247
|
+
- **AutomatosX Docs**: https://github.com/defai-digital/automatosx
|
|
248
|
+
- **Agent Directory**: `.automatosx/agents/`
|
|
249
|
+
- **Configuration**: `automatosx.config.json`
|
|
250
|
+
- **Memory Database**: `.automatosx/memory/memories.db`
|
|
251
|
+
- **Workspace**: `automatosx/PRD/` (planning docs) and `automatosx/tmp/` (temporary files)
|
|
252
|
+
|
|
253
|
+
## Support
|
|
254
|
+
|
|
255
|
+
- Issues: https://github.com/defai-digital/automatosx/issues
|
|
256
|
+
- NPM: https://www.npmjs.com/package/@defai.digital/automatosx
|