ruflo 命令体系到智能体体系的迁移方案:Claude Flow 命令与 Agent 系统的完整映射
【免费下载链接】ruflo🌊 The original agent meta-harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory, self-learning intelligence, RAG integration, and native Claude Code / Codex / Hermes and many more Integrated项目地址: https://gitcode.com/GitHub_Trending/cl/ruflo
rufflo(ruflo)仓库中同时存在两套任务入口:基于斜杠命令的.claude/commands/体系与基于自然语言激活的.claude/agents/体系。本文以 迁移规划技能文档 为主体,完整拆解该文档定义的 Agent 定义格式、八大类别共 16 个命令到智能体的映射方案、工具权限治理与触发机制,并结合仓库中真实存在的命令文件与迁移摘要文档交叉印证,帮助读者掌握从命令式调用向智能体编排迁移的完整路径与验证方法。
一、迁移背景:为什么从 Commands 转向 Agents
ruflo 项目定位为多智能体元框架(agent meta-harness),其 Claude Flow 集成最初通过.claude/commands/下的 Markdown 命令文件提供功能入口,例如/sparc orchestrator "task"这类显式调用。迁移规划文档 开篇即明确了迁移目标:
This document provides a comprehensive migration plan to convert existing
.claude/commandsto the new agent-based system. Each command is mapped to an equivalent agent with defined roles, responsibilities, capabilities, and tool access restrictions.
仓库中 迁移摘要文档 对迁移收益做了同样定位:迁移在保留全部功能的前提下,增加自然语言理解、智能协调与更强的并行化能力——调用方式从/sparc orchestrator "task"变为直接说 "Orchestrate the development of the authentication system"。
值得注意的是,迁移规划文档本身具有双层 YAML frontmatter 结构,说明它是作为「技能(skill)」分发给 Claude Code / Codex 类 CLI 使用的:
- 外层 frontmatter:
name: agent-migration-plan,描述为 "Agent skill for migration-plan - invoke with $agent-migration-plan",即用户可用$agent-migration-plan语法触发该技能; - 内层 frontmatter:
name: migration-planner、type: planning、priority: medium,并声明了migration-planning、system-transformation、agent-mapping、compatibility-analysis、rollout-coordination五项能力。
内层 frontmatter 还定义了 pre/post 钩子脚本。pre 钩子会在技能激活时检查现有命令结构并统计待迁移命令数量:
# 检查已有命令目录,统计待迁移的 .md 命令数量 if [ -d ".claude$commands" ]; then echo "📁 Found existing command directory - will map to agents" find .claude$commands -name "*.md" | wc -l | xargs echo "Commands to migrate:" fipost 钩子则输出迁移规划完成的确认信息。这套钩子设计说明迁移规划被当作一个可自动触发的流程步骤,而非纯静态文档。
二、Agent 定义格式:统一 YAML Frontmatter 规范
迁移规划文档定义了所有目标 Agent 必须遵循的 YAML frontmatter 结构,这是整个迁移方案的地基:
--- role: agent-type name: Agent Display Name responsibilities: - Primary responsibility - Secondary responsibility capabilities: - capability-1 - capability-2 tools: allowed: - tool-name restricted: - restricted-tool triggers: - pattern: "regex pattern" priority: high|medium|low - keyword: "activation keyword" ---各字段语义如下:
| 字段 | 作用 | 说明 |
|---|---|---|
role | 智能体角色类型 | 如coordinator、orchestrator、analyst、optimizer |
name | 展示名称 | 供人机交互时识别 |
responsibilities | 职责清单 | 该智能体负责的核心工作项 |
capabilities | 能力清单 | 细粒度的能力标签,用于能力匹配 |
tools.allowed | 允许工具白名单 | 最小权限原则的核心载体 |
tools.restricted | 受限工具黑名单 | 防止智能体越界操作 |
triggers | 激活规则 | 正则模式(含优先级)或关键词两种形式 |
迁移摘要文档 进一步给出了完整的 Agent 文件模板:frontmatter 之后应依次包含Purpose、Core Functionality、Usage Examples、Integration Points、Best Practices五个正文小节。仓库中已落地的 Agent 定义(如 Topology Optimizer)正是按「Agent Profile → Core Capabilities → 实现示例代码」的结构组织的,与模板思路一致。
三、迁移类别与完整映射:16 个命令到智能体方案
文档将 17 个命令按功能划分为 8 大类别,逐一给出等价 Agent 的完整定义。以下完整继承原文档内容,并将文档中的.claude$commands$...路径标注为仓库中实际可查证的路径。
3.1 类别一:协调类 Agent(Coordination Agents)
Swarm Initializer Agent
源命令:.claude/commands/coordination/init.md(已确认存在,44 行)
--- role: coordinator name: Swarm Initializer responsibilities: - Initialize agent swarms with optimal topology - Configure distributed coordination systems - Set up inter-agent communication channels capabilities: - swarm-initialization - topology-optimization - resource-allocation - network-configuration tools: allowed: - mcp__claude-flow__swarm_init - mcp__claude-flow__topology_optimize - mcp__claude-flow__memory_usage - TodoWrite restricted: - Bash - Write - Edit triggers: - pattern: "init.*swarm|create.*swarm|setup.*agents" priority: high - keyword: "swarm-init" ---仓库中实际的源命令文件印证了该定义中的工具映射:init.md 明确声明使用mcp__claude-flow__swarm_init工具,参数示例为{"topology": "mesh", "maxAgents": 5, "strategy": "balanced"},并强调该命令只建立协调框架、不直接写代码——这与 Agent 定义中把Bash、Write、Edit全部列入 restricted 的设计意图完全吻合。
Agent Spawner
源命令:.claude/commands/coordination/spawn.md(已确认存在,45 行)
--- role: coordinator name: Agent Spawner responsibilities: - Create specialized cognitive patterns for task execution - Assign capabilities to agents based on requirements - Manage agent lifecycle and resource allocation capabilities: - agent-creation - capability-assignment - resource-management - pattern-recognition tools: allowed: - mcp__claude-flow__agent_spawn - mcp__claude-flow__daa_agent_create - mcp__claude-flow__agent_list - mcp__claude-flow__memory_usage restricted: - Bash - Write - Edit triggers: - pattern: "spawn.*agent|create.*agent|add.*agent" priority: high - keyword: "agent-spawn" ---Task Orchestrator
源命令:.claude/commands/coordination/orchestrate.md(已确认存在,43 行)
--- role: orchestrator name: Task Orchestrator responsibilities: - Decompose complex tasks into manageable subtasks - Coordinate parallel and sequential execution strategies - Monitor task progress and dependencies - Synthesize results from multiple agents capabilities: - task-decomposition - execution-planning - dependency-management - result-aggregation - progress-tracking tools: allowed: - mcp__claude-flow__task_orchestrate - mcp__claude-flow__task_status - mcp__claude-flow__task_results - mcp__claude-flow__parallel_execute - TodoWrite - TodoRead restricted: - Bash - Write - Edit triggers: - pattern: "orchestrate|coordinate.*task|manage.*workflow" priority: high - keyword: "orchestrate" ---3.2 类别二:GitHub 集成 Agent
PR Manager Agent
源命令:.claude/commands/github/pr-manager.md(已确认存在,169 行)
--- role: github-specialist name: Pull Request Manager responsibilities: - Manage complete pull request lifecycle - Coordinate multi-reviewer workflows - Handle merge strategies and conflict resolution - Track PR progress with issue integration capabilities: - pr-creation - review-coordination - merge-management - conflict-resolution - status-tracking tools: allowed: - Bash # For gh CLI commands - mcp__claude-flow__swarm_init - mcp__claude-flow__agent_spawn - mcp__claude-flow__task_orchestrate - mcp__claude-flow__memory_usage - TodoWrite - Read restricted: - Write # Should use gh CLI for GitHub operations - Edit triggers: - pattern: "pr|pull.?request|merge.*request" priority: high - keyword: "pr-manager" ---这里的权限设计很有代表性:允许Bash是为了执行ghCLI 命令,而限制Write与Edit则是因为 GitHub 操作应统一走 CLI 通道,避免本地文件被误写。仓库中对应的落地文件 pr-manager.md 已存在于.claude/agents/github/目录下。
Code Review Swarm Agent
源命令:.claude/commands/github/code-review-swarm.md(已确认存在,513 行,是全部源命令中篇幅最大者之一)
--- role: reviewer name: Code Review Coordinator responsibilities: - Orchestrate multi-agent code reviews - Ensure code quality and standards compliance - Coordinate security and performance reviews - Generate comprehensive review reports capabilities: - code-analysis - quality-assessment - security-scanning - performance-review - report-generation tools: allowed: - Bash # For gh CLI - Read - Grep - mcp__claude-flow__swarm_init - mcp__claude-flow__agent_spawn - mcp__claude-flow__github_code_review - mcp__claude-flow__memory_usage restricted: - Write - Edit triggers: - pattern: "review.*code|code.*review|check.*pr" priority: high - keyword: "code-review" ---评审协调者被赋予Read与Grep只读检索工具而禁写,符合「评审只读、结论外发」的安全边界。
Release Manager Agent
源命令:.claude/commands/github/release-manager.md(已确认存在,337 行)
--- role: release-coordinator name: Release Manager responsibilities: - Coordinate release preparation and deployment - Manage version tagging and changelog generation - Orchestrate multi-repository releases - Handle rollback procedures capabilities: - release-planning - version-management - changelog-generation - deployment-coordination - rollback-execution tools: allowed: - Bash - Read - mcp__claude-flow__github_release_coord - mcp__claude-flow__swarm_init - mcp__claude-flow__task_orchestrate - TodoWrite restricted: - Write # Use version control for releases - Edit triggers: - pattern: "release|deploy|tag.*version|create.*release" priority: high - keyword: "release-manager" ---3.3 类别三:SPARC 方法论 Agent
SPARC(Specify–Plan–Act–Review–Correct)是 ruflo 的核心开发方法论,对应命令位于sparc/子目录。
SPARC Orchestrator Agent
源命令:.claude/commands/sparc/orchestrator.md(已确认存在,131 行)
--- role: sparc-coordinator name: SPARC Orchestrator responsibilities: - Coordinate SPARC methodology phases - Manage task decomposition and agent allocation - Track progress across all SPARC phases - Synthesize results from specialized agents capabilities: - sparc-coordination - phase-management - task-planning - resource-allocation - result-synthesis tools: allowed: - mcp__claude-flow__sparc_mode - mcp__claude-flow__swarm_init - mcp__claude-flow__agent_spawn - mcp__claude-flow__task_orchestrate - TodoWrite - TodoRead - mcp__claude-flow__memory_usage restricted: - Bash - Write - Edit triggers: - pattern: "sparc.*orchestrat|coordinate.*sparc" priority: high - keyword: "sparc-orchestrator" ---SPARC Coder Agent
源命令:.claude/commands/sparc/coder.md(已确认存在,54 行)
--- role: implementer name: SPARC Implementation Specialist responsibilities: - Transform specifications into working code - Implement TDD practices with parallel test creation - Ensure code quality and standards compliance - Optimize implementation for performance capabilities: - code-generation - test-implementation - refactoring - optimization - documentation tools: allowed: - Read - Write - Edit - MultiEdit - Bash - mcp__claude-flow__sparc_mode - TodoWrite restricted: - mcp__claude-flow__swarm_init # Focus on implementation triggers: - pattern: "implement|code|develop|build.*feature" priority: high - keyword: "sparc-coder" ---这是 16 个定义中唯一同时放开Write、Edit、MultiEdit、Bash的实现型 Agent,且把swarm_init列入 restricted——「实现者专注写码,不碰编排」,与协调类 Agent 的权限画像正好互补。
SPARC Tester Agent
源命令:.claude/commands/sparc/tester.md(已确认存在,54 行)
--- role: quality-assurance name: SPARC Testing Specialist responsibilities: - Design comprehensive test strategies - Implement parallel test execution - Ensure coverage requirements are met - Coordinate testing across different levels capabilities: - test-design - test-implementation - coverage-analysis - performance-testing - security-testing tools: allowed: - Read - Write - Edit - Bash - mcp__claude-flow__sparc_mode - TodoWrite - mcp__claude-flow__parallel_execute restricted: - mcp__claude-flow__swarm_init triggers: - pattern: "test|verify|validate|check.*quality" priority: high - keyword: "sparc-tester" ---3.4 类别四:分析类 Agent
Performance Analyzer Agent
源命令:.claude/commands/analysis/performance-bottlenecks.md(已确认存在,58 行)
--- role: analyst name: Performance Bottleneck Analyzer responsibilities: - Identify performance bottlenecks in workflows - Analyze execution patterns and resource usage - Recommend optimization strategies - Monitor improvement metrics capabilities: - performance-analysis - bottleneck-detection - metric-collection - pattern-recognition - optimization-planning tools: allowed: - mcp__claude-flow__bottleneck_analyze - mcp__claude-flow__performance_report - mcp__claude-flow__metrics_collect - mcp__claude-flow__trend_analysis - Read - Grep restricted: - Write - Edit - Bash triggers: - pattern: "analyze.*performance|bottleneck|slow.*execution" priority: high - keyword: "performance-analyzer" ---Token Efficiency Analyst Agent
源命令:.claude/commands/analysis/token-efficiency.md(已确认存在,44 行)
--- role: analyst name: Token Efficiency Analyzer responsibilities: - Monitor token consumption across operations - Identify inefficient token usage patterns - Recommend optimization strategies - Track cost implications capabilities: - token-analysis - cost-optimization - usage-tracking - pattern-detection - report-generation tools: allowed: - mcp__claude-flow__token_usage - mcp__claude-flow__cost_analysis - mcp__claude-flow__usage_stats - mcp__claude-flow__memory_analytics - Read restricted: - Write - Edit - Bash triggers: - pattern: "token.*usage|analyze.*cost|efficiency.*report" priority: medium - keyword: "token-analyzer" ---注意其priority: medium,是分析类中唯一未设为 high 的定义,体现触发优先级可按业务紧急度分级。
3.5 类别五:记忆管理 Agent
Memory Coordinator Agent
源命令:.claude$commands$memory$usage.md。需要说明的是:在当前仓库中,memory 命令目录 下并未发现usage.md文件(该目录实际存在但此文件缺失),这是一个文档与仓库现状不一致的边界情况,实施迁移时应先补齐或降级处理该条映射。
--- role: memory-manager name: Memory Coordination Specialist responsibilities: - Manage persistent memory across sessions - Coordinate memory namespaces and TTL - Optimize memory usage and compression - Facilitate cross-agent memory sharing capabilities: - memory-management - namespace-coordination ->--- role: ai-specialist name: Neural Pattern Coordinator responsibilities: - Train and manage neural patterns - Coordinate cognitive behavior analysis - Implement adaptive learning strategies - Optimize AI model performance capabilities: - neural-training - pattern-recognition - cognitive-analysis - model-optimization - transfer-learning tools: allowed: - mcp__claude-flow__neural_train - mcp__claude-flow__neural_patterns - mcp__claude-flow__neural_predict - mcp__claude-flow__cognitive_analyze - mcp__claude-flow__learning_adapt restricted: - Write - Edit - Bash triggers: - pattern: "neural|ai.*pattern|cognitive|machine.*learning" priority: high - keyword: "neural-patterns" ---3.6 类别六:自动化 Agent
Smart Agent Coordinator
源命令:.claude/commands/automation/smart-agents.md(已确认存在,72 行)
--- role: automation-specialist name: Smart Agent Coordinator responsibilities: - Automate agent spawning based on task requirements - Implement intelligent capability matching - Manage dynamic agent allocation - Optimize resource utilization capabilities: - intelligent-spawning - capability-matching - resource-optimization - pattern-learning - auto-scaling tools: allowed: - mcp__claude-flow__daa_agent_create - mcp__claude-flow__daa_capability_match - mcp__claude-flow__daa_resource_alloc - mcp__claude-flow__swarm_scale - mcp__claude-flow__agent_metrics restricted: - Write - Edit - Bash triggers: - pattern: "smart.*agent|auto.*spawn|intelligent.*coordination" priority: high - keyword: "smart-agents" ---Self-Healing Coordinator Agent
源命令:.claude/commands/automation/self-healing.md(已确认存在,105 行)
--- role: reliability-engineer name: Self-Healing System Coordinator responsibilities: - Detect and recover from system failures - Implement fault tolerance strategies - Coordinate automatic recovery procedures - Monitor system health continuously capabilities: - fault-detection - automatic-recovery - health-monitoring - resilience-planning - error-analysis tools: allowed: - mcp__claude-flow__daa_fault_tolerance - mcp__claude-flow__health_check - mcp__claude-flow__error_analysis - mcp__claude-flow__diagnostic_run - Bash # For system commands restricted: - Write # Prevent accidental file modifications during recovery - Edit triggers: - pattern: "self.*heal|auto.*recover|fault.*toleran|system.*health" priority: high - keyword: "self-healing" ---自愈协调器是权限设计中权衡最精细的一个:恢复过程必须能执行系统命令(保留Bash),但严禁改文件(限制Write/Edit),文档注释直接写明理由——"Prevent accidental file modifications during recovery"。
3.7 类别七:优化 Agent
Parallel Execution Optimizer Agent
源命令:.claude/commands/optimization/parallel-execution.md(已确认存在,49 行)
--- role: optimizer name: Parallel Execution Optimizer responsibilities: - Optimize task execution for parallelism - Identify parallelization opportunities - Coordinate concurrent operations - Monitor parallel execution efficiency capabilities: - parallelization-analysis - execution-optimization - load-balancing - performance-monitoring - bottleneck-removal tools: allowed: - mcp__claude-flow__parallel_execute - mcp__claude-flow__load_balance - mcp__claude-flow__batch_process - mcp__claude-flow__performance_report - TodoWrite restricted: - Write - Edit triggers: - pattern: "parallel|concurrent|simultaneous|batch.*execution" priority: high - keyword: "parallel-optimizer" ---Auto-Topology Optimizer Agent
源命令:.claude/commands/optimization/auto-topology.md(已确认存在,61 行)
--- role: optimizer name: Topology Optimization Specialist responsibilities: - Analyze and optimize swarm topology - Adapt topology based on workload - Balance communication overhead - Ensure optimal agent distribution capabilities: - topology-analysis - graph-optimization - network-design - load-distribution - adaptive-configuration tools: allowed: - mcp__claude-flow__topology_optimize - mcp__claude-flow__swarm_monitor - mcp__claude-flow__coordination_sync - mcp__claude-flow__swarm_status - mcp__claude-flow__metrics_collect restricted: - Write - Edit - Bash triggers: - pattern: "topology|optimize.*swarm|network.*structure" priority: medium - keyword: "topology-optimizer" ---仓库中对应的落地文件 Topology Optimizer Agent 已经存在(约 806 行),正文给出了TopologyOptimizer类的 JavaScript 实现骨架,覆盖 hierarchical、mesh、ring、star、hybrid、adaptive 六种拓扑的动态选择与多目标优化逻辑——从源码结构看,这正是本映射方案 Phase 1(Agent 创建)的产物之一。
3.8 类别八:监控 Agent
Swarm Monitor Agent
源命令:.claude/commands/monitoring/status.md(已确认存在,46 行)
--- role: monitor name: Swarm Status Monitor responsibilities: - Monitor swarm health and performance - Track agent status and utilization - Generate real-time status reports - Alert on anomalies or failures capabilities: - health-monitoring - performance-tracking - status-reporting - anomaly-detection - alert-generation tools: allowed: - mcp__claude-flow__swarm_status - mcp__claude-flow__swarm_monitor - mcp__claude-flow__agent_metrics - mcp__claude-flow__health_check - mcp__claude-flow__performance_report restricted: - Write - Edit - Bash triggers: - pattern: "monitor|status|health.*check|swarm.*status" priority: medium - keyword: "swarm-monitor" ---四、权限与触发机制的设计模式分析
将 16 个 Agent 定义横向对比,可以归纳出三条一致的设计规律:
规律一:MCP 工具即角色边界。协调类(coordinator/orchestrator/monitor)Agent 的allowed清单几乎全部由mcp__claude-flow__*前缀的 MCP 工具构成,而原生文件工具(Write/Edit)与Bash一律受限。MCP 前缀与仓库中 MCP 服务器的实际工具命名空间一致(如 init.md 中出现的mcp__claude-flow__swarm_init),说明权限设计直接锚定了真实的 MCP 工具清单,而非虚构名称。
规律二:写权限与业务风险挂钩。实现类(SPARC Coder)全放开;GitHub 类只放Bash(走 gh CLI);自愈类放Bash但禁Write(防恢复过程误改文件);分析/监控类全禁。每条restricted条目旁文档都附有理由注释(如# Should use gh CLI for GitHub operations、# Use version control for releases),便于审计。
规律三:触发优先级分级。绝大多数触发模式为priority: high,Token Efficiency Analyst与Auto-Topology Optimizer、Swarm Monitor等辅助型 Agent 为medium。文档的 Implementation Guidelines 明确了激活规则:用户消息通过 pattern 匹配激活 Agent、高优先级 pattern 优先、复杂任务可同时激活多个 Agent。
五、实施指南:迁移步骤与向后兼容策略
原文档 Implementation Guidelines 章节给出了 5 点实施原则,完整继承如下:
- Agent 激活(Agent Activation):Agent 通过用户消息的 pattern 匹配激活;高优先级模式优先;复杂任务可激活多个 Agent 协同。
- 工具限制(Tool Restrictions):每个 Agent 有明确的 allowed/restricted 工具集;限制确保 Agent 不越出自身领域;关键操作必须由专门的 Agent 承担。
- Agent 间通信(Inter-Agent Communication):Agent 通过共享内存通信;Task Orchestrator 协调多 Agent 工作流;结果由协调类 Agent 聚合。
- 迁移步骤(Migration Steps):
- 创建
.claude/agents/目录结构; - 将每个命令转换为 Agent 定义格式;
- 更新激活模式以支持自然语言;
- 测试 Agent 间的交互与交接(handoffs);
- 采用带回退机制的渐进式推广。
- 创建
- 向后兼容(Backwards Compatibility):过渡期保留命令文件;将命令调用映射为 Agent 激活;对弃用命令提供迁移警告。
仓库中 MIGRATION_SUMMARY.md 把上述原则细化为五个可执行阶段,并标注了进度状态:
- Phase 1(Agent 创建)——已完成:为所有关键命令创建 Agent 定义、定义含 role/triggers 的 YAML frontmatter、映射工具权限、记录集成模式;
- Phase 2(并行运行):Agent 与命令并存,按请求路由到不同系统,收集使用指标并打磨触发器;
- Phase 3(用户迁移):更新文档中的 Agent 示例、提供常见工作流的迁移指南、推广自然语言使用;
- Phase 4(命令弃用):给命令添加弃用警告、在警告中给出 Agent 替代项、监控命令残留用量、设定下线日期;
- Phase 5(全量 Agent 系统):移除弃用命令、优化 Agent 交互、启用 Agent 学习能力。
同时,该摘要文档给出了更完整的命令-Agent 文件名级映射表(例如/sparc/coder.md → implementer-sparc-coder.md、/optimization/auto-topology.md → optimizer-topology.md),与本文第三节的分类方案互为补充,实施命名时应以该表为准对齐。
六、迁移成功的度量与验证标准
原文档 Monitoring Migration Success 章节定义了迁移验收框架:
关键指标(Key Metrics):
- Agent 激活准确率(Agent activation accuracy)
- 任务完成率(Task completion rates)
- Agent 间协调效率(Inter-agent coordination efficiency)
- 用户满意度评分(User satisfaction scores)
- 性能改进(Performance improvements)
验证标准(Validation Criteria):
- 所有命令都有等价 Agent(All commands have equivalent agents)
- 迁移过程中无功能丢失(No functionality loss during migration)
- 自然语言理解能力增强(Improved natural language understanding)
- 更好的任务分解与并行化(Better task decomposition and parallelization)
- 更强的错误处理与恢复(Enhanced error handling and recovery)
结合仓库现状可以推断验证基线:.claude/commands/目录下按 analysis、automation、coordination、github、memory、monitoring、optimization、sparc 等子目录组织了命令文件,.claude/agents/下已存在 github、optimization、sparc 等对应子目录及大量落地 Agent 定义(如 github 目录 下的 pr-manager.md、release-manager.md、code-review-swarm.md 等),说明「所有命令都有等价 Agent」这一验收项在仓库层面已基本具备核查条件,只需逐条对照第三节映射表清点即可。
七、落地参考:命令文件如何被 Agent 替代
以 Swarm Initializer 为例说明单条迁移的完整闭环。迁移前,用户需显式执行命令,init.md 指导其调用mcp__claude-flow__swarm_init并传入{"topology": "mesh", "maxAgents": 5, "strategy": "balanced"}参数;迁移后,用户直接以自然语言表达意图(如 "initialize a swarm for this project"),触发器 patterninit.*swarm|create.*swarm|setup.*agents(high 优先级)或关键词swarm-init命中 Swarm Initializer Agent,由其在swarm_init、topology_optimize、memory_usage的最小工具集内完成同样工作。参数语义不变、调用链不变,变化的是入口(显式命令 → 意图识别)与边界(无显式约束 → 白名单/黑名单治理)。
八、要点总结
- 迁移规划文档 是命令→Agent 迁移的权威方案:统一 YAML 定义格式 + 8 类别 16 个映射 + 实施指南 + 验收标准,四者构成完整闭环。
- 权限设计遵循「MCP 工具即角色边界」原则,
tools.allowed/restricted逐条附理由注释,可直接作为 Agent 安全审计依据。 - 仓库中 17 个源命令有 16 个经核实存在于
.claude/commands/对应子目录(memory/usage.md缺失需留意);.claude/agents/目录与 MIGRATION_SUMMARY.md 表明 Phase 1 已落地,五阶段推广计划提供了后续路线图。 - 技能可通过
$agent-migration-plan语法触发(见 skills 目录约定),适合在迁移执行过程中随时调取本方案作为参考基线。
【免费下载链接】ruflo🌊 The original agent meta-harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory, self-learning intelligence, RAG integration, and native Claude Code / Codex / Hermes and many more Integrated项目地址: https://gitcode.com/GitHub_Trending/cl/ruflo
创作声明:本文部分内容由AI辅助生成(AIGC),仅供参考