Recover Claude Code and reset Python state for a clean CLI port with preserved module logic and no UI layer