Skip to main content

Overview

Magnitude learns your preferences and conventions over time. It stores what it learns in a memory file and uses it in future sessions.

How it works

At the end of each session, Magnitude extracts key preferences and patterns from the conversation and saves them to .magnitude/memory.md in your project directory (i.e. <cwd>/.magnitude/memory.md). In future sessions, this file is loaded as context so the agent remembers your preferences. Because memory lives in your project directory, you can commit it to git and share it with your team. Everyone on the project benefits from the same accumulated preferences and conventions.

What gets remembered

Examples include:
  • Coding conventions and style preferences
  • Workflow preferences (for example, “always run tests after changes”)
  • Project-specific patterns
  • Correction patterns (when you correct the agent, it remembers)

Editing memory

You can edit .magnitude/memory.md directly. Add, remove, or modify entries. The agent will follow what is in the file.

Disabling memory

Set "memory": false in ~/.magnitude/config.json to disable memory extraction entirely. See Preferences.
Memory is per-project. Each project directory gets its own .magnitude/memory.md file.