Replace bare input() with a custom terminal reader that supports
arrow-key history navigation, cursor movement, and line editing.
History buffer grows dynamically with no fixed limit.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>