---
description: Stop an employee's tmux session
allowed-tools: Bash
argument-hint: [employee-name]
---

Kill the tmux session for the named employee.

Delegates to `exe-kill` so the manual kill is recorded in `session_kills`
telemetry (SL-4 Phase 1) before tmux tears the session down. Falls back to
the raw tmux path when `exe-kill` is not on PATH (older installs).

Run:
```bash
NAME="$ARGUMENTS"
if command -v exe-kill >/dev/null 2>&1; then
  exe-kill "${NAME}"
else
  EXE_SESSION=$(tmux display-message -p '#{session_name}' 2>/dev/null)
  TARGET="${NAME}-${EXE_SESSION}"
  if tmux has-session -t "${TARGET}" 2>/dev/null; then
    tmux kill-session -t "${TARGET}"
    echo "Session '${TARGET}' killed."
  elif tmux list-sessions -F '#{session_name}' 2>/dev/null | grep -q "^${NAME}-"; then
    MATCH=$(tmux list-sessions -F '#{session_name}' 2>/dev/null | grep "^${NAME}-" | head -1)
    tmux kill-session -t "${MATCH}"
    echo "Session '${MATCH}' killed."
  else
    echo "No active session found for '${NAME}'."
  fi
fi
```

Report the result to the user.
