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: Edit /workspaces/claude-code-flow/src/agents/agent-loader.ts

rUv438bd7416246
diff --git a/.claude/checkpoints/task-1754066681.json b/.claude/checkpoints/task-1754066681.json
new file mode 100644
index 0000000000..9406e0b74c
--- /dev/null
+++ b/.claude/checkpoints/task-1754066681.json
@@ -0,0 +1 @@
+{"checkpoint": "task-20250801-164439", "task": "{{user_prompt}} ", "timestamp": "2025-08-01T16:44:41Z", "commit": "b3b3fea3708bb40074e457ada2e8caaca7e3d48d", "github_release": "true"}
diff --git a/src/agents/agent-loader.ts b/src/agents/agent-loader.ts
index 17da087acc..467774ba53 100644
--- a/src/agents/agent-loader.ts
+++ b/src/agents/agent-loader.ts
@@ -8,6 +8,24 @@ import { glob } from 'glob';
import { resolve, dirname } from 'node:path';
import { parse as parseYaml } from 'yaml';
+// Legacy agent type mapping for backward compatibility
+const LEGACY_AGENT_MAPPING = {
+ analyst: 'code-analyzer',
+ coordinator: 'task-orchestrator',
+ optimizer: 'perf-analyzer',
+ documenter: 'api-docs',
+ monitor: 'performance-benchmarker',
+ specialist: 'system-architect',
+ architect: 'system-architect',
+} as const;
+
+/**
+ * Resolve legacy agent types to current equivalents
+ */
+function resolveLegacyAgentType(legacyType: string): string {
+ return LEGACY_AGENT_MAPPING[legacyType as keyof typeof LEGACY_AGENT_MAPPING] || legacyType;
+}
+
export interface AgentDefinition {
name: string;
type?: string;