Claude Power User – Hacks, Shortcuts, and Hidden Features By the end of this lesson, students should be able to: Claude Code has a command vocabulary most users never discover. The Claude Code interface accepts typed messages, but it also responds to slash commands, keyboard shortcuts, and – when used from the terminal – CLI flags that give you fine-grained control over how it operates. Slash commands – the in-session control panel. Keyboard shortcuts. The # prefix – silent context injection. Typing a message starting with @ file references. Typing CLI flags – for terminal and scripted use. Piping content to Claude Code. From the terminal: Plan mode in depth. In plan mode (Shift+Tab), Claude analyzes the task, lists every intended action, and waits for approval before executing any of them. The plan is editable – skip steps, add steps, or change the order before executing. For users new to Code mode, or for any task involving important files, always start in plan mode. Parallel sub-agents. For large multi-step tasks with parallelizable components, Claude Code can spawn multiple sub-agents working simultaneously, then merge results. Example: "Use parallel agents to review the documentation, tests, and core logic simultaneously and report back." Significantly reduces completion time for large tasks. .claudeignore Create a A developer refactoring a large module: presses Shift+Tab for Plan Mode, uses @authentication.py and @tests/test_auth.py to pull relevant files into context, types /compact mid-session when conversation grows long, closes for the day, resumes the next morning with --continue, and checks /cost at the end. Eight Code mode features in a single productive session. Keep a personal CLAUDE.md template you can drop into any new project directory and customize in five minutes. A good template includes: project description, tech stack, file structure overview, conventions, and common commands. Store it somewhere easy to find – never start a Code session in a new project from zero context. Auto-Accept Mode (Shift+Tab) allows Claude to execute approved action types without per-action confirmation. Enable it only for well-understood, low-risk operations in a known environment – not for first sessions in a new codebase or operations affecting production systems. Use .claudeignore proactively to exclude sensitive directories rather than reactively after unintended access. Open Claude Code mode and try in sequence: (1) type /help and read the full command list, (2) type a message starting with # to add silent context, (3) press Shift+Tab and observe the mode change, (4) type /cost after a few exchanges, (5) type /memory to see your current memory file contents. You should be able to use all slash commands covered, explain what the # prefix does, describe the difference between Plan Mode and Auto-Accept Mode, know when to use CLI flags, and explain what .claudeignore does. Log in and enroll to access lesson quizzes.
Lesson 3: Claude Code Hacks – Commands, Flags, and Shortcuts
Lesson Objectives
Lesson Content
# adds that content to Claude's context without triggering a response. Useful for providing background, correcting misunderstandings, or setting up context for future messages without interrupting workflow. Example: # This project uses Python 3.11 and we never modify files in the /archive directory@filename prompts Claude to read that specific file and include it in context without copy-pasting. Reference multiple files in a single message.--continue – Resumes the most recent conversation session with full prior context.--resume [session-id] – Resumes a specific past session by ID.--print – Non-interactive mode. Claude produces its response and exits. For scripted workflows and piping Claude output into other tools.--model [model-id] – Specifies which Claude model to use.--output-format [format] – Specifies output format for non-interactive use: plain text, JSON, or streaming JSON.cat report.txt | claude --print "summarize this in three bullet points" passes file content directly without an interactive session. Enables integration with shell scripts and automated workflows..claudeignore file following .gitignore syntax to exclude specific files and directories from Claude Code's access. Use proactively to exclude sensitive files, large binary assets, or irrelevant directories.Practical Example
Lesser-Known Tip
Safety Notes
Practice Task
Completion Check