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
| #!/usr/bin/env bash | |
| # Multi-Account Switcher for Claude Code | |
| # Simple tool to manage and switch between multiple Claude Code accounts | |
| set -euo pipefail | |
| # Configuration | |
| readonly BACKUP_DIR="$HOME/.claude-switch-backup" | |
| readonly SEQUENCE_FILE="$BACKUP_DIR/sequence.json" |
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
| local mod = {} | |
| -- thresholds in ms | |
| local MED_THRESHOLD = 150 | |
| local LNG_THRESHOLD = 540 | |
| local HIDE_MARKERS_AFTER_MATCH_SECONDS = 1 | |
| -- never really consider events older than this | |
| local EVENTS_CUTOFF = 2500 | |
| -- remember to place longer sequences ahead of short sequences |