Original Reddit post

Give Claude Code or any other agentic coding tools the ability to copy text to the clipboard so you can easily paste it into emails or other apps. Add this to your CLAUDE.md or AGENTS.md file:

Clipboard To copy text to the clipboard, pipe data to the platform-specific command: - macOS: echo "text" | pbcopy - Linux: echo "text" | xclip -selection clipboard - Windows: echo "text" | clip - WSL2: echo "text" | clip.exe

submitted by /u/VeeMeister

Originally posted by u/VeeMeister on r/ClaudeCode