# letta-code · Memory maintenance

> Levels are per column and must not be summed, averaged or ranked. A level states which written criterion the runtime's source meets. It is not a measure of quality or task success. Higher is not always preferable.

Source: "Agent runtime comparison: ten open-source agent runtimes, source review", study of 2026-11-28. Mark notation: `3` is the level in the default deployment; `1→4 [opt: …]` is level 1 by default and level 4 in the named configuration; `s` source-verified, `d` documented or test only. Service dependencies are classes (E embedded, O on demand, R resident service, X external server required), not levels.

- Runtime: [letta-code](https://ai-agents-review.com/runtime/letta-code.md)
- Column: [Memory maintenance](https://ai-agents-review.com/column/memory-maintenance.md) (Evidence and memory)
- Mark: 4 s
- Default deployment: 4
- Best supported configuration: 4
- Page: https://ai-agents-review.com/cell/letta-code/memory-maintenance

## Rationale

MemFS auto-enabled on Cloud (index.ts:1808); reflection every 25 steps; rebase-retry/backoff; git versioning (not Windows/detached headless)

## Rubric criteria for this column

- 0: No learned-memory facility
- 1: Memory is files or notes that the agent edits with ordinary tools, prompted by instructions only
- 2: Dedicated memory tools or store (write, recall, forget), but no consolidation process
- 3: A consolidation process exists (background or idle job that merges, archives or supersedes), on by default **or** opt-in
- 4: Level 3 on by default, plus failure handling (retry or backoff, or a recorded failure state) **and** a correction path (versioning or restore, loss guard)

## Review finding

Built in when MemFS is enabled. Memory is a git repo with post-turn push and rebase-retry. A repair subagent runs once per conflict signature. A reflection subagent (default every 25 steps) edits memory and skills in a worktree. Backoff is in-memory (60s to 30 min) [E43][E44][E46][E47]. Note E-4.

## Evidence cited by the mark

- [E43] letta-code — https://github.com/letta-ai/letta-code/blob/52a3bb3bc1999a2fd0f06b1dc2e4b0d94a925c21/src/agent/memory-git.ts#L924-L975 — post-turn memory push with rebase retry and backup ref — [S]
- [E46] letta-code — https://github.com/letta-ai/letta-code/blob/52a3bb3bc1999a2fd0f06b1dc2e4b0d94a925c21/src/settings-manager.ts#L160 — default `reflectionStepCount: 25` — [S]
- [E47] letta-code — https://github.com/letta-ai/letta-code/blob/52a3bb3bc1999a2fd0f06b1dc2e4b0d94a925c21/src/cli/helpers/reflection-retry.ts#L1-L50 — in-memory retry backoff 60s → 30 min — [S]

## Evidence also cited by the review finding

- [E44] letta-code — https://github.com/letta-ai/letta-code/blob/52a3bb3bc1999a2fd0f06b1dc2e4b0d94a925c21/src/agent/memory-conflict-repair.ts#L15-L29 — one repair attempt per conflict signature — [S]

## Grading record

- Grader A (default / best): 4 / 4
- Grader B (default / best): 4 / 4
