stigmergy 1.2.12 → 1.3.1-beta
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 +39 -3
- package/STIGMERGY.md +3 -0
- package/config/builtin-skills.json +43 -0
- package/config/enhanced-cli-config.json +438 -0
- package/docs/CLI_TOOLS_AGENT_SKILL_ANALYSIS.md +463 -0
- package/docs/DESIGN_CLI_HELP_ANALYZER_REFACTOR.md +726 -0
- package/docs/ENHANCED_CLI_AGENT_SKILL_CONFIG.md +285 -0
- package/docs/IMPLEMENTATION_CHECKLIST_CLI_HELP_ANALYZER_REFACTOR.md +1268 -0
- package/docs/INSTALLER_ARCHITECTURE.md +257 -0
- package/docs/LESSONS_LEARNED.md +252 -0
- package/docs/SPECS_CLI_HELP_ANALYZER_REFACTOR.md +287 -0
- package/docs/SUDO_PROBLEM_AND_SOLUTION.md +529 -0
- package/docs/correct-skillsio-implementation.md +368 -0
- package/docs/development_guidelines.md +276 -0
- package/docs/independent-resume-implementation.md +198 -0
- package/docs/resumesession-final-implementation.md +195 -0
- package/docs/resumesession-usage.md +87 -0
- package/package.json +19 -9
- package/scripts/analyze-router.js +168 -0
- package/scripts/run-comprehensive-tests.js +230 -0
- package/scripts/run-quick-tests.js +90 -0
- package/scripts/test-runner.js +344 -0
- package/skills/resumesession/INDEPENDENT_SKILL.md +171 -0
- package/skills/resumesession/SKILL.md +127 -0
- package/skills/resumesession/__init__.py +33 -0
- package/skills/resumesession/implementations/simple-resume.js +13 -0
- package/src/adapters/claude/install_claude_integration.js +9 -1
- package/src/adapters/codebuddy/install_codebuddy_integration.js +3 -1
- package/src/adapters/codex/install_codex_integration.js +15 -5
- package/src/adapters/gemini/install_gemini_integration.js +3 -1
- package/src/adapters/qwen/install_qwen_integration.js +3 -1
- package/src/cli/commands/autoinstall.js +65 -0
- package/src/cli/commands/errors.js +190 -0
- package/src/cli/commands/independent-resume.js +395 -0
- package/src/cli/commands/install.js +179 -0
- package/src/cli/commands/permissions.js +108 -0
- package/src/cli/commands/project.js +485 -0
- package/src/cli/commands/scan.js +97 -0
- package/src/cli/commands/simple-resume.js +377 -0
- package/src/cli/commands/skills.js +158 -0
- package/src/cli/commands/status.js +113 -0
- package/src/cli/commands/stigmergy-resume.js +775 -0
- package/src/cli/commands/system.js +301 -0
- package/src/cli/commands/universal-resume.js +394 -0
- package/src/cli/router-beta.js +471 -0
- package/src/cli/utils/environment.js +75 -0
- package/src/cli/utils/formatters.js +47 -0
- package/src/cli/utils/skills_cache.js +92 -0
- package/src/core/cache_cleaner.js +1 -0
- package/src/core/cli_adapters.js +345 -0
- package/src/core/cli_help_analyzer.js +582 -26
- package/src/core/cli_path_detector.js +702 -709
- package/src/core/cli_tools.js +515 -160
- package/src/core/coordination/nodejs/CLIIntegrationManager.js +18 -0
- package/src/core/coordination/nodejs/HookDeploymentManager.js +242 -412
- package/src/core/coordination/nodejs/HookDeploymentManager.refactored.js +323 -0
- package/src/core/coordination/nodejs/generators/CLIAdapterGenerator.js +363 -0
- package/src/core/coordination/nodejs/generators/ResumeSessionGenerator.js +932 -0
- package/src/core/coordination/nodejs/generators/SkillsIntegrationGenerator.js +1395 -0
- package/src/core/coordination/nodejs/generators/index.js +12 -0
- package/src/core/enhanced_cli_installer.js +1208 -608
- package/src/core/enhanced_cli_parameter_handler.js +402 -0
- package/src/core/execution_mode_detector.js +222 -0
- package/src/core/installer.js +151 -106
- package/src/core/local_skill_scanner.js +732 -0
- package/src/core/multilingual/language-pattern-manager.js +1 -1
- package/src/core/skills/BuiltinSkillsDeployer.js +188 -0
- package/src/core/skills/StigmergySkillManager.js +123 -16
- package/src/core/skills/embedded-openskills/SkillParser.js +7 -3
- package/src/core/smart_router.js +291 -2
- package/src/index.js +10 -4
- package/src/utils.js +66 -7
- package/test/cli-integration.test.js +304 -0
- package/test/direct_smart_router_test.js +88 -0
- package/test/enhanced-cli-agent-skill-test.js +485 -0
- package/test/simple_test.js +82 -0
- package/test/smart_router_test_runner.js +123 -0
- package/test/smart_routing_edge_cases.test.js +284 -0
- package/test/smart_routing_simple_verification.js +139 -0
- package/test/smart_routing_verification.test.js +346 -0
- package/test/specific-cli-agent-skill-analysis.js +385 -0
- package/test/unit/smart_router.test.js +295 -0
- package/test/very_simple_test.js +54 -0
- package/src/cli/router.js +0 -1737
package/README.md
CHANGED
|
@@ -4,12 +4,17 @@ A comprehensive system for collaboration between multiple AI CLI tools. This sys
|
|
|
4
4
|
|
|
5
5
|
## Features
|
|
6
6
|
|
|
7
|
-
- 🤖 Multi-agent AI CLI tools collaboration (Claude, Gemini, Qwen, iFlow, Qoder, CodeBuddy, Copilot, Codex)
|
|
7
|
+
- 🤖 Multi-agent AI CLI tools collaboration (Claude, Gemini, Qwen, iFlow, Qoder, CodeBuddy, Copilot, Codex, Kode)
|
|
8
8
|
- 🎯 Natural language skills processing and cross-CLI task routing
|
|
9
|
-
- 🧠 Cross-CLI memory sharing and session recovery
|
|
9
|
+
- 🧠 Cross-CLI memory sharing and session recovery (ResumeSession v1.2.1)
|
|
10
10
|
- 🔗 Hook integration for seamless AI tool usage
|
|
11
11
|
- 🌍 JavaScript-based implementation (no Python dependencies)
|
|
12
12
|
- ⚡ Intelligent command routing and execution
|
|
13
|
+
- 🔄 Smart AI tool auto-routing based on task analysis
|
|
14
|
+
- 📦 Complete project setup with `stigmergy setup`
|
|
15
|
+
- 🔍 Advanced CLI tool scanning and status checking
|
|
16
|
+
- 🛠️ Automated installation and configuration management
|
|
17
|
+
- 🌐 12-language natural language pattern support (English, Chinese, Japanese, German, French, Spanish, Italian, Russian, Korean, Turkish, Portuguese, Arabic)
|
|
13
18
|
|
|
14
19
|
## Quick Start
|
|
15
20
|
|
|
@@ -32,16 +37,31 @@ sudo npm install -g stigmergy
|
|
|
32
37
|
### Setup and Use
|
|
33
38
|
|
|
34
39
|
```bash
|
|
40
|
+
# Complete setup (install + deploy + init)
|
|
41
|
+
stigmergy setup
|
|
42
|
+
|
|
43
|
+
# Or step by step:
|
|
35
44
|
# Install all AI CLI tools
|
|
36
45
|
stigmergy install
|
|
37
46
|
|
|
38
47
|
# Deploy hooks for cross-CLI integration
|
|
39
48
|
stigmergy deploy
|
|
40
49
|
|
|
50
|
+
# Initialize project for session recovery
|
|
51
|
+
stigmergy init
|
|
52
|
+
|
|
41
53
|
# Use cross-CLI collaboration
|
|
42
54
|
stigmergy claude "write a Python function"
|
|
43
55
|
stigmergy gemini "translate this text"
|
|
44
56
|
stigmergy qwen "analyze this code"
|
|
57
|
+
stigmergy kode "use digital marxist agent to analyze worker alienation"
|
|
58
|
+
|
|
59
|
+
# Smart routing (auto-choose best tool)
|
|
60
|
+
stigmergy call "create a modern web application"
|
|
61
|
+
|
|
62
|
+
# 12-language natural language support
|
|
63
|
+
stigmergy call "请用 kode 帮我分析这个代码"
|
|
64
|
+
stigmergy call "kodeを使って分析してください"
|
|
45
65
|
```
|
|
46
66
|
|
|
47
67
|
### Permission Issues?
|
|
@@ -58,6 +78,15 @@ npm install -g stigmergy --force
|
|
|
58
78
|
sudo npm install -g stigmergy --unsafe-perm=true --allow-root
|
|
59
79
|
```
|
|
60
80
|
|
|
81
|
+
## 🆕 New in Version 1.3.0-beta.0
|
|
82
|
+
|
|
83
|
+
- 🔄 **Smart AI Tool Routing**: `stigmergy call` automatically chooses the best AI tool
|
|
84
|
+
- 📦 **Complete Setup Command**: `stigmergy setup` handles install + deploy + init
|
|
85
|
+
- 🧠 **ResumeSession Integration**: Built-in session recovery with v1.2.1
|
|
86
|
+
- ⚡ **Modular Architecture**: 92.4% size reduction with improved maintainability
|
|
87
|
+
- 🔍 **Enhanced CLI Discovery**: Better path detection and tool availability checking
|
|
88
|
+
- 🛠️ **Automated Installation**: npm postinstall auto-configuration support
|
|
89
|
+
|
|
61
90
|
## Cross-CLI Communication
|
|
62
91
|
|
|
63
92
|
When you need to call other AI tools, use the following format:
|
|
@@ -72,7 +101,14 @@ stigmergy gemini "translate this text"
|
|
|
72
101
|
stigmergy qwen "analyze this code"
|
|
73
102
|
```
|
|
74
103
|
|
|
75
|
-
|
|
104
|
+
### Smart AI Tool Routing
|
|
105
|
+
```bash
|
|
106
|
+
# Let Stigmergy automatically choose the best tool
|
|
107
|
+
stigmergy call "create a React component with TypeScript"
|
|
108
|
+
stigmergy call "analyze this database schema"
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
Available tools: claude, gemini, qwen, iflow, qodercli, codebuddy, copilot, codex, kode
|
|
76
112
|
|
|
77
113
|
## Documentation
|
|
78
114
|
|
package/STIGMERGY.md
CHANGED
|
@@ -13,6 +13,7 @@ Cross-CLI communication is enabled between all supported AI tools:
|
|
|
13
13
|
- CodeBuddy
|
|
14
14
|
- GitHub Copilot
|
|
15
15
|
- OpenAI Codex
|
|
16
|
+
- Kode (Multi-Model Collaboration System)
|
|
16
17
|
|
|
17
18
|
## Project Contributors
|
|
18
19
|
|
|
@@ -49,6 +50,7 @@ stigmergy qodercli "review this code"
|
|
|
49
50
|
stigmergy codebuddy "help me debug"
|
|
50
51
|
stigmergy copilot "suggest improvements"
|
|
51
52
|
stigmergy codex "generate documentation"
|
|
53
|
+
stigmergy kode "use digital marxist agent for analysis"
|
|
52
54
|
```
|
|
53
55
|
|
|
54
56
|
## Project Memory and Documentation
|
|
@@ -62,6 +64,7 @@ This project automatically generates documentation for each CLI tool:
|
|
|
62
64
|
- codebuddy.md
|
|
63
65
|
- copilot.md
|
|
64
66
|
- codex.md
|
|
67
|
+
- kode.md
|
|
65
68
|
|
|
66
69
|
Each documentation file contains:
|
|
67
70
|
- Tool configuration information
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "1.0.0",
|
|
3
|
+
"description": "Stigmergy built-in skills configuration",
|
|
4
|
+
"skills": [
|
|
5
|
+
{
|
|
6
|
+
"name": "resumesession",
|
|
7
|
+
"displayName": "ResumeSession",
|
|
8
|
+
"description": "Cross-CLI session recovery and history management",
|
|
9
|
+
"version": "1.0.0",
|
|
10
|
+
"author": "stigmergy",
|
|
11
|
+
"type": "builtin",
|
|
12
|
+
"category": "session-management",
|
|
13
|
+
"entryPoint": "src/cli/commands/stigmergy-resume.js",
|
|
14
|
+
"agentskills": {
|
|
15
|
+
"name": "resumesession",
|
|
16
|
+
"description": "Cross-CLI session recovery and history management",
|
|
17
|
+
"version": "1.0.0",
|
|
18
|
+
"author": "stigmergy"
|
|
19
|
+
},
|
|
20
|
+
"deployment": {
|
|
21
|
+
"autoDeploy": true,
|
|
22
|
+
"targetCLIs": ["claude", "codex", "iflow", "qwen", "qodercli", "codebuddy"],
|
|
23
|
+
"files": [
|
|
24
|
+
{
|
|
25
|
+
"source": "skills/resumesession/SKILL.md",
|
|
26
|
+
"destination": "skills/resumesession/SKILL.md"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"source": "skills/resumesession/__init__.py",
|
|
30
|
+
"destination": "skills/resumesession/__init__.py"
|
|
31
|
+
}
|
|
32
|
+
]
|
|
33
|
+
},
|
|
34
|
+
"commands": {
|
|
35
|
+
"stigmergy": {
|
|
36
|
+
"name": "resume",
|
|
37
|
+
"description": "Resume session - Cross-CLI session recovery and history management",
|
|
38
|
+
"handler": "src/cli/commands/simple-resume.js"
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
]
|
|
43
|
+
}
|
|
@@ -0,0 +1,438 @@
|
|
|
1
|
+
{
|
|
2
|
+
"enhanced_cli_config": {
|
|
3
|
+
"version": "2.0.0",
|
|
4
|
+
"last_updated": "2025-12-22",
|
|
5
|
+
"description": "Enhanced CLI configuration with agent and skill support",
|
|
6
|
+
"cli_patterns": {
|
|
7
|
+
"claude": {
|
|
8
|
+
"name": "Claude Code",
|
|
9
|
+
"command_format": "claude -p \"{prompt}\"",
|
|
10
|
+
"agent_detection": true,
|
|
11
|
+
"skill_detection": true,
|
|
12
|
+
"natural_language_support": true,
|
|
13
|
+
"positional_args": false,
|
|
14
|
+
"agent_types": ["expert", "skill", "analysis", "agent"],
|
|
15
|
+
"skill_keywords": ["技能", "智能体", "分析", "工具", "方法", "马克思", "异化", "阶级"],
|
|
16
|
+
"examples": [
|
|
17
|
+
"claude -p \"请使用异化分析技能分析程序员异化现象\"",
|
|
18
|
+
"claude -p \"请使用数字马克思智能体进行阶级分析\"",
|
|
19
|
+
"claude -p \"使用技术分析技能分析AI对程序员的影响\""
|
|
20
|
+
],
|
|
21
|
+
"capabilities": {
|
|
22
|
+
"agent_support": true,
|
|
23
|
+
"skill_support": true,
|
|
24
|
+
"chinese_support": true,
|
|
25
|
+
"natural_language": true,
|
|
26
|
+
"context_understanding": true
|
|
27
|
+
},
|
|
28
|
+
"performance": {
|
|
29
|
+
"success_rate": 0.95,
|
|
30
|
+
"quality_score": 0.9,
|
|
31
|
+
"response_time": "fast"
|
|
32
|
+
},
|
|
33
|
+
"limitations": [
|
|
34
|
+
"需要网络连接",
|
|
35
|
+
"可能需要API密钥配置"
|
|
36
|
+
]
|
|
37
|
+
},
|
|
38
|
+
"iflow": {
|
|
39
|
+
"name": "iFlow CLI",
|
|
40
|
+
"command_format": "iflow -p \"{prompt}\"",
|
|
41
|
+
"agent_detection": true,
|
|
42
|
+
"skill_detection": true,
|
|
43
|
+
"natural_language_support": true,
|
|
44
|
+
"positional_args": false,
|
|
45
|
+
"agent_types": ["expert", "skill", "analysis", "agent"],
|
|
46
|
+
"skill_keywords": ["技能", "智能体", "分析", "工具", "方法", "马克思", "异化", "阶级"],
|
|
47
|
+
"examples": [
|
|
48
|
+
"iflow -p \"请使用异化分析技能分析程序员异化现象\"",
|
|
49
|
+
"iflow -p \"请使用数字马克思智能体进行异化分析\"",
|
|
50
|
+
"iflow -p \"使用技术分析技能分析AI对程序员的影响\""
|
|
51
|
+
],
|
|
52
|
+
"capabilities": {
|
|
53
|
+
"agent_support": true,
|
|
54
|
+
"skill_support": true,
|
|
55
|
+
"chinese_support": true,
|
|
56
|
+
"natural_language": true,
|
|
57
|
+
"context_understanding": true
|
|
58
|
+
},
|
|
59
|
+
"performance": {
|
|
60
|
+
"success_rate": 0.95,
|
|
61
|
+
"quality_score": 0.9,
|
|
62
|
+
"response_time": "fast"
|
|
63
|
+
},
|
|
64
|
+
"limitations": [
|
|
65
|
+
"需要网络连接",
|
|
66
|
+
"可能需要API密钥配置"
|
|
67
|
+
]
|
|
68
|
+
},
|
|
69
|
+
"qwen": {
|
|
70
|
+
"name": "Qwen CLI",
|
|
71
|
+
"command_format": "qwen \"{prompt}\"",
|
|
72
|
+
"agent_detection": true,
|
|
73
|
+
"skill_detection": true,
|
|
74
|
+
"natural_language_support": true,
|
|
75
|
+
"positional_args": true,
|
|
76
|
+
"agent_types": ["expert", "skill", "analysis", "agent"],
|
|
77
|
+
"skill_keywords": ["智能体", "分析技能", "马克思", "异化", "阶级", "技能", "专家"],
|
|
78
|
+
"examples": [
|
|
79
|
+
"qwen \"使用数字马克思智能体进行异化分析,分析程序员的技术异化现象\"",
|
|
80
|
+
"qwen \"使用异化分析技能分析程序员在AI开发中的异化现象\"",
|
|
81
|
+
"qwen \"请数字马克思智能体分析技术对程序员的影响\""
|
|
82
|
+
],
|
|
83
|
+
"capabilities": {
|
|
84
|
+
"agent_support": true,
|
|
85
|
+
"skill_support": true,
|
|
86
|
+
"chinese_support": true,
|
|
87
|
+
"natural_language": true,
|
|
88
|
+
"context_understanding": true,
|
|
89
|
+
"positional_args": true
|
|
90
|
+
},
|
|
91
|
+
"performance": {
|
|
92
|
+
"success_rate": 0.9,
|
|
93
|
+
"quality_score": 0.85,
|
|
94
|
+
"response_time": "medium"
|
|
95
|
+
},
|
|
96
|
+
"limitations": [
|
|
97
|
+
"使用位置参数,语法特殊",
|
|
98
|
+
"需要网络连接"
|
|
99
|
+
]
|
|
100
|
+
},
|
|
101
|
+
"codebuddy": {
|
|
102
|
+
"name": "CodeBuddy CLI",
|
|
103
|
+
"command_format": "codebuddy -y -p \"{prompt}\"",
|
|
104
|
+
"agent_detection": false,
|
|
105
|
+
"skill_detection": true,
|
|
106
|
+
"natural_language_support": false,
|
|
107
|
+
"positional_args": false,
|
|
108
|
+
"skill_prefix_required": true,
|
|
109
|
+
"agent_types": ["skill"],
|
|
110
|
+
"skill_keywords": ["skill:", "技能", "分析", "异化", "马克思"],
|
|
111
|
+
"examples": [
|
|
112
|
+
"codebuddy -y -p \"skill:alienation-analysis 分析程序员异化现象\"",
|
|
113
|
+
"codebuddy -y -p \"skill:marxist-analysis 分析技术异化\"",
|
|
114
|
+
"codebuddy -y -p \"skill:tech-analysis 分析AI对程序员的影响\""
|
|
115
|
+
],
|
|
116
|
+
"capabilities": {
|
|
117
|
+
"agent_support": false,
|
|
118
|
+
"skill_support": true,
|
|
119
|
+
"chinese_support": false,
|
|
120
|
+
"natural_language": false,
|
|
121
|
+
"skill_syntax": true,
|
|
122
|
+
"systematic_approach": true
|
|
123
|
+
},
|
|
124
|
+
"performance": {
|
|
125
|
+
"success_rate": 0.9,
|
|
126
|
+
"quality_score": 0.8,
|
|
127
|
+
"response_time": "medium"
|
|
128
|
+
},
|
|
129
|
+
"limitations": [
|
|
130
|
+
"需要skill:前缀语法",
|
|
131
|
+
"-y参数跳过权限检查",
|
|
132
|
+
"不支持自然语言智能体描述"
|
|
133
|
+
]
|
|
134
|
+
},
|
|
135
|
+
"qodercli": {
|
|
136
|
+
"name": "Qoder CLI",
|
|
137
|
+
"command_format": "qodercli -p \"{prompt}\"",
|
|
138
|
+
"agent_detection": false,
|
|
139
|
+
"skill_detection": false,
|
|
140
|
+
"natural_language_support": false,
|
|
141
|
+
"positional_args": false,
|
|
142
|
+
"agent_types": ["basic"],
|
|
143
|
+
"skill_keywords": ["分析", "理解", "处理"],
|
|
144
|
+
"examples": [
|
|
145
|
+
"qodercli -p \"分析程序员在AI开发中的异化现象\"",
|
|
146
|
+
"qodercli -p \"进行技术异化的基础分析\"",
|
|
147
|
+
"qodercli -p \"理解程序员面临的技术挑战\""
|
|
148
|
+
],
|
|
149
|
+
"capabilities": {
|
|
150
|
+
"agent_support": false,
|
|
151
|
+
"skill_support": false,
|
|
152
|
+
"chinese_support": true,
|
|
153
|
+
"natural_language": false,
|
|
154
|
+
"basic_ai_support": true,
|
|
155
|
+
"simple_analysis": true
|
|
156
|
+
},
|
|
157
|
+
"performance": {
|
|
158
|
+
"success_rate": 0.7,
|
|
159
|
+
"quality_score": 0.6,
|
|
160
|
+
"response_time": "fast"
|
|
161
|
+
},
|
|
162
|
+
"limitations": [
|
|
163
|
+
"基础AI理解能力",
|
|
164
|
+
"不支持高级智能体",
|
|
165
|
+
"技能功能有限"
|
|
166
|
+
]
|
|
167
|
+
},
|
|
168
|
+
"gemini": {
|
|
169
|
+
"name": "Gemini CLI",
|
|
170
|
+
"command_format": "gemini -p \"{prompt}\"",
|
|
171
|
+
"agent_detection": true,
|
|
172
|
+
"skill_detection": true,
|
|
173
|
+
"natural_language_support": true,
|
|
174
|
+
"positional_args": false,
|
|
175
|
+
"agent_types": ["expert", "skill", "analysis", "agent"],
|
|
176
|
+
"skill_keywords": ["技能", "智能体", "分析", "工具", "方法"],
|
|
177
|
+
"examples": [
|
|
178
|
+
"gemini -p \"请使用分析技能分析程序员异化现象\"",
|
|
179
|
+
"gemini -p \"使用智能体进行技术分析\""
|
|
180
|
+
],
|
|
181
|
+
"capabilities": {
|
|
182
|
+
"agent_support": true,
|
|
183
|
+
"skill_support": true,
|
|
184
|
+
"chinese_support": true,
|
|
185
|
+
"natural_language": true,
|
|
186
|
+
"context_understanding": true
|
|
187
|
+
},
|
|
188
|
+
"performance": {
|
|
189
|
+
"success_rate": 0.85,
|
|
190
|
+
"quality_score": 0.8,
|
|
191
|
+
"response_time": "medium"
|
|
192
|
+
},
|
|
193
|
+
"limitations": [
|
|
194
|
+
"需要网络连接",
|
|
195
|
+
"可能需要API密钥配置"
|
|
196
|
+
]
|
|
197
|
+
},
|
|
198
|
+
"copilot": {
|
|
199
|
+
"name": "GitHub Copilot CLI",
|
|
200
|
+
"command_format": "copilot \"{prompt}\"",
|
|
201
|
+
"agent_detection": true,
|
|
202
|
+
"skill_detection": true,
|
|
203
|
+
"natural_language_support": true,
|
|
204
|
+
"positional_args": true,
|
|
205
|
+
"agent_types": ["expert", "skill", "analysis", "agent"],
|
|
206
|
+
"skill_keywords": ["技能", "智能体", "分析", "工具", "方法"],
|
|
207
|
+
"examples": [
|
|
208
|
+
"copilot \"请使用分析技能分析程序员异化现象\"",
|
|
209
|
+
"copilot \"使用智能体进行技术分析\""
|
|
210
|
+
],
|
|
211
|
+
"capabilities": {
|
|
212
|
+
"agent_support": true,
|
|
213
|
+
"skill_support": true,
|
|
214
|
+
"chinese_support": true,
|
|
215
|
+
"natural_language": true,
|
|
216
|
+
"context_understanding": true
|
|
217
|
+
},
|
|
218
|
+
"performance": {
|
|
219
|
+
"success_rate": 0.8,
|
|
220
|
+
"quality_score": 0.75,
|
|
221
|
+
"response_time": "medium"
|
|
222
|
+
},
|
|
223
|
+
"limitations": [
|
|
224
|
+
"主要面向代码生成",
|
|
225
|
+
"需要GitHub账户"
|
|
226
|
+
]
|
|
227
|
+
},
|
|
228
|
+
"codex": {
|
|
229
|
+
"name": "OpenAI Codex CLI",
|
|
230
|
+
"command_format": "codex -m gpt-5 \"{prompt}\"",
|
|
231
|
+
"agent_detection": true,
|
|
232
|
+
"skill_detection": true,
|
|
233
|
+
"natural_language_support": true,
|
|
234
|
+
"positional_args": true,
|
|
235
|
+
"agent_types": ["expert", "skill", "analysis", "agent"],
|
|
236
|
+
"skill_keywords": ["技能", "智能体", "分析", "工具", "方法", "代码", "审查"],
|
|
237
|
+
"examples": [
|
|
238
|
+
"codex \"请使用异化分析技能分析程序员异化现象\"",
|
|
239
|
+
"codex exec \"使用数字马克思智能体分析代码库\"",
|
|
240
|
+
"codex review \"分析这段代码的异化现象\""
|
|
241
|
+
],
|
|
242
|
+
"capabilities": {
|
|
243
|
+
"agent_support": true,
|
|
244
|
+
"skill_support": true,
|
|
245
|
+
"chinese_support": true,
|
|
246
|
+
"natural_language": true,
|
|
247
|
+
"context_understanding": true,
|
|
248
|
+
"code_generation": true,
|
|
249
|
+
"mcp_support": true,
|
|
250
|
+
"sandbox_execution": true,
|
|
251
|
+
"code_review": true
|
|
252
|
+
},
|
|
253
|
+
"performance": {
|
|
254
|
+
"success_rate": 0.85,
|
|
255
|
+
"quality_score": 0.9,
|
|
256
|
+
"response_time": "fast"
|
|
257
|
+
},
|
|
258
|
+
"limitations": [
|
|
259
|
+
"需要OpenAI API密钥",
|
|
260
|
+
"可能需要付费订阅",
|
|
261
|
+
"官方维护,功能强大"
|
|
262
|
+
]
|
|
263
|
+
},
|
|
264
|
+
"kode": {
|
|
265
|
+
"name": "Kode CLI",
|
|
266
|
+
"command_format": "kode \"{prompt}\"",
|
|
267
|
+
"agent_detection": true,
|
|
268
|
+
"skill_detection": true,
|
|
269
|
+
"natural_language_support": true,
|
|
270
|
+
"positional_args": true,
|
|
271
|
+
"agent_types": ["expert", "skill", "analysis", "agent"],
|
|
272
|
+
"skill_keywords": ["技能", "智能体", "分析", "工具", "方法", "多模型", "协作"],
|
|
273
|
+
"examples": [
|
|
274
|
+
"kode \"请使用异化分析技能分析程序员异化现象\"",
|
|
275
|
+
"kode \"使用数字马克思智能体进行异化分析\"",
|
|
276
|
+
"kode \"@ask-claude-sonnet-4 分析这个问题\""
|
|
277
|
+
],
|
|
278
|
+
"capabilities": {
|
|
279
|
+
"agent_support": true,
|
|
280
|
+
"skill_support": true,
|
|
281
|
+
"chinese_support": true,
|
|
282
|
+
"natural_language": true,
|
|
283
|
+
"context_understanding": true,
|
|
284
|
+
"multi_model": true,
|
|
285
|
+
"agent_delegation": true
|
|
286
|
+
},
|
|
287
|
+
"performance": {
|
|
288
|
+
"success_rate": 0.9,
|
|
289
|
+
"quality_score": 0.85,
|
|
290
|
+
"response_time": "fast"
|
|
291
|
+
},
|
|
292
|
+
"limitations": [
|
|
293
|
+
"需要配置API密钥",
|
|
294
|
+
"可能需要付费订阅"
|
|
295
|
+
]
|
|
296
|
+
}
|
|
297
|
+
},
|
|
298
|
+
"skill_mapping": {
|
|
299
|
+
"异化分析": {
|
|
300
|
+
"description": "异化分析技能,专门分析技术对人的异化现象",
|
|
301
|
+
"claude": "异化分析技能",
|
|
302
|
+
"iflow": "异化分析技能",
|
|
303
|
+
"qwen": "异化分析技能",
|
|
304
|
+
"codebuddy": "alienation-analysis",
|
|
305
|
+
"gemini": "异化分析技能",
|
|
306
|
+
"copilot": "异化分析技能",
|
|
307
|
+
"codex": "alienation-analysis",
|
|
308
|
+
"kode": "异化分析技能"
|
|
309
|
+
},
|
|
310
|
+
"马克思分析": {
|
|
311
|
+
"description": "马克思主义分析技能,基于马克思理论的分析方法",
|
|
312
|
+
"claude": "数字马克思智能体",
|
|
313
|
+
"iflow": "数字马克思智能体",
|
|
314
|
+
"qwen": "数字马克思智能体",
|
|
315
|
+
"codebuddy": "marxist-analysis",
|
|
316
|
+
"gemini": "马克思分析技能",
|
|
317
|
+
"copilot": "马克思分析智能体",
|
|
318
|
+
"codex": "marxist-analysis",
|
|
319
|
+
"kode": "数字马克思智能体"
|
|
320
|
+
},
|
|
321
|
+
"技术分析": {
|
|
322
|
+
"description": "技术分析技能,分析技术对社会和个人影响",
|
|
323
|
+
"claude": "技术分析技能",
|
|
324
|
+
"iflow": "技术分析技能",
|
|
325
|
+
"qwen": "技术分析技能",
|
|
326
|
+
"codebuddy": "tech-analysis",
|
|
327
|
+
"gemini": "技术分析技能",
|
|
328
|
+
"copilot": "技术分析技能",
|
|
329
|
+
"codex": "tech-analysis",
|
|
330
|
+
"kode": "技术分析技能"
|
|
331
|
+
},
|
|
332
|
+
"阶级分析": {
|
|
333
|
+
"description": "阶级分析技能,分析社会阶级关系和冲突",
|
|
334
|
+
"claude": "阶级分析技能",
|
|
335
|
+
"iflow": "阶级分析技能",
|
|
336
|
+
"qwen": "阶级分析技能",
|
|
337
|
+
"codebuddy": "class-analysis",
|
|
338
|
+
"gemini": "阶级分析技能",
|
|
339
|
+
"copilot": "阶级分析技能",
|
|
340
|
+
"codex": "class-analysis",
|
|
341
|
+
"kode": "阶级分析技能"
|
|
342
|
+
}
|
|
343
|
+
},
|
|
344
|
+
"agent_types": {
|
|
345
|
+
"expert": {
|
|
346
|
+
"description": "专家智能体,具有特定领域专业知识",
|
|
347
|
+
"keywords": ["专家", "expert", "specialist", "马克思", "marxist", "数字马克思"],
|
|
348
|
+
"typical_use": "专业领域分析,如马克思主义分析、异化分析等"
|
|
349
|
+
},
|
|
350
|
+
"skill": {
|
|
351
|
+
"description": "技能型智能体,具备特定技能或方法",
|
|
352
|
+
"keywords": ["技能", "skill", "能力", "方法", "工具"],
|
|
353
|
+
"typical_use": "执行特定任务,如分析技能、写作技能等"
|
|
354
|
+
},
|
|
355
|
+
"analysis": {
|
|
356
|
+
"description": "分析型智能体,专门从事分析和评估",
|
|
357
|
+
"keywords": ["分析", "analysis", "解析", "评估", "研究"],
|
|
358
|
+
"typical_use": "深度分析任务,如数据分析、文本分析等"
|
|
359
|
+
},
|
|
360
|
+
"agent": {
|
|
361
|
+
"description": "通用智能体,能够处理多种任务",
|
|
362
|
+
"keywords": ["智能体", "agent", "助手", "助手"],
|
|
363
|
+
"typical_use": "一般性任务和咨询"
|
|
364
|
+
},
|
|
365
|
+
"basic": {
|
|
366
|
+
"description": "基础智能体,具备基本理解能力",
|
|
367
|
+
"keywords": ["基础", "basic", "简单", "初步"],
|
|
368
|
+
"typical_use": "简单分析和基础任务"
|
|
369
|
+
}
|
|
370
|
+
},
|
|
371
|
+
"routing_strategy": {
|
|
372
|
+
"priority_order": [
|
|
373
|
+
"claude",
|
|
374
|
+
"kode",
|
|
375
|
+
"iflow",
|
|
376
|
+
"qwen",
|
|
377
|
+
"codebuddy",
|
|
378
|
+
"gemini",
|
|
379
|
+
"copilot",
|
|
380
|
+
"qodercli"
|
|
381
|
+
],
|
|
382
|
+
"selection_criteria": [
|
|
383
|
+
"agent_skill_compatibility",
|
|
384
|
+
"natural_language_support",
|
|
385
|
+
"success_rate",
|
|
386
|
+
"quality_score",
|
|
387
|
+
"response_time"
|
|
388
|
+
],
|
|
389
|
+
"fallback_rules": [
|
|
390
|
+
"当首选工具失败时,自动降级到下一优先级工具",
|
|
391
|
+
"根据错误类型选择相应的备用工具",
|
|
392
|
+
"记录失败历史,避免重复尝试已知失败的工具"
|
|
393
|
+
]
|
|
394
|
+
},
|
|
395
|
+
"performance_metrics": {
|
|
396
|
+
"success_rates": {
|
|
397
|
+
"claude": 0.95,
|
|
398
|
+
"iflow": 0.95,
|
|
399
|
+
"qwen": 0.9,
|
|
400
|
+
"codebuddy": 0.9,
|
|
401
|
+
"gemini": 0.85,
|
|
402
|
+
"copilot": 0.8,
|
|
403
|
+
"qodercli": 0.7,
|
|
404
|
+
"kode": 0.9
|
|
405
|
+
},
|
|
406
|
+
"quality_scores": {
|
|
407
|
+
"claude": 0.9,
|
|
408
|
+
"iflow": 0.9,
|
|
409
|
+
"qwen": 0.85,
|
|
410
|
+
"codebuddy": 0.8,
|
|
411
|
+
"gemini": 0.8,
|
|
412
|
+
"copilot": 0.75,
|
|
413
|
+
"qodercli": 0.6,
|
|
414
|
+
"kode": 0.85
|
|
415
|
+
},
|
|
416
|
+
"response_times": {
|
|
417
|
+
"claude": "fast",
|
|
418
|
+
"iflow": "fast",
|
|
419
|
+
"qwen": "medium",
|
|
420
|
+
"codebuddy": "medium",
|
|
421
|
+
"gemini": "medium",
|
|
422
|
+
"copilot": "medium",
|
|
423
|
+
"qodercli": "fast",
|
|
424
|
+
"kode": "fast"
|
|
425
|
+
}
|
|
426
|
+
},
|
|
427
|
+
"configuration_options": {
|
|
428
|
+
"debug_mode": false,
|
|
429
|
+
"cache_enabled": true,
|
|
430
|
+
"cache_expiry_hours": 24,
|
|
431
|
+
"max_retries": 2,
|
|
432
|
+
"parallel_processing": true,
|
|
433
|
+
"max_concurrent_requests": 3,
|
|
434
|
+
"log_failures": true,
|
|
435
|
+
"performance_monitoring": true
|
|
436
|
+
}
|
|
437
|
+
}
|
|
438
|
+
}
|