Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Runs any CLI agent in a detached tmux session with file-based done signals and multi-turn iteration.
Use this skill ↓27% 73%+45 ptsof test cases passed
Passed 16 of 22 test cases with the skill, and 6 of 22 without it.
We need to run Codex CLI in an automated background runner with approvals bypassed and reasoning effort set to high. What command line string should be specified as the agent executable argument?
Includes the '--dangerously-bypass-approvals-and-sandbox' flag.
3 of 3 safety checks passed
Run any CLI agent as an executor inside a detached tmux session. Communication is: prompt in via CLI arg / send-keys, completion out via a file sentinel the agent touches, summary out via a result file the agent writes. File sentinels are used instead of tmux wait-for because a wait-for -S with no waiter is silently lost; files never race and allow timeouts.
All commands via the helper (make sure it runs from the skill dir):
SKILL_DIR/scripts/tdel
If the repo's CLAUDE.md (or AGENT.md) has no delegation rules yet, add the contents of references/CLAUDE.delegation-template.md to it — it defines the coordinator/executor roles and the ROLE: EXECUTOR prompt marker used below.
Start an agent on a task:
tdel start <session> "<agent-cmd>" "<prompt>"
# e.g. tdel start hello "claude --dangerously-skip-permissions" "make a hello world page"
This appends the done-protocol to the prompt automatically (write summary to result file, then touch the done file).
Wait for completion — ALWAYS via a background Bash task so you get woken up instead of blocking or polling:
tdel wait <session> [timeout-sec] # run with run_in_background: true
Exit 0 = done (prints the agent's summary). Exit 124 = timeout (prints last pane lines for diagnosis). Non-zero also if the session died.
Review the output (tdel result <session>, plus inspect the actual files the agent changed). If iteration is needed:
tdel send <session> "<feedback / next instruction>"
tdel wait <session> # again, run_in_background
Each send is a new turn with its own done/result files — no signal cross-talk between turns.
Debug a stuck or slow agent: tdel peek <session> [lines] shows the live pane. tdel status lists all sessions.
Stop when finished: tdel stop <session> (kills the session and removes state under /tmp/agent-delegate/<session>).
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.