From the source
Amp added message editing, thread restoration, and forking capabilities to its CLI, accessible via keyboard shortcuts Tab (to select a message), e (to edit), r (to restore the thread to that message), and f (to fork from that message).
