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

Checkpoint: File edits

rUvadaeef952000
diff --git a/v3/@claude-flow/cli/src/ruvector/enhanced-model-router.ts b/v3/@claude-flow/cli/src/ruvector/enhanced-model-router.ts
index d77ff7d333..df2259555b 100644
--- a/v3/@claude-flow/cli/src/ruvector/enhanced-model-router.ts
+++ b/v3/@claude-flow/cli/src/ruvector/enhanced-model-router.ts
@@ -167,6 +167,38 @@ const FILE_PATH_PATTERNS: RegExp[] = [
/**
* Language detection by extension
*/
+/**
+ * High-complexity keywords that indicate Tier 3 (Opus) routing
+ * These tasks require deep reasoning and architectural understanding
+ */
+const TIER3_KEYWORDS: RegExp[] = [
+ // Architecture & Design
+ /\b(microservices?|architecture|system\s+design|distributed)\b/i,
+ /\b(design|architect|plan)\s+(a|an|the|complex)\b/i,
+
+ // Security
+ /\b(oauth2?|pkce|jwt|rbac|authentication\s+system|security\s+audit)\b/i,
+ /\b(refresh\s+token|token\s+rotation|role-based|permission)\b/i,
+ /\b(encryption|cryptograph|certificate|ssl|tls)\b/i,
+
+ // Distributed Systems
+ /\b(consensus|distributed|byzantine|raft|paxos)\b/i,
+ /\b(replication|sharding|partitioning|eventual\s+consistency)\b/i,
+ /\b(load\s+balanc|fault\s+toleran|high\s+availability)\b/i,
+
+ // Complex Algorithms
+ /\b(algorithm|machine\s+learning|neural|optimization)\b/i,
+ /\b(graph\s+algorithm|tree\s+traversal|dynamic\s+programming)\b/i,
+
+ // Database Design
+ /\b(schema\s+design|database\s+architect|data\s+model)\b/i,
+ /\b(normalization|denormalization|index\s+strateg)\b/i,
+
+ // Performance Critical
+ /\b(performance\s+critical|low\s+latency|high\s+throughput)\b/i,
+ /\b(memory\s+optimi|cache\s+strateg|concurrent)\b/i,
+];
+
const LANGUAGE_MAP: Record<string, string> = {
'.js': 'javascript',
'.jsx': 'javascript',