Introduction to Claude Code
My Understanding
Claude Code is a command-line interface (CLI) tool developed by Anthropic. It allows developers to use Claude’s coding capabilities directly within their terminal. Unlike the web interface, it has direct access to the local file system, enabling it to read code, write new files, run tests, and even execute git commands autonomously or with permission.
AI Draft
Claude Code is Anthropic’s official agentic CLI tool that can:
- Edit Files: Directly modify codebases with high precision.
- Run Commands: Execute shell commands to run tests, builds, or linting.
- Git Integration: Summarize changes, create commits, and manage branches.
- Context Awareness: Automatically index your codebase to provide relevant answers without manual copy-pasting.
Claude (Web) vs Claude Code (CLI)
| Feature | Claude (Web) | Claude Code (CLI) |
|---|---|---|
| Primary User | General users / Writers | Developers / Engineers |
| Interface | Browser / Mobile App | Terminal / Shell |
| File Access | Manual upload only | Direct local file system access |
| Capabilities | Brainstorming, Analysis | Editing code, running tests, Git |
| Autonomy | Suggests text/code | Agentic (performs actions) |
Key Points
- Agentic: It doesn’t just suggest code; it can perform the actions (if permitted).
- Tool Use: It uses tools like
grep,ls, andreadto understand the project structure. - Permission-based: For safety, it asks for permission before running potentially destructive commands.
Examples
claude- Start a session.claude "fix the bug in the auth controller and run tests"- Task-specific command.
Related
- AI/Claude Code/index
- AI/Claude Code/Usage of Claude Code
- AI/Claude Code/Slash Commands Reference
- AI/Prompt Engineering