Extract REPL buffer-local variables