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
/exitand closes tmux session.
Local config
- optional env file:
${OPENCLAW_DISPATCH_ENV:-<workspace>/skills/dispatch.env.local} - supports OpenClaw
skills.entries.dispatchi.envinjection - script is self-contained (bundled
claude_code_run.py)
Security disclosure
- Reads only allowlisted env keys from
dispatch.env.localusing key=value parsing (nosource). - 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=1and explicit group settings. - No runtime download of external code.
Behavior
- Validate args and return usage if incomplete.
- Start interactive dispatch in background (non-blocking).
- Verify tmux session exists before returning started.
- Use
/cancel <run-id>to stop a running loop.