claude code guide
Basic Information
This repository is a comprehensive, playbook-style reference for the Claude Code CLI and its ecosystem. It documents how to install and run the Anthropic CLI across platforms, explains core and session commands, details configuration files and environment variables, and describes the Model Context Protocol (MCP) and how to add MCP servers. The guide teaches how to create, version and manage sub-agents with scoped permissions and isolated contexts, explains the permission model and dangerous mode, and lists built-in slash commands and flag semantics. It also covers automation patterns for CI/CD and local git hooks, provides troubleshooting and health-checks, and collects best practices, security guidance, and advanced workflows such as CLAUDE.md project memory and multi-directory workspaces. The content is presented as an operational manual and command reference for teams and developers using Claude Code in development and automation workflows.