stigmergy 1.2.0 → 1.2.8
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/LICENSE +18 -18
- package/README.md +31 -211
- package/STIGMERGY.md +70 -61
- package/docs/MULTI_USER_WIKI_COLLABORATION_SYSTEM.md +523 -0
- package/docs/PROJECT_CONSTITUTION.md +433 -433
- package/docs/PROJECT_STRUCTURE_CURRENT.md +80 -80
- package/docs/PROMPT_BASED_SKILLS_SYSTEM_DESIGN.md +458 -0
- package/docs/SKILL_IMPLEMENTATION_CONSTRAINTS_AND_ALIGNMENT.md +423 -0
- package/docs/TECHNICAL_FEASIBILITY_ANALYSIS.md +308 -0
- package/examples/calculator-example.js +72 -72
- package/examples/cline_usage_examples.md +364 -364
- package/examples/encryption-example.js +67 -67
- package/examples/json-parser-example.js +120 -120
- package/examples/json-validation-example.js +64 -64
- package/examples/multilingual-hook-demo.js +125 -0
- package/examples/rest-client-example.js +52 -52
- package/examples/rest_client_example.js +54 -54
- package/package.json +38 -20
- package/scripts/build.js +74 -74
- package/scripts/dependency-analyzer.js +101 -0
- package/scripts/generate-cli-docs.js +64 -0
- package/scripts/post-deployment-config.js +296 -296
- package/scripts/postuninstall.js +46 -0
- package/scripts/preinstall-check.js +173 -173
- package/scripts/preuninstall.js +75 -0
- package/scripts/publish.js +58 -268
- package/scripts/run-layered-tests.js +247 -0
- package/scripts/safe-install.js +139 -139
- package/scripts/simple-publish.js +57 -59
- package/src/adapters/claude/install_claude_integration.js +292 -0
- package/src/adapters/codebuddy/install_codebuddy_integration.js +349 -0
- package/src/adapters/codex/install_codex_integration.js +395 -0
- package/src/adapters/copilot/install_copilot_integration.js +716 -0
- package/src/adapters/gemini/install_gemini_integration.js +304 -0
- package/src/adapters/iflow/install_iflow_integration.js +304 -0
- package/src/adapters/qoder/install_qoder_integration.js +1090 -0
- package/src/adapters/qwen/install_qwen_integration.js +285 -0
- package/src/cli/router.js +562 -39
- package/src/core/cache_cleaner.js +82 -59
- package/src/core/cli_help_analyzer.js +297 -291
- package/src/core/cli_parameter_handler.js +5 -0
- package/src/core/cli_tools.js +6 -6
- package/src/core/coordination/index.js +2 -2
- package/src/core/coordination/nodejs/AdapterManager.js +30 -17
- package/src/core/coordination/nodejs/CLCommunication.js +28 -20
- package/src/core/coordination/nodejs/CLIIntegrationManager.js +72 -36
- package/src/core/coordination/nodejs/HealthChecker.js +13 -14
- package/src/core/coordination/nodejs/HookDeploymentManager.js +325 -63
- package/src/core/coordination/nodejs/StatisticsCollector.js +6 -6
- package/src/core/coordination/nodejs/index.js +29 -11
- package/src/core/coordination/nodejs/utils/Logger.js +1 -1
- package/src/core/enhanced_installer.js +92 -69
- package/src/core/enhanced_uninstaller.js +73 -53
- package/src/core/installer.js +815 -294
- package/src/core/multilingual/language-pattern-manager.js +172 -0
- package/src/core/smart_router.js +141 -26
- package/src/core/upgrade_manager.js +91 -46
- package/src/data_structures.js +1 -1
- package/src/deploy.js +2 -2
- package/src/index.js +3 -3
- package/src/test/cli-availability-checker.js +194 -0
- package/src/test/test-environment.js +289 -0
- package/src/utils/helpers.js +2 -2
- package/src/utils.js +7 -1
- package/test/multilingual/hook-deployment.test.js +91 -0
- package/test/multilingual/language-pattern-manager.test.js +140 -0
- package/test/multilingual/system-test.js +85 -0
- package/test/cache-cleaner-implemented.test.js +0 -328
- package/test/cache-cleaner.test.js +0 -390
- package/test/calculator.test.js +0 -215
- package/test/collision-test.js +0 -26
- package/test/comprehensive-enhanced-features.test.js +0 -252
- package/test/comprehensive-execution-test.js +0 -428
- package/test/conflict-prevention-test.js +0 -95
- package/test/cross-cli-detection-test.js +0 -33
- package/test/csv-processing-test.js +0 -36
- package/test/deploy-hooks-test.js +0 -250
- package/test/e2e/claude-cli-test.js +0 -128
- package/test/e2e/collaboration-test.js +0 -75
- package/test/e2e/comprehensive-test.js +0 -431
- package/test/e2e/error-handling-test.js +0 -90
- package/test/e2e/individual-tool-test.js +0 -143
- package/test/e2e/other-cli-test.js +0 -130
- package/test/e2e/qoder-cli-test.js +0 -128
- package/test/e2e/run-e2e-tests.js +0 -73
- package/test/e2e/test-data.js +0 -88
- package/test/e2e/test-utils.js +0 -222
- package/test/encryption-simple-test.js +0 -110
- package/test/encryption.test.js +0 -129
- package/test/enhanced-main-alignment.test.js +0 -298
- package/test/enhanced-uninstaller-implemented.test.js +0 -271
- package/test/enhanced-uninstaller.test.js +0 -284
- package/test/error-handling-test.js +0 -341
- package/test/fibonacci.test.js +0 -178
- package/test/final-deploy-test.js +0 -221
- package/test/final-install-test.js +0 -226
- package/test/hash-table-demo.js +0 -33
- package/test/hash-table-test.js +0 -26
- package/test/hash_table_test.js +0 -114
- package/test/hook-system-integration-test.js +0 -307
- package/test/iflow-integration-test.js +0 -292
- package/test/improved-install-test.js +0 -362
- package/test/install-command-test.js +0 -370
- package/test/json-parser-test.js +0 -161
- package/test/json-validation-test.js +0 -164
- package/test/natural-language-skills-test.js +0 -320
- package/test/nl-integration-test.js +0 -179
- package/test/parameter-parsing-test.js +0 -143
- package/test/plugin-deployment-test.js +0 -316
- package/test/postinstall-test.js +0 -269
- package/test/python-plugins-test.js +0 -259
- package/test/real-test.js +0 -435
- package/test/remaining-adapters-test.js +0 -256
- package/test/rest-client-test.js +0 -56
- package/test/rest_client.test.js +0 -85
- package/test/safe-installation-cleaner.test.js +0 -343
- package/test/simple-iflow-hook-test.js +0 -137
- package/test/stigmergy-upgrade-test.js +0 -243
- package/test/system-compatibility-test.js +0 -467
- package/test/tdd-deploy-fix-test.js +0 -324
- package/test/tdd-fixes-test.js +0 -211
- package/test/third-party-skills-test.js +0 -321
- package/test/tool-selection-integration-test.js +0 -158
- package/test/unit/calculator-full.test.js +0 -191
- package/test/unit/calculator-simple.test.js +0 -96
- package/test/unit/calculator.test.js +0 -97
- package/test/unit/cli-scanner.test.js +0 -291
- package/test/unit/cli_parameter_handler.test.js +0 -116
- package/test/unit/cross-cli-executor.test.js +0 -399
- package/test/weather-processor.test.js +0 -104
package/LICENSE
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
MIT 许可证
|
|
2
|
-
|
|
3
|
-
版权所有 (c) 2025 Zhang
|
|
4
|
-
|
|
5
|
-
特此授权,任何人免费获得此软件及相关文档文件("软件")的副本,
|
|
6
|
-
有权使用、复制、修改、合并、发布、分发、再许可和/或出售软件的副本,
|
|
7
|
-
并有权授予软件使用许可,但须遵守以下条件:
|
|
8
|
-
|
|
9
|
-
软件中包含以上的版权声明和本许可声明。
|
|
10
|
-
|
|
11
|
-
本软件按"现状"提供,不提供任何形式的明示或暗示担保,
|
|
12
|
-
包括但不限于适销性、特定用途的适用性和非侵权性。
|
|
13
|
-
在任何情况下,作者或版权持有人均不对任何索赔、损害或其他
|
|
14
|
-
责任承担责任,无论是合同诉讼、侵权诉讼还是其它诉讼行为,
|
|
15
|
-
与本软件或本软件的使用有关或与其产生的其他交易有关。
|
|
16
|
-
|
|
17
|
-
联系方式:
|
|
18
|
-
- 项目官网: http://www.socienceAI.com
|
|
1
|
+
MIT 许可证
|
|
2
|
+
|
|
3
|
+
版权所有 (c) 2025 Zhang
|
|
4
|
+
|
|
5
|
+
特此授权,任何人免费获得此软件及相关文档文件("软件")的副本,
|
|
6
|
+
有权使用、复制、修改、合并、发布、分发、再许可和/或出售软件的副本,
|
|
7
|
+
并有权授予软件使用许可,但须遵守以下条件:
|
|
8
|
+
|
|
9
|
+
软件中包含以上的版权声明和本许可声明。
|
|
10
|
+
|
|
11
|
+
本软件按"现状"提供,不提供任何形式的明示或暗示担保,
|
|
12
|
+
包括但不限于适销性、特定用途的适用性和非侵权性。
|
|
13
|
+
在任何情况下,作者或版权持有人均不对任何索赔、损害或其他
|
|
14
|
+
责任承担责任,无论是合同诉讼、侵权诉讼还是其它诉讼行为,
|
|
15
|
+
与本软件或本软件的使用有关或与其产生的其他交易有关。
|
|
16
|
+
|
|
17
|
+
联系方式:
|
|
18
|
+
- 项目官网: http://www.socienceAI.com
|
|
19
19
|
- 技术支持: 3061176@qq.com
|
package/README.md
CHANGED
|
@@ -1,240 +1,60 @@
|
|
|
1
|
-
# Stigmergy CLI
|
|
1
|
+
# Stigmergy CLI Multi-Agents System
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
>
|
|
5
|
-
> Stigmergy CLI enables existing AI CLI tools to collaborate with each other through a plugin system, rather than replacing them.
|
|
3
|
+
A comprehensive system for collaboration between multiple AI CLI tools. This system enables seamless cross-CLI communication and intelligent task routing between different AI tools.
|
|
6
4
|
|
|
7
|
-
|
|
8
|
-
[](https://www.npmjs.com/package/stigmergy)
|
|
9
|
-
[](LICENSE)
|
|
10
|
-
[]()
|
|
11
|
-
|
|
12
|
-
## Quick Start
|
|
13
|
-
|
|
14
|
-
### One-Click Deployment (Recommended)
|
|
15
|
-
|
|
16
|
-
```bash
|
|
17
|
-
# Install Stigmergy CLI globally
|
|
18
|
-
npm install -g stigmergy
|
|
19
|
-
|
|
20
|
-
# Run interactive setup
|
|
21
|
-
stigmergy
|
|
22
|
-
```
|
|
5
|
+
## Features
|
|
23
6
|
|
|
24
|
-
|
|
25
|
-
-
|
|
26
|
-
-
|
|
27
|
-
-
|
|
28
|
-
-
|
|
7
|
+
- 🤖 Multi-agent AI CLI tools collaboration (Claude, Gemini, Qwen, iFlow, Qoder, CodeBuddy, Copilot, Codex)
|
|
8
|
+
- 🎯 Natural language skills processing and cross-CLI task routing
|
|
9
|
+
- 🧠 Cross-CLI memory sharing and session recovery
|
|
10
|
+
- 🔗 Hook integration for seamless AI tool usage
|
|
11
|
+
- 🌍 JavaScript-based implementation (no Python dependencies)
|
|
12
|
+
- ⚡ Intelligent command routing and execution
|
|
29
13
|
|
|
30
|
-
|
|
14
|
+
## Quick Start
|
|
31
15
|
|
|
32
16
|
```bash
|
|
17
|
+
# Install the core system
|
|
33
18
|
npm install -g stigmergy
|
|
34
|
-
stigmergy --help
|
|
35
|
-
```
|
|
36
|
-
|
|
37
|
-
## Supported AI CLI Tools
|
|
38
|
-
|
|
39
|
-
Stigmergy CLI enhances the following AI CLI tools:
|
|
40
|
-
|
|
41
|
-
- **Claude CLI** - Anthropic's Claude assistant
|
|
42
|
-
- **Gemini CLI** - Google's Gemini AI
|
|
43
|
-
- **Qwen CLI** - Alibaba's Qwen model
|
|
44
|
-
- **iFlow CLI** - Intelligent workflow automation
|
|
45
|
-
- **Qoder CLI** - AI-powered code generation
|
|
46
|
-
- **CodeBuddy CLI** - Programming assistant
|
|
47
|
-
- **GitHub Copilot CLI** - Microsoft's Copilot
|
|
48
|
-
- **OpenAI Codex CLI** - OpenAI's code completion
|
|
49
|
-
|
|
50
|
-
## Dual Implementation Architecture
|
|
51
|
-
|
|
52
|
-
Stigmergy CLI features a unique dual implementation architecture:
|
|
53
|
-
|
|
54
|
-
### Node.js First Approach
|
|
55
|
-
- **Primary Implementation**: Native Node.js coordination layer
|
|
56
|
-
- **No System Python Required**: Works without Python installation
|
|
57
|
-
- **Graceful Degradation**: Falls back to Python when needed
|
|
58
|
-
- **Enhanced Performance**: Optimized for modern Node.js environments
|
|
59
|
-
|
|
60
|
-
### Python Fallback
|
|
61
|
-
- **Secondary Implementation**: Python-based coordination layer
|
|
62
|
-
- **Legacy Support**: Maintains compatibility with existing installations
|
|
63
|
-
- **Automatic Detection**: Seamlessly switches based on system capabilities
|
|
64
|
-
|
|
65
|
-
This architecture ensures maximum compatibility and reliability across different environments.
|
|
66
|
-
|
|
67
|
-
## Usage
|
|
68
|
-
|
|
69
|
-
### Basic Commands
|
|
70
|
-
|
|
71
|
-
```bash
|
|
72
|
-
# Show help
|
|
73
|
-
stigmergy --help
|
|
74
|
-
|
|
75
|
-
# Check version
|
|
76
|
-
stigmergy --version
|
|
77
19
|
|
|
78
20
|
# Scan for available AI CLI tools
|
|
79
21
|
stigmergy scan
|
|
80
22
|
|
|
81
|
-
#
|
|
82
|
-
stigmergy status
|
|
83
|
-
|
|
84
|
-
# Interactive installation mode
|
|
23
|
+
# Install missing tools
|
|
85
24
|
stigmergy install
|
|
86
25
|
|
|
87
|
-
# Deploy hooks
|
|
26
|
+
# Deploy hooks for cross-CLI integration
|
|
88
27
|
stigmergy deploy
|
|
89
28
|
|
|
90
|
-
#
|
|
91
|
-
stigmergy
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
stigmergy setup
|
|
29
|
+
# Use cross-CLI collaboration
|
|
30
|
+
stigmergy claude "write a Python function"
|
|
31
|
+
stigmergy gemini "translate this text"
|
|
32
|
+
stigmergy qwen "analyze this code"
|
|
95
33
|
```
|
|
96
34
|
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
Once installed, you can use AI CLI tools to collaborate with each other:
|
|
35
|
+
## Cross-CLI Communication
|
|
100
36
|
|
|
37
|
+
When you need to call other AI tools, use the following format:
|
|
101
38
|
```bash
|
|
102
|
-
|
|
103
|
-
stigmergy call claude "analyze this function"
|
|
104
|
-
|
|
105
|
-
# Use Gemini for documentation
|
|
106
|
-
stigmergy call gemini "generate docs for this file"
|
|
107
|
-
|
|
108
|
-
# Use Qwen for translation
|
|
109
|
-
stigmergy call qwen "translate to English"
|
|
110
|
-
|
|
111
|
-
# Use Copilot for code suggestions
|
|
112
|
-
stigmergy call copilot "suggest improvements"
|
|
39
|
+
stigmergy <tool_name> <task_description>
|
|
113
40
|
```
|
|
114
41
|
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
Stigmergy CLI now supports user authentication to protect your AI tools and configurations:
|
|
118
|
-
|
|
42
|
+
Examples:
|
|
119
43
|
```bash
|
|
120
|
-
|
|
121
|
-
stigmergy
|
|
122
|
-
|
|
123
|
-
# Log in to your account
|
|
124
|
-
stigmergy login <username> <password>
|
|
125
|
-
|
|
126
|
-
# Check authentication status
|
|
127
|
-
stigmergy auth-status
|
|
128
|
-
|
|
129
|
-
# Log out of your account
|
|
130
|
-
stigmergy logout
|
|
131
|
-
```
|
|
132
|
-
|
|
133
|
-
Protected commands (like `call`, `setup`, `deploy`, `install`) require authentication before use.
|
|
134
|
-
|
|
135
|
-
### Installation Workflow
|
|
136
|
-
|
|
137
|
-
1. **Scan**: `stigmergy scan` - Detects installed AI CLI tools
|
|
138
|
-
2. **Install**: `stigmergy install` - Interactive tool installation
|
|
139
|
-
3. **Deploy**: `stigmergy deploy` - Sets up cross-tool communication
|
|
140
|
-
4. **Use**: `stigmergy call <tool> <prompt>` - Start collaborating
|
|
141
|
-
|
|
142
|
-
## Safety and Conflict Prevention
|
|
143
|
-
|
|
144
|
-
Stigmergy includes a comprehensive conflict prevention system to ensure it doesn't interfere with other CLI tools:
|
|
145
|
-
|
|
146
|
-
- **Pre-installation checks** to prevent conflicts
|
|
147
|
-
- **Runtime monitoring** for system integrity
|
|
148
|
-
- **Automatic conflict resolution** tools
|
|
149
|
-
- **Emergency recovery** procedures
|
|
150
|
-
|
|
151
|
-
If you experience issues with other CLI tools:
|
|
152
|
-
```bash
|
|
153
|
-
npm run fix-node-conflict
|
|
154
|
-
```
|
|
155
|
-
|
|
156
|
-
For more information, see [Conflict Prevention System](docs/CONFLICT_PREVENTION.md).
|
|
157
|
-
|
|
158
|
-
```json
|
|
159
|
-
{
|
|
160
|
-
"version": "1.0.76",
|
|
161
|
-
"installed": "2025-12-07T00:00:00.000Z",
|
|
162
|
-
"projectPath": "/path/to/project",
|
|
163
|
-
"availableTools": ["claude", "gemini", "qwen"],
|
|
164
|
-
"collaboration": {
|
|
165
|
-
"enabled": true,
|
|
166
|
-
"protocols": [
|
|
167
|
-
"Use {cli} to {task}",
|
|
168
|
-
"Call {cli} to {task}",
|
|
169
|
-
"Ask {cli} for {task}"
|
|
170
|
-
]
|
|
171
|
-
}
|
|
172
|
-
}
|
|
173
|
-
```
|
|
174
|
-
|
|
175
|
-
### Project Configuration
|
|
176
|
-
|
|
177
|
-
Each project gets a `STIGMERGY.md` file with tool-specific usage instructions.
|
|
178
|
-
|
|
179
|
-
## Features
|
|
180
|
-
|
|
181
|
-
- **Automated Detection**: Scans for installed AI CLI tools
|
|
182
|
-
- **Interactive Installation**: One-click installation of missing tools
|
|
183
|
-
- **Cross-Tool Communication**: Enables AI CLI tools to work together
|
|
184
|
-
- **Hook Integration**: Deploys integration hooks to each tool
|
|
185
|
-
- **International Support**: Pure ANSI character output for global compatibility
|
|
186
|
-
- **Auto-Setup**: Configures everything automatically on npm install
|
|
187
|
-
|
|
188
|
-
## Development
|
|
189
|
-
|
|
190
|
-
### Project Structure
|
|
191
|
-
|
|
44
|
+
stigmergy claude "write a Python function"
|
|
45
|
+
stigmergy gemini "translate this text"
|
|
46
|
+
stigmergy qwen "analyze this code"
|
|
192
47
|
```
|
|
193
|
-
stigmergy-CLI-Multi-Agents/
|
|
194
|
-
├── src/
|
|
195
|
-
│ ├── main.js # Main CLI logic
|
|
196
|
-
│ └── index.js # Entry point
|
|
197
|
-
├── package.json # NPM configuration
|
|
198
|
-
└── README.md # This file
|
|
199
|
-
```
|
|
200
|
-
|
|
201
|
-
### Building from Source
|
|
202
48
|
|
|
203
|
-
|
|
204
|
-
# Clone the repository
|
|
205
|
-
git clone https://github.com/ptreezh/stigmergy-CLI-Multi-Agents.git
|
|
206
|
-
cd stigmergy-CLI-Multi-Agents
|
|
49
|
+
Available tools: claude, gemini, qwen, iflow, qodercli, codebuddy, copilot, codex
|
|
207
50
|
|
|
208
|
-
|
|
209
|
-
npm install
|
|
51
|
+
## Documentation
|
|
210
52
|
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
53
|
+
- [Main System](./README.md)
|
|
54
|
+
- [Skills Package](./packages/skills/README.md)
|
|
55
|
+
- [Resume Session](./packages/resume/README.md)
|
|
56
|
+
- [Session Management](./packages/sessions/README.md)
|
|
214
57
|
|
|
215
58
|
## Contributing
|
|
216
59
|
|
|
217
|
-
|
|
218
|
-
2. Create a feature branch
|
|
219
|
-
3. Make your changes
|
|
220
|
-
4. Test thoroughly
|
|
221
|
-
5. Submit a pull request
|
|
222
|
-
|
|
223
|
-
## License
|
|
224
|
-
|
|
225
|
-
MIT License - see [LICENSE](LICENSE) file for details.
|
|
226
|
-
|
|
227
|
-
## Support
|
|
228
|
-
|
|
229
|
-
- **Documentation**: https://github.com/ptreezh/stigmergy-CLI-Multi-Agents
|
|
230
|
-
- **Issues**: https://github.com/ptreezh/stigmergy-CLI-Multi-Agents/issues
|
|
231
|
-
- **NPM**: https://www.npmjs.com/package/stigmergy
|
|
232
|
-
|
|
233
|
-
## Changelog
|
|
234
|
-
|
|
235
|
-
### Version 1.0.76
|
|
236
|
-
- Unified international version with pure ANSI characters
|
|
237
|
-
- Single source of truth for all CLI logic
|
|
238
|
-
- Automated installation and deployment system
|
|
239
|
-
- Enhanced error handling and validation
|
|
240
|
-
- Removed all redundant scripts and configurations
|
|
60
|
+
This project follows the MIT License. Contributions are welcome!
|
package/STIGMERGY.md
CHANGED
|
@@ -1,62 +1,71 @@
|
|
|
1
|
-
# Stigmergy Multi-AI CLI Collaboration
|
|
2
|
-
|
|
3
|
-
This project is configured for Stigmergy-based multi-AI CLI collaboration.
|
|
4
|
-
|
|
5
|
-
## Available AI CLI Tools
|
|
6
|
-
|
|
7
|
-
Cross-CLI communication is enabled between all supported AI tools:
|
|
8
|
-
- Claude (Anthropic)
|
|
9
|
-
- Qwen (Alibaba)
|
|
10
|
-
- Gemini (Google)
|
|
11
|
-
- iFlow (Intelligent Workflow)
|
|
12
|
-
- Qoder CLI
|
|
13
|
-
- CodeBuddy
|
|
14
|
-
- GitHub Copilot
|
|
15
|
-
- OpenAI Codex
|
|
16
|
-
|
|
17
|
-
## Cross-CLI Collaboration
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
### How It Works
|
|
22
|
-
1. Each CLI tool has hooks deployed by Stigmergy
|
|
23
|
-
2.
|
|
24
|
-
3. The target tool executes the requested task and returns results
|
|
25
|
-
|
|
26
|
-
### Usage Pattern
|
|
27
|
-
|
|
28
|
-
```bash
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
```
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
-
|
|
49
|
-
-
|
|
50
|
-
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
1
|
+
# Stigmergy Multi-AI CLI Collaboration
|
|
2
|
+
|
|
3
|
+
This project is configured for Stigmergy-based multi-AI CLI collaboration.
|
|
4
|
+
|
|
5
|
+
## Available AI CLI Tools
|
|
6
|
+
|
|
7
|
+
Cross-CLI communication is enabled between all supported AI tools:
|
|
8
|
+
- Claude (Anthropic)
|
|
9
|
+
- Qwen (Alibaba)
|
|
10
|
+
- Gemini (Google)
|
|
11
|
+
- iFlow (Intelligent Workflow)
|
|
12
|
+
- Qoder CLI
|
|
13
|
+
- CodeBuddy
|
|
14
|
+
- GitHub Copilot
|
|
15
|
+
- OpenAI Codex
|
|
16
|
+
|
|
17
|
+
## Cross-CLI Collaboration
|
|
18
|
+
|
|
19
|
+
Stigmergy provides a unified command interface for cross-CLI communication:
|
|
20
|
+
|
|
21
|
+
### How It Works
|
|
22
|
+
1. Each CLI tool has hooks deployed by Stigmergy
|
|
23
|
+
2. Use the stigmergy command to route tasks to specific AI tools
|
|
24
|
+
3. The target tool executes the requested task and returns results
|
|
25
|
+
|
|
26
|
+
### Usage Pattern
|
|
27
|
+
Use the stigmergy command with the following format:
|
|
28
|
+
```bash
|
|
29
|
+
stigmergy <tool_name> <task_description>
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
Examples:
|
|
33
|
+
```bash
|
|
34
|
+
stigmergy claude "write a Python function"
|
|
35
|
+
stigmergy gemini "translate this text"
|
|
36
|
+
stigmergy qwen "analyze this code"
|
|
37
|
+
stigmergy iflow "create a workflow"
|
|
38
|
+
stigmergy qodercli "review this code"
|
|
39
|
+
stigmergy codebuddy "help me debug"
|
|
40
|
+
stigmergy copilot "suggest improvements"
|
|
41
|
+
stigmergy codex "generate documentation"
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
## Project Memory and Documentation
|
|
45
|
+
|
|
46
|
+
This project automatically generates documentation for each CLI tool:
|
|
47
|
+
- claude.md
|
|
48
|
+
- qwen.md
|
|
49
|
+
- gemini.md
|
|
50
|
+
- iflow.md
|
|
51
|
+
- qodercli.md
|
|
52
|
+
- codebuddy.md
|
|
53
|
+
- copilot.md
|
|
54
|
+
- codex.md
|
|
55
|
+
|
|
56
|
+
Each documentation file contains:
|
|
57
|
+
- Tool configuration information
|
|
58
|
+
- Usage patterns
|
|
59
|
+
- Cross-CLI communication instructions
|
|
60
|
+
|
|
61
|
+
## Configuration
|
|
62
|
+
|
|
63
|
+
Global configuration: `~/.stigmergy/config.json`
|
|
64
|
+
|
|
65
|
+
## Getting Started
|
|
66
|
+
|
|
67
|
+
1. Run `stigmergy status` to verify setup
|
|
68
|
+
2. Check individual CLI documentation files for specific usage instructions
|
|
69
|
+
3. Use natural language requests within any CLI tool to trigger cross-CLI communication
|
|
70
|
+
|
|
62
71
|
For more information: https://github.com/ptreezh/stigmergy-CLI-Multi-Agents
|