Working reverse-engineered Claude Code CLI rebuilt from source analysis to reproduce the original terminal workflow