Skip to content
Mastering Claude

Home / The second brain

The second brain7 minApplication

Dream and continuous learning: nightly consolidation

A nightly memory consolidation is a personal automation built on top of a scheduled task, not a native Claude feature: it digests notes in four phases, orientation, collection, consolidation through merging and archiving, verification, and only a task that runs on the machine or in an open session can read a folder of notes stored locally.

A nightly memory consolidation is not a function that Claude offers on its own. It is an automation built by a user on top of an ordinary scheduled task, a script that rereads a folder of notes every night and corrects it. The way this task is scheduled decides whether the local notes folder falls within its reading scope.

Three forms of scheduled task, one single access to local disk

A scheduled task exists in three forms, and they are not equal on this precise point. A Cloud task runs without the computer needing to be on, but it works on a fresh copy of the repository, cloned for the occasion: it reaches no file and no database stored locally. A Desktop task, scheduled on the machine itself, does reach local files, provided the computer stays on at the moment it triggers. A loop launched in a session adds one more condition, a conversation left open, and it is lost as soon as a new conversation starts, unless resumed within seven days.

A folder of markdown notes installed on a machine belongs to the second category. Scheduling it in the Cloud because that form works with the computer off amounts to scheduling a read that the task will never be able to carry out: it will start, return a success, and will have read nothing at all.

Four phases to digest a night of notes

Once the right form is chosen, machine on, the pass breaks down into four steps. Orientation rereads recent exchanges and the memory index to place what has changed. Collection extracts the durable facts that deserve a note, leaving aside anything that remains a passing project state. Consolidation merges duplicates found and archives contradictions instead of deleting them. Verification rereads what has just been written and confirms, with a log line, that the pass has finished.

2026-09-02 03:00 orientation ok
2026-09-02 03:04 collection ok, 6 candidate notes
2026-09-02 03:11 consolidation ok, 2 merges, 1 archive
2026-09-02 03:12 verification ok

A missing line in this log one morning, rather than an error line, remains the most reliable signal of a silent failure: the task may not even have triggered that night. Before scheduling this pass, querying the knowledge graph rather than rereading everything follows the same logic, an index refreshed overnight serves the whole of the following day with no rebuild for every question asked.

Figure 1

Four phases of a nightly consolidation

01
Orientation
Rereads recent exchanges and the memory index to place what has changed since the last pass.
02
Collection
Extracts the durable facts that deserve a note, sets aside passing project states.
03
Consolidation
Merges duplicates found and archives contradictions, never deleting an existing note.
04
Verification
Rereads what has just been written and confirms the end of the pass with a log line.
The sequence shows the fixed order of a successful pass, each phase writing its own log line before handing off to the next.
Figure 2

Three forms of scheduled task, one single access to local disk

Form of scheduled taskAccess to local filesComputer must be on
Cloud, RoutineNo, fresh copy of the repository cloned for the occasionNo
Desktop, local taskYesYes, at the moment it triggers
In-session loopYesYes, and the session must stay open
The left column alone decides which form can read a notes folder stored on the machine, the right column states what this requires of the computer at the moment it triggers.
Calibrate it yourself

A cooperative creates a scheduled task in the Cloud to run a script every night that must merge the notes accumulated in the memory folder installed on the office computer. The next morning, the scheduled tasks dashboard shows a success, with a run time of four seconds.

Write in one sentence what this situation establishes, and in one sentence what it does not establish.

What to remember
  • A Cloud scheduled task runs without the computer needing to be on, but it works on a fresh copy of the repository and reads no file stored locally.
  • A consolidation that needs to read a local notes folder depends on a Desktop task or an in-session loop, so on a machine that stays on at the moment it triggers.
  • The consolidation phase merges duplicates and archives contradictions, it never deletes an existing note.
  • A log missing a line one morning signals a silent failure more reliably than a displayed error line.
  • This nightly consolidation mechanism is an automation built by a user, not a function that Claude offers on its own.
Do this now

Open your scheduled tasks settings, identify which form the one that must read a local notes folder currently runs under, and move it to a Desktop task or an in-session loop if it is currently scheduled in the Cloud.

What still needs checking

These points depend on an interface or a rule that may have changed since this was written. Check them on your own screen before relying on them.

  • Check in your own scheduled tasks settings whether the one you create runs in the Cloud or on your machine: it is this choice, not the content of the script, that decides whether your local files get read.
Check the source

Every datable claim in this lesson links here to the public text behind it. A source that does not open proves nothing.