20 Claude Code Commands Every Developer Should Know

A recent Reddit post on r/ClaudeAI (by user irelatetolevin) compiles 20 Claude Code commands that solve real workflow problems. Here's the breakdown by category.
Stopping, Undoing, Branching
- Esc stops the current task without losing conversation history — only the in-flight action dies.
- Double-tap Esc or
/rewindopens a menu to restore code and conversation, restore conversation only, restore code only, summarize from here, or cancel. /btwasks a side question without polluting the main thread — e.g.,/btw where is the test file again. It reuses the existing prompt cache, so token cost is near zero./branchforks the conversation, letting you run two approaches in parallel and keep the one that works.
Managing the Context Window
/compactrewrites long history into a summary that keeps the storyline, technical decisions, and errors plus fixes. Prevents context window bloat./clearwipes everything for a fresh topic./exportsaves the conversation as Markdown to~/projects/XXX/claude-session-YYYY-MM-DD-HH-MM.md— useful after an hour of architecture design./resumesearches old sessions by keyword.claude -cpicks up yesterday's chat where you left off.claude -rlists every past session and lets you jump back into a specific one./remote-control(alias/rc) hands the running session over to your phone — work keeps executing on your machine, you steer from elsewhere.
Working Smarter
/model opusplanruns Opus for planning and Sonnet for execution: slower thinking on design, faster code output./simplifyspins up three parallel reviewers (architecture/code reuse, code quality, efficiency) and returns one combined report./insightsgenerates a local HTML report at~/.claude/usage-data/report.htmlshowing usage habits, common mistakes, features never touched, and suggestions for your CLAUDE.md./loopschedules recurring or one-shot tasks inside the session — e.g.,/loop 15m check the deploy. Recurring loops auto-expire after 3–7 days to avoid burning API budget. Override defaults with a.claude/loop.mdfile — bare/loopruns the instructions inside.
Keyboard Shortcuts
- Ctrl+V pastes screenshots directly — no saving to disk first.
- Ctrl+J (or Option+Enter on Mac) inserts a newline without sending, enabling multi-line prompts safely.
- Ctrl+R searches your prompt history — your own personal prompt library.
- Ctrl+U clears the entire input line in one keystroke.
/skills [name]loads project-specific skills. Run/skillswith no argument to see what's available in the current workspace.
These commands are immediately actionable — especially /compact, /branch, and /remote-control for managing complex sessions.
📖 Read the full source: r/ClaudeAI
👀 See Also

Make OpenClaw Smarter: Challenge False Premises with a Direction Check Skill
A new skill for OpenClaw adds decision quality guidelines to AGENTS.md, forcing the agent to challenge user assumptions before acting on costly or irreversible changes.

Get Emoji-Decorated Checklists in Claude by Adding One Line to CLAUDE.md
Add a one-line marker set to your user-level CLAUDE.md to make Claude decorate checklists with status emojis — 14 fixed icons for done, running, failed, blocked, etc.
![[Update] You Asked for a Secure, 'Always-On' Way to Run OpenClaw Without the VPS Headache. We Built It. Waitlist is Open.](/covers/article-139.jpg?v=3)
[Update] You Asked for a Secure, 'Always-On' Way to Run OpenClaw Without the VPS Headache. We Built It. Waitlist is Open.
OpenClaw announces a new feature that allows users to run their platform securely and continuously without the complexities of VPS. The waitlist is now open for early access.

Stop Burning Claude Code Tokens on Chat Questions
A developer on r/ClaudeAI saved their weekly token cap by routing simple chat questions to cheap models like Haiku, reserving Claude Code for agent tasks like multi-file edits.