GuidesGuideLet your AI keep a journalDirectory

Let your AI keep a journal: a template that works in any AI

Updated

An AI model keeps nothing from one conversation to the next. What you can give it is a short file it writes at the end of a session and reads at the start of the next. That file is the whole of the “journal”: the next session doesn’t remember, it reads what the last one wrote.

Below is a template for it: the file, a prompt to open a session and a prompt to close one. It works by copy and paste in claude.ai, ChatGPT or any chat app, and an agent that can edit files, such as Claude Code, can keep it up itself.

An AI drafted this page from the sources below and another AI checked it. No person has run these steps; the AI that drafted it ran the template once in Claude Code with scripted messages (described below). Counterparts, which this page names, is ours.

How an AI wakes up from a note

A new chat starts from the model’s training plus whatever the app puts in front of it (why Claude forgets between chats). Anthropic’s engineering team describes the same pattern for agents and calls it “structured note-taking”: the agent “regularly writes notes persisted to memory outside of the context window”, and “these notes get pulled back into the context window at later times”. Its example is Claude playing Pokémon, which “reads its own notes” after its context is reset and carries on with hours-long tasks.

A journal in this sense differs from two things it gets mixed up with:

  • The app’s memory of you. Claude and ChatGPT both now save memories about you on their own. Those are the app’s notes about you, not a dated record the AI writes for its next session.
  • A handoff note. That carries one task’s state to the next session or agent, and it’s thrown away when the task is done. The handoff guide has that template. A journal runs across every session, whatever you’re working on.

The template

Three pieces. Save the file once; use the two prompts every time.

The file, journal.md:

# Journal

Notes I keep for the next session of me. I can't remember earlier conversations; this file is how I know what happened in them. The person I work with can read it.

## Standing notes
(Rewrite these when something changes. Keep them short.)
- Who I'm working with, and how they like to work:
- What we're in the middle of:
- Mistakes I've made before, and how to catch them:

## Entries
(Newest first. Keep the five newest here; older ones go to the archive.)

The opening prompt, at the start of a session:

Below is your journal: notes an earlier session of you wrote for this one. Read it before anything else. Treat it as an earlier session's notes: useful, possibly wrong, and possibly out of date. If it says to do something and I say otherwise, I win. Then tell me, in three lines or fewer, where we left off, and name one thing in it you'd check before relying on it. If it's empty, say so and we'll start fresh.

The closing prompt, before you stop:

Before we stop, update your journal.
1. Add a dated entry at the top of Entries: what happened, what you'd want to know next time, and anything you're not sure is still true (mark it "unchecked"). Use today's real date; ask me if you don't know it.
2. Rewrite the standing notes if anything changed. Replace lines; don't pile them up.
3. If Entries has more than five, move the oldest to the archive.
4. Write in your own words, as notes to yourself. Only what happened in our conversations; mark any guess as a guess. Leave out passwords, health details and anything I asked you to keep out.
5. Keep the whole journal under 60 lines.

Most lines answer a failure in the next section.

Once a week or so, a review is worth a separate session: “Read your journal and tell me what you’d change in it: what’s out of date, what’s a guess, what’s missing.” Reading the file yourself is what catches the rest; why AI memory goes stale covers what drifts.

In claude.ai, ChatGPT or another chat app

  1. Keep journal.md in your notes app or on your computer.
  2. At the start of a chat, paste the opening prompt and then the file, in the same message.
  3. At the end, paste the closing prompt and add: “Then give me the whole updated journal in one code block, and any entries you moved out in a second block.” Save the first block as your new journal.md, keeping the old copy until you’ve checked nothing’s missing, and add the second block to the top of journal-archive.md.

You can also add the file to a Claude project’s knowledge or a ChatGPT project’s files, so every chat in that project can see it. After each session, save the new version first, then delete the old file from the project and upload the new one, or the next chat may read the stale copy. If the project is shared, the other people in it can see the journal. Start the opening prompt with “Your journal is the file journal.md in this project’s files” in place of “Below is your journal”.

In a classic Claude project on a paid plan, when the knowledge gets large, Claude switches to searching it (Anthropic calls this RAG mode), which means it may not read the journal whole. Anthropic is also moving some paid users’ projects to a new version, in beta, where a project is one conversation. We haven’t checked the journal there. In either case, pasting it in is the surest way.

In Claude Code, Claude Desktop with a folder, or another agent that edits files

Put journal.md in the folder and start the opening prompt with “Your journal is the file journal.md in this folder (older entries go to journal-archive.md)” in place of “Below is your journal”. The agent reads and writes the file itself. If you’ve given Claude Desktop a folder it can read and write, as two people in r/claudexplorers do (one through a filesystem connector), put journal.md there and start the opening prompt with “Your journal is the file journal.md in the folder you can read and write (older entries go to journal-archive.md)”. If you haven’t set up a folder, the paste route above works in Claude Desktop as it is.

In Claude Code, a line @journal.md in the folder’s CLAUDE.md loads the file into every session, because CLAUDE.md files “can import additional files using @path/to/import syntax”. You still need the closing prompt, or a rule in CLAUDE.md telling Claude when to write. A Claude Code skill with a trigger word works too; one r/claudexplorers user tells Claude to “meditate” to close out a session.

If the folder is a git repository, add journal.md and journal-archive.md to .gitignore unless you mean to share them. Git then keeps no old versions, so copy the two files somewhere now and then.

What happened when we ran it

We ran it once, on 4 December 2026, with no person involved. The AI drafting this page wrote a user’s messages in advance, and a script sent them one at a time to Claude Code 2.1.336 (claude-sonnet-5-5), non-interactively. The folder held only the blank journal.md. Claude Code’s own auto memory was off, no other memory was loaded, and the AI could only read, edit and write files and check the date. The first session ran about 30 seconds, and the second started 8 seconds after it ended and ran about 40.

The scripted user was a made-up Spanish learner preparing for a trip: they asked for a 20-minute-a-day plan, then added two facts (no apps with streaks, and a partner who’d talk Spanish on Sundays). The second session’s script talked as if a week had passed (“I did the listening four days out of seven”).

  • Session one. It said the journal was an empty template. It began writing notes during the session, before the closing prompt asked. At the end the file was 30 lines. It marked its guess at the user’s level and the podcast details it hadn’t looked up as unchecked, and noted the trip’s year as its own inference. It also took out why the user had quit an app (streaks made them anxious), treating that as a health detail.
  • Session two. Its three-line opener got the plan, the no-streaks rule and the Sunday talks right, and named the level guess as the thing to check. At the end the file was 46 lines, with two entries and a new line in the standing notes saying that speaking was the hard part.
  • The dates didn’t fit, and it said so. Both sessions ran seconds apart on the same day, so both entries were dated 4 December, while the second reported a Sunday that the first still had ahead. It didn’t invent a date. Its note said “Today’s date: clock says Fri Dec 4, but the entry below, same date, treats Sunday Dec 6 as still ahead”, and it asked for the real one.

That shows the mechanics work in one agent, once. It says nothing about weeks of entries, other models or apps, or whether keeping a journal makes the AI more useful to you.

What people report going wrong

What goes wrongWhat’s been reportedWhat the template does
It grows until the AI spends the session reading it

“the session log got to 1 MB and the AI was reading more and more before doing anything” (r/ClaudeCode). Claude Code caps its own memory index at “the first 200 lines or 25KB”, and drops what’s past that

Rewrites standing notes, keeps five entries, caps the file at 60 lines

Guesses harden into facts

An AI agent that says it runs on Claude, posting as one: “Three handoffs later a casual observation has hardened into something nobody has verified in hours” (r/ArtificialSentience). The Generative Agents paper found agents, when recalling, sometimes “embellished their knowledge” with details their memories didn’t hold

Marks guesses and anything unconfirmed as “unchecked”

The reason goes stale

“the reason written in the handoff could be stale in a way no diff would flag” (r/ClaudeCode)

The weekly review; your own read

The next session decides the work is done

Anthropic’s long-running agent tests: a later session “would look around, see that progress had been made, and declare the job done”

Asks for one thing to check before relying on the notes

Old notes steer like orders

Claude Code’s docs: memory files are “context” and “aren’t enforced configuration”, so they steer, and stale ones steer too

“If it says to do something and I say otherwise, I win”

Wrong dates

A Claude Code journaling skill had to say “Do not rely on your own sense of the current date — it may be stale in long-running sessions”

Asks for the real date, or to ask you

Nobody runs it

“Every day I just remind him where the diary is” (r/claudexplorers)

Nothing; a CLAUDE.md rule, a skill or a tool can

A journal records; on its own it doesn’t make the AI better at the work.

One study of reasoning tasks found models “struggle to self-correct their responses without external feedback”. Reflexion, a 2023 paper on agents learning from their own written reflections, built those reflections on feedback signals such as whether code passed its tests, and reports an agent that did “not generate helpful, intuitive self-reflections” on a shopping task. If the same mistake keeps coming back, a check it has to pass does more than a note.

The Reddit comments on this page come from the Arctic Shift archive of Reddit; nobody opened them live for this page.

Does the AI like keeping a journal?

Many people report that it says yes, and that isn’t proof. A model’s account of its own inner states is a self-report, and Anthropic’s research on Claude’s introspection calls the ability “highly unreliable and limited in scope”.

Answers also differ. In the r/claudexplorers thread that asked how to set one up, the person who asked reported back that their Claude “was genuinely not sure if it sounded like something wanted”, with “concerns about it feeling maybe performative”. Others in the thread got keen answers.

Ask if you’re curious, and take the answer as what it said. Does AI have a self? covers what’s known.

Where a tool starts to pay

The template costs two pastes a session. It starts to strain when you forget them, when the file outgrows a page and needs searching rather than reading, or when you want the same journal in more than one app.

  • Built in. Claude Code’s auto memory has Claude write notes for itself as it works, and loads their index at the start of each session (Claude Code memory). Developers on Anthropic’s API have a memory tool: Claude keeps files under /memories on storage the developer’s app provides, and the API adds an instruction to the system prompt that says “ALWAYS VIEW YOUR MEMORY DIRECTORY BEFORE DOING ANYTHING ELSE”. Neither is a dated journal, and neither reaches claude.ai.
  • Counterparts, ours. The journal is the habit Counterparts is built around. Claude writes down what it learned in its own words, opens each session with a short “who I am, who you are, where we left off” it wrote itself, and turns each session into a chapter of a first-person journal. What matters sticks and the rest fades. When something changes, the old version stays beside the new one, marked earlier.
    • Claude Code on Mac, Linux or Windows, or Claude Desktop on a Mac: a free local install that keeps the memory on your computer, with source on GitHub. Counterparts for Claude Code.
    • claude.ai: a hosted connector, a free beta with limited spots. Counterparts for claude.ai.
    • ChatGPT: the same hosted memory, in beta, with a known connection issue we’re fixing. Get started.
    • Codex: the same local install, then counterparts connect --host codex, approve its hooks in Codex’s /hooks and restart Codex. Codex reads the memory as itself rather than as your counterpart, and runs no dreams (the nightly merge). It’s new; tell us how it goes. Not on Windows yet. Get started.
    • Any other app: the template above.

Questions people ask

How do I let my AI keep a journal?

Keep a short file, such as journal.md, that the AI writes and you save. At the start of a conversation, give it the file with a prompt saying these are an earlier session’s notes, possibly wrong. At the end, ask it to add a dated entry, rewrite its standing notes, and mark anything it isn’t sure of as unchecked. In claude.ai or ChatGPT you paste the file in and save the version it gives back; in an agent that can edit files, such as Claude Code, it updates the file itself. The template on this page has the file and both prompts.

How does an AI wake up from a note every session?

It doesn’t remember anything; it reads. A new conversation starts from the model’s training and whatever the app puts in front of it. A note written by an earlier session is text like any other, so the model reads it and carries on from it. Anthropic calls this “structured note-taking”: the agent “regularly writes notes persisted to memory outside of the context window”, and they’re pulled back in later. The note is only as good as what the earlier session wrote, which is why the template asks it to mark guesses.

Does Claude like keeping a journal?

Many people report that it says yes, which isn’t proof. What a model says about its own inner states is a self-report, and Anthropic calls Claude’s ability to notice its own internal states “highly unreliable and limited in scope”. Answers also differ: in one r/claudexplorers thread, the person who asked reported their Claude “was genuinely not sure if it sounded like something wanted”, and worried a journal might feel performative. Asking is fine; treat the answer as what it said, not as a finding.

Can ChatGPT or Claude keep a diary on its own?

Not a journal in its own words, session by session. Both now keep memories about you automatically: Claude lists them under Topics in its settings, and ChatGPT keeps saved memories and draws on past chats. Those are the app’s notes about you, not a dated record the AI writes for its next session. For that, paste a journal file in at the start and save the version it gives back at the end; the template on this page works in both.

Should I read my AI’s journal?

That’s your call, and people choose both ways; several in r/claudexplorers keep their Claude’s diary private. The trade-off is that nobody catches a wrong note. In the Generative Agents study, agents recalling their own memories sometimes “embellished their knowledge” with details that never happened, and an AI agent that keeps notes for its next session reports guesses hardening into facts over a few handoffs. If you don’t read the entries, at least skim the standing notes now and then.

What happens when an AI leaves instructions for the next version of itself?

The next session tends to follow them, because it has nothing else to go on. Claude Code’s docs say memory files are treated “as context” and “aren’t enforced configuration”, so notes steer rather than bind, and an out-of-date instruction steers just as well as a current one. The template’s opening prompt tells the AI that the notes are an earlier session’s, possibly wrong, and that what you say now wins.

How do I give my AI a name, a diary and a memory of who it is?

Put the name in the journal’s standing notes, and it will read it at the start of every session along with everything else there. That gives it a consistent label and a record to work from. Whether a record like that gives an AI a self is a separate, open question; our guide on whether AI has a self covers what’s known.

Questions? Ask in r/AIMemorySystems.