syncing-memory-filesystem

Installation
SKILL.md

Git-Backed Memory Repos

Agents with the git-memory-enabled tag have their memory blocks stored in git repositories accessible via the Letta API. This enables version control, collaboration, and external editing of agent memory.

Features:

  • Stored in cloud (GCS)
  • Accessible via $LETTA_BASE_URL/v1/git/<agent-id>/state.git
  • Bidirectional sync: API <-> Git (webhook-triggered, ~2-3s delay)
  • Structure: memory/system/*.md for system blocks

What the CLI Harness Does Automatically

When memfs is enabled, the Letta Code CLI automatically:

  1. Adds the git-memory-enabled tag to the agent (triggers backend to create the git repo)
  2. Clones the repo into ~/.letta/agents/<agent-id>/memory/ (git root is the memory directory)
  3. Configures a local credential helper in memory/.git/config (so git push/git pull work without auth ceremony)
  4. Installs a pre-commit hook that validates frontmatter before each commit (see below)
  5. Installs a post-commit hook that pushes commits to an optional additional remote (see "Additional memory-repository remote" below)
Related skills
Installs
68
GitHub Stars
2.5K
First Seen
Feb 3, 2026