What you will learn
This article is a local AI coding agents guide.
You will learn four things:
- What an AI coding agent is.
- Why it is different from a normal chatbot.
- What Claude Code and Codex CLI are.
- How Web4 learners can use them to build a first personal website.
You do not need to understand many terminal commands first. Start with one simple idea: a terminal is a text window for talking to your computer.
Plain answer: what is an AI coding agent?
An AI coding agent is an AI programming assistant that can read a project, edit files, and run commands.
A normal chatbot usually works like this:
You ask one question, and it gives one answer.
An AI coding agent is closer to this:
You give it a goal. It reads the project, thinks through the steps, changes code, and, when needed, runs tests, reads errors, and keeps fixing the problem.
For example, you can say:
Please change the homepage title to Learn Web4 and check whether the build is affected.
A normal AI might only tell you which file to edit.
An AI coding agent can open the project, find the file, propose a change, and even edit it for you after you approve.
Local does not mean offline
The word local in local AI coding agents is easy to misunderstand.
Here, local does not mean the tool works entirely without the internet.
More precisely:
- The tool runs in your local terminal.
- It can read project files on your computer.
- It can understand the current code structure.
- When you allow it, it can edit local code.
- It usually still needs the internet to call an AI service.
Think of it this way: the AI brain is in the cloud, but the working hands are on your computer.
Beginners should remember two things:
- Do not turn on an automatic mode inside a project you do not understand.
- Practice inside a Git project when possible, so you can inspect differences and undo changes if something goes wrong.
What is Claude Code?
Claude Code is an AI coding tool from Anthropic.
It runs in the terminal. After you enter a project folder and type claude, Claude can read the project, answer code questions, help you edit pages, write tests, and explain build errors.
It is useful for tasks such as:
- Asking Claude to understand an unfamiliar project first.
- Asking Claude to explain what a specific file does.
- Asking Claude to edit one page or component.
- Asking Claude to help debug a build error.
- Asking Claude to break a request into small steps.
If you want step-by-step installation instructions, read the Claude Code Installation Guide.
What is Codex CLI?
Codex CLI is OpenAI’s command-line AI coding tool.
When you type codex in the terminal, it opens a coding environment where you can talk with your project. It can read code, explain code, generate change suggestions, and, after you approve, edit files and run commands.
It is useful for tasks such as:
- Asking AI to inspect code without changing files.
- Asking AI to edit a small part of a page.
- Asking AI to run a build or test.
- Asking AI to summarize changes before a commit.
- Asking AI to turn an idea into a working page.
For installation steps, read the Codex CLI Installation Guide.
What can Web4 learners use them for?
Learning Web4 is not only about memorizing concepts.
You should build small things too.
Claude Code and Codex CLI are useful for exercises like these:
| Exercise | What you learn |
|---|---|
| Ask AI to understand a project | Project structure, routes, components, and content systems |
| Change a page title | How a request turns into a code change |
| Add a new article | Markdown, frontmatter, and SEO descriptions |
| Build a personal website | Page structure, styling, and responsive design |
| Run a build and read errors | Terminal output and debugging |
This is where AI coding tools are most helpful for beginners: they can explain the step where you get stuck.
But you still need to look.
Learn to ask:
- Which files did it change?
- Why did it change them this way?
- Is there a simpler approach?
- Did the build pass?
- Will the page look bad on a phone?
A beginner-friendly learning path
This path is simple, but it works.
Step 1: Install one tool
Install Node.js first, then install Claude Code or Codex CLI.
You do not need both at the beginning. Choose one.
- Want to start with Claude? Read the Claude Code Installation Guide.
- Want to start with OpenAI? Read the Codex CLI Installation Guide.
Step 2: Open a project
In the terminal, enter a project folder.
For example:
cd my-first-website
cd means change into a folder.
If you do not know where you are, type:
pwd
It will show your current path.
Step 3: Ask AI to read the code first
Do not start by asking AI to make big changes.
Ask:
Please read this project first. Tell me what framework it uses, where the pages are, and where the content files are. Do not modify any files yet.
This step matters.
It is like asking a teammate to look at the map before starting work.
Step 4: Change one small page
Your first exercise can be very small.
For example:
Please rewrite the homepage subtitle so it fits Web4 learners better. Only change the necessary files and tell me what you changed.
Small changes are easier to review.
They also make it easier to understand what the AI did.
Step 5: Build a personal website
After you know how to open a project, ask AI to read code, and make small changes, you can build your first personal website.
The goal does not need to be complex.
Start with four sections:
- Personal introduction
- Skills list
- Project showcase
- Contact information
For the full practice project, read Build a Personal Website with AI.
Safety habits beginners should remember
Read first, then edit
The first time you use an AI coding tool, ask it to read code only.
For example:
Explain the project structure first. Do not modify any files.
Change one small goal at a time
Do not ask:
Build me a complete business website, optimize SEO, add an admin panel, and add payments.
That is too large.
A better request is:
Please build a simple personal website homepage with only an introduction, skills, projects, and contact information.
Use Git to protect yourself
Git records file changes.
Beginners do not need to master Git immediately.
But you should at least know:
git status
It tells you which files changed.
After AI edits code, inspect the changes before you continue.
Next step
If you have not installed a tool yet, choose one installation guide:
- Claude Code Installation Guide: Start Coding with Claude on Your Computer
- Codex CLI Installation Guide: Use OpenAI Codex to Edit Code in the Terminal
If you already have a tool installed, go straight to Build a Personal Website with Claude Code or Codex CLI.
Further reading
- Claude Code getting started - Anthropic
- Codex CLI documentation - OpenAI
- OpenAI Codex CLI GitHub repository - OpenAI
FAQ
Will an AI coding agent write all my code for me?
It can help you read code, edit code, explain errors, and generate pages, but you still need to give it a clear goal and review what it changed. Beginners should treat it as a coding partner, not as fully automated outsourcing.
Does a local AI coding agent work without the internet?
Usually no. Local mainly means the tool runs in your computer's terminal and can read and edit local project files. In most cases, it still needs an internet connection to call Claude, OpenAI, or another AI service.
Should Web4 learners start with Claude Code or Codex CLI?
Either one can work. If you want to try the Claude ecosystem, start with Claude Code. If you want to use OpenAI's Codex workflow, start with Codex CLI. The important thing is to practice inside a small Git project.