تخطَّ إلى المحتوى
TakoAPI
العودة إلى المهارات

cli-worker

بواسطة quratus

Coding Agents & IDEs
486التنزيلات وفق ما يذكره clawskills.sh
0المشاهدات
لا إعجاباتسجّل الدخول للإعجاب بهذه المهارة
—لم يُقيَّم بعد
تقييمك

موجز

Delegates coding tasks to Kimi CLI agents in isolated git worktrees.

الوصف

ما الذي تفعله هذه المهارة

Delegates coding tasks to Kimi CLI agents running in isolated git worktrees. Tasks execute headlessly without blocking the main agent, and each task gets its own branch to avoid git conflicts. Supports parallel workloads by running multiple tasks simultaneously.

Isolated worktrees prevent git conflicts during parallel task execution, which sessions_spawn does not reliably handle for single delegated coding jobs.

متى تستخدمها

  • Running a refactoring task in a separate branch while continuing main work
  • Delegating test generation to Kimi without blocking the current session
  • Executing a headless code generation job from an OpenClaw agent
  • Prototyping a feature in an isolated worktree to avoid git conflicts
  • Cleaning up completed worktrees after merging delegated task output

مثال على سير العمل

الإدخال

User asks: Write unit tests for auth.js and put them in a separate branch

الوكيل
  1. 1

    Verify Kimi CLI is installed and authenticated with cli-worker verify

  2. 2

    Execute the task: cli-worker execute "Write unit tests for auth.js" --success "All tests pass"

  3. 3

    Poll task status with cli-worker status <taskId>

  4. 4

    Merge the worktree branch into main with git merge openclaw/<taskId>

  5. 5

    Remove the worktree with cli-worker worktree remove <taskId>

الإخراج

Unit tests committed in an isolated branch and merged into main after review

المتطلبات

  • Kimi CLI installed (uv tool install kimi-cli or from code.kimi.com)
  • Kimi account authenticated via OAuth (run kimi then /login)

التثبيت

clawhub install quratus/cli-worker

شغّل أمر واجهة سطر الأوامر، أو الصق النص في Claude Code أو Cursor أو Codex أو أي وكيل برمجة تستخدمه.

الروابط