Initial REPL backend echo implementation with more UI behaviors