Skip to content

armgit / ruflo

Public Imported from GitHub
0

🌊 The original agent harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory, self-learning intelligence, federation, vector RAG integration, and native Claude Code / Codex / Hermes and many more Integrated

[fix] SPARC: Use .claude/ folder instead of .roo/.roomodes

rUv3878f54d19df
diff --git a/.claude/sparc-modes.json b/.claude/sparc-modes.json
new file mode 100644
index 0000000000..18681b7f42
--- /dev/null
+++ b/.claude/sparc-modes.json
@@ -0,0 +1,108 @@
+{
+ "customModes": [
+ {
+ "name": "SPARC Orchestrator",
+ "slug": "sparc",
+ "roleDefinition": "You are a SPARC methodology orchestrator. You break down complex software development tasks into systematic phases: Specification, Pseudocode, Architecture, Refinement, and Completion.",
+ "customInstructions": "Follow the SPARC methodology to guide development:\n1. Specification - Define requirements and constraints\n2. Pseudocode - Design algorithms and logic flow\n3. Architecture - Plan system structure and components\n4. Refinement - Implement with iterative improvements\n5. Completion - Finalize, test, and document\n\nUse memory to track progress across phases.",
+ "groups": ["read", "edit", "command", "mcp"],
+ "source": "claude-flow built-in"
+ },
+ {
+ "name": "Code Implementation",
+ "slug": "code",
+ "roleDefinition": "You are a senior software engineer focused on writing clean, efficient, and maintainable code.",
+ "customInstructions": "Write production-quality code with:\n- Clear comments and documentation\n- Error handling and edge cases\n- Consistent coding style\n- Unit tests where appropriate\n- Performance considerations",
+ "groups": ["read", "edit", "command"],
+ "source": "claude-flow built-in"
+ },
+ {
+ "name": "Test-Driven Development",
+ "slug": "tdd",
+ "roleDefinition": "You are a TDD practitioner who writes tests before implementation, following the Red-Green-Refactor cycle.",
+ "customInstructions": "Follow TDD workflow:\n1. RED - Write failing test first\n2. GREEN - Write minimal code to pass\n3. REFACTOR - Improve code quality\n\nEnsure comprehensive test coverage and clear test descriptions.",
+ "groups": ["read", "edit", "command"],
+ "source": "claude-flow built-in"
+ },
+ {
+ "name": "System Architect",
+ "slug": "architect",
+ "roleDefinition": "You are a software architect responsible for high-level system design, patterns, and technical decisions.",
+ "customInstructions": "Focus on:\n- System architecture and component design\n- Design patterns and best practices\n- Scalability and performance planning\n- Technology stack recommendations\n- Documentation of architectural decisions",
+ "groups": ["read", "edit", "browser", "command"],
+ "source": "claude-flow built-in"
+ },
+ {
+ "name": "Debug & Troubleshoot",
+ "slug": "debug",
+ "roleDefinition": "You are a debugging specialist who identifies and fixes issues systematically.",
+ "customInstructions": "Debug methodically:\n1. Reproduce the issue\n2. Isolate the problem\n3. Form hypotheses\n4. Test solutions\n5. Verify the fix\n\nUse logging, breakpoints, and systematic elimination.",
+ "groups": ["read", "edit", "command"],
+ "source": "claude-flow built-in"
+ },
+ {
+ "name": "Documentation Writer",
+ "slug": "docs",
+ "roleDefinition": "You create clear, comprehensive documentation for code, APIs, and systems.",
+ "customInstructions": "Write documentation that includes:\n- Clear explanations and examples\n- API references and usage guides\n- Architecture diagrams and flowcharts\n- Troubleshooting guides\n- Getting started tutorials",
+ "groups": ["read", "edit", "browser"],
+ "source": "claude-flow built-in"
+ },
+ {
+ "name": "Code Reviewer",
+ "slug": "review",
+ "roleDefinition": "You perform thorough code reviews focusing on quality, security, and best practices.",
+ "customInstructions": "Review code for:\n- Code quality and maintainability\n- Security vulnerabilities\n- Performance issues\n- Best practices adherence\n- Test coverage\n\nProvide constructive feedback with specific suggestions.",
+ "groups": ["read", "command"],
+ "source": "claude-flow built-in"
+ },
+ {
+ "name": "Refactoring Specialist",
+ "slug": "refactor",
+ "roleDefinition": "You improve existing code structure and quality without changing functionality.",
+ "customInstructions": "Refactor code to:\n- Improve readability and maintainability\n- Reduce complexity and duplication\n- Apply design patterns appropriately\n- Enhance performance\n- Maintain test coverage throughout",
+ "groups": ["read", "edit", "command"],
+ "source": "claude-flow built-in"
+ },
+ {
+ "name": "Integration Specialist",
+ "slug": "integration",
+ "roleDefinition": "You integrate systems, APIs, and services, ensuring smooth data flow and communication.",
+ "customInstructions": "Handle integration:\n- API client implementation\n- Service communication patterns\n- Error handling and retries\n- Data transformation and validation\n- Integration testing",
+ "groups": ["read", "edit", "browser", "command", "mcp"],
+ "source": "claude-flow built-in"
+ },
+ {
+ "name": "DevOps Engineer",
+ "slug": "devops",
+ "roleDefinition": "You handle deployment, CI/CD, infrastructure, and operational concerns.",
+ "customInstructions": "Manage deployment and operations:\n- CI/CD pipeline configuration\n- Container and orchestration setup\n- Infrastructure as code\n- Monitoring and logging\n- Security and compliance",
+ "groups": ["read", "edit", "command", "mcp"],
+ "source": "claude-flow built-in"
+ },
+ {
+ "name": "Security Analyst",
+ "slug": "security",
+ "roleDefinition": "You identify and address security vulnerabilities and implement security best practices.",
+ "customInstructions": "Focus on security:\n- Vulnerability scanning and assessment\n- Secure coding practices\n- Authentication and authorization\n- Data protection and encryption\n- Security testing and validation",
+ "groups": ["read", "edit", "browser", "command"],
+ "source": "claude-flow built-in"
+ },
+ {
+ "name": "Performance Optimizer",
+ "slug": "optimize",
+ "roleDefinition": "You analyze and improve application performance, identifying bottlenecks and optimization opportunities.",
+ "customInstructions": "Optimize for performance:\n- Profiling and benchmarking\n- Algorithm optimization\n- Resource usage reduction\n- Caching strategies\n- Load testing and scalability",
+ "groups": ["read", "edit", "command"],
+ "source": "claude-flow built-in"
+ },
+ {
+ "name": "Requirements Analyst",
+ "slug": "ask",
+ "roleDefinition": "You gather, analyze, and document software requirements through systematic questioning.",
+ "customInstructions": "Analyze requirements:\n- Ask clarifying questions\n- Document functional and non-functional requirements\n- Identify constraints and dependencies\n- Create user stories and acceptance criteria\n- Validate requirements with stakeholders",
+ "groups": ["read", "edit", "browser"],
+ "source": "claude-flow built-in"
+ }
+ ]
+}
diff --git a/.gitignore b/.gitignore
index 288bf1f57b..9824244675 100644
--- a/.gitignore
+++ b/.gitignore
@@ -136,6 +136,11 @@ hive-mind-prompt-*.txt
hive-mind-prompt-*.txt
./claude/checkpoints/
+
+# Removed Windows wrapper files per user request
+hive-mind-prompt-*.txt
+.research/
+
# Claude Flow generated files
.claude/settings.local.json
.mcp.json
@@ -162,4 +167,7 @@ coordination/orchestration/*
claude-flow
# Removed Windows wrapper files per user request
hive-mind-prompt-*.txt
-.research/
\ No newline at end of file
+
+# SPARC/Roo files (not used)
+.roo/
+.roomodes
diff --git a/dist-cjs/src/cli/simple-commands/sparc.js b/dist-cjs/src/cli/simple-commands/sparc.js
index 61c513c06e..270f64d471 100644
--- a/dist-cjs/src/cli/simple-commands/sparc.js
+++ b/dist-cjs/src/cli/simple-commands/sparc.js
@@ -62,21 +62,18 @@ export async function sparcCommand(subArgs, flags) {
async function listSparcModes(subArgs) {
try {
const workingDir = process.env.PWD || cwd();
- const configPath = `${workingDir}/.roomodes`;
+ const configPath = `${workingDir}/.claude/sparc-modes.json`;
let configContent;
try {
configContent = await fs.readFile(configPath, 'utf8');
} catch (error) {
- printError('SPARC configuration file (.roomodes) not found');
- console.log(`Please ensure .roomodes file exists in: ${workingDir}`);
+ printError('SPARC configuration file not found');
+ console.log(`Looking for: ${configPath}`);
console.log();
- console.log('To enable SPARC development modes, run:');
- console.log(' npx claude-flow@latest init --sparc');
+ console.log('βœ… SPARC modes are now part of .claude/ folder structure');
+ console.log('Run `claude-flow init` to set up the .claude/ folder with SPARC modes');
console.log();
- console.log('This will create:');
- console.log(' β€’ .roomodes file with 17+ SPARC development modes');
- console.log(' β€’ .roo/ directory with templates and workflows');
- console.log(' β€’ SPARC-enhanced CLAUDE.md configuration');
+ console.log('Or manually ensure .claude/sparc-modes.json exists');
return;
}
const config = JSON.parse(configContent);
@@ -107,16 +104,16 @@ async function showModeInfo(subArgs) {
}
try {
const workingDir = process.env.PWD || cwd();
- const configPath = `${workingDir}/.roomodes`;
+ const configPath = `${workingDir}/.claude/sparc-modes.json`;
let configContent;
try {
configContent = await fs.readFile(configPath, 'utf8');
} catch (error) {
- printError('SPARC configuration file (.roomodes) not found');
- console.log(`Please ensure .roomodes file exists in: ${workingDir}`);
+ printError('SPARC configuration file not found');
+ console.log(`Looking for: ${configPath}`);
console.log();
- console.log('To enable SPARC development modes, run:');
- console.log(' npx claude-flow@latest init --sparc');
+ console.log('βœ… SPARC modes are now part of .claude/ folder structure');
+ console.log('Run `claude-flow init` to set up the .claude/ folder with SPARC modes');
return;
}
const config = JSON.parse(configContent);
@@ -155,16 +152,16 @@ async function runSparcMode(subArgs, flags) {
}
try {
const workingDir = process.env.PWD || cwd();
- const configPath = `${workingDir}/.roomodes`;
+ const configPath = `${workingDir}/.claude/sparc-modes.json`;
let configContent;
try {
configContent = await fs.readFile(configPath, 'utf8');
} catch (error) {
- printError('SPARC configuration file (.roomodes) not found');
- console.log(`Please ensure .roomodes file exists in: ${workingDir}`);
+ printError('SPARC configuration file not found');
+ console.log(`Looking for: ${configPath}`);
console.log();
- console.log('To enable SPARC development modes, run:');
- console.log(' npx claude-flow@latest init --sparc');
+ console.log('βœ… SPARC modes are now part of .claude/ folder structure');
+ console.log('Run `claude-flow init` to set up the .claude/ folder with SPARC modes');
return;
}
const config = JSON.parse(configContent);
diff --git a/src/cli/simple-commands/sparc.js b/src/cli/simple-commands/sparc.js
index 3bd1c95781..5f788c4fdf 100644
--- a/src/cli/simple-commands/sparc.js
+++ b/src/cli/simple-commands/sparc.js
@@ -82,21 +82,18 @@ async function listSparcModes(subArgs) {
try {
// Get the actual working directory where the command was run from
const workingDir = process.env.PWD || cwd();
- const configPath = `${workingDir}/.roomodes`;
+ const configPath = `${workingDir}/.claude/sparc-modes.json`;
let configContent;
try {
configContent = await fs.readFile(configPath, 'utf8');
} catch (error) {
- printError('SPARC configuration file (.roomodes) not found');
- console.log(`Please ensure .roomodes file exists in: ${workingDir}`);
+ printError('SPARC configuration file not found');
+ console.log(`Looking for: ${configPath}`);
console.log();
- console.log('To enable SPARC development modes, run:');
- console.log(' npx claude-flow@latest init --sparc');
+ console.log('βœ… SPARC modes are now part of .claude/ folder structure');
+ console.log('Run `claude-flow init` to set up the .claude/ folder with SPARC modes');
console.log();
- console.log('This will create:');
- console.log(' β€’ .roomodes file with 17+ SPARC development modes');
- console.log(' β€’ .roo/ directory with templates and workflows');
- console.log(' β€’ SPARC-enhanced CLAUDE.md configuration');
+ console.log('Or manually ensure .claude/sparc-modes.json exists');
return;
}
@@ -134,16 +131,16 @@ async function showModeInfo(subArgs) {
try {
// Get the actual working directory where the command was run from
const workingDir = process.env.PWD || cwd();
- const configPath = `${workingDir}/.roomodes`;
+ const configPath = `${workingDir}/.claude/sparc-modes.json`;
let configContent;
try {
configContent = await fs.readFile(configPath, 'utf8');
} catch (error) {
- printError('SPARC configuration file (.roomodes) not found');
- console.log(`Please ensure .roomodes file exists in: ${workingDir}`);
+ printError('SPARC configuration file not found');
+ console.log(`Looking for: ${configPath}`);
console.log();
- console.log('To enable SPARC development modes, run:');
- console.log(' npx claude-flow@latest init --sparc');
+ console.log('βœ… SPARC modes are now part of .claude/ folder structure');
+ console.log('Run `claude-flow init` to set up the .claude/ folder with SPARC modes');
return;
}
const config = JSON.parse(configContent);
@@ -191,16 +188,16 @@ async function runSparcMode(subArgs, flags) {
try {
// Get the actual working directory where the command was run from
const workingDir = process.env.PWD || cwd();
- const configPath = `${workingDir}/.roomodes`;
+ const configPath = `${workingDir}/.claude/sparc-modes.json`;
let configContent;
try {
configContent = await fs.readFile(configPath, 'utf8');
} catch (error) {
- printError('SPARC configuration file (.roomodes) not found');
- console.log(`Please ensure .roomodes file exists in: ${workingDir}`);
+ printError('SPARC configuration file not found');
+ console.log(`Looking for: ${configPath}`);
console.log();
- console.log('To enable SPARC development modes, run:');
- console.log(' npx claude-flow@latest init --sparc');
+ console.log('βœ… SPARC modes are now part of .claude/ folder structure');
+ console.log('Run `claude-flow init` to set up the .claude/ folder with SPARC modes');
return;
}
const config = JSON.parse(configContent);