Skip to content

Instantly share code, notes, and snippets.

@w3spi5
Created June 22, 2025 03:21
Show Gist options
  • Select an option

  • Save w3spi5/d4e561b7d2e0984c0ebfbf6aa5bf0156 to your computer and use it in GitHub Desktop.

Select an option

Save w3spi5/d4e561b7d2e0984c0ebfbf6aa5bf0156 to your computer and use it in GitHub Desktop.
Using Claude Code while getting a blue screen of the death or a global freeze ? I have this solution for you
#!/bin/bash
# Script to start Claude with automatic recording
# Usage: claude-log
echo "🎬 Starting Claude recording..."
SESSION_FILE="/tmp/claude-session-$(date +%Y%m%d-%H%M%S).log"
echo "πŸ“ Session will be saved in: $SESSION_FILE"
echo "πŸ’‘ Type 'exit' or Ctrl+D to stop recording"
echo "πŸš€ Launching Claude..."
echo ""
# Start script that records everything, then launch Claude
script -c "claude" "$SESSION_FILE"
echo ""
echo "βœ… Session completed!"
echo "πŸ“ File saved: $SESSION_FILE"
echo "πŸ‘€ To view content: cat $SESSION_FILE"
# Finally do `chmod +x claude-log` and simply launch with `claude-log`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment