
Some of the best improvements in my own AI work did not come from a better model. They came from writing things down once, in a place the AI reads every time: how I write, what I never do, what each project is for. Before that, I explained myself from scratch in every chat and got generic answers back. This lesson covers the three places you can put that standing knowledge (projects, memory and instruction files) and how to keep them short enough to work.

Why the model needs this at all
A model starts every conversation knowing nothing about you. It does not remember last Tuesday unless something feeds that back in. Everything it can use sits in what is called the context window: the block of text it reads before it answers. The lesson on the five words introduced the idea.
That window is large now. Anthropic's current models take up to a million tokens, several thick books' worth. But bigger is not the same as better. Anthropic's own engineering guidance on context says to aim for "the smallest set of high-value tokens" that gets the job done. A model given a hundred pages to wade through for one useful paragraph does worse than one given the paragraph. So the skill here is not stuffing in everything you have. It is choosing what goes in.
Projects: a folder with its own rules
A project, in Claude's words, is a self-contained workspace with its own chat history and knowledge base. Other assistants offer similar features under their own names. You set one up for a recurring kind of work, and two things go in it:
- Project instructions. A few paragraphs of standing rules. Who you are, who the work is for, the tone you want, what to avoid. Every chat inside the project starts with these.
- Project knowledge. Files you upload once: a sample of your own writing, your practice's public policies, a template you reuse. The model can draw on them in every chat in that project.
Free Claude accounts can make up to five projects. On paid plans, when the files outgrow the window, Claude switches to a search mode that pulls in only the relevant passages, which Anthropic says expands capacity by up to ten times.
A good first project for a clinician is a writing one. Upload three pieces you wrote and liked (a newsletter, a page from your website, a handout), and write instructions like these:
I am a counselor in private practice in Oregon. This project is for public writing: my website, newsletters and handouts. Match the voice in the uploaded samples: warm, plain, first person. Write at about an eighth-grade reading level. Never invent statistics or research. If a claim needs a source, say so and leave a gap. Never include anything about specific clients.
That last line matters. Project files are stored with the company like any other chat, so the same HIPAA line applies: no client information unless your plan comes with a signed business associate agreement. See HIPAA-safe AI tools, BAAs, and what not to paste.
Memory: what it learns about you
Memory is the app keeping notes on you across chats. In Claude, it is on by default for Free, Pro, Max and Ultra accounts, and you control it under Settings, then Your Claude. Two switches matter: one lets Claude build memory from your chats, and the other lets it search and refer back to earlier chats (that one is for paid plans).
A few things worth knowing:
- You can see and edit it. You can open the memory and delete or correct anything, or simply tell Claude in a chat to remember or forget something.
- Each project has its own memory. If you want a project kept entirely apart from your general account memory, there is a setting to turn account memory off for that project.
- Incognito chats are not remembered. A chat started in incognito mode, marked with a ghost icon, is not saved to history or used for memory.
I treat memory as a convenience, not a system. It is good at small things (I prefer short answers, I live in Oregon). It is not the place for rules you need followed every time, because you do not control exactly what it keeps. Rules go in instructions you wrote.
Instruction files: rules for agents
When you move from chatting to agents that work in your files (lesson 12 covers Claude Code and Cursor), the same idea takes the form of a plain text file in your folder. The agent reads it at the start of every session.
- CLAUDE.md is the file Claude Code reads. You write it. There can be one for your whole computer and one for each project. Claude Code also keeps its own auto memory file of things it has learned, which it writes itself.
- AGENTS.md is a shared format many tools read, now looked after by the Agentic AI Foundation under the Linux Foundation. Claude Code reads it too.
- Cursor rules live in a folder called .cursor/rules, one file per rule. Cursor's documentation has a trap worth knowing: a plain .md file in that folder is ignored. Rules need the .mdc format with a short header that says when they apply.
The .md at the end stands for Markdown, a simple way of writing formatted text with plain characters: a pound sign for a heading, a dash for a bullet. Any text editor can open it.
What belongs in one
The documentation for both tools gives the same advice in different words. Claude Code's says to include what the agent cannot work out from your files, plus anything you have had to correct twice. Cursor's says to start simple and add rules only when you notice the agent making the same mistake repeatedly. Length matters too: Claude Code suggests staying under about 200 lines, and Cursor under 500 for each rule.
A starter file for a practice website might look like this:
This is the website for a counseling practice in Portland, Oregon.
Test every change on my computer first. Never publish to the live site without asking me.
Every page must work on a phone. Check it at phone width before saying it is done.
No stock photos of people. No exclamation points in copy.
Never collect client information through a form on this site.
Five lines, each one a decision I would otherwise have to repeat.
When a rule keeps getting missed
Instruction files are followed most of the time, not every time. Claude Code's documentation is candid about it: "If you keep adding emphasis to a CLAUDE.md line and Claude still misses it, that's a sign the line belongs in a hook." A hook is a small script that runs automatically at a set moment and can block an action outright. For a non-coder, the practical lesson is simpler: if a rule truly can never be broken, do not rely on asking nicely. Put a check in the way, or keep that step in your own hands.
Skills: recipes loaded only when needed
A skill is a folder holding a SKILL.md file: instructions for one specific job, such as how to format a newsletter or the steps to publish a blog post. The difference from an instruction file is timing. The agent sees only each skill's short description at the start, and reads the full recipe only when a task matches. That keeps the context small, in line with the "smallest set of high-value tokens" advice, while still letting you write long, detailed procedures.
You do not need skills on day one. They are the natural next step once your instruction file starts to grow past a page and half of it applies to only one kind of job.
Four common mistakes
- Uploading everything. Forty files of mixed quality teach the model a blurred average. Three samples you are proud of teach it your voice.
- Writing a manifesto. Long paragraphs about values are easy to write and hard to follow. Short, concrete rules ("no exclamation points") get followed; vague ones ("be authentic") do not change much.
- Rules that contradict each other. "Keep it brief" in one place and "explain every step" in another leaves the model guessing. When you add a line, read the ones around it.
- Never looking at memory. If you once asked for help with a personal matter, memory may have kept it. Open the settings now and then and read what is there.
A starter plan
- Week one: make one project for your public writing, with three samples and the instructions above.
- Week two: open your memory settings and read what Claude has kept. Delete anything you would not want there.
- Each time you correct the same thing twice: add one line to the project instructions. One line per correction, written as a plain rule.
- Once a month: reread the instructions and cut anything that no longer matters. Old rules crowd out new ones.
My own setup
I keep a single instruction file for my whole computer, read at the start of every session in Claude Code. It holds the rules I never want to repeat: no em dashes or emojis in public copy, never publish anything live without my yes, test locally first, look at the page on a phone before calling it done. Each project has its own file on top, with that project's details.
For work that spans several days, I keep a progress file in the project: what is done, what was decided, what comes next. The agent reads it first thing, so a new session picks up where the last one stopped instead of starting cold. And I have a set of skills for jobs I repeat, such as writing a lesson like this one, each loaded only when the job comes up.
Most of those lines exist because I had to make the same correction twice. That is the honest origin of a good instruction file.
Features and settings in this lesson were checked against the linked pages on November 24, 2026. Menu names in these apps move often; if a setting is not where I describe it, search the app's help center for its name.
Further reading
- What are projects?, Anthropic help center. Setting up instructions and knowledge.
- Using memory, Anthropic help center. What Claude remembers and how to manage it.
- How Claude remembers your project, Claude Code docs. CLAUDE.md, auto memory and rules.
- How to use Claude Projects (2026 update), Matthew Esposito on YouTube (October 2026, about 12 minutes).
This lesson's video has its own page
Sources
- “What are projects?.” Anthropic. "Self-contained workspaces with their own chat histories and knowledge bases." Free users up to 5 projects; RAG mode on paid plans expands capacity "by up to 10x". https://support.claude.com/en/articles/9517075 (accessed Nov 24, 2026).
- “Using Claude's memory.” Anthropic. On by default for Free, Pro, Max and Ultra; Settings, Your Claude; chat search on paid plans; per-project memory; incognito chats not saved. https://support.claude.com/en/articles/11817273 (accessed Nov 24, 2026).
- “How Claude remembers your project.” Anthropic. CLAUDE.md written by you, auto memory written by Claude; aim under 200 lines; reads AGENTS.md; the hook quote; "anything you've had to correct twice". https://code.claude.com/docs/en/memory (accessed Nov 24, 2026).
- “Agent Skills.” Anthropic. SKILL.md; description loaded up front, body loaded when used. https://code.claude.com/docs/en/skills (accessed Nov 24, 2026).
- “Rules.” Cursor. .cursor/rules/*.mdc with frontmatter; "A plain .md file in .cursor/rules is ignored"; under 500 lines; "Start simple. Add rules only when you notice Agent making the same mistake repeatedly.". https://cursor.com/docs/rules (accessed Nov 24, 2026).
- “Effective context engineering for AI agents.” Anthropic, Sep 29, 2025. "The smallest set of high-value tokens.". https://www.anthropic.com/engineering/effective-context-engineering-for-ai-agents (accessed Nov 24, 2026).
- “OpenAI co-founds the Agentic AI Foundation under the Linux Foundation.” OpenAI, Dec 9, 2025. AGENTS.md and MCP stewarded by the Agentic AI Foundation. https://openai.com/index/agentic-ai-foundation/ (accessed Nov 24, 2026).
- “How to Use Claude Projects (2026 Update).” YouTube, Oct 28, 2026. Video, 12:17. Lesson video. https://www.youtube.com/watch?v=U-WtXdXdcKY (accessed Nov 24, 2026).
Study guide
Three places for standing knowledge
- Projects: instructions plus uploaded files for one kind of work
- Memory: the app's own notes about you; view, edit, or use incognito to skip it
- Instruction files: CLAUDE.md, AGENTS.md or Cursor .mdc rules, read by agents at the start of each session
Rules of thumb
- Aim for the smallest set of high-value tokens; more is not better
- One line per correction you have made twice; reread and prune monthly
- Claude Code: under about 200 lines. Cursor: under 500 per rule; plain .md in .cursor/rules is ignored
- A rule that must never break needs a hook or your own hands, not more emphasis
- Skills load their full text only when a task matches
- No client information in projects, memory or files without a signed BAA
Sources
Check what you learned
10 questions from this lesson. Answers are checked as you go; nothing is recorded.
1 / 10
What is the context window?
Hint
The figure shows its layers.
The context window is the block of text the model can see at once: memory, instructions, files and your message.
2 / 10
Anthropic's context guidance says to aim for what?
Hint
Bigger is not better.
More text is not more help. The model does best with exactly what it needs.
3 / 10
What two things go into a project?
Hint
Rules plus reference material.
Project instructions set standing rules; project knowledge holds the files the model can draw on.
4 / 10
Can you put client notes in a project file to save time?
Hint
Files are stored with the company.
Project files are stored like any chat. The HIPAA line does not move.
5 / 10
How do you keep a Claude chat out of your history and memory?
Hint
Look for the ghost icon.
Incognito chats are not saved to history or used for memory.
6 / 10
Why not rely on memory for rules you need followed every time?
Hint
Who writes the memory?
Memory is the app's own notes. Rules belong in instructions you wrote.
7 / 10
What happens to a plain .md file placed in Cursor's .cursor/rules folder?
Hint
Cursor wants a different file type there.
Cursor's docs say a plain .md file in .cursor/rules is ignored; rules use the .mdc format.
8 / 10
According to Claude Code's docs, what belongs in CLAUDE.md?
Hint
Short and earned.
Keep it to what the agent cannot learn on its own and the corrections you keep repeating.
9 / 10
A rule in your instruction file keeps getting missed. What does Claude Code's documentation suggest?
Hint
Stop asking nicely.
Instructions are followed most of the time. A rule that must never break needs a check in the way.
10 / 10
How is a skill different from an instruction file?
Hint
Timing.
The agent sees a short description up front and reads the full recipe only when it is needed.
Worth another look