tabwlisted
Install: claude install-skill ahundt/autorun
# Claude Session Writer
<purpose>
Execute actions on Claude Code sessions across tmux windows.
## Context
Current tmux sessions:
Run `tmux list-sessions` and read its output before choosing a session.
## Your Task
The user's request is the task description for everything below.
If no arguments provided, discover sessions first, then ask user what action to execute.
</purpose>
<safety>
## Safety Warning
This command sends input to tmux windows. Before executing:
1. **VERIFY TARGETS** - Always show which windows will receive commands
2. **PREFER IDLE SESSIONS** - Use `awaiting:` prefix to target only idle sessions
3. **TEST SINGLE FIRST** - Test with one window before batch operations
4. **HAVE ESCAPE READY** - `all:escape` can stop runaway operations
</safety>
<workflow>
## Workflow
1. **Discover** - Get window states with `tmux_list_windows(content_lines=100)`
2. **Filter** - Use WindowList methods to select targets
3. **Verify** - Show user which windows will be affected
4. **Execute** - Run action via `tmux_dangerous_batch_execute()`
## Data Flow: tmux_list_windows -> tmux_dangerous_batch_execute
The output of `tmux_list_windows()` flows directly into `tmux_dangerous_batch_execute()`:
```python
from autorun.tmux_utils import (
get_tmux_utilities,
tmux_list_windows,
tmux_dangerous_batch_execute
)
tmux = get_tmux_utilities()
# Step 1: Get all windows with Claude status info
windows = tmux_list_windows(content_lines=100)
# Step 2: Filter usin