About the video
Teacher’s Tech asks how to build your first AI agent in Claude Code so it can run a weekly workload. In this YouTube video, “How to Build Your First AI Agent in Claude Code (It Runs Your Week)” (about 19 minutes 22 seconds, published 11 November 2026), he walks through a home folder, a rule book, the right tools, a saved skill, and phone remote control.
Watch the original video on YouTube.
From Chatbot to Hands-On AI Agent
A normal chatbot is useful for quick questions. You might ask, “How do I prepare for a farmers’ market this weekend?” and receive a good checklist. You then do the work yourself.
An AI agent works differently. Give it a goal such as, “Create my booth sign and price list, then save them.” It can make a plan, write the files, check its work, and continue until the job is done.
A chatbot gives you an answer. An agent helps finish the job.
Most AI agents have four basic parts:
- A brain: the AI model that understands the request.
- Hands: tools it can use, such as reading files, creating documents, or searching the web.
- A rule book: instructions that guide its behavior.
- A work habit: a cycle of planning, acting, checking, and repeating as needed.
You remain part of the process. You start the agent, approve actions that leave your computer, and review the results.
The good news is that Claude Code already includes the brain, tools, and work pattern. You do not need to program them from scratch. Your job is to give the agent:
- A home folder
- A clear rule book
- Access to the right tools
- A specific job
Think of it like hiring a capable assistant and writing a clear job description.
Where to Build the Agent
Recent versions of the Claude desktop app combine regular chat and Cowork into one experience on paid plans. You no longer need to choose a mode. You describe what you need, and Claude decides whether to answer directly or work through a larger task. On the free plan, you may still see separate chat and Cowork options under the message box.
This kind of agent work can create finished files from materials you provide. For example, you can attach a price list and ask for a market booth sign and a new price list. Claude can lay out a plan, check a few details, complete the work step by step, and present editable, printable results. It can even design a sign that becomes right-side up when folded.
Agent work runs in the cloud, so it can continue after you close your laptop. You can also schedule it. When you use regular Claude, you hand over a task and receive the result. Claude Code lets you build and control your own agent.
Why Use Claude Code?
In Claude Code, the agent’s setup lives in an ordinary folder as plain files. The rule book, generated documents, and custom dashboard are all visible. You can open them, edit them, and see exactly how the agent works.
Claude Code also includes building tools such as plan mode, which you can use to review the approach before the agent starts.
Use the desktop version rather than the browser version for this setup. The browser version runs in the cloud and begins with a GitHub repository, so it cannot access a folder on your computer in the same way.
Choose the Agent’s Home
The demonstration business is Basecamp Bruco, a small-batch coffee roaster in a mountain town. Its main coffee is Ridgeline Espresso. Every Monday morning, the owner faces the same pile of chores. That recurring workload will become the agent’s job.
To set up the workspace in the Claude desktop app:
- Open Claude Code by clicking the Code icon at the top of the sidebar, next to the chat icon.
- Select This computer under the message box so the agent can work on your computer.
- Open the folder menu and choose the agent’s home folder. In the demonstration, it is an empty folder named
Monday Agent. - Keep separate folders for separate agents. This prevents unrelated jobs and files from becoming mixed together.
The rule book, skills, and generated files will live in this folder.
Choose the Brain and Set the Boundaries
The model menu selects the agent’s “brain.” The demonstration uses Opus 5.5, which is included with the Pro plan and is designed for complex and everyday tasks. Another option, Fable, is more powerful, but it is available only for limited periods on Pro and uses extra usage credits.
The mode menu controls how much freedom the agent has. New sessions start in auto mode. In this mode, Claude can work without asking about every small step, while a safety reviewer checks its actions and blocks risky operations such as deleting files or sending information outside the computer.
This reduces risk, but it does not remove it. You can later place stricter controls around sensitive actions.
Create the Rule Book
Each new session begins fresh. Claude may retain some internal notes, but it does not automatically bring back last week’s full conversation. Any instruction that must apply every time belongs in a persistent rule book.
Claude Code reads this file at the start of every session. It is called CLAUDE.md and contains plain-text instructions about the business, preferred tone, tools, and limits.
You do not have to write the file yourself. Use the microphone button and explain the business aloud. You could say:
“I own Basecamp Bruco, a small-batch coffee roaster in a mountain town. Our main coffee is Ridgeline Espresso. Keep messages short and friendly. No jargon. Never send an email; only draft it. Ask me before spending any money. Save everything you create in an output folder. Please create a CLAUDE.md file with all of that.”
This simple file gives the agent a stable identity and clear boundaries. It tells Claude what the business is, how it should communicate, which actions require approval, and where completed work should be saved.
The agent’s permanent rulebook
The CLAUDE.md file is plain text that explains the business, preferred voice, and operating rules. Claude reads it at the start of every session in the folder, so you do not have to repeat the same instructions each time. Keep it short; Anthropic recommends staying under roughly 200 lines because a long rulebook is less likely to be followed carefully.
Two details are easy to miss:
- This file provides strong guidance, not a hard lock. For actions that must never happen, add a separate hard stop as well.
- When you tell Claude to “remember that” after correcting it, the change may go into Claude’s own notes rather than
CLAUDE.md. If you want a permanent rule, say, “Add this toCLAUDE.md.”
The rulebook should contain what your agent always needs to know. A specific job belongs in a skill, which you will build later.
Give the agent the right tools
An agent can only act through the tools available to it. Out of the box, Claude Code can read and write files and search the web. To work with other apps, you need to connect them.
In the sidebar, open Customize, then Connectors. Find the app you want, such as Gmail, and click the plus sign to connect it. Once connected, the agent can read your inbox and create email drafts.
Choose the right level of independence before giving an agent a task.
A useful decision is to sort work into three piles:
- Do it for me: Claude can complete the task without approval.
- Draft it for my approval: Claude prepares the work, but you review it before anything is sent or published.
- Needs me: The task involves a decision, sensitive action, or risk that should stay with you.
To decide which pile a task belongs in, ask:
- Does the agent have the right tools to complete it?
- What happens if it makes a mistake?
A booth sign is easy to redo, so Claude could handle it. An email to a bean supplier may contain an important commitment, so it should be drafted for approval. Placing an order costs money and should remain your responsibility.
Deciding these boundaries before the agent runs makes it much easier to trust its work.
Give Claude your real business information
Before briefing the agent, place the information it needs in its folder. For the coffee business, this includes:
- A price list
- A spreadsheet showing green bean inventory
- A list of wholesale café accounts
- A contact list, including the bean supplier
An agent works best when it has the actual information your business already uses. Add your own spreadsheets, lists, price sheets, and reference files so Claude can work from real data rather than guesses.
Plan before you build
Click Auto beside the send button and choose Plan mode. In this mode, Claude can read files, think through the work, and ask questions, but it cannot make changes until you approve the plan.
Planning is the cheapest place to catch a mistake. Fixing a sentence costs very little, while rebuilding an entire dashboard takes time and uses more of your plan allowance.
A strong brief can follow four parts:
- The goal: What should the agent achieve?
- The task: What should it do?
- The rules: What boundaries must it follow?
- What does success look like? Describe the final result.
For this business, the request is to build a Monday-morning agent for Basecamp Brew Co. When told “brew it,” the agent should take the week’s chores and sort them into the three approval levels. Each task should have its own helper. Emails must never be sent—only drafted—and the weekly routine should be saved as a skill called BrewIt.
The agent should also create a roast and reorder board showing Ridgeline Green Bean stock, weekly roasting volume, and the number of weeks remaining. If stock falls below three weeks, it should display a clear reorder warning. Wholesale café orders should have their own section showing what is done and what is waiting for the owner.
Claude may return questions before writing the plan. It might ask how many pounds of green beans are roasted in a typical week and offer an estimate, but if you know the figure, enter it directly. For example, the answer could be 45 pounds.
Once the plan appears, review it carefully. It should cover the requested work and explain how the agent will test its own results. It should also follow the rules already stored in CLAUDE.md, including the draft-only email rule.
If anything is wrong, select the relevant text and leave a comment, or click Revise. If the plan looks right, click Accept and switch to Auto Mode. This gives Claude permission to build without pausing for every small step.
Make the first version fit your business
Even a useful first build will often miss the way you naturally think about the work. The first version of the coffee board showed roasted coffee on hand, weeks remaining, and a reorder line. However, that did not quite fit the business. Green beans are measured in pounds, while coffee is sold in bags. The reorder warning also needed to be more noticeable.
A vague request such as “make it better” tends to produce a guess. A more useful correction explains both what is wrong and what you want:
Under the 150 pounds on hand, show approximately how many 12-ounce bags of roasted coffee that makes. Make the status and reorder line larger and easier to spot, and put the wholesale café section directly below the stock.
This revision produces a much clearer board. It estimates about 164 bags and even accounts for the weight lost during roasting, although that detail was not included in the original instructions. The reorder warning is now hard to miss, and the café order section appears where the owner expects to check it first.
The weekly task area begins empty, with zero tasks marked as done and zero waiting for approval. It is ready for the agent’s first run.
Save repeatable work as a skill
The more accurately you describe how your business works, the better the tool fits it. The brief also asked Claude to save the Monday routine as a skill called BrewIt.
A skill is a plain-text file that contains the steps for one job. The BrewIt skill includes the three approval levels, a helper for each task, a reviewer for each completed task, and the rule that emails may only be drafted.
It could all have been placed in CLAUDE.md, but there is a useful distinction:
- The rulebook is what the agent always knows.
- A skill is a job the agent knows how to do.
Claude reads CLAUDE.md in every session, so it should stay limited to standing instructions. A weekly routine does not need to load every time. Keep that process in a skill, where it is used only when needed.
To run a skill, type / followed by its name. You can also simply say “BrewIt,” and Claude will select the matching skill. One agent can learn as many skills as you need, so you will not have to explain the same routine again.
Run the weekly routine
Paste in the week’s chores and type BrewIt. The checklist follows the routine stored in the skill:
- Read the business files
- Check the bean stock
- Sort the chores into the three approval levels
- Assign a separate helper to each chore
- Assign a reviewer to check each task
- Mark tasks as complete only after review
The rulebook provides the agent’s permanent boundaries, while the skill supplies the repeatable process for each Monday run.
Parallel helpers, with one important trade-off
The main agent sorts the weekly chores into piles and hands each task to a helper. These helpers are called subagents, and they can work at the same time.
Each helper gets a clean desk of its own. The one writing a supplier email, for example, is not distracted by the work of writing a promotional post. When a helper finishes, it reports back with a short summary.
There is a trade-off: every helper uses some of your plan limit. If you are on Pro, begin with a few tasks rather than twenty. More helpers are not always better.
The agent checks the numbers before acting
Once the tasks are complete, the agent gives you a quick summary. In the example, one task is finished, five are waiting for approval, and nothing has been sent or purchased.
The agent also checks the stock figure against what you told it. It asks whether 150 pounds is still the bean count, but you actually roasted 25 pounds of green beans that week. You correct the figure and ask it to update the board.
The stock drops to 125 pounds. That is about 136 bags, or 2.8 weeks of supply, so the status changes to Reorder Now. The agent also increases the supplier order to 350 pounds, but the task does not count as complete until a reviewer checks the draft.
Then it raises a useful question: is 25 pounds your new normal? It is not, so you leave that setting unchanged and keep 45 pounds as your usual weekly amount.
This is the useful part of an agent: it watches your numbers and acts on them without you having to rebuild the process every time.
A separate reviewer checks the work
Before anything is marked done, a reviewer checks it. This step was not in the original brief, but it protects the work from a common problem: an AI agent can sound confident even when it is wrong.
Anthropic notes that when Claude reports something is complete but it is not, the agent often had no way to check its own work. A separate reviewer is less influenced by the reasoning that produced the result. It is much like proofreading someone else’s work instead of your own.
The review caught two real mistakes:
- The booth sign shortened three coffee names, including Elpen Glow instead of Elpen Glow Breakfast Blend. The prices were correct, but the names did not match the price list. A helper fixed the names, and a new reviewer checked the corrected version.
- The winter drink research included a broken link. A helper repaired it, and it passed the second review.
Nothing counts as done until it passes review. The gift box price sheet passed because every price matched the price list.
The reviewer works from a short, plain-language checklist:
- Is the task in the correct pile?
- Do the numbers match the source files?
- Was nothing sent or purchased?
A good reviewer should look for meaningful mistakes rather than invent problems at every turn. Give it a clear checklist and tell it what to ignore. As Anthropic puts it, a reviewer asked only to find problems will always find something, so keep the checklist focused on real errors.
You approve what leaves the system
The completed work ends up in your draft folder. In Gmail, you can find a reorder message for 350 pounds of Ridgeline Green Beans and a reply containing wholesale prices. Nothing has been sent yet. You add the delivery date and decide whether to send each message yourself.
Two separate protections keep you in control:
- A rule in
Claude.mdsays that emails may only be drafted. - Claude must ask for your permission before it sends an email through Gmail.
The rule in the file is guidance. The permission prompt is a hard stop. Rules you write guide the agent; permission prompts lock the door.
The routine survives new sessions
The next Monday, you can start a fresh session in the same folder, add a few new chores, and run the routine again. You do not need to repeat the explanation. The rulebook and the skill are already saved in that folder.
This is what turns the project into an agent rather than a conversation you will soon forget. It follows the same piles, rules, and workflow each time.
The routine also creates a reusable artifact. An artifact is a page saved to your Claude account, so you can open it on another device. Every time you run the skill, it updates the same board with the current stock level, reorder status, and tasks waiting for you.
In the Claude app on your phone, open the menu, choose Artifacts, and tap the board. You can use it to check progress and steer the agent from your phone.
Use your phone as a remote control
On your computer, enter /remote-control to make the active session appear in the Claude app. From your phone, you can then add a task such as emailing the dairy supplier about oat milk. The work continues on your computer while you control it from your phone.
The computer must remain on because that is where the agent is running. Your phone is a remote control, not a second computer. If the laptop goes to sleep, the session reconnects when it wakes up. You can still check progress and guide the work from elsewhere, but the computer must be awake to handle it.
If you need a job to run on a schedule while your computer is off, regular Claude scheduled tasks can handle that instead.
The recipe for a useful agent
Any reliable first agent needs the same basic ingredients:
- A dedicated folder to act as its home
- A rulebook in
Claude.md - The tools it needs and three clear task piles
- A four-part brief written in plan mode
- Specific feedback after the first draft
- A repeatable weekly process saved as a skill
- A reviewer to check the output
- Your approval before anything leaves the system
The goal is simple: pick one chore you do every week, write the brief, and build an agent around it. The agent can handle the routine, check the numbers, and prepare the work, while you remain responsible for the final decisions.
Related reading on YepSoso
If you are building with Claude Code, these related notes go further on agent setup and workflow:
- Build Your First AI Agent with Claude Code, No Coding
- The Best Way to Run Claude Code in 2026, With Orca
- How the Claude Code Team Uses Claude Code to Build It
Source: How to Build Your First AI Agent in Claude Code (It Runs Your Week) on YouTube.