Vibe Coding Bootcamp start date · Feb 1, 2027Learn more
ILLITH
Blog

Building a Claude AI Agent: 4 Paths, from No-Code to Code

Claude Project, MCP connectors, Claude Code sub-agent, or Agent SDK: the four ways to create an agent with Claude, their prerequisites, limitations, and a step-by-step example.

Antoine Vigneau
Antoine Vigneau
11 min read
Building a Claude AI Agent: 4 Paths, from No-Code to Code
Listen to article0:00 / 11 min

A Claude AI agent is Claude assigned a specific mission, equipped with the tools to carry it out. Yet there are four ways to build a Claude AI agent, each requiring a different technical level. This article breaks them down from simplest to most advanced, based on Anthropic's official documentation reviewed on October 31, 2026. Each path comes with its own prerequisites and limitations, and a complete example demonstrates the third one step by step.

How do you create a Claude AI agent?

To build a Claude AI agent, choose one of these four paths: a project with instructions in the Claude app, MCP connectors linking Claude to your tools, a sub-agent defined by a Markdown file in Claude Code, or the Claude Agent SDK to integrate it into your own application. However, the right choice depends on your technical skill and the level of control you need.

If the word "agent" is still vague, our article on the definition of an AI agent and practical examples lays the groundwork. Here, however, we focus on the practical side: which tool to open for your Claude AI agent, what to write, and where the limits lie.

Diagram of the four paths to build a Claude AI agent on an axis ranging from no-code to code: Claude project, MCP connectors, Claude Code sub-agent, Agent SDK
The four paths to build an agent with Claude, from least technical to most technical. Diagram built from the official documentation cited in the article.

What sets a Claude AI agent apart from a simple chatbot

The Claude Agent SDK documentation defines an agent as an application that accomplishes a task by planning its own steps and calling tools that read files, run commands, or modify code. Thus, two ingredients matter: the ability to decide what to do next, and access to real tools.

This definition helps position your future Claude AI agent along the four paths. First, a Claude project mainly provides context and guidelines. Next, MCP connectors add tools. Finally, sub-agents and the SDK set up a true working loop. This is my interpretation, not an Anthropic classification: the higher you go on the axis, the more Claude acts autonomously, and the more you need to define boundaries for what it can do.

Path 1: a Claude AI agent within an application Project

This is the no-code starting point. According to the official Claude help documentation, a project is a self-contained workspace with its own chat history and knowledge base. You upload documents to it and define project instructions, such as a more formal tone or a specific business perspective.

Who It Is For, and What Is Needed

This first Claude AI agent suits anyone who repeats the same request: writing according to brand guidelines, answering based on an internal manual, drafting meeting summaries. To get started, all you need is an account. Moreover, according to the same help page, Projects are open to all users, including those on a free plan, limited to five projects. Paid plans benefit from knowledge base expansion via document retrieval (RAG), which can increase capacity tenfold according to the help docs.

Its limitations

Indeed, a project configures Claude, but does not give it hands. As such, it replies in the conversation, based on what you have uploaded. For example, it will not run commands on your computer or interact with your business tools on its own. Furthermore, the help center notes that a new version of Projects is being rolled out gradually in beta, starting with Claude Code: the screen you see may therefore differ from what is described here. As a result, check your account before building a workflow on top of it.

Path 2: Connecting Claude to Your Tools with MCP

The Model Context Protocol, or MCP, is defined on modelcontextprotocol.io as an open standard for connecting AI applications to external systems: local files, databases, search engines, workflows. Moreover, the site compares it to a USB-C port for AI. Thus, an MCP server exposes tools, and Claude calls them when the task requires it.

In practice, the Claude Code documentation lists use cases such as querying a database, analyzing monitoring data, or drafting emails. To add a remote server, the Claude Code MCP page provides this syntax:

claude mcp add --transport http <name> <url>

Who It Is For, and What Is Needed

This path is suited for someone comfortable with a terminal, or a team that already has a server ready to connect. To do this, you need Claude Code and the server address, often with authentication. To install the tool, follow our guide on how to install Claude Code.

Its limitations

The documentation states it plainly: make sure you trust each server before connecting it, as those that retrieve external content expose you to prompt injection risks. In other words, an agent that reads your emails or tickets can also read a malicious instruction hidden within a message. Consequently, the more access you grant, the more caution is required.

Path 3: A Claude AI Agent as a Sub-Agent

The documentation for Claude Code sub-agents describes them as specialized assistants that work within their own context window, with a custom system prompt, specific tool access, and independent permissions. This allows Claude to delegate tasks to them based on their description, or you can invoke them directly yourself.

The benefit is twofold. First, the noisy work (searches, logs, large files) stays out of your main conversation, and only a summary is returned. Second, you limit tools: a reviewer does not need write permissions. When searching for "claude agent" or "claude code agents", this is almost always the feature you land on.

Who It Is For, and What Is Needed

To do this, you need Claude Code installed, a project open in a folder, and the ability to write a text file with a YAML frontmatter. Yet, there is no programming involved: you write instructions in everyday language. A Claude AI agent of this type is therefore defined as a configuration file that you can version-control with your project to share with your team.

Its limitations

A sub-agent lives within Claude Code, meaning in a session on your machine or server. Consequently, it cannot be used directly by your clients. And the documentation notes that Claude Code silently ignores any unrecognized header field: a typo in a field name will not trigger an error, but it will silently disable the intended setting.

Step-by-step example: an article review sub-agent

Let us take a simple use case for a blog, with a Claude AI agent dedicated to a single task: a read-only sub-agent that reviews a draft and flags issues, without ever modifying it. The file format follows the Claude Code documentation, where only name and description are required.

  1. Open Claude Code in your project directory. Create the .claude/agents/ folder if it does not exist. This is the location for project-specific sub-agents; ~/.claude/agents/ makes them available across all your projects.
  2. Create the file .claude/agents/relecteur-article.md with the following content:
---
name: article-reviewer
description: Reviews an article draft and flags mistakes, unclear passages, and unsourced claims. Use after every drafting session.
tools: Read, Grep, Glob
model: sonnet
---

You are a demanding editorial reviewer.
When given a file:
1. Read it entirely.
2. List spelling and grammar mistakes.
3. Flag ambiguous sentences.
4. Identify every unsourced figure or fact.
Never modify the file. Return a short list, sorted by priority.
  1. If .claude/agents/ did not exist before starting the session, restart Claude Code. Indeed, the documentation explains that file watching only covers folders present at startup. Afterwards, any changes to an existing file are detected within seconds, without restarting.
  2. Request delegation in natural language: "Use the relecteur-article sub-agent to review brouillon.md". Next, in the transcript, the delegation appears as a line showing the sub-agent's name and a brief description of the task.

Let us review the file's choices. First, the line tools: Read, Grep, Glob only grants read-only tools, preventing any modification: this follows the same logic as the documentation's code reviewer example, which excludes Edit and Write. Next, the line model: sonnet uses one of the accepted aliases, the others being opus, haiku, fable, a full model identifier, or inherit. Finally, the description is the sentence that allows Claude to know when to delegate: write it precisely.

To take things further, Claude Code skills complement sub-agents nicely. A skill provides a reusable method, while a sub-agent provides an isolated worker.

Path 4: The Claude Agent SDK for Your Own Application

If your Claude AI agent needs to live within a product, a service, or an automated workflow, the Claude Agent SDK is the intended path. The SDK documentation describes it as a Python and TypeScript library that provides the same tools, agent loop, and context management as Claude Code. It therefore includes built-in tools, hooks, sub-agents, MCP, permissions, and sessions.

Who It Is For, and What Is Needed

This path is therefore aimed at someone capable of developing and operating an application. The quickstart requires Node.js 18.14 or later, or Python 3.10 or later, as well as an Anthropic account. The TypeScript installation takes a single command:

npm install @anthropic-ai/claude-agent-sdk

You also need an API key, obtained from the Claude Console and stored in the ANTHROPIC_API_KEY environment variable. Note that the SDK does not read .env files on its own: your code must load them. The official example creates an agent that finds and fixes bugs, granting access only to the Read, Edit, and Glob tools.

Its limitations

You host, you monitor, you handle errors. In addition, the documentation specifies that Anthropic does not allow, without prior agreement, a third-party developer to offer claude.ai sign-in or that account's usage limits in their product: authentication must be done via an API key. Finally, the page compares the SDK to other options. If you prefer Anthropic to host the agent, it mentions Managed Agents, configured via the Claude API. This article does not detail them, as we have not reviewed their full documentation.

Comparison table of the four paths

Thus, this table summarizes the above. It does not include pricing: rates and quotas change, so check official pages when making your decision.

PathTarget audiencePrerequisitesMain limitation
Project in the Claude appBeginner, repeated use of the same promptA Claude accountResponds in the conversation, does not take action in your tools
MCP connectorsUser comfortable with a terminalClaude Code, a trusted MCP serverPrompt injection risk, access needs supervision
Claude Code sub-agentAnyone who can write a configuration fileClaude Code, a project, a Markdown fileRemains confined to a Claude Code session
Agent SDKDeveloper or technical teamNode.js or Python, API keyYou operate and monitor the agent

Which Claude AI Agent to Choose for Your Situation?

Fortunately, three questions are all it takes. Does the agent only need to answer based on your documents? If so, choose a project. Does it need to read or write in a tool you already use? Then add an MCP connector. Does it need to chain tasks across your files with restricted permissions? Then write a sub-agent. Does it need to serve other users inside your own application? Finally, move to the SDK.

You do not need to choose just one path. In fact, a sub-agent can use MCP tools, and the SDK can load the same configuration files as Claude Code. The documentation states that skills, commands, and project memory load from .claude/, just like in Claude Code. Therefore, start your Claude AI agent with the simplest level that solves your problem, then move up a notch only when you hit a limitation.

Training to Build Your Agents Methodically

Writing the file for a Claude AI agent can be learned in an hour. On the other hand, knowing which task to assign to an agent, how to test it, and what to forbid requires guided practice. The AI Project Manager & Vibe Coding bootcamp at ILLITH lists Claude among its tools, alongside Lovable and Webflow. It costs €4,990, and ILLITH is a Qualiopi-certified training provider. If your primary need is process automation, the n8n training course covers another type of agent: workflows that call AI models. To learn how to build agents end-to-end, from business needs to a running system, the Automation & AI Agents course runs for 2 months part-time per level and costs €2,490 per level.

Finally, whichever path you choose, verify what you are automating before granting permissions. An agent without proper boundaries quickly makes the same mistakes as a person in a rush, but at much higher speed.

Frequently Asked Questions

Can you create a Claude AI agent without coding?

Yes, partially. A project in the Claude application allows you to define instructions and upload documents without writing any code. It configures Claude's answers, but does not take action within your tools. To have it read or modify files, you must use Claude Code and a sub-agent, whose file is written in plain language.

What is a sub-agent in Claude Code?

It is a specialized assistant defined by a Markdown file with a YAML frontmatter. It operates within its own context window, with a system prompt and restricted tools, then returns a summary to the main conversation. Only the name and description are required in the file, located in the .claude/agents/ directory.

What is the MCP protocol for a Claude agent?

The Model Context Protocol is an open standard that connects AI applications to external systems, such as files, databases, or search tools. An MCP server exposes tools that Claude can call. In Claude Code, the claude mcp add command adds a server. Always verify its reliability before connecting it.

What is required to use the Claude Agent SDK?

The official documentation requires Node.js 18.14 or later, or Python 3.10 or later, an Anthropic account, and a Console API key stored in the ANTHROPIC_API_KEY variable. The SDK does not load .env files automatically. It is installed using npm for TypeScript, or pip for Python.

What is the difference between a Claude project and an agent?

A project provides context: documents and instructions to frame responses within the conversation. An agent, according to the SDK documentation, plans its own steps and calls tools to read files, run commands, or edit code. The project guides Claude, while the agent acts using tools.

Antoine Vigneau
Antoine Vigneau
ILLITH Teaching Team

Blog articles are written by the ILLITH teaching team.

Read next

Newsletter

Boost your No-Code and AI learning journey

Get weekly insights, tools, and pro tips straight from the ILLITH team.

One-click unsubscribe. No spam, guaranteed.

Video testimonial

Book a call to discuss your project

Book an appointment