diff --git a/packages/coding-agent/CHANGELOG.md b/packages/coding-agent/CHANGELOG.md index 6cd4a62e..bbda6126 100644 --- a/packages/coding-agent/CHANGELOG.md +++ b/packages/coding-agent/CHANGELOG.md @@ -2,6 +2,10 @@ ## [Unreleased] +### Added + +- **`/copy` Command**: Copy the last agent message to clipboard. Works cross-platform (macOS, Windows, Linux). Useful for extracting text from rendered Markdown output. ([#105](https://github.com/badlogic/pi-mono/pull/105) by [@markusylisiurunen](https://github.com/markusylisiurunen)) + ## [0.12.8] - 2025-12-04 - Fix: Use CTRL+O consistently for compaction expand shortcut (not CMD+O on Mac) diff --git a/packages/coding-agent/README.md b/packages/coding-agent/README.md index a170c80f..cd12e872 100644 --- a/packages/coding-agent/README.md +++ b/packages/coding-agent/README.md @@ -502,6 +502,16 @@ Clear the conversation context and start a fresh session: Aborts any in-flight agent work, clears all messages, and creates a new session file. +### /copy + +Copy the last agent message to clipboard: + +``` +/copy +``` + +Extracts text content from the most recent assistant message and copies it to the system clipboard. Works cross-platform (macOS, Windows, Linux). On Linux, requires `xclip` or `xsel` to be installed. + ### /compact Manually compact the conversation context to reduce token usage: