Notes, page 4
2026-10-13 · 8 min
How subagents work in Claude Code
Discover how Claude Code spins up secondary agents to handle background tasks while you continue working on the main project.
2026-10-13 · 8 min
How to add custom hooks to Claude Code
Trigger specific scripts or notifications automatically whenever Claude Code completes a task or encounters a build error.
2026-10-13 · 8 min
How to add environment variables to MCP servers
Securely pass API keys and configuration settings to your MCP servers so they can access external tools and data sources.
2026-10-13 · 6 min
How to cancel a running Claude Code subagent
Learn the correct keyboard shortcuts and commands to stop a subagent task if it starts heading in the wrong direction during an edit.
2026-10-13 · 7 min
How to check Claude Code changes before saving
See how to use the diff tool in Claude Code to verify every line of code before it is written to your local file system.
2026-10-13 · 7 min
How to clear Claude Code session history
Remove old context and previous commands to start a fresh interaction with Claude Code without baggage from the last task.
2026-10-13 · 7 min
How to connect MCP servers to Claude Code
Expand the capabilities of Claude Code by connecting Model Context Protocol servers for database access and web searches.
2026-10-13 · 7 min
How to exclude node-modules from Claude Code
Stop the AI from wasting tokens on your dependency folders by correctly configuring your project exclusion rules.
2026-10-13 · 8 min
How to give Claude Code project context
Ensure the AI understands your entire repository by providing the right folder structures and documentation at the start.
2026-10-13 · 7 min
How to keep Claude Code from editing files
Set explicit boundaries to prevent Claude Code from modifying configuration files or sensitive code during a session.
2026-10-13 · 8 min
How to manage token costs in Claude Code
Keep your API costs under control by limiting the scope of searches and truncating long file outputs in the terminal.
2026-10-13 · 7 min
How to pipe terminal output into Claude Code
Stream the results of other terminal commands directly into Claude to provide instant context for debugging or analysis.
2026-10-13 · 10 min
How to prune a large CLAUDE.md file
Find out how to remove outdated information from your CLAUDE.md file to keep the project context clean and relevant.
2026-10-13 · 8 min
How to restart a session from the CLI
Use the command line to quickly exit and restart a session when you need to clear the current state or fix a hang.
2026-10-13 · 11 min
How to resume a previous Claude Code session
Reconnect to an existing Claude Code task to continue a long refactoring job without losing the context of previous changes.
2026-10-13 · 8 min
How to run Claude Code in WSL2
Learn how to configure Claude Code to run within Windows Subsystem for Linux for a better developer experience on Windows machines.
2026-10-13 · 7 min
How to see the cost of a specific subagent
Learn how to track the individual token consumption and costs generated by subagents during a multi-step Claude Code session.
2026-10-13 · 7 min
How to set up a .claudignore file
Prevent the AI from scanning large directories or sensitive environment variables by configuring a proper ignore file.
2026-10-13 · 7 min
How to skip the diff review in Claude Code
Use specific flags and settings to automatically accept changes when you trust the AI to perform repetitive or simple tasks.
2026-10-13 · 9 min
How to stop Claude Code from installing new packages
Set strict permissions or brief instructions to ensure Claude only uses existing dependencies and never runs install commands.
2026-10-13 · 7 min
How to tell Claude Code to ignore specific file extensions
Use configuration files and command line flags to prevent the Claude CLI from reading or editing specific file types in your project.
2026-10-13 · 8 min
How to undo changes made by Claude Code
Use git integration and built-in commands to safely revert the code changes if the AI makes a mistake during a session.
2026-10-13 · 8 min
How to use Claude Code in pipe mode
Find out how to run Claude Code in pipe mode for automation scripts where you need to pass input directly from other tools.
2026-10-13 · 8 min
How to use pre-task hooks in Claude Code
Set up automated scripts that run before Claude begins a task to ensure your environment is ready or code is properly linted.