Stacks·10 min read·May 3, 2026

What Is Claude Code? The AI Coding Agent in Your Terminal

Claude Code reads your files, runs commands, edits code, and commits changes. All from your terminal. What it does, what it costs, and how to start using it.

Claude Code is Anthropic's AI coding agent. It runs in your terminal, reads your project files, writes and edits code, runs shell commands, and commits to git. Not a chatbot with a code block. An agent that operates directly on your codebase.

You install it with one command, type claude in any project directory, and start talking to it. It sees your file tree, understands your code, and makes changes in place. No copy-pasting between a browser and your editor.

The problem nobody talks about

Most AI coding tools put a wall between the AI and your actual project. You paste code into a chat window. The AI responds with a code block. You copy it back into your editor. You lose context every time you switch tabs. The AI doesn't know what the rest of your codebase looks like, so it makes assumptions that break things.

IDE integrations (Copilot, Cursor) get closer by sitting inside your editor. But they're still limited to the files you have open. They can't run your tests, check your git history, or execute a build to see if their changes actually work.

Claude Code skips all of that. It runs in your terminal with full access to your project. It reads any file, runs any command, and edits code directly. When it makes a change, it can run your tests to verify it didn't break anything. When it's done, it can commit the result. The whole loop happens in one place.

Why it's different

It runs commands. Not just code suggestions. Claude Code can run your test suite, start your dev server, check build output, grep your codebase, and use git. If you can do it in a terminal, Claude Code can do it too.

It sees your whole project. Not just the file you have open. It reads your directory structure, finds relevant files on its own, and understands how things connect. Ask it to fix a bug and it will trace the issue across files without you pointing to each one.

It edits in place.No code blocks to copy. Claude Code writes directly to your files. You see the diff and approve or reject it. Feels like pair programming, not a Q&A session.

MCP connections. Claude Code supports Model Context Protocol, which lets it talk to external tools directly. Connect it to Notion, Postgres, GitHub, Slack. It reads and writes to those tools as part of your conversation.

CLAUDE.md for persistent context. Drop a markdown file at the root of your repo and Claude Code reads it on every session start. Your conventions, your file structure, your rules. The agent remembers your project without you re-explaining it.

Skills and slash commands. Install community-built skills that extend what Claude Code can do. Code review, frontend design, security auditing, testing in a real browser. One install command each.

What it costs

Claude Code comes bundled with Claude Pro ($20/month) or Claude Max ($100/month or $200/month). Pro gives you solid usage for individual work. Max removes most rate limits for heavy daily use.

There's also an API option if you want to pay per token instead of a flat subscription. Good if you're integrating Claude Code into automated workflows or want more control over spend.

No free tier for Claude Code specifically. The free Claude account doesn't include it.

Step 1: install

You need Node.js 18+ on your machine. Then:

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

Run claude in your terminal. First launch prompts you to authenticate with your Anthropic account. Takes about 30 seconds.

Step 2: use it on a real project

Navigate to any project directory and run claude. It indexes your project and you start talking.

Some things to try on your first session:

Explore:"Read this project and tell me what each folder does." Good first move on any repo you're not familiar with, including your own after a few months away.

Fix:"Here's the error I'm getting: [paste error]. Find the cause and fix it." Claude Code will read the relevant files, trace the issue, propose a fix, and apply it.

Build:"Add a /health endpoint that returns the app version and uptime." It finds where your routes live, writes the endpoint, and you can ask it to run the tests after.

Refactor:"Move all the database queries out of the route handlers and into a db/ module." It reads the existing code, creates the new files, updates the imports, and you review the diff.

Step 3: set up CLAUDE.md

This is the step that separates people who think Claude Code is "okay" from people who use it all day.

Create a file called CLAUDE.md at the root of your repo. Put in:

  • What the project does (two sentences)
  • Your tech stack
  • Which folders matter and what's in them
  • Conventions you follow (naming, imports, component patterns)
  • Files Claude should never touch
  • How to run tests and builds

Claude Code reads this file automatically on every session start. It's persistent context that survives between conversations. Without it, you re-explain your project every time. With it, Claude already knows.

Step 4: learn the commands that matter

A few built-in commands you'll use constantly:

  • /compact: Compresses the conversation to free up context. Use it when sessions get long.
  • /clear: Wipes the conversation and starts fresh.
  • /cost: Shows how many tokens you've used this session.
  • !command: Runs a shell command inline without leaving the conversation.

You can also install skills (community-built workflows) with claude install-skill. Type / in any session to see available slash commands.

What Claude Code is not

Not an IDE. It runs in your terminal. You still use VS Code, Cursor, or whatever editor you prefer for browsing and reviewing code. Claude Code is the agent that does the work. Your editor is where you read the result.

Not autonomous by default. It asks for approval before making changes. You can give it more autonomy with flags, but out of the box it checks with you before editing files or running commands.

Not a replacement for understanding your code.It's a multiplier. If you know what you want built, Claude Code builds it fast. If you don't know what you want, it'll build the wrong thing fast. The skill ceiling scales with your engineering judgment.

Honest limitations

Context window fills up. On long sessions with large codebases, Claude Code's context window gets full. Use /compact regularly. Learn to start new sessions for new tasks instead of cramming everything into one conversation.

It can make confident mistakes.Claude Code will sometimes write code that looks right but misses an edge case or misunderstands a convention. Review the diffs. Don't blindly approve.

Rate limits on Pro.The $20/month Pro plan has usage limits. Heavy users (10+ hours a day of active use) will hit them. Max plan ($100/month) is the answer if that's you.

Terminal only.If you're not comfortable in a terminal, the learning curve is steeper. There are IDE extensions (VS Code, JetBrains) that give you a GUI, but the terminal is where the full power lives.

The AI Side Hustle Cookbook

Liked this guide? Shout me a coffee.

$4.99 gets you the full playbook: 50 recipes you can build, ship, and get paid for with Claude Code. Working code in every one. The pricing, the deploy, the pitfalls. Every revision free for life.

Shout me a coffee