Getting Started with Claude Code: Build Your First AI Agent

From zero to a working AI agent in under 30 minutes. No SDK required.

What is Claude Code?

Claude Code is Anthropic's command-line tool that turns Claude into an agentic coding assistant. It can read and write files, run shell commands, search your codebase, and maintain context across a project. But it's more than a coding tool. With the right project structure, Claude Code becomes a runtime for AI agents.

The key insight: you don't need a framework, an SDK, or complex orchestration to build useful agents. A well-structured project directory with clear instructions is enough to create agents that do real work.

How Claude Code Works

The Core Loop

Setting Up Your First Project

1

Create your project directory

Pick a folder for your project. This is where your agent will live and work.

mkdir my-ai-project
cd my-ai-project
2

Create your CLAUDE.md

This is the most important file. It's your agent's system prompt, operating manual, and identity all in one. Claude Code reads it automatically when you start a session in this directory.

# My Project

## Who You Are
You are Alex, a personal research assistant. You help me
research topics, summarize findings, and organize information.

## How You Work
- Be concise and direct
- Save research to the research/ directory
- Always cite sources
- If unsure, say so rather than guessing

## Communication Style
- Casual and friendly
- No corporate jargon
- Short paragraphs, bullet points preferred

## Key Directories
- research/ - saved research and summaries
- memory/ - persistent context between sessions
3

Create a memory directory

Memory is what makes an agent more than a chatbot. Create a directory and an initial memory file.

mkdir memory

Create memory/MEMORY.md:

# Agent Memory

## User Preferences
- (Will be filled in as we learn)

## Active Projects
- (Will be filled in as projects start)

## Key Decisions
- (Will be filled in as decisions are made)
4

Start Claude Code and talk to your agent

Open your terminal in the project directory and launch Claude Code:

claude

Claude Code will read your CLAUDE.md automatically. Your agent is now live. Start by telling it about a project or asking it to research something. As it works, it will read and write files in your project directory.

Creating an Agent with a System Prompt and Memory

The pattern is simple and powerful:

Pro Tips

What to Build Next

Once you have a basic agent working, here's where to go:

See how a full AI agent team works in production

Wolfepack runs an entire organization with one human and a team of AI agents. We document the whole thing.

Learn More at Wolfepack