Copy Chat
Export the current conversation with format filtering.
Invocation
/copy-chat— Ask user which format, then export/copy-chat full— Full conversation to clipboard/copy-chat prompts— User messages only/copy-chat responses— Claude outputs only/copy-chat code— Code blocks only/copy-chat file <name>.md— Save to file instead of clipboard
Execution Steps
Parse argument (if provided). If none, ask user with AskUserQuestion:
- Full (prompts + responses)
- Prompts Only
- Responses Only
- Code Blocks Only
Build export content based on format:
full: Reconstruct conversation as markdown with## User/## Claudeheadersprompts: Extract only user messagesresponses: Extract only Claude messagescode: Extract fenced code blocks from Claude responses
Export:
- If
file <name>argument: Write to the specified file path - Otherwise: Use
/exportto copy full conversation to clipboard - Confirm to user what was exported and where
- If
Output Format
# Chat Export — [DATE]
---
[formatted content based on selected mode]
---
*Exported: [timestamp]*