Claude Code 并行任务管理器,基于 tmux 后端,用于并发运行多个 Claude Code 任务、监控进度并管理后台作业。当用户提及 Claude Code、后台任务、并行、tmux 时激活
Claude Code 并行任务管理器,基于 tmux 后端,用于并发运行多个 Claude Code 任务、监控进度并管理后台作业。当用户提及 Claude Code、后台任务、并行、tmux 时激活
Claude Code parallel task manager using tmux to run and monitor multiple background tasks concurrently
Claude Code parallel task manager with tmux backend. For running multiple Claude Code tasks concurrently, monitoring progress, and managing background jobs. Activate when user mentions: Claude Code, background task, parallel, tmux.
直接复制以下提示词,发送给你的 AI 助手即可完成安装。
---
name: claude-tmux-runner
description: Claude Code parallel task manager with tmux backend. For running multiple Claude Code tasks concurrently, monitoring progress, and managing background jobs. Activate when user mentions: Claude Code, background task, parallel, tmux.
tools: Bash, Read, Write
---
# Claude Code tmux Runner
## Overview
Run multiple Claude Code tasks in parallel using tmux sessions. Non-blocking, background execution with status monitoring.
## Usage
### Start a Task
```bash
~/.openclaw/scripts/claude-tmux.sh start "Your task description" [task-name]
```
Examples:
```bash
~/.openclaw/scripts/claude-tmux.sh start "Write a Python auth module" auth
~/.openclaw/scripts/claude-tmux.sh start "Build a React component" ui
~/.openclaw/scripts/claude-tmux.sh start "Create a Go microservice" api
```
### List All Tasks
```bash
~/.openclaw/scripts/claude-tmux.sh list
```
### Check Task Status
```bash
~/.openclaw/scripts/claude-tmux.sh status <task-id>
```
### View Generated Files
```bash
~/.openclaw/scripts/claude-tmux.sh files
```
### Stop Tasks
```bash
~/.openclaw/scripts/claude-tmux.sh stop <task-id>
~/.openclaw/scripts/claude-tmux.sh stop-all
```
## Workflow
1. User says "use Claude Code xxx" → Optimize prompt → Show for approval
2. User confirms → Start background task → Return immediately
3. User can continue chatting → Non-blocking
4. User asks "how is Claude doing" → Check status → Return progress
## Industrial Code Standards
Generated code must include:
1. Complete error handling (try-catch, boundary checks)
2. Type annotations (TypeScript, Python type hints)
3. Documentation (JSDoc, docstring)
4. Unit tests (pytest, jest)
5. Performance considerations (time/space complexity)
6. Security best practices (input validation)
7. Maintainability (clear naming, modular)
## File Locations
- Script: `~/.openclaw/scripts/claude-tmux.sh`
- Logs: `~/.openclaw/logs/claude/`
- Files: `~/.openclaw/workspace/`
- State: `~/.openclaw/state/claude/`
文件内容直接读取自技能仓库,仅供安装前审阅;以实际下载的压缩包为准。