Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
basicmachines-co avatar

Memory Reflect

  • 663 installs
  • 25 repo stars
  • Updated April 20, 2026
  • basicmachines-co/basic-memory-skills

memory-reflect is a Claude Code skill that schedules sleep-time reflection so coding agents consolidate decisions, lessons, and preferences from daily notes into durable long-term memory.

About

memory-reflect is a background reflection skill inspired by sleep-time compute for coding agents. It reviews recent conversations and daily notes, extracts durable insights, and writes them into long-term memory instead of letting context decay between sessions. Developers reach for memory-reflect when an agent must remember decisions, coding preferences, and lessons learned across days or weeks of work. The skill is designed to run on cron or heartbeat triggers one to two times daily, or on explicit user request when reflection is needed immediately. It improves memory quality over time without interrupting active development sessions.

  • Four-step workflow: gather recent material, evaluate what matters, consolidate into long-term memory, prune noise
  • Triggers on cron/heartbeat (1–2× daily), on-demand user request, and post–context-window compaction
  • Uses recent_activity (JSON), read_note, and task search to scan roughly two days of daily notes
  • Keeps decisions, lessons learned, and preferences; drops ephemeral chatter per explicit keep/drop criteria
  • Inspired by sleep-time compute—memory formation between sessions rather than during live coding

Memory Reflect by the numbers

  • 663 all-time installs (skills.sh)
  • Ranked #1,476 of 16,546 AI & Agent Building skills by installs in the Skillselion catalog
  • Security screen: LOW risk (skills.sh audit)
  • Data as of Aug 1, 2026 (Skillselion catalog sync)
npx skills add https://github.com/basicmachines-co/basic-memory-skills --skill memory-reflect

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs663
repo stars25
Security audit3 / 3 scanners passed
Last updatedApril 20, 2026
Repositorybasicmachines-co/basic-memory-skills

How do coding agents consolidate daily notes into long-term memory?

Schedule background reflection so your coding agent consolidates decisions, lessons, and preferences from daily notes into durable long-term memory.

Who is it for?

Developers running persistent coding agents who need decisions and preferences to survive across sessions without manual memory curation.

Skip if: Developers who only need ephemeral chat context within a single session and do not maintain daily notes or long-term agent memory.

When should I use this skill?

A cron, heartbeat, or user explicitly requests background reflection on recent conversations and daily notes.

What you get

Updated long-term memory entries, consolidated decision logs, and extracted lesson summaries from recent agent activity.

  • long-term memory updates
  • consolidated insight summaries

Files

SKILL.mdMarkdownGitHub ↗

Memory Reflect

Review recent activity and consolidate valuable insights into long-term memory.

Inspired by sleep-time compute — the idea that memory formation happens best between active sessions, not during them.

When to Run

  • Cron/heartbeat: Schedule as a periodic background task (recommended: 1-2x daily)
  • On demand: User asks to reflect, consolidate, or review recent memory
  • Post-compaction: After context window compaction events

Process

1. Gather Recent Material

Read the last 2-3 days of daily notes from memory/YYYY-MM-DD.md. Also check:

  • Recent conversation transcripts (if accessible)
  • Any files modified in memory/ in the last 48 hours
  • Active tasks in memory/tasks/

2. Evaluate What Matters

For each piece of information, ask:

  • Is this a decision that affects future work? → Keep
  • Is this a lesson learned or mistake to avoid? → Keep
  • Is this a preference or working style insight? → Keep
  • Is this a relationship detail (who does what, contact info)? → Keep
  • Is this transient (weather checked, heartbeat ran, routine task)? → Skip
  • Is this already captured in MEMORY.md or another long-term file? → Skip

3. Update Long-Term Memory

Write consolidated insights to MEMORY.md following its existing structure:

  • Add new sections or update existing ones
  • Use concise, factual language
  • Include dates for temporal context
  • Remove or update outdated entries that the new information supersedes

4. Log the Reflection

Append a brief entry to today's daily note:

## Reflection (HH:MM)
- Reviewed: [list of files reviewed]
- Added to MEMORY.md: [brief summary of what was consolidated]
- Removed/updated: [anything cleaned up]

Guidelines

  • Be selective. The goal is distillation, not duplication. MEMORY.md should be curated wisdom, not a copy of daily notes.
  • Preserve voice. If the agent has a personality/soul file, reflections should match that voice.
  • Don't delete daily notes. They're the raw record. Reflection extracts from them; it doesn't replace them.
  • Merge, don't append. If MEMORY.md already has a section about a topic, update it in place rather than adding a duplicate entry.
  • Flag uncertainty. If something seems important but you're not sure, add it with a note like "(needs confirmation)" rather than skipping it entirely.
  • Restructure over time. If MEMORY.md is a chronological dump, restructure it into topical sections during reflection. Curated knowledge > raw logs.
  • Check for filesystem issues. Look for recursive nesting (memory/memory/memory/...), orphaned files, or bloat while gathering material.

Related skills

FAQ

When should memory-reflect run?

memory-reflect should run on a cron or heartbeat schedule, recommended one to two times daily, or on demand when a user explicitly asks the coding agent to reflect on recent conversations and daily notes.

What does memory-reflect produce?

memory-reflect produces consolidated long-term memory entries by reviewing recent agent conversations and daily notes, extracting decisions, lessons, and preferences that should persist beyond the current session.

Is Memory Reflect safe to install?

skills.sh reports 3 of 3 security scanners passed. Review the Security Audits panel on this page before installing in production.

AI & Agent Buildingagentsautomation

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.