Skip to content

First Steps

Learn how to start Claude Code, understand its interface, and complete your first AI-assisted programming tasks.

Starting a Session

Open your terminal, navigate to your project directory, and run:

Terminal
claude

You'll see an interactive prompt like this:

Terminal
╔══════════════════════════════════╗
║  Claude Code  ·  claude-sonnet  ║
╚══════════════════════════════════╝
> _

Claude Code is ready to receive instructions in natural language. You can write to it as if it were a coworker.

Your First Task

Try something simple to get started. Type:

Terminal
> What files are in this directory?

Claude Code will run ls or find and show you the result. You'll notice that before running any tool, it asks for confirmation or shows you what it's about to do.

Understanding the Workflow

Claude Code operates in cycles of:

  • Think — analyzes your request and plans the steps.
  • Act — uses tools (read files, run commands, edit code).
  • Show — presents the results and changes made.
  • Wait — returns to waiting for your next instruction.

Operating Modes

Normal mode (default)

Claude Code asks for confirmation before editing files or running important commands. Ideal for getting started and maintaining control.

Auto mode

Claude completes tasks autonomously without asking for confirmation at each step. Useful when you trust the task and want speed:

Terminal
claude --dangerously-skip-permissions

Plan mode

Type /plan before your request so Claude shows you the plan before executing anything. Ideal for complex tasks:

Terminal
> /plan refactor the authentication module to use JWT

Examples of First Tasks

Understanding an Existing Project

Terminal
> Explain this project's structure and what each folder does
Terminal
> What does the processPayment function do in src/payments.ts?

Creating a New File

Terminal
> Create a React component called Button with primary and secondary variants in TypeScript

Fixing an Error

Terminal
> I have this error in the console: [paste the error] — help me fix it

Running Tests

Terminal
> Run the tests and if there are failures, fix them

Exiting Claude Code

You can exit with Ctrl + C, Ctrl + D, or by typing:

Terminal
> /exit

Starting with a Direct Prompt

If you know exactly what you want, you can pass it directly to the command without entering interactive mode:

Terminal
claude "explain the package.json file"
claude "add TypeScript types to the utils.js file"

"Print" mode (direct output)

To use Claude Code in scripts or pipelines:

Terminal
claude -p "summarize the changes in this diff" < changes.diff

The -p flag makes Claude respond once and exit, ideal for automation.

Complete Aulafy mapSee how this lesson fits without leaving your path.

Complete Aulafy map

How all courses connect

This is not a checklist. Start with the foundation, choose an outcome, and go deeper only when your project needs more control.

  1. 1Understand
  2. 2Apply or build
  3. 3Operate with confidence
01

Choose an application

Turn the foundation into a visible outcome: a website, a business improvement, media, or an interactive experience.

Continue into the technical branch when you need to maintain code, data, or infrastructure.

02

Build with code

Prepare your environment, work with coding agents, and run models while keeping control of your projects.

This branch prepares you to design and operate reliable AI systems.

03

Take systems to production

Combine retrieval, agents, evaluation, security, deployment, and model adaptation when the problem requires it.

You do not need every course: choose the component your system needs and return as it grows.

View full catalogue