---
title: History in CLI
link: https://ampcode.com/news/cli-history
source: ampcode-com
published: 2025-05-09T00:00:00Z
updated: 2025-05-09T00:00:00Z
first_seen: 2026-10-04T12:50:30.804479567Z
summary: You can now navigate the local history of messages in the Amp CLI. Use the arrow keys or Ctrl+P/Ctrl+N to navigate the adjacent messages in the history. PageUp and PageDown jumps directly, regardless of cursor position. Your current draft is available at the end of the history, and you can press Ctrl+C or Esc to cancel and go back to your draft.
content: extracted
html: 2025-05-09-history-in-cli.html
---

You can now navigate the local history of messages in the Amp CLI. Use the arrow keys or Ctrl+P/Ctrl+N to navigate the adjacent messages in the history. PageUp and PageDown jumps directly, regardless of cursor position. Your current draft is available at the end of the history, and you can press Ctrl+C or Esc to cancel and go back to your draft.
