---
published: true
id: auto-memory
title: Auto Memory
description: Knowledge captured in João Lopes' learning graph.
tags:
- ai-engineering
- memory
- claude-code
locale: en
resource: https://joaolopes.dev.br/knowledge/concepts/en/auto-memory/
created: '2026-04-05'
---

# Auto Memory
Notes an AI coding agent writes to itself across sessions, loaded automatically at the start of each new session.

## Definition
Auto memory lets the agent accumulate knowledge without manual effort. In Claude Code, the agent saves learnings to MEMORY.md: build commands, project patterns, user preferences, corrections. The first 200 lines or 25KB load at the start of every session. Codex CLI uses a SQLite-backed memory store that post-processes completed sessions. Cursor offers persistent Notepads as a manual alternative.

## Source
- [How Claude remembers your project](https://code.claude.com/docs/en/memory#auto-memory)
- [Codex CLI Memory System](https://deepwiki.com/openai/codex/3.7-memory-system)

## Related
- [Context Window](/concepts/en/context-window.md)
- [Instructions](/concepts/en/instructions.md)
- [Session](/concepts/en/session.md)
