Technical
Getting Started with Claude Code: Your First AI Coding Session
You have heard about AI coding assistants but never actually used one in a real project. The gap between reading about AI tools and actually shipping code with them is where most people get stuck. Let me walk you through your first productive session with Claude Code.
What Claude Code Actually Is
Claude Code is a command-line AI assistant that lives in your terminal. You describe what you want to build, and it writes code, creates files, runs commands, and iterates based on your feedback. It is not an autocomplete tool that suggests the next line. It is closer to pair programming with a very fast junior developer who never gets tired and never judges your questions.
Installation
Getting started takes two commands:
npm install -g @anthropic-ai/claude-code
claudeThat is it. Navigate to your project directory, type claude, and you are in a session. The agent reads your project files and understands the context before you even ask anything.
Your First Productive Prompt
Bad first prompt: 'Build me an app.'
Good first prompt: 'Read the files in this project and summarize the structure.'
Start by letting Claude Code understand your codebase. Then give it specific, bounded tasks:
- 'Add a health check endpoint to the FastAPI app at /health'
- 'Create a Pydantic model for a Subscriber with email, name, and status fields'
- 'Write a test for the create_post endpoint that verifies 201 status and correct response body'
Each of these is specific enough that the agent can produce a correct result on the first try. Vague prompts produce vague code.
The Feedback Loop
The real power of Claude Code is the conversation. You say what you want, it writes code, you review the output, and you adjust. Each round takes seconds:
You: 'Add input validation to the email field'
Claude: *writes regex validation*
You: 'Use a proper email validator library instead'
Claude: *installs pydantic[email] and uses EmailStr*You stay in control of every decision. The agent handles the typing, the file navigation, and the boilerplate. You make the architectural choices.
What Surprised Me
Three things I did not expect when I started using Claude Code:
- Context awareness: It reads your existing files and matches your coding patterns. If you use snake_case, it uses snake_case. If you have a specific import style, it follows it.
- Tool use: It runs commands, checks for errors, reads the output, and fixes problems without being asked. You do not need to copy-paste error messages.
- Git integration: It can stage changes and commit with meaningful messages that describe what was actually changed and why.
Start Small
Do not try to build an entire application in your first session. Pick one small task in an existing project. Let Claude Code handle it while you watch and learn the workflow. You will quickly see where it helps most and where you need to stay in control.
The Claude Code documentation covers advanced features like custom instructions and project-specific configuration files.
RELATED READING
The Consulting Shift I Am Making In Year Two
After a year of writing and building, my consulting practice is changing shape. Shorter engagements. Sharper outcomes.
ReadThe Frontend Shift: Shipping Less JavaScript In Year Two
A year ago I reached for Next.js for everything. This year I often reach for nothing.
ReadThe Serverless Lesson I Would Write On A Sticky Note
After a year of shipping serverless projects, one rule explains most of the wins and all of the losses.
Read