After this, you'll have set up a single-purpose agent that perceives real input, decides what to do, and acts on it, all inside a Claude Project with custom instructions and a repeatable prompt.
Before you start
Complete What an AI agent actually is first. You need the perceive-decide-act frame to write useful instructions.
The idea
Your first agent is not a chatbot with a fancy title. It is a set of instructions that makes Claude do a specific job every time you run it. The secret: a Claude Project (a workspace inside claude.ai or the desktop app where you save custom instructions and files) turns a one-shot chat into a repeatable workflow.


You write the instructions once, and every conversation inside that Project follows them automatically.
Here is the concrete job this lesson builds: a weekly email digest agent. You paste your recent emails into the Project, and the agent reads them (perceive), sorts them by urgency and topic (decide), then produces a clean summary with draft replies for anything that needs a response (act).
The whole thing takes about two minutes to run once it is set up, versus the twenty minutes of scanning and drafting you do manually. (Later in the track, you will wire real connectors so the agent reads your inbox directly. For now, paste is all you need.)
The setup is three pieces:
Piece 1: The Project. In claude.ai, click Projects in the sidebar, then Create Project. Name it something specific ("Weekly Email Digest," not "My Agent").
In the desktop app, create a folder for this job instead. Either way, the Project is the container that holds your agent's instructions and remembers them across sessions.
Piece 2: The custom instructions. Inside the Project, open the Instructions panel (claude.ai) or the instructions file (desktop). These instructions tell Claude what to do every time a conversation opens in this Project.
For the email digest, the instructions say: "You are an email triage agent. When I paste emails, sort them into Urgent, Needs Reply, and FYI. For Needs Reply items, draft a short response in my voice."
One more line caps the length: "Keep the summary under 300 words."
Piece 3: The repeatable prompt. Each week, you open a new conversation in the Project and paste (or point to) your emails. Claude follows the instructions without you repeating them. That is the "agent" part: the instructions persist, the job repeats, the quality stays consistent because the rules do not change between runs.
The reason this works better than a single long prompt: a long prompt gets lost in the conversation. By the fourth reply, Claude has drifted from your original instructions.
Project instructions sit outside the conversation. They are re-read at the start of every new chat, so the agent stays on task even when the conversation gets long.
You can build this agent on any Claude surface (claude.ai Projects, the desktop app, or Google Antigravity). The lesson uses claude.ai Projects for the example because it requires no install and no code. The pattern transfers to the desktop app with zero changes.
Try it (12 min)
Watch out for
Paste this into Claude
Create your first agent Project. Follow these three steps: STEP 1: CREATE THE PROJECT Open claude.ai (or the desktop app). Create a new Project. Name it after the job, not "Test Agent." If you picked a task in the previous lesson, use that. If not, use "Weekly Email Digest." STEP 2: WRITE THE INSTRUCTIONS Open the Instructions panel in the Project and paste this (adapt the bracketed parts): "You are my [task name] agent. Every time I start a conversation in this Project, follow these rules: 1. PERCEIVE: Read everything I paste carefully. Identify [what matters for your task]. 2. DECIDE: Sort items into [your categories, e.g., Urgent / Needs Reply / FYI]. 3. ACT: For each item that needs action, [describe the output, e.g., draft a reply in my voice, write a summary, flag the issue]. Keep your output under [word limit]. Use bullet points for the summary. Bold the most important item. Ask me before doing anything irreversible." STEP 3: RUN IT Open a new conversation inside the Project. Paste some real input (emails, notes, tasks, whatever fits your chosen job). See if the agent follows the perceive-decide-act loop you specified. If it drifts from the instructions, do NOT fix it in the conversation. Go back to the Instructions panel and tighten the rule it broke. Then start a fresh conversation and test again. The fix lives in the instructions, not the chat.
What a good response looks like
## Weekly Email Digest, June 16 **Most important:** Client proposal deadline moved to Friday (was next Tuesday). ### Urgent - **Proposal deadline change.** Acme Corp moved the submission window up by 4 days. Action needed today. ### Needs Reply - **Team standup reschedule.** Priya asked to move Thursday's standup to 2pm. *Draft reply: "2pm works. I'll update the calendar invite."* - **Vendor invoice query.** CloudHost billing asked about the May overage. *Draft reply: "The overage was approved in the May budget review. CC'ing finance for the PO number."* ### FYI - Marketing newsletter went out (no action needed) - Office Wi-Fi maintenance Saturday 6am-8am - New hire orientation invite for July 1 **3 items need your attention. 2 draft replies ready for review above.**
What good looks like
Go deeper (8 min)
Paste this into Claude
Now stress-test your agent. Open a new conversation in the same Project and paste a harder batch of input (more items, messier formatting, maybe a few that do not fit your categories cleanly). After the agent responds, ask Claude this follow-up inside the conversation: "Review what you just produced against the instructions for this Project. Did you follow every rule? Which rule did you follow least precisely? Suggest one change to the instructions that would prevent that drift next time." Take Claude's suggestion, update the instructions, and run one more test. This self-review loop is how you tune an agent without guessing.
What good looks like
When this breaks
AI can help with this
Open Claude and say: 'I want to build an agent that [your job]. Write me the Project instructions using a perceive-decide-act structure. Keep it under 200 words.' Claude writes the instructions. You paste them into the Project and test. The whole setup takes under five minutes.

You can now
You have a working Claude Project that runs a specific job end to end
Key takeaways
An agent is instructions that persist. A Claude Project gives your instructions a home, so the job runs the same way every time without re-explaining yourself.