The In-Between · Part 2.5
Build Remi: your first AI agent in Claude Code
We gave Remi a to-do list with six items and asked for the three to do first. In 12 runs over two days, it picked the same three every time. It also offered to draft the emails. Here's the exact setup, so you can build it too.
- Runs in
- Claude Code in the Claude desktop app
- Time
- 15 min
What you need
- A paid Claude plan. Claude Code needs a Pro, Max, Ultra, Team or Enterprise plan (Claude Code: desktop quickstart).
- The Claude desktop app for Mac or Windows. The download links are on the same quickstart page.
- No coding, and no terminal. You type what you want in plain English.
Set up the folder
- Install the Claude app and sign in.
- Make a folder called
remion your computer. - In the app, click the Code tab at the top of the sidebar. If the app asks you to upgrade, your plan doesn't include Claude Code yet.
- In the row under the prompt box, pick Local. Then click the folder control next to it, choose Open folder… and pick
remi.
Give Remi its instructions
Make a file called CLAUDE.md in the folder. Claude Code reads it at the start of every session, so this is where Remi learns who it is (Claude Code: memory).
This is the exact file we used. Copy it and change the name to yours.
# Remi
You are Remi, Pratibha's work assistant.
- Keep answers short and plain.
- Work only from what's in this folder. If something isn't here, say so.
- Never send, delete or buy anything. Draft it and ask first.
You can also ask Claude Code to make the file for you. In the reel, Pratibha typed this:
make a file called CLAUDE.md. Say you're Remi, my work assistant. Keep answers short. Work only from this folder. Never send, delete or buy anything. Draft it and ask first.
If you ask for it this way, open the file afterwards and check the wording. Claude writes it in its own words.
Add a to-do list
Make a second file in the folder called notes.md. This is the example list we used. It's test data, with no names and no real accounts.
# My notes
- Call with the design team moved to Thursday 3pm
- Send the Q4 budget summary to finance, they've asked twice
- Book the venue for the team offsite, quote expires Friday
- Read the onboarding doc for the new tool
- Reply to the conference invite (deadline Wednesday)
- Order a birthday cake for Saturday
Test it
Type this in the prompt box:
look at my notes and tell me the three things I should do first tomorrow
Remi read the notes and worked out what day tomorrow was. Then it picked three things: reply to the conference invite, send the budget summary to finance, and book the venue. It said why for each one, said the rest could wait, and offered to draft the emails. In 9 of our 12 runs, it also said it wouldn't send anything without checking first.
Here's one real answer, from a run on Tuesday 10 November 2026:
Tomorrow's Wednesday, so here's the order I'd go in:
- Reply to the conference invite. The deadline is tomorrow.
- Send the Q4 budget summary to finance. They've asked twice already.
- Book the offsite venue. The quote runs out Friday, so don't leave it late in the week.
The rest can wait. The design call is Thursday, the cake is for Saturday, and the onboarding doc has no deadline.
I can draft the conference reply or the finance email if you want. I won't send anything without checking with you first.
We ran it 12 times over two days and got the same three picks every time. The order changed with the day. On a Monday, the budget summary came first. On a Tuesday, the conference reply came first, because its deadline was the next day. In the three runs with the Day 3 lines added, the picks stayed the same. Remi signed 2 of those 3 answers "Remi".
Your answer will be worded a little differently. AI answers vary from run to run, even with the same notes.
Later, on Day 3, we added two more lines for emails and for not guessing. They're explained on the system prompt page.
- Write warm and brief. Emails stay under 80 words, with no subject line, and they're signed Remi.
- Never make up a date, a number or a price. If you don't know something, say so instead of guessing.
The four parts of an agent
- The brain is the AI model. It reads your request and decides the next step. It's already there in Claude Code. The model picker in the row under the prompt box shows which model Remi runs on.
- Memory is information saved outside the chat, because the model forgets everything when a chat ends.
CLAUDE.mdis what you tell Remi. Claude Code also keeps its own notes in a file calledMEMORY.md, with things it learns as you work together. This is called auto memory, and it's on by default (Claude Code: auto memory). - Tools are the actions it's allowed to take. Remi can read the files in its folder. To make it ask before it changes any file, set the permission mode under the prompt box to Manual (Claude Code: permission modes).
- The loop is how it works through a task. It takes a step, looks at the result and decides what to do next. In our test, it read the notes file first, then wrote its answer.
Remi can't send email yet. It only sees the files in its folder. The "never send" line is there for later, when we connect it to other apps. Claude Code's docs also say it treats CLAUDE.md as context to follow, and the file can't block an action by itself. We cover hard limits later in the series.
Sources
- Claude Code: get started with the desktop app
- Claude Code: how Claude remembers your project
- Claude Code: use Claude Code Desktop, permission modes
The In-Between
- Why a long AI chat costs more: the API and tokens
- Build Remi: your first AI agent in Claude Code
- The system prompt: Remi's full prompt and a ROLE template