driving-claude-code-sessions

Installation
SKILL.md

Driving Claude Code Sessions

Overview

You can launch other Claude Code sessions as "workers" in tmux, send them prompts, monitor their progress through lifecycle events, read their output, and hand them off to a human operator. This gives you the ability to delegate work, run tasks in parallel, or set up supervised workflows.

Workers are full interactive Claude Code sessions launched with --dangerously-skip-permissions so they never block on interactive permission prompts. A plugin (claude-session-driver) injects hooks that emit lifecycle events to a JSONL file, which you poll to track worker state. A PreToolUse hook gives the controller a window to inspect and approve or deny every tool call before it executes. The scripts handle all the plumbing: tmux management, session IDs, event files, and cleanup.

Prerequisites

These must be available on the system:

  • tmux - for running worker sessions in detached terminals
  • jq - for parsing JSON output from scripts and event files
  • claude CLI - the Claude Code binary

Setup

All scripts live at ../../scripts/ relative to this skill's base directory. Set a convenience variable:

Installs
9
GitHub Stars
82
First Seen
Apr 6, 2026