Skip to main content
PreviewThis feature is in Preview.
Otto’s memory system transforms it from an agent that starts fresh every session into a knowledgeable team member that remembers your environment, your conventions, and lessons learned from past interactions. Otto uses two kinds of memory:
  • Local memory: Markdown files in your project repository and your home directory. Otto uses these files in every session.
  • Dag-level memory: Airflow Dag run notes. Otto reads the notes on recent runs of a Dag when it investigates a failed run of that Dag. See Dag-level memory.

How memory works

Local memory lives in two places: your project repository and your home directory.
Each location serves a different purpose:
  • Shared project memory (.astro/memory/): Conventions, architecture decisions, and environment details that should travel with the project. Committed to your repository so the whole team picks them up.
  • Local project memory (~/.astro/memory/<project-slug>/): Your personal notes for one specific project. Lives in your home directory and isn’t committed.
  • Local user memory (~/.astro/memory/): Preferences and patterns that apply to every project you work on. Lives in your home directory and isn’t committed.
At the start of every session, Otto loads MEMORY.md from each location. Other .md files are indexed by name so Otto knows they exist, but they’re read on demand rather than loaded upfront.
In addition to .astro/memory/, Otto reads AGENTS.md and CLAUDE.md files for context. Otto loads them from ~/.astro/otto/AGENTS.md or ~/.astro/otto/CLAUDE.md, then walks up from the current working directory to /. When both files exist in the same folder, Otto prioritizes AGENTS.md over CLAUDE.md.

How memories get created

Otto creates memory in several ways:

From the current conversation with /remember

Run /remember in an interactive session to have Otto review the conversation and generate memory files for the reusable learnings it identifies. Otto proposes the memories before writing them, and you approve or reject each one.

From history with /bootstrap

Run /bootstrap to seed shared project memory from your git history and available GitHub PR history (when the GitHub CLI is installed and authenticated). This is useful when you’re starting with Otto on an established project and want to capture existing team knowledge without building it up organically.

Manually

Platform teams can add Markdown files directly to .astro/memory/ to seed Otto with explicit constraints before organic memory accumulates. Upload files with conventions, approved operators, retry policies, and other standards, and add each file to MEMORY.md so Otto knows they exist. For example:

Autonomously during a session

Otto can also write memory on its own when it detects something worth retaining, without you running /remember or /bootstrap. This happens when Otto:
  • Discovers a project convention not represented in the codebase.
  • Learns important environment facts such as versions, connections, or team structure.
  • Corrects a prior mistake and wants to avoid repeating it.

Memory file format

Each memory file is a Markdown file with the following structure:
The MEMORY.md file in each folder serves as an index. Otto reads it at the start of every session to understand what memory files are available, and adds entries for new memories as they’re created.

When Otto does not write memory

Otto avoids writing memory for:
  • Information already in README.md, CLAUDE.md, or committed documentation.
  • Ephemeral task state or in-progress work.
  • Code patterns that are readable directly from source.

Memory and team collaboration

Because shared project memory lives in .astro/memory/ within your project repository, it follows your team’s standard Git workflow:
  1. Otto creates or updates a memory file during a session.
  2. You review the change in your Git diff.
  3. You commit and push the change.
  4. Other team members pull the update.
  5. In their next Otto session, the new memory is loaded automatically.
Local project memory and local user memory are scoped to you and aren’t shared with the team.

Dag-level memory

Otto investigations on Astro also use Dag-level memory. This memory is separate from the memory files on this page. It lives in Airflow as Dag run notes, not in your repository or home directory. When Otto investigates a failed Dag run, it reads the notes on recent runs of the same Dag. Use notes to record context that the logs and code don’t show, such as the fix that worked last time. Otto sessions in your terminal don’t read Dag run notes. To add a note, see Add context to a Dag run.