🦀 ClawHub
fast-claude-code
by @deadlining
Claude Code 任务完成回调 Runtime。支持 Single / Interactive / Team 三种模式, ⚠️ 任务在后台 tmux 会话中运行,完成后通过 System Event 自动通知,无需轮询。 Use when: 需要运行 Claude Code 任务并在完成时获得通知。 NOT...
💡 Examples
# 重构单个文件
bin/fast-claude-code.sh single --task "重构 auth.js 的 JWT 逻辑" --project "/my/project"安全审查(多视角)
bin/fast-claude-code.sh team --project "/my/project" --template "parallel-review" --task "审查安全性"架构决策
bin/fast-claude-code.sh team --project "/my/project" --template "architecture-decision" --task "选择 PostgreSQL 还是 MongoDB"复杂功能开发(设置超时)
TEAM_TIMEOUT=7200 bin/fast-claude-code.sh team --project "/my/project" --template "fullstack-feature" --task "实现用户认证系统"Interactive 发送后续任务
bin/fast-claude-code.sh send-task --session "session-name" --task "后续任务"Interactive 结束会话
bin/fast-claude-code.sh send-task --session "session-name" --task "exit session"
⚙️ Configuration
Timeout(Team 模式)
| 复杂度 | 超时 | 场景 | |--------|------|------| | 简单 | 默认 1h | 单文件、单模块 | | 中等 | 默认 1h | 少量文件、标准任务 | | 复杂 | 7200(2h) | 多模块、跨功能 | | 超复杂 | 10800(3h) | 全项目、架构级 |
TEAM_TIMEOUT=7200 bin/fast-claude-code.sh team --project "/path" --template "xxx" --task "xxx"
环境变量
TEAM_TIMEOUT:Team 模式超时时间(秒)CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1:Team 模式必须设置📋 Tips & Best Practices
CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1send-task 发送后续任务TERMINAL
clawhub install fast-claude-code