360 Secure SkillHub
360 安全技能中心

Dispatchi (Ralph Loop)

dispatchi 通过脚本在后台以非阻塞方式启动交互式 Claude Code 任务(本地 tmux 会话),面向需要斜杠命令的插件场景;检测到完成承诺后自动退出,支持可选的网络回调路由与 /cancel 取消运行中的循环。

edxi
edxi
热度 72.47
最近更新 2026-05-18 12:10:23
分类:自动化依赖:代码执行 / 读写文件应用场景:工作流 / 自动化脚本 / 任务管理

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add miniade-dispatchi
Metadata
name
dispatchi
description
Launch non-blocking interactive Claude Code tasks for slash-only plugins like ralph-loop. Use when a task needs interactive slash commands and completion callback routing.

Run {baseDir}/scripts/run_dispatchi.sh with user args.

Contract

  • Format: /dispatchi <project> <task-name> <prompt...>
  • Workdir mapping: ${REPOS_ROOT:-/home/miniade/repos}/<project>
  • Defaults: max-iterations=20, completion-promise=COMPLETE
  • Auto-exit: when completion promise appears on its own line, wrapper requests /exit and closes tmux session.

Local config

  • optional env file: ${OPENCLAW_DISPATCH_ENV:-<workspace>/skills/dispatch.env.local}
  • supports OpenClaw skills.entries.dispatchi.env injection
  • script is self-contained (bundled claude_code_run.py)

Security disclosure

  • Reads only allowlisted env keys from dispatch.env.local using key=value parsing (no source).
  • Launches local tmux session and local Claude process; writes output to configured result paths.
  • Network callback is disabled by default; enable only with ENABLE_CALLBACK=1 and explicit group settings.
  • No runtime download of external code.

Behavior

  1. Validate args and return usage if incomplete.
  2. Start interactive dispatch in background (non-blocking).
  3. Verify tmux session exists before returning started.
  4. Use /cancel <run-id> to stop a running loop.