Claude Code harness multi-agent orchestration
npx claudepluginhub dolphin57/dolphin-claude-codeMinimal Claude Code enhancement plugin
Dolphin-Flow-Harness 是一个基于 Harness Engineering治理工程 理念打造的高效工作流引擎。专为 AI 驱动的需求开发 与 遗留代码重构 场景设计,致力于消除开发过程中的摩擦力,实现人机协同研发效能的最大化。
在引入大模型(LLM)进行辅助开发与重构时,团队常面临提示词管理混乱、上下文易丢失、重构缺乏安全网(Safety Net)等痛点。 Dolphin-Flow-Harness 像海豚一样灵动且精准,通过标准化的工作流(Flow)和驾驭者工程治理(Harness),将非结构化的 AI 需求转化为可执行、可测试、可追溯的标准工程链路。
Dolphin-Flow-Harness 采用模块化的 Agent 系统和关键字触发机制,将复杂的 AI 研发拆解为标准化的工作流:
| 关键字 | 功能 | Skill |
|---|---|---|
dfh-analyst | 需求分析和差距检测 | skills/dfh-analyst/SKILL.md |
dfh-autopilot | 全自动执行模式 | skills/dfh-autopilot/SKILL.md |
dfh-refactor | 代码重构和优化 | skills/dfh-refactor/SKILL.md |
# 克隆仓库
git clone https://github.com/your-username/dolphin-flow-harness.git
cd dolphin-flow-harness
# 安装依赖
npm install
# 构建项目
npm run build
将项目配置为 Claude Code 插件:
# 插件配置已在 .claude-plugin/plugin.json 中定义
# 确保 hooks.json 配置正确
插件配置示例 (.claude-plugin/plugin.json):
{
"name": "dolphin-flow-harness",
"version": "1.0.0",
"description": "Claude Code harness enhancement plugin",
"skills": "./skills/"
}
需求分析示例:
dfh-analyst 分析用户认证功能的需求
自动驾驶示例:
dfh-autopilot 实现用户管理 REST API
代码重构示例:
dfh-refactor 优化 src/utils/helper.ts 的代码质量
# 运行测试
npm test
# 类型检查
npm run typecheck
# 开发模式(自动构建)
npm run build:watch
编辑 src/hooks/keyword-detector/patterns.ts:
export const KEYWORD_PATTERNS: KeywordPattern[] = [
// ... 现有关键字
{
type: 'my-new-keyword',
pattern: /\b(my-keyword|mk)\b/i,
priority: 13,
description: 'My new keyword description'
}
];
然后重新构建:
npm run build
| 模块 | 路径 | 说明 |
|---|---|---|
| Agent 系统 | src/agents/ | 定义各种 Agent 的行为和能力 |
| Hook 系统 | src/hooks/ | 处理关键字检测和触发逻辑 |
| Skills | skills/ | 定义每个关键字的执行流程 |
| 构建脚本 | scripts/ | 构建和运行时脚本 |
| 文档 | docs/ | 详细的使用指南和架构说明 |
我们非常欢迎社区的贡献!无论是提交 Bug、改进工作流逻辑,还是增加新的 Prompt 模板。
git checkout -b feature/AmazingFeature)git commit -m 'Add some AmazingFeature')git push origin feature/AmazingFeature)详情请查阅 CONTRIBUTING.md。
本项目采用 MIT 许可证 - 详情请查看 LICENSE 文件。
Dolphin-Flow-Harness 🌊 Let AI flow through your harness engineering.