Vibe TutorLessons4 · Advanced
Checking device…
English

Give the agent a memory

The agent forgets everything between conversations. A memory file fixes that. AGENTS.md (or CLAUDE.md) goes into the prompt on every turn, so put in it what the agent should always know, such as how the project works and what your rules are.

Try it

  1. Press Type it, then Enter. /init has the agent read the project and write AGENTS.md. Choose Yes.
  2. Add a rule. Type /memory and add a line in the editor, or ask: Add a rule to AGENTS.md: every button has a title attribute that says what it does.
  3. Type /clear. The conversation is gone, but the memory file stays.
  4. Ask: Add a "Clear completed" button under the list that removes the done todos. Change only index.html and app.js. You don’t say anything about titles. Does the new button get one anyway?

In real work: memory files grow with the project and get reviewed like code.

Try
Goal