About the video
Want to build an AI agent with Claude Code without writing code or opening a terminal? In this Grace Leung video, “Claude Code: Build Your First AI Agent in 20 Minutes (100% No Coding)” (20 minutes 1 second), she shows how to set up a workspace, give the agent a playbook and memory, connect tools like Notion and GitHub, and turn a one-off request into a scheduled task.
Watch the original video on YouTube.
Claude Code is not just a tool for developers. You can use it to build an AI agent without writing code or opening a terminal.
The difference between a chatbot and an agent is judgment. A chatbot answers a question. An agent takes on a job: you give it a goal, and it decides what to do first, which tools to use, and whether the result is good enough.
To build an agent that can work independently, you need to give it five things:
- The brain: the AI model that does the thinking.
- The context: what the agent knows about your business, audience, and style.
- The job: the goal it is working toward.
- The rules: how it should work and what it should never do.
- The tools: what it is allowed to use to complete the job.
In this example, I’m building a content creator agent for my business. I want it to turn my videos and newsletter into Instagram posts. But the same approach works for many other kinds of agents.
Set up the agent workspace
The first step is to prepare a workspace for your agent. Think of it as onboarding a new teammate. Before they can work, they need a desk, the right files, and a guide explaining how things work.
For an AI agent, the workspace is simply a folder. I’m calling mineBusiness OSbecause it will be the central place where all my agents live and work.
Inside the folder, I’ll add a few useful files, such as:
- My brand logo
- Personal photos
- Real Instagram posts to use as examples
You don’t need to overcomplicate this. A small, organized set of reference files is enough to get started.
Next, open the Claude desktop app and switch to theCodetab. Claude Code has two main modes:** local**, which runs on your computer, andcloud, which runs elsewhere. We’ll start with local mode.
Choose theBusiness OSfolder as the workspace. You can expand the folder view to confirm that Claude can see the files you added.
Choose permissions and the model
The permission mode controls how often Claude stops to ask for approval. I recommend starting withauto mode, which lets the agent work without constant interruptions while still blocking risky actions. You can change this setting whenever you need to.
The model acts as the agent’s brain. For this content agent, I’m choosingOpus 5.5because it follows detailed instructions carefully and has strong design judgment.
Give the agent context
Each new Claude Code session starts with limited information. It only knows about the files and instructions you ask it to read. That means the agent needs an onboarding process.
I ask Claude to read my brand website, the files in the workspace, and the example posts. Then I ask it to create two important files:
- Anonboarding guidein the form of a
CLAUDE.mdfile. This is the first thing Claude reads each time it starts working. - Abrand context filedescribing my business, audience, voice, and visual style.
While creating these files, Claude uses its tools to retrieve my website and review the uploaded examples. It also asks clarifying questions, such as which fonts I use and why I like the sample posts. These answers add context that cannot be inferred from the files alone.
Once that process is complete, the workspace contains both the brand context and theCLAUDE.mdonboarding file.
Test the setup
The best way to check whether the agent is properly prepared is to start a new session and give it a test task. For example, I ask it to plan next week’s post about Claude Code for marketers.
Claude reads the brand context and examples, then produces a content plan with suggested channels, angles, and hooks for each post. The result reflects my actual brand, including the color palette and overall style.
This is only a test, not a finished campaign, but it shows why a website link and a few strong examples make such a large difference.
Now imagine making the same request in an empty folder with no setup. The request is identical, but the result is not.The workspace gives the agent the context it needs to make useful decisions.
Turn the setup into a real agent
So far, we have a well-prepared workspace. The next step is to turn it into an actual agent.
You do not need to write the agent yourself. I use a ready-made prompt called anagent designer. You paste the prompt into Claude Code, describe the job you want, and Claude interviews you about the details before designing the agent.
For this example, the agent’s job is to turn long-form content into carousel posts. Claude asks clarifying questions so it can understand the agent’s purpose, boundaries, and required behavior.
After those questions are answered, Claude summarizes the agent design. From there, we can create the agent and put it to work.
Create the agent
Claude builds the agent from five main parts: itsbrain,context,job,rules, andtools. It also confirms the name with you. In this example, we will call it theContent Creator Agent.
You can look in the agent folder and see that Claude has created a new file for it. The file holds all the important parts of the agent.
If the technical side feels intimidating, you can skip it and let Claude handle it. What matters most is knowing how to put the agent to work.
Give the agent a task
Whenever you want to use it, type@and pick the Content Creator Agent. In this example, you hand it a video transcript and ask it to turn that content into a carousel with no more than 10 slides.
The agent reads the input files, uses its own judgment to pick an angle, and builds a first version. The opening result is already fairly close to the brand’s style, but some images are missing, the font size is not quite right, and the design looks a bit basic.
This is a good moment to update the agent. In real life, the first version is rarely the final one. You need a few rounds of feedback to make it better.
After another rebuild, the carousel looks much more like the existing Instagram post, with the same sketchy style, icons, and fonts. Some of the layouts are even better than the original post, so it is worth considering using.
This is exactly why setting up the workspace first matters. The point is not to get more AI-looking content. The point is to get content that feels like your brand.
From useful to reliable
Most people stop once the agent produces a good result. To go further, you have to make the agent reliable.
The current agent can make on-brand posts, but every run makes its own calls about the hook, the layout, or the design. You also want to add motion so the posts feel animated.
This is where anagent skillcomes in. A skill is a playbook that tells the agent how to do the same job the same way every time. Think of the agent as your teammate and the skill as that teammate’s training manual.
For this project, we create acontent playbook skill, including guidance on motion. One of the easiest and most effective ways to build it is to let Claude interview you about what could be improved in the carousel it just made.
Build the playbook
Ask Claude to think hard before it makes suggestions. This really does make a difference, because you get a set of thoughtful questions:
- What overall energy should your brand have in terms of emotion?
- What is the signature emotion the post should carry?
- Which visual and writing choices should stay consistent every time?
Take your time with each answer. Those answers become the foundation of your content playbook.
You will find the new skill in the Claude folder. It holds the core workflow and the key checklist criteria the agent should follow.
To test it, open the slash-command menu in Claude Code and search for the Content Playbook skill you just created. You can ask it to animate the same carousel from earlier, then use@to tag the file name.
These commands are very handy inside Claude Code, because you can always point the agent at any file in your workspace.
Add motion
The skill animates every slide. On the cover with your face, a loop diagram draws itself, and a roadmap moves from the top to the bottom. A small glass jar travels from the cover slide all the way to the end.
The result is far more engaging. The glass jar is probably worth changing, since it does not quite fit your usual style, but the skill can always be tweaked. As a first version, this is well done.
You can also click the output folder and see that every single slide is exported as its own video. If you work with social media, those files can be uploaded directly as an animated post, so they are ready to publish.
Connect the skill to the agent
Having the playbook is not enough. The agent also has to know it should use it.
So assign the Content Playbook skill to the agent and update the agent so it knows to follow the same playbook every time. Then update theCLAUDE.mdfile, which is where you tell Claude to use this agent whenever you ask for a social post or carousel.
Everything is set:
- The agent has a defined role, context, rules, and tools.
- The skill provides a repeatable content workflow.
- The agent is connected to that skill.
CLAUDE.mdtells Claude when to use the agent.
Test the finished agent
The real test is whether the agent can pick up a new task without a long explanation. This time you give it another newsletter and ask for another animated carousel post.
The agent recognizes the request, applies the Content Playbook skill, and starts building the new animated carousel. You can also open the background tasks view in Claude Code to check on progress.
This is more than a one-off prompt. It is a repeatable system that produces content in a consistent style, follows a shared playbook, and gets better with every new task.
The first version of the carousel is engaging, but it is not quite perfect. The cover includes your face, motion graphics, clear headlines, animated elements, a checklist, and a final call to action. Yet some details still feel off. A box and clipboard on one slide use brown, which is not part of your brand, and several inner slides share the same background when they could use more variety.
Normally, you might make those changes yourself and move on. But if the agent is going to handle more work in the future, it should learn from your feedback.
Give the agent a memory
This is the next step: make the agentself-improving. The key is to give it a memory.
Think of a new teammate who is excellent at the job but sometimes forgets what you have told them. Without a way to record your guidance, you may need to repeat the same feedback forever. Many AI agents behave as if every session is their first day.
Your agent already has three important sources of guidance:
- The onboarding guide explains what to do on the first day.
- The playbook describes how the work should be done.
- The memory records lessons learned while working with you.
In Claude Code, ask the agent in plain English to create a memory file for the content creator agent, place it next toCLAUDE.md, and read it before every job.
The important instruction is tosave only feedback that will apply to future posts, rather than every small one-time change. That keeps the memory useful and prevents it from filling with details that only matter to a single project.
Learn from each round of feedback
Return to the carousel and give the agent your corrections in a clear list. For example, you might say:
- Do not use brown boxes or other off-brand colors.
- Give each inner slide a different background.
- Keep the design within the established brand colors.
The agent can now apply those changes to the current carousel. More importantly, it should update the memory file with the lasting lessons behind your feedback.
To test whether this worked, give the agent a completely different newsletter and ask for another animated carousel. It should follow the same workflow, use the relevant skill, ask for an angle if needed, and apply the lessons it has learned. The next result should be more polished, with stronger color choices and more variety across the slides.
You may also spot smaller issues, such as an unwanted robot face or a black outline around your portrait. Give that feedback too. The agent should fix the current design and add the rule to its memory when the correction is useful for future work.
The more useful feedback you provide, the better the agent becomes at making decisions that match your taste.
Add Notion and GitHub
At this point, you already have a working agent. But everything is still stored on your laptop, so closing it means you can no longer reach the agent. The next step is to move it to the cloud so it can keep working while you are away.
Before doing that, give the agent two useful tools.
Notion
If you want the agent to prepare content in Notion instead of keeping every draft locally, connect Notion throughCustomizeand thenConnectors. Claude Code provides a list of available connectors, so your own setup may use a different tool.
Once Notion is connected, tell the agent that it can use it. Tools are one of the essential parts of an agent, and the right connected services give it access to the places where your work and source material already live.
GitHub
GitHub provides an online home for your files. A folder is called a repository, or “repo.” You can place the Business OS folder in a private GitHub repository, creating a cloud copy of the system that contains your agent and its instructions.
You do not need previous GitHub experience. In Claude Code, ask it to sync a copy of your Business OS folder and create a repository named “Business OS” on your GitHub account. Claude will then prompt you to sign in to GitHub and authorize the setup.
Build a content inbox
Once the agent and its files are available in the cloud, assigning new work becomes simple. Set up a content inbox, add the source material, and create a task for the agent to pick up.
For example, you might place two past newsletters in the inbox and ask the agent to turn them into carousel posts. If you are away from your computer, you can start and monitor the work through the Claude mobile app. The agent can continue running its background task and report back when both posts are ready, including the details and relevant Notion links.
This setup makes the workflow repeatable: source ideas enter the inbox, the agent applies the content playbook, memory guides its decisions, and finished drafts appear in the connected tools for your review. It also keeps the work aligned with your brand instead of letting each new session start without any history.
From Manual Request to Scheduled Task
The workflow is working, but there is still one manual step: you have to ask the agent to check the content inbox and turn pending ideas into carousel posts.
To remove that step, create a scheduled task, also called a routine task, in Claude Code. A scheduled task lets the agent run on a schedule without waiting for a new message from you.
Create a task namedDaily Content Drop, then add clear instructions. In this example, the agent should:
- Run every evening.
- Check the Notion content inbox for new ideas.
- Turn each new idea into a carousel post.
- Follow the same content playbook and brand guidance used for earlier posts.
- Suggest improvements to the playbook based on feedback.
InAdvanced Settings, select the repository you created earlier. This ensures the task runs in the cloud at the scheduled time, even when your computer is off or you are away from it.
Now the workflow can run without daily prompts. Add ideas to the Notion inbox during the day, and the drafts will be waiting for your review the next morning.
Review and Improve the Results
When the agent finishes, it reports back with the completed content ideas, the relevant details, and links to the posts in Notion. The results follow the content playbook, retain the feedback stored in memory, and stay consistent with the brand.
Each post can also include a final call to action that points back to your YouTube videos. If something needs to change, send your feedback to the agent. It can update the post right away and record the feedback in its memory for future work.
Back in Notion, the agent marks the task as done. You can then review the carousel, make any final edits, and mark it as approved before moving it to the next stage.
Build Your Own Autonomous Agent
You can apply this same process to any part of your business. A useful setup follows four levels:
- Create a workspaceso the agent understands your business, audience, and goals.
- Build the agentwith one clear job, the right tools, and explicit rules.
- Add skills and memoryso it follows a consistent playbook and improves as it receives feedback.
- Move it to the cloudso it can run on a schedule even when you are not there.
You do not need to complete every level at once. Start with one, test it, and then repeat the same process for other agents. The setup works for content production as well as other repeatable business tasks.
Everything shown here runs onClaude Code. The creator uses it on the Max plan, and you can sign up through the link below to begin building your own system.
If you want step-by-step help creating an AI system for your business, consider checking out theAI Growth System for Marketingprogram. If you are ready to move beyond a single agent and build a team of agents, watch the next video as well.
Which level will you start with? Share your plan in the comments, and give the video a thumbs-up if you found it useful.
Related reading
- How to Manage Multiple AI Coding Agents: Untangle’s Playbook
- How to Reduce Claude Code Token Usage with Token Economizer
- More guides in Tools & Workflows and Save Effort
Source: Grace Leung on YouTube