Rebuild Claude Code CLI from source analysis for a working terminal workflow, repo architecture, and baseline engineering behavior