Skip to content
Agent Memory
Skill

/memory-reflect

Sleep-time reflection: review recent Basic Memory activity and fold lasting decisions, lessons, and facts into the notes they belong in. Run 1-2x daily, on a heartbeat, or when asked.

From plugin
basic-memory
4.6k32 skills5 commands1 MCP

Claude Code

$ npx -y skills add basicmachines-co/basic-memory --skill memory-reflect --agent claude-code

SKILL.md

memory-reflect.SKILL.md
name: memory-reflect
description: "Sleep-time reflection: review recent Basic Memory activity and fold lasting decisions, lessons, and facts into the notes they belong in. Run 1-2x daily, on a heartbeat, or when asked."

Memory Reflect

Review what changed recently and fold what matters into the notes that hold durable knowledge. Raw notes (meeting notes, daily logs, captures, transcripts) record what happened; reflection decides what of it should still be known next month, and puts it where someone will look for it.

Inspired by sleep-time compute: memory forms best between working sessions, not during them.

Project scope

If the project is unknown, discover it with `bm_project_list()`. Pass a nonempty `project` on every note, folder, context and schema call, even with one project or a qualified `memory://` URL. Use the chosen project's name, `workspace/project`, or external ID; `<project>` below is a placeholder for it. Recent activity also requires `project`. Search accepts `project` for one project, `projects` for selected projects, or `all_projects=True` explicitly. Discovery and bundled manuals need no project. Keep the same scope when following returned paths, paginating, or recovering from a refusal.

When to Run

  • **Scheduled**: once or twice a day, or on a heartbeat
  • **On demand**: asked to reflect, consolidate, or review recent work
  • **After a burst of work**: many new notes since the last reflection

Process

1. Gather recent material

# The last reflection is the checkpoint. Titles carry date and time, so the
# newest sorts first.
bm_list(path="reflections", sort="title_desc", page_size=1, project="<project>")

# Everything changed since that date (json gives one row per note). With no
# reflection yet, use since="7d".
bm_recent(since="2026-10-13", items=["note"], output_format="json", page_size=50, project="<project>")
# Ask for page=2, 3, ... until has_more is false.

# Read each changed note in full before judging it
bm_read(identifier="meetings/2026-10-14-launch-sync", project="<project>")

Timeframes count whole days, so the window can overlap the last reflection. Skip notes it lists as `reviewed`, and notes you wrote in an earlier reflection, unless someone edited them since.

`bm_recent(project="<project>")` looks back at most a year. If the last reflection is older than that, use `since="365d"` and record in this reflection that changes before that window were not reviewed.

2. Decide what lasts

For each item, ask:

| Kind | Keep? | |---|---| | A **decision** and its reason | Keep | | A **lesson** or mistake to avoid | Keep | | A **preference** or way of working | Keep | | **Who** owns or knows what | Keep | | A **commitment** with an owner and date | Keep, as a task or on the project note | | A **change** to something already recorded | Keep, and date the change in the old note | | Routine or transient detail (a check ran, a file moved) | Skip | | Already recorded in a durable note | Skip |

3. Put it where it belongs

Find the durable note for each item before writing anything:

bm_search(query="launch checklist owner", project="<project>")
bm_context(identifier="memory://projects/launch", project="<project>")
  • **Say when it holds.** A fact with a date gets a qualifier (see

**memory-notes**): `@effective:` for a decision or rule, `@occurred:` for an event, `@due:` for a commitment. Use the date the source gives, not today's.

  - [decision] @effective:2026-10-14 Launch moves to Thursday
  - [deadline] @due:2026-10-20 Draft ready for review
  • **A fact changed**: close the old fact's range rather than deleting it, so

both stay searchable by date. Do this only when the source says what changed and when; if it only disagrees, record both with "(needs confirmation)".

  - [decision] @effective[2026-09-01,2026-10-14) Launch on Friday
  - [decision] @effective:2026-10-14 Launch on Thursday
  • **The topic has a note**: update it in place. Read it as JSON and pass its

checksum to the edit, so the edit applies only to the revision you read.

  note = bm_read(identifier="Launch Plan", output_format="json", project="<project>")
  bm_edit(
      identifier="Launch Plan",
      command="replace_section",
      section="## Owners",
      content="- [owner] Maya owns the launch checklist",
      expected_checksum=note["checksum"],
      project="<project>",
  )

If the edit reports a checksum conflict, someone changed the note after you read it: read it again and decide again from the new text.

  • **The topic has no note**: create one with `bm_write`, following

**memory-notes**: a clear title, observations with categories, and relations.

  • **Link back**: every consolidated fact names its source, e.g.

`- derived_from [[2026-10-14 Launch Sync]]`, so a reader can check it.

4. Record the reflection

Write one note per reflection in `reflections/`, titled with the date and time so two runs on one day get separate notes and the newest sorts first. The next reflection starts from it:

---
title: Reflection 2026-10-14 0830
type: reflection
---

# Reflection 2026-10-14 0830

## Observations
- [reviewed] 6 notes changed since the last reflection
- [updated] Launch Plan: owner of the checklist is now Maya
- [created] Release Checklist Owners
- [unsure] Whether the dashboard idea was agreed or only suggested (needs confirmation)

## Relations
- reviewed [[2026-10-14 Launch Sync]]
- updated [[Launch Plan]]

Guidelines

  • **Distill, don't copy.** A durable note holds what is still true, not a log of

every meeting that mentioned it.

  • **Merge, don't append.** Update the existing section; don't add a second entry

on the same topic.

  • **Never delete raw notes.** They are the record reflection draws from.
  • **Read before you write.** Other people edit the same notes; pass the checksum

you read as `expected_checksum` so you change

Read more
@basicmachines-co
Ships withbasic-memory

AI conversations that actually remember. Never re-explain your project to your AI again. Join our Discord: https://discord.gg/tyvKNccgqN

4.6k32 skills1 MCP
Get the whole plugin

Stars on GitHub

Momentum

stars in total
4.6k
Star history of basicmachines-co/basic-memory on GitHub, a chart by star-history.com

Other skills on basic-memory.

bm-decide

bm-decide

Capture a durable engineering decision in Basic Memory with rationale, alternatives, consequences, and affected work. Use when…

More skills from other plugins.

agent-cost-report

agent-cost-report

Believable agent cost report for any period, default the last 7 full days PT, not counting today. Measured tokens from Claude…

claude-mem13d116k
@thedotmack@thedotmackInstall Skill
bot-handoff

bot-handoff

Keep a durable record of work passed between Bots in the shared Hindsight memory bank. Use when handing work to another Bot, when…

@vectorize-io@vectorize-ioInstall Skill
mempalace

mempalace

Install, configure, and operate MemPalace, including a private local palace, a shared-brain hub, or a client joining an existing…

@mempalace@mempalaceInstall Skill
mempalace

mempalace

Install, configure, and operate MemPalace, including a private local palace, a shared-brain hub, or a client joining an existing…

@milla-jovovich@milla-jovovichInstall Skill

Questions about memory-reflect.

Which coding agents can use memory-reflect?
memory-reflect installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.