Claude Code 全自动多 Phase 工作流引擎 | Multi-phase workflow engine for Claude Code
A multi-phase workflow engine for Claude Code with automatic task decomposition, parallel multi-agent review, and complete Git version control.
- Multi-Phase Execution: Automatically decompose tasks into phases
- Parallel Multi-Agent Review: 4 AI agents review simultaneously (security/performance/style/logic)
- Git Version Control: Auto-commit each phase with full history
- Breakpoint Resume: Resume from failed phases
- Auto Archiving: Generate documentation for each phase
- Auto-Approve: Automatically approve safe operations in workflow
git- Version controljq- JSON processing- Build tools for your language (npm/cargo/python/go)
claude- Claude Code CLI
Forge requires bypassPermissions mode for fully automatic execution.
Without bypass mode:
- Every Bash command, file modification, Git operation requires manual confirmation
- You need to type
yor click confirm each time - Cannot achieve "unattended" development
With bypass mode:
- All operations auto-approved, no confirmation needed
- True "one-click start, fully automatic"
- Recommended only for trusted projects
/plugin install auto-forgeNote: Plugin submitted to official marketplace, pending Anthropic review.
# Clone the repository
git clone https://github.com/YaoIsAI/auto-forge.git
# Create symbolic link
# Windows (Git Bash)
ln -s /path/to/auto-forge/.claude/skills/forge ~/.claude/skills/forge
# Linux/macOS
ln -s /path/to/auto-forge/.claude/skills/forge ~/.claude/skills/forgeclaude --plugin-dir /path/to/auto-forgeRecommended: Use bypass mode for fully automatic execution:
# Method 1: Command line parameter (Recommended)
claude --permission-mode bypassPermissions
# Method 2: Start in project directory
cd /path/to/your/project
claude --permission-mode bypassPermissions/forge Implement a user authentication module with JWT + OAuth2
/forge --resume # Resume from breakpoint
/forge --revert 2 # Revert to Phase 2
/forge --log # View git history
# 1. Start Claude Code (must use bypassPermissions)
claude --permission-mode bypassPermissions
# 2. Enter project directory
cd /path/to/your/project
# 3. Install hooks (first time)
bash ~/.claude/skills/forge/scripts/setup-hooks.sh
# 4. Use forge
/forge Implement a user authentication module with JWT + OAuth2
# 5. Wait for automatic completion (no manual intervention needed)Cause: Claude Code not started with bypass mode
Solution:
# Restart Claude Code with bypass mode
claude --permission-mode bypassPermissionsCause: Hooks not installed in project
Solution:
# Run installation script
bash ~/.claude/skills/forge/scripts/setup-hooks.sh
# Verify installation
ls -la .claude/*.shCause: Forge not initialized or state file deleted
Solution:
# Check state file
cat .forge-state.json
# If not exists, run forge again
/forge your task description# View hook execution logs
tail -50 .forge-hook.log
# Monitor hook status
bash ~/.claude/skills/forge/scripts/monitor-hooks.sh# View git history
git log --oneline --grep="forge(phase"
# Revert to specific phase
/forge --revert 2
# Or manual revert
git revert <commit-hash>Claude Code 的全自动多 Phase 工作流插件,支持并行 AI 评审和完整 Git 版本控制。
- 多 Phase 串行执行: 自动拆分任务,按阶段执行
- 多代理并行评审: 4 个 AI 代理同时审查(安全/性能/规范/逻辑)
- Git 版本控制: 每个 Phase 自动 commit,支持回撤
- 断点续跑: 支持从失败点恢复
- 自动归档: 每个 Phase 生成完整文档
- 自动批准: 工作流中自动批准安全操作
git- 版本控制jq- JSON 处理- 各语言构建工具(npm/cargo/python/go)
claude- Claude Code CLI
Forge 需要 bypassPermissions 权限模式才能实现全自动执行。
如果不使用 bypass 模式:
- 每次 Bash 命令、文件修改、Git 操作都会弹出确认提示
- 需要手动输入
y或点击确认 - 无法实现"无人值守"开发
如果使用 bypass 模式:
- 所有操作自动批准,无需确认
- 真正的"一键启动,全程自动"
- 建议仅在可信项目中使用
/plugin install auto-forge注意: 插件已提交官方市场,等待 Anthropic 审核。
# 克隆仓库
git clone https://github.com/YaoIsAI/auto-forge.git
# 创建符号链接
# Windows (Git Bash)
ln -s /path/to/auto-forge/.claude/skills/forge ~/.claude/skills/forge
# Linux/macOS
ln -s /path/to/auto-forge/.claude/skills/forge ~/.claude/skills/forgeclaude --plugin-dir /path/to/auto-forge推荐使用 bypass 模式启动,实现全自动执行:
# 方式 1: 命令行参数(推荐)
claude --permission-mode bypassPermissions
# 方式 2: 在项目目录启动
cd /path/to/your/project
claude --permission-mode bypassPermissions/forge 实现一个用户认证模块,支持 JWT + OAuth2
/forge --resume # 从断点继续
/forge --revert 2 # 回撤到 Phase 2 完成后的状态
/forge --log # 查看所有 Phase 的 git 历史
# 1. 启动 Claude Code(必须带 bypassPermissions)
claude --permission-mode bypassPermissions
# 2. 进入项目目录
cd /path/to/your/project
# 3. 安装 hooks(首次使用)
bash ~/.claude/skills/forge/scripts/setup-hooks.sh
# 4. 使用 forge
/forge 实现一个用户认证模块,支持 JWT + OAuth2
# 5. 等待自动完成(无需任何人工干预)原因: 未使用 bypass 模式启动 Claude Code
解决:
# 重新启动 Claude Code,使用 bypass 模式
claude --permission-mode bypassPermissions原因: Hooks 未安装到项目
解决:
# 运行安装脚本
bash ~/.claude/skills/forge/scripts/setup-hooks.sh
# 验证安装
ls -la .claude/*.sh原因: Forge 未初始化或状态文件被删除
解决:
# 检查状态文件
cat .forge-state.json
# 如果不存在,重新运行 forge
/forge 你的任务描述# 查看 hook 执行日志
tail -50 .forge-hook.log
# 监控 hook 状态
bash ~/.claude/skills/forge/scripts/monitor-hooks.sh# 查看 git 历史
git log --oneline --grep="forge(phase"
# 回撤到特定 Phase
/forge --revert 2
# 或手动回撤
git revert <commit-hash>- GitHub: https://github.com/YaoIsAI/auto-forge
- Marketplace: Submitted, pending review
MIT