Created
June 22, 2025 03:21
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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