Claude Code basics, page 2
2026-10-13 · 8 min
Fix Claude Code permission denied errors
Resolve common filesystem and execution permission issues that prevent Claude Code from reading files or running shell scripts.
2026-10-13 · 8 min
Force Claude Code to follow a specific indentation style
Configure your project settings so that Claude always uses your preferred tabs or spaces when writing or refactoring code.
2026-10-13 · 7 min
Force Claude Code to use a specific shell
Learn how to configure Claude Code to use Zsh, Bash, or PowerShell instead of the default system shell for executing commands.
2026-10-13 · 8 min
Formatting instructions inside CLAUDE.md
Use specific markdown structures to ensure Claude Code correctly interprets your build commands and test suite locations.
2026-10-13 · 7 min
Generate unit tests using Claude Code
Use Claude Code to analyse existing functions and automatically write comprehensive unit tests that cover edge cases and errors.
2026-10-13 · 8 min
Get desktop alerts for Claude Code tasks
Set up a custom shell hook to trigger a desktop notification as soon as Claude Code finishes a long running background task.
2026-10-13 · 7 min
Give Claude Code access to a web URL
Use the command line to provide Claude Code with a specific documentation URL so it can reference the latest external API docs.
2026-10-13 · 9 min
Give Claude Code sudo permissions
How to safely configure Claude Code to execute administrative commands when needed for system-level configuration or server setup.
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.