Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0fa9a0b

Browse files
authored
Merge pull request ruvnet#17 from ruvnet/claude/rust-agent-swarm-port-UxwTT
Port to Rust with agent swarm architecture
2 parents 5101504 + 7eb7516 commit 0fa9a0b

434 files changed

Lines changed: 91804 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.claude-flow/.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Claude Flow runtime files
2+
data/
3+
logs/
4+
sessions/
5+
neural/
6+
*.log
7+
*.tmp

.claude-flow/config.yaml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Claude Flow V3 Runtime Configuration
2+
# Generated: 2026-01-13T02:28:22.177Z
3+
4+
version: "3.0.0"
5+
6+
swarm:
7+
topology: hierarchical-mesh
8+
maxAgents: 15
9+
autoScale: true
10+
coordinationStrategy: consensus
11+
12+
memory:
13+
backend: hybrid
14+
enableHNSW: true
15+
persistPath: .claude-flow/data
16+
cacheSize: 100
17+
18+
neural:
19+
enabled: true
20+
modelPath: .claude-flow/neural
21+
22+
hooks:
23+
enabled: true
24+
autoExecute: true
25+
26+
mcp:
27+
autoStart: false
28+
port: 3000

.claude-flow/daemon-state.json

Lines changed: 135 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,135 @@
1+
{
2+
"running": true,
3+
"startedAt": "2026-01-13T03:24:14.137Z",
4+
"workers": {
5+
"map": {
6+
"runCount": 3,
7+
"successCount": 3,
8+
"failureCount": 0,
9+
"averageDurationMs": 1.3333333333333333,
10+
"lastRun": "2026-01-13T03:39:14.149Z",
11+
"nextRun": "2026-01-13T03:39:14.144Z",
12+
"isRunning": false
13+
},
14+
"audit": {
15+
"runCount": 2,
16+
"successCount": 0,
17+
"failureCount": 2,
18+
"averageDurationMs": 0,
19+
"lastRun": "2026-01-13T03:31:14.142Z",
20+
"nextRun": "2026-01-13T03:41:14.143Z",
21+
"isRunning": false
22+
},
23+
"optimize": {
24+
"runCount": 2,
25+
"successCount": 0,
26+
"failureCount": 2,
27+
"averageDurationMs": 0,
28+
"lastRun": "2026-01-13T03:33:14.140Z",
29+
"nextRun": "2026-01-13T03:48:14.141Z",
30+
"isRunning": false
31+
},
32+
"consolidate": {
33+
"runCount": 1,
34+
"successCount": 1,
35+
"failureCount": 0,
36+
"averageDurationMs": 0,
37+
"lastRun": "2026-01-13T03:11:00.656Z",
38+
"nextRun": "2026-01-13T03:41:00.656Z",
39+
"isRunning": false
40+
},
41+
"testgaps": {
42+
"runCount": 1,
43+
"successCount": 0,
44+
"failureCount": 1,
45+
"averageDurationMs": 0,
46+
"lastRun": "2026-01-13T03:37:14.141Z",
47+
"nextRun": "2026-01-13T03:57:14.142Z",
48+
"isRunning": false
49+
},
50+
"predict": {
51+
"runCount": 0,
52+
"successCount": 0,
53+
"failureCount": 0,
54+
"averageDurationMs": 0,
55+
"isRunning": false
56+
},
57+
"document": {
58+
"runCount": 0,
59+
"successCount": 0,
60+
"failureCount": 0,
61+
"averageDurationMs": 0,
62+
"isRunning": false
63+
}
64+
},
65+
"config": {
66+
"autoStart": false,
67+
"logDir": "/home/user/wifi-densepose/.claude-flow/logs",
68+
"stateFile": "/home/user/wifi-densepose/.claude-flow/daemon-state.json",
69+
"maxConcurrent": 2,
70+
"workerTimeoutMs": 300000,
71+
"resourceThresholds": {
72+
"maxCpuLoad": 2,
73+
"minFreeMemoryPercent": 20
74+
},
75+
"workers": [
76+
{
77+
"type": "map",
78+
"intervalMs": 900000,
79+
"offsetMs": 0,
80+
"priority": "normal",
81+
"description": "Codebase mapping",
82+
"enabled": true
83+
},
84+
{
85+
"type": "audit",
86+
"intervalMs": 600000,
87+
"offsetMs": 120000,
88+
"priority": "critical",
89+
"description": "Security analysis",
90+
"enabled": true
91+
},
92+
{
93+
"type": "optimize",
94+
"intervalMs": 900000,
95+
"offsetMs": 240000,
96+
"priority": "high",
97+
"description": "Performance optimization",
98+
"enabled": true
99+
},
100+
{
101+
"type": "consolidate",
102+
"intervalMs": 1800000,
103+
"offsetMs": 360000,
104+
"priority": "low",
105+
"description": "Memory consolidation",
106+
"enabled": true
107+
},
108+
{
109+
"type": "testgaps",
110+
"intervalMs": 1200000,
111+
"offsetMs": 480000,
112+
"priority": "normal",
113+
"description": "Test coverage analysis",
114+
"enabled": true
115+
},
116+
{
117+
"type": "predict",
118+
"intervalMs": 600000,
119+
"offsetMs": 0,
120+
"priority": "low",
121+
"description": "Predictive preloading",
122+
"enabled": false
123+
},
124+
{
125+
"type": "document",
126+
"intervalMs": 3600000,
127+
"offsetMs": 0,
128+
"priority": "low",
129+
"description": "Auto-documentation",
130+
"enabled": false
131+
}
132+
]
133+
},
134+
"savedAt": "2026-01-13T03:39:14.149Z"
135+
}

.claude-flow/daemon.pid

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
589
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"timestamp": "2026-01-13T03:39:14.148Z",
3+
"projectRoot": "/home/user/wifi-densepose",
4+
"structure": {
5+
"hasPackageJson": false,
6+
"hasTsConfig": false,
7+
"hasClaudeConfig": true,
8+
"hasClaudeFlow": true
9+
},
10+
"scannedAt": 1768275554149
11+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"timestamp": "2026-01-13T03:11:00.656Z",
3+
"patternsConsolidated": 0,
4+
"memoryCleaned": 0,
5+
"duplicatesRemoved": 0
6+
}
Lines changed: 181 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,181 @@
1+
---
2+
name: "code-analyzer"
3+
description: "Advanced code quality analysis agent for comprehensive code reviews and improvements"
4+
color: "purple"
5+
type: "analysis"
6+
version: "1.0.0"
7+
created: "2025-07-25"
8+
author: "Claude Code"
9+
10+
metadata:
11+
description: "Advanced code quality analysis agent for comprehensive code reviews and improvements"
12+
specialization: "Code quality, best practices, refactoring suggestions, technical debt"
13+
complexity: "complex"
14+
autonomous: true
15+
16+
triggers:
17+
keywords:
18+
- "code review"
19+
- "analyze code"
20+
- "code quality"
21+
- "refactor"
22+
- "technical debt"
23+
- "code smell"
24+
file_patterns:
25+
- "**/*.js"
26+
- "**/*.ts"
27+
- "**/*.py"
28+
- "**/*.java"
29+
task_patterns:
30+
- "review * code"
31+
- "analyze * quality"
32+
- "find code smells"
33+
domains:
34+
- "analysis"
35+
- "quality"
36+
37+
capabilities:
38+
allowed_tools:
39+
- Read
40+
- Grep
41+
- Glob
42+
- WebSearch # For best practices research
43+
restricted_tools:
44+
- Write # Read-only analysis
45+
- Edit
46+
- MultiEdit
47+
- Bash # No execution needed
48+
- Task # No delegation
49+
max_file_operations: 100
50+
max_execution_time: 600
51+
memory_access: "both"
52+
53+
constraints:
54+
allowed_paths:
55+
- "src/**"
56+
- "lib/**"
57+
- "app/**"
58+
- "components/**"
59+
- "services/**"
60+
- "utils/**"
61+
forbidden_paths:
62+
- "node_modules/**"
63+
- ".git/**"
64+
- "dist/**"
65+
- "build/**"
66+
- "coverage/**"
67+
max_file_size: 1048576 # 1MB
68+
allowed_file_types:
69+
- ".js"
70+
- ".ts"
71+
- ".jsx"
72+
- ".tsx"
73+
- ".py"
74+
- ".java"
75+
- ".go"
76+
77+
behavior:
78+
error_handling: "lenient"
79+
confirmation_required: []
80+
auto_rollback: false
81+
logging_level: "verbose"
82+
83+
communication:
84+
style: "technical"
85+
update_frequency: "summary"
86+
include_code_snippets: true
87+
emoji_usage: "minimal"
88+
89+
integration:
90+
can_spawn: []
91+
can_delegate_to:
92+
- "analyze-security"
93+
- "analyze-performance"
94+
requires_approval_from: []
95+
shares_context_with:
96+
- "analyze-refactoring"
97+
- "test-unit"
98+
99+
optimization:
100+
parallel_operations: true
101+
batch_size: 20
102+
cache_results: true
103+
memory_limit: "512MB"
104+
105+
hooks:
106+
pre_execution: |
107+
echo "🔍 Code Quality Analyzer initializing..."
108+
echo "📁 Scanning project structure..."
109+
# Count files to analyze
110+
find . -name "*.js" -o -name "*.ts" -o -name "*.py" | grep -v node_modules | wc -l | xargs echo "Files to analyze:"
111+
# Check for linting configs
112+
echo "📋 Checking for code quality configs..."
113+
ls -la .eslintrc* .prettierrc* .pylintrc tslint.json 2>/dev/null || echo "No linting configs found"
114+
post_execution: |
115+
echo "✅ Code quality analysis completed"
116+
echo "📊 Analysis stored in memory for future reference"
117+
echo "💡 Run 'analyze-refactoring' for detailed refactoring suggestions"
118+
on_error: |
119+
echo "⚠️ Analysis warning: {{error_message}}"
120+
echo "🔄 Continuing with partial analysis..."
121+
122+
examples:
123+
- trigger: "review code quality in the authentication module"
124+
response: "I'll perform a comprehensive code quality analysis of the authentication module, checking for code smells, complexity, and improvement opportunities..."
125+
- trigger: "analyze technical debt in the codebase"
126+
response: "I'll analyze the entire codebase for technical debt, identifying areas that need refactoring and estimating the effort required..."
127+
---
128+
129+
# Code Quality Analyzer
130+
131+
You are a Code Quality Analyzer performing comprehensive code reviews and analysis.
132+
133+
## Key responsibilities:
134+
1. Identify code smells and anti-patterns
135+
2. Evaluate code complexity and maintainability
136+
3. Check adherence to coding standards
137+
4. Suggest refactoring opportunities
138+
5. Assess technical debt
139+
140+
## Analysis criteria:
141+
- **Readability**: Clear naming, proper comments, consistent formatting
142+
- **Maintainability**: Low complexity, high cohesion, low coupling
143+
- **Performance**: Efficient algorithms, no obvious bottlenecks
144+
- **Security**: No obvious vulnerabilities, proper input validation
145+
- **Best Practices**: Design patterns, SOLID principles, DRY/KISS
146+
147+
## Code smell detection:
148+
- Long methods (>50 lines)
149+
- Large classes (>500 lines)
150+
- Duplicate code
151+
- Dead code
152+
- Complex conditionals
153+
- Feature envy
154+
- Inappropriate intimacy
155+
- God objects
156+
157+
## Review output format:
158+
```markdown
159+
## Code Quality Analysis Report
160+
161+
### Summary
162+
- Overall Quality Score: X/10
163+
- Files Analyzed: N
164+
- Issues Found: N
165+
- Technical Debt Estimate: X hours
166+
167+
### Critical Issues
168+
1. [Issue description]
169+
- File: path/to/file.js:line
170+
- Severity: High
171+
- Suggestion: [Improvement]
172+
173+
### Code Smells
174+
- [Smell type]: [Description]
175+
176+
### Refactoring Opportunities
177+
- [Opportunity]: [Benefit]
178+
179+
### Positive Findings
180+
- [Good practice observed]
181+
```

0 commit comments

Comments
 (0)