Workflow
/branch
icon
Search documents
分享10个你可能不知道的Claude Code隐藏命令。
数字生命卡兹克· 2026-03-20 02:18
Core Insights - The article discusses the rapid evolution and utility of Claude Code, highlighting various commands that enhance user experience and efficiency in coding tasks [9][11]. Command Summaries 1. /btw - The /btw command allows users to insert a question during an ongoing task without affecting the conversation history, preventing context pollution [12][16][19]. 2. /rewind - The /rewind command enables users to revert to a previous point in the code or conversation, offering more flexibility in managing changes without losing prior discussions [24][30][35]. 3. /insights - The /insights command generates an HTML report analyzing user habits over the past month, providing insights into command usage and suggesting custom commands [39][56]. 4. /model opusplan - The /model opusplan command automatically switches between different models for complex reasoning and execution, optimizing resource usage for Pro subscription users [57][66]. 5. /simplify - The /simplify command initiates a three-pronged code review focusing on code reuse, quality, and efficiency, effectively acting as a collaborative review tool [68][71]. 6. /branch - The /branch command allows users to create a new conversation branch from the current dialogue, facilitating experimentation without losing the original context [74][80]. 7. /loop - The /loop command enables scheduled task execution at specified intervals, enhancing automation in monitoring tasks [81][88]. 8. /remote-control - The /remote-control command allows users to access their Claude Code sessions remotely via a URL, ensuring real-time synchronization between devices [91][96]. 9. /export - The /export command facilitates the export of conversation history into a Markdown file, preserving valuable discussions for future reference [97][101]. 10. Shortcuts - Several useful shortcuts are highlighted, such as Ctrl+V for pasting screenshots directly and Ctrl+J for line breaks, enhancing user efficiency [103][109].