Diagnose Symlink Shebang Persistence Issues When a CLI tool's shebang keeps reverting after updates, check if the symlink points to a repo file vs. a venv entry point. If → (symlink), edits revert on . Solution: repoint the symlink to the venv entry point instead ( → ). This bypasses repo resets while preserving the correct shebang and venv context. Verify with and commands. ---