Recover and reset Claude Code in Python with a faithful CLI port that preserves core logic and removes the UI layer