We’ve covered a lot of ground in this series—from setup and fundamentals to workflow optimization and debugging. Now it’s time to unlock the advanced features that separate casual users from power users. These tools let you tackle truly complex projects, experiment safely, automate workflows at scale, and push Claude Code to do things you probably didn’t realize were possible.
Let’s dive into the toolkit that transforms Claude Code from a helpful assistant into your personal engineering team.
Planning Mode: Think Before You Code
Ever started implementing a massive refactor only to realize halfway through you painted yourself into a corner? Planning mode prevents this by adding a strategy phase before Claude writes any code.
What It Is
Planning mode activates a “pre-implementation” phase where Claude analyzes your request, maps out the approach, identifies potential issues, and asks clarifying questions—all before touching a single file. It’s like having an architect review blueprints before construction begins.
When to Use It
- Multi-file refactors: Reorganizing code across multiple modules
- Architecture decisions: Choosing patterns, database schema changes, or structural overhauls
- High-risk changes: Rewrites that affect core functionality
- Large features: Building something that touches many systems
- Performance optimizations: Complex changes where the order matters
How to Activate and Use
Press Shift+Tab to cycle permission modes until the status bar shows ⏸ plan mode on, or start a session already in plan mode:
claude --permission-mode plan
In plan mode Claude reads files and proposes a plan, but makes no edits until you approve it. (Alt+P / Option+P switches models, not modes.)
Once enabled, your prompt will trigger the planning phase first. Claude will:
- Analyze your request and current codebase
- Propose a step-by-step implementation strategy
- Highlight potential gotchas or dependencies
- Ask clarifying questions if needed
- Wait for your approval before proceeding
This five-minute planning session saves hours of debugging and rework. I use it for anything that makes me nervous.
Checkpoints: Undo Your Way to Better Code
Checkpoints are auto-saved snapshots of your conversation and code state. They’re like Git commits but for your entire workflow—and they’re invisible to you until you need them.
The Mental Model
Every prompt you send creates a checkpoint automatically. Think of it as a “point in time” you can jump back to. Tried an approach? Hated it? Just rewind and try something different, keeping your conversation history and all the useful context.
Use Cases That Changed My Workflow
Safe Experimentation: “Claude, let’s try refactoring this with the Strategy pattern” → Claude implements it → You realize it’s overkill → Rewind to the checkpoint before that attempt → “Actually, let’s use composition instead” → Start fresh from that point.
Mistake Recovery: Accidentally asked Claude to delete something, or the code went off the rails? Rewind in seconds instead of manually rolling back changes.
A/B Testing Approaches: Run Claude through approach A, checkpoint appears → rewind → test approach B with fresh thinking. Compare implementations side-by-side.
How to Rewind
The easiest way: press Escape twice (Esc Esc) with an empty prompt, or type /rewind (alias /undo).
Claude will show you available checkpoints with timestamps. Select the one you want, and you’ll be taken back to that point—conversation and code included.
Rewind Options
When you select a checkpoint, you get choices:
- Restore code and conversation: Rewind everything. Use this when you want to completely start over from that point.
- Restore conversation: Keep your code changes, but rewind the chat. Useful if the code is good but the dialogue went sideways.
- Restore code: Rewind file changes but keep the conversation. I use this when implementing a variant of something we already discussed.
- Summarize from here / up to here: Compress part of the conversation into a summary to free up context without losing the thread.
Checkpoints only track Claude’s own file edits. Changes made by shell commands Claude runs (like rm or a migration) aren’t captured, so keep using Git for anything you can’t afford to lose.
Checkpoints have saved me more times than I can count. They’re especially powerful for exploratory work where you’re not sure of the final path.
Plugins: Bundled Workflows for Common Tasks
Plugins are Claude Code’s way of packaging up collections of commands, agents, MCP integrations, and hooks into a single installable unit. They’re like specialized tools you bolt onto Claude Code for specific problem domains.
What’s in a Plugin?
A plugin bundles:
- Custom commands: Domain-specific shortcuts (e.g.,
/review-prfor PR reviews) - Agents: Autonomous workflows that can run multi-step tasks
- MCP connections: Pre-configured integrations (GitHub, Jira, Linear, etc.)
- Hooks: Automatic triggers that run on file changes or events
Real-World Examples
PR Review Plugin: Install once, then use /review-pr to automatically analyze code changes, check for common issues, and generate review comments. No setup needed each time.
DevOps Automation: Commands like /deploy-staging, /check-logs, /rollback that orchestrate your entire deployment pipeline.
Documentation Generator: /generate-docs automatically creates docs from code, /sync-changelog keeps it updated, /validate-links checks for broken references.
How to Install
Plugins come from marketplaces. Anthropic’s official marketplace (claude-plugins-official) is added for you, so inside a session you can run:
/plugin install commit-commands@claude-plugins-official
or browse everything with /plugin. From your shell, the equivalent is claude plugin install <name>@<marketplace>. For a third-party marketplace, add it first with /plugin marketplace add <owner/repo>.
Once installed, the plugin’s commands are immediately available in your conversation.
When Plugins Beat Individual Features
Use a plugin when:
- Complexity: The workflow involves multiple steps you’d otherwise describe repeatedly
- Consistency: You want the same approach every time with zero thought
- Integration: The plugin bundles several MCP sources into one flow
- Sharing: You want to give your team the exact same workflow
I created my own internal plugins for common tasks—PR reviews, test failure analysis, and deployment checks. They’ve cut my time per task by 50%.
Extended Thinking: Deep Reasoning for Tricky Problems
Sometimes code just doesn’t make sense. Or you’re staring at a performance problem that needs careful analysis. Extended thinking mode activates Claude’s deeper reasoning—it thinks harder about the problem before responding.
Activating It
Press Option+T (macOS) or Alt+T (Windows/Linux) to toggle extended thinking. Newer models always think, so on those the lever is the effort level instead: run /effort to raise it for the session, or include the word ultrathink in a prompt to give that single turn the most reasoning.
When It’s Worth the Extra Time
- Complex debugging: Tracking down a subtle bug that crosses multiple systems
- Architecture decisions: Weighing tradeoffs between approaches
- Tricky algorithms: Optimizing something that’s currently O(n²) and needs to be better
- Performance analysis: Understanding where time is actually being spent
- Refactoring large codebases: Planning a major restructure
Extended thinking takes longer (maybe 2-3x slower) but produces dramatically better answers for genuinely hard problems. I don’t use it for every question, but when I do, it’s worth the wait.
CLI Mastery for Automation
Claude Code isn’t just a GUI app. The CLI is where the real power lives—perfect for CI/CD pipelines, scripts, and workflows that run without human interaction.
Headless Mode for CI/CD
Run Claude in headless mode to complete tasks automatically:
claude -p "Run the test suite and generate a report"
Your task runs to completion. No GUI, no waiting for input. Perfect for:
- Running tests before deployment
- Generating reports on a schedule
- Analyzing logs after errors
- Creating artifacts in pipelines
Piping: Text In, Analysis Out
cat error.log | claude -p "Analyze this error and suggest fixes"
Or from any command:
curl https://api.example.com/status | claude -p "Is this healthy? What's wrong?"
I use this constantly for log analysis, error interpretation, and quick code reviews.
JSON Output for Integration
claude -p --output-format json "List all exported functions in index.ts"
Claude returns a JSON envelope with the answer in .result, plus the session ID, cost, and usage. If you need a guaranteed shape, add --json-schema and read .structured_output:
claude -p "List all exported functions in index.ts" --output-format json \
--json-schema '{"type":"object","properties":{"functions":{"type":"array","items":{"type":"string"}}},"required":["functions"]}' \
| jq -r '.structured_output.functions[]'
Session Scripting: Continuing Work
claude -p "Review this codebase for performance issues"
claude -p "Now focus on the database queries" --continue
--continue (-c) picks up the most recent conversation in this directory. To target a specific one, capture its session ID and pass it to --resume (-r):
session_id=$(claude -p "Start the refactor plan" --output-format json | jq -r '.session_id')
claude -p "Write unit tests for the plan" --resume "$session_id" && \
claude -p "Run the tests and fix failures" --resume "$session_id"
Sessions persist on disk, so Claude has full context across multiple CLI invocations.
Series Wrap-Up: From Novice to Master
We’ve covered a lot. Here’s what you’ve learned across all six parts:
- Part 1: Getting Started — Installation, first projects, the interface
- Part 2: Slash Commands & Memory — Custom commands and CLAUDE.md memory
- Part 3: Skills & Subagents — Reusable skills and specialized subagents
- Part 4: MCP Protocol — Connecting Claude Code to your dev stack
- Part 5: Hooks — Event-driven automation
- Part 6: Advanced Features — Planning, checkpoints, plugins, CLI mastery (you are here)
Quick Reference: When to Use What
| Task | Use This |
|---|---|
| Quick question about code | Core /ask command |
| Multi-file refactor | Planning mode + Checkpoints |
| Finding a bug | Debugging mode + Extended thinking |
| Trying different approaches | Checkpoints + /rewind |
| Complex CI/CD | CLI headless mode |
| Team workflow | Custom plugins |
| Performance optimization | Extended thinking |
| Learning something new | Conversational approach (Part 4) |
Where to Go From Here
If you haven’t read the earlier parts, start with Part 1. Each builds on the previous, and together they form a complete mental model of how to work with Claude Code.
The features we’ve covered here? They’re all tools. The real skill is knowing which tool fits which problem. That comes from experience—so pick a project and start using these features. Planning mode on day one, checkpoints by day two, plugins by week two.
Check out the app catalog to see what’s possible when you combine all these tools. Real projects, real complexity, built faster than I thought possible.
You’re now equipped to handle projects you’d have thought twice about tackling alone. Go build something great.
Keep learning: Have questions about any feature? Try exploring the Settings panel in Claude Code—there are options here that unlock even more power. And remember, the best way to learn is to use these tools on your actual projects, not on hypothetical examples.