promptgarden ๐ŸŒฑ
๐ŸŒ ES
Guideโ—โ—โ—‹4 min ยท +40 XP

Claude Code: Anthropic's CLI Agent

Claude Code is an AI coding agent for your terminal โ€” installable with one command.

What is Claude Code?

Claude Code is Anthropic's AI agent for the command line (terminal). Instead of chatting in a web UI, you work directly inside your project folder: Claude Code can read files, write code, run commands, use Git, and run tests โ€” all in the context of your real project.

Installation

With Node.js installed:

npm install -g @anthropic-ai/claude-code

Then start it by running claude inside your project folder.

First steps

  1. Open a terminal, navigate to your project folder
  2. Type claude to start
  3. Describe a task in plain language, e.g. "Add a dark-mode toggle to the navbar"
  4. Claude Code reads the relevant files and proposes or makes the changes
  5. Review the changes (look at the diff), approve or adjust

Why the terminal instead of a chat window?

Because your actual project lives in the terminal: Git, build tools, tests, the file system. An agent working directly there can really run and verify things โ€” not just suggest code snippets you have to copy-paste yourself.

Safety

By default, Claude Code asks for your confirmation before risky actions (like deleting files or running commands).

EXAMPLE

claude "Explain the structure of this project and suggest where I should add a new API endpoint."

QUICK QUIZ

How do you install Claude Code?

SOURCES

RELATED TOPICS

CLAUDE.md / AGENTS.md: Give Your Agent Memory & Rules โ—โ—โ—‹MCP (Model Context Protocol): How AI Tools Connect โ—โ—โ—‹The Agent Loop: Think โ†’ Act โ†’ Check โ†’ Repeat โ—โ—โ—‹Vibe Coding: When It Works, When It Bites You โ—โ—‹โ—‹