← 返回 Skills 市场
nerua1

Ultrawork — Parallel AI Task Execution

作者 nerua1 · GitHub ↗ · v1.0.1 · MIT-0
cross-platform ⚠ suspicious
81
总下载
0
收藏
0
当前安装
2
版本数
在 OpenClaw 中安装
/install nerua1-ultrawork
功能描述
Runs multiple independent tasks simultaneously by routing each to an appropriate AI model tier for faster parallel execution and combined results.
使用说明 (SKILL.md)

Ultrawork Skill for OpenClaw

Parallel execution engine that runs multiple agents simultaneously for independent tasks. Speed through parallelism.

What It Does

Ultrawork is a parallelism layer:

  • Takes multiple independent tasks
  • Fires them all at once (not sequentially)
  • Routes each to appropriate model/tier
  • Waits for all to complete
  • Returns combined results

Why wait in line when you can use all lanes?

Usage

# Multiple independent tasks
/ultrawork "add types to auth.ts" "fix bug in utils.ts" "update README"

# With explicit count
/ultrawork 3 "task1" "task2" "task3"

# Parallel file processing
/ultrawork "analyze src/*.ts" "generate docs" "run tests"

Or say: "ulw", "ultrawork", "run in parallel", "do these at once"

When to Use

Use Ultrawork when:

  • Multiple independent tasks can run simultaneously
  • Tasks don't depend on each other
  • You want to reduce total execution time
  • You need to delegate to multiple agents at once

Don't use Ultrawork when:

  • Tasks have dependencies (B needs A to finish)
  • Only one sequential task
  • You need guaranteed completion with verification → use /ralph
  • You want full autonomous pipeline → use higher-level skill

How It Works

Parallel Execution Model

Sequential (slow):          Parallel (fast):
┌─────────┐                 ┌─────────┐
│ Task A  │ ──10s──>        │ Task A  │ ──┐
├─────────┤                 ├─────────┤   │
│ Task B  │ ──10s──>        │ Task B  │ ──┼──10s──> Done
├─────────┤                 ├─────────┤   │
│ Task C  │ ──10s──>        │ Task C  │ ──┘
└─────────┘                 └─────────┘
Total: 30s                  Total: 10s

Execution Flow

1. PARSE TASKS
   ↓
2. CLASSIFY INDEPENDENCE
   ↓
3. ROUTE TO TIERS
   - Simple → LOW tier (fast, cheap)
   - Standard → STANDARD tier
   - Complex → THOROUGH tier (slow, expensive)
   ↓
4. FIRE ALL AT ONCE
   - Spawn subagents in parallel
   - No waiting between spawns
   ↓
5. WAIT FOR COMPLETION
   - All tasks finish
   - Collect results
   ↓
6. VERIFY
   - Build passes
   - No new errors
   ↓
7. RETURN RESULTS

Tier Routing

Ultrawork routes tasks to appropriate tiers:

Tier Model Use For Cost Speed
LOW qwen3-coder Simple lookups, type exports $ ⚡ Fast
STANDARD qwen3.5-35b Normal implementation $$ 🚀 Normal
THOROUGH kimi-k2.5 Complex analysis, security $$$ 🐢 Slow

Tier Selection Examples

# LOW tier - trivial tasks
/ultrawork "add export type Config" "fix typo in comment"

# STANDARD tier - normal work  
/ultrawork "implement caching layer" "add error handling"

# THOROUGH tier - complex work
/ultrawork "refactor auth to OAuth2" "debug race condition"

Implementation

#!/bin/bash
# \x3Cworkspace>/skills/ultrawork/ultrawork.sh

# Parse tasks from arguments
TASKS=("$@")
NUM_TASKS=${#TASKS[@]}

echo "=== ULTRAWORK: Parallel Execution ==="
echo "Tasks: $NUM_TASKS"
echo ""

# Create temp directory for results
RESULTS_DIR=$(mktemp -d)
trap "rm -rf $RESULTS_DIR" EXIT

# Function to execute task in background
execute_task() {
  local task_id=$1
  local task_desc=$2
  local output_file="$RESULTS_DIR/task-$task_id.json"
  
  # Determine tier based on task complexity
  local tier="STANDARD"
  local model="lmstudio/qwen3.5-35b-a3b-uncensored-hauhaucs-aggressive"
  
  if [[ "$task_desc" =~ (simple|lookup|typo|export|add type) ]]; then
    tier="LOW"
    model="lmstudio/qwen3-coder-30b-a3b-instruct-mlx"
  elif [[ "$task_desc" =~ (complex|refactor|security|architect|debug.*race) ]]; then
    tier="THOROUGH"
    model="moonshot/kimi-k2.5"
  fi
  
  echo "  [Task $task_id] Tier: $tier | Model: $model"
  
  # Spawn subagent for task
  openclaw sessions spawn \
    --task "$task_desc" \
    --model "$model" \
    --runtime subagent \
    --mode run \
    --output "$output_file" \
    2>/dev/null &
  
  # Save PID
  echo $! > "$RESULTS_DIR/task-$task_id.pid"
}

# Fire all tasks simultaneously
echo "Launching tasks..."
for i in "${!TASKS[@]}"; do
  task_id=$((i + 1))
  execute_task "$task_id" "${TASKS[$i]}"
done

echo ""
echo "Waiting for completion..."

# Wait for all background jobs
for pid_file in "$RESULTS_DIR"/*.pid; do
  if [[ -f "$pid_file" ]]; then
    pid=$(cat "$pid_file")
    wait $pid 2>/dev/null || true
  fi
done

echo ""
echo "=== Results ==="

# Collect and display results
SUCCESS_COUNT=0
FAIL_COUNT=0

for result_file in "$RESULTS_DIR"/task-*.json; do
  if [[ -f "$result_file" ]]; then
    task_id=$(basename "$result_file" | sed 's/task-//' | sed 's/.json//')
    
    # Check if result exists and parse
    if [[ -s "$result_file" ]]; then
      echo "  [Task $task_id] ✅ Complete"
      SUCCESS_COUNT=$((SUCCESS_COUNT + 1))
    else
      echo "  [Task $task_id] ❌ Failed"
      FAIL_COUNT=$((FAIL_COUNT + 1))
    fi
  fi
done

echo ""
echo "Summary: $SUCCESS_COUNT succeeded, $FAIL_COUNT failed"

# Lightweight verification
echo ""
echo "Verifying..."

# Check build if applicable
if [[ -f "package.json" ]]; then
  if npm run build > /dev/null 2>&1; then
    echo "✅ Build passes"
  else
    echo "⚠️  Build has errors"
  fi
fi

# Check for new errors
if [[ -f "package.json" ]]; then
  if npm test > /dev/null 2>&1; then
    echo "✅ Tests pass"
  else
    echo "⚠️  Tests have failures"
  fi
fi

echo ""
echo "=== ULTRAWORK: Complete ==="

Integration with OpenClaw

Add to AGENTS.md:

## Parallel Execution

When you have multiple independent tasks:

Use `/ultrawork "task1" "task2" "task3"` to run them in parallel.

Ultrawork will:
- Route each task to appropriate tier
- Fire all simultaneously
- Collect results
- Verify nothing broke

Faster than sequential execution for independent work.

Examples

Good Parallel Tasks

# Independent file changes
/ultrawork "add types to auth.ts" "fix bug in utils.ts" "update README"

# Parallel analysis
/ultrawork "analyze performance" "check security" "review accessibility"

# Batch processing
/ultrawork "process file1" "process file2" "process file3"

Bad Parallel Tasks (Dependencies)

# DON'T - Task B needs Task A
/ultrawork "create database schema" "add API endpoints using schema"

# DO - Sequential instead
/ralph "create database schema, then add API endpoints"

Performance

Scenario Sequential Ultrawork Speedup
3 simple tasks 30s 10s 3x
5 type fixes 50s 12s 4x
2 complex refactors 10min 6min 1.6x

Relationship to Other Skills

ralph (persistence wrapper)
 └─ includes: ultrawork (parallel execution)
     └─ provides: parallelism only

autopilot (full autonomous)
 └─ includes: ralph
     └─ includes: ultrawork

Use directly:
- ultrawork → just parallelism
- ralph → parallelism + persistence + verification
- autopilot → full pipeline

Stop Conditions

Ultrawork stops when:

  • ✅ All parallel tasks complete
  • ❌ User says "cancel"
  • ⚠️ Critical failure in any task (optional)

Output Format

=== ULTRAWORK: Parallel Execution ===
Tasks: 3

Launching tasks...
  [Task 1] Tier: LOW | Model: qwen3-coder
  [Task 2] Tier: STANDARD | Model: qwen3.5-35b
  [Task 3] Tier: LOW | Model: qwen3-coder

Waiting for completion...

=== Results ===
  [Task 1] ✅ Complete
  [Task 2] ✅ Complete
  [Task 3] ✅ Complete

Summary: 3 succeeded, 0 failed

Verifying...
✅ Build passes
✅ Tests pass

=== ULTRAWORK: Complete ===

Dependencies

  • openclaw CLI with subagent support
  • Background job support (&, wait)
  • Standard POSIX tools

Version History

  • 1.0.0: Initial implementation based on oh-my-codex ultrawork skill

If this saved you time: ☕ PayPal.me/nerudek GitHub: github.com/nerua1

安全使用建议
Review this skill before installing if you would not want multiple agents modifying or inspecting the same workspace at once. Use it on isolated branches, with a small number of independent tasks, and verify all resulting changes manually.
功能分析
Type: OpenClaw Skill Name: nerua1-ultrawork Version: 1.0.1 The 'ultrawork' skill is a parallel execution utility for the OpenClaw agent, designed to run multiple tasks simultaneously using background processes and PID tracking. The implementation in SKILL.md uses standard bash practices, including temporary directory management with cleanup traps and quoted variable handling to prevent basic shell injection. While it references specific 'uncensored' models and executes local build/test commands (npm run build/test) for verification, these actions are consistent with its stated purpose as a developer productivity tool and do not exhibit signs of malicious intent or data exfiltration.
能力评估
Purpose & Capability
The parallel-execution purpose is coherent, but the described implementation delegates arbitrary tasks to multiple run-mode subagents in the same workspace, which is high-impact unless tightly scoped.
Instruction Scope
The instructions emphasize firing all tasks at once and do not define a concurrency cap, workspace isolation, rollback plan, or approval checkpoint before subagents act.
Install Mechanism
The registry says this is instruction-only with no install spec, while SKILL.md describes a shell implementation and commands such as openclaw sessions spawn and npm; users should treat the runnable behavior as documentation rather than reviewed packaged code.
Credentials
Running build and test commands is purpose-aligned verification, but project npm scripts can execute arbitrary local commands in the user’s workspace.
Persistence & Privilege
The subagents are launched as background processes but are waited on, so there is no clear hidden persistence; the optional AGENTS.md integration would persist future routing instructions.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install nerua1-ultrawork
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /nerua1-ultrawork 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.1
- SKILL.md implementation code block updated: script path changed from `~/.openclaw/skills/ultrawork/ultrawork.sh` to `<workspace>/skills/ultrawork/ultrawork.sh`. - No other content or behavior changes. Documentation and examples remain the same.
v1.0.0
- Initial release of Ultrawork: a parallel execution engine for OpenClaw, enabling multiple tasks to run simultaneously. - Provides real PID-based process tracking for robust and reliable parallel execution. - Automatically classifies tasks, routes each to the appropriate model/tier, and launches all tasks in parallel using subagent sessions. - Waits for completion, collects results, summarizes successes/failures, and performs lightweight verification (e.g. build/tests). - Useful for independent tasks to reduce total execution time; not suited for dependent/sequential workflows.
元数据
Slug nerua1-ultrawork
版本 1.0.1
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 2
常见问题

Ultrawork — Parallel AI Task Execution 是什么?

Runs multiple independent tasks simultaneously by routing each to an appropriate AI model tier for faster parallel execution and combined results. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 81 次。

如何安装 Ultrawork — Parallel AI Task Execution?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install nerua1-ultrawork」即可一键安装,无需额外配置。

Ultrawork — Parallel AI Task Execution 是免费的吗?

是的,Ultrawork — Parallel AI Task Execution 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Ultrawork — Parallel AI Task Execution 支持哪些平台?

Ultrawork — Parallel AI Task Execution 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Ultrawork — Parallel AI Task Execution?

由 nerua1(@nerua1)开发并维护,当前版本 v1.0.1。

💬 留言讨论