Letta Filesystem To Memfs
letta-ai/skills
Migrates deprecated Letta Filesystem folders/files to MemFS using markdown document corpora, chunking, local lexical search, and QMD semantic search via the memfs-search skill.
Diagnose and repair MemFS repository setup, remote sync, authentication failures, optional backup remotes, or merge/rebase conflicts.
$ npx skills add letta-ai/letta-code --skill syncing-memory-filesystem -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install letta-ai/letta-code syncing-memory-filesystem --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/letta-ai/letta-code.git skills-src && mkdir -p .claude/skills && cp -r skills-src/src/skills/builtin/syncing-memory-filesystem .claude/skills/syncing-memory-filesystem && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "syncing-memory-filesystem" agent skill from https://github.com/letta-ai/letta-code/tree/main/src/skills/builtin/syncing-memory-filesystem into .claude/skills/syncing-memory-filesystem/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "syncing-memory-filesystem", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/letta-ai/letta-code/tree/main/src/skills/builtin/syncing-memory-filesystemType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add letta-ai/letta-code --skill syncing-memory-filesystem -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install letta-ai/letta-code syncing-memory-filesystem --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/letta-ai/letta-code.git skills-src && mkdir -p .agents/skills && cp -r skills-src/src/skills/builtin/syncing-memory-filesystem .agents/skills/syncing-memory-filesystem && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "syncing-memory-filesystem" agent skill from https://github.com/letta-ai/letta-code/tree/main/src/skills/builtin/syncing-memory-filesystem into .agents/skills/syncing-memory-filesystem/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "syncing-memory-filesystem", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add letta-ai/letta-code --skill syncing-memory-filesystem -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install letta-ai/letta-code syncing-memory-filesystem --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/letta-ai/letta-code.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/src/skills/builtin/syncing-memory-filesystem .cursor/skills/syncing-memory-filesystem && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "syncing-memory-filesystem" agent skill from https://github.com/letta-ai/letta-code/tree/main/src/skills/builtin/syncing-memory-filesystem into .cursor/skills/syncing-memory-filesystem/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "syncing-memory-filesystem", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/letta-ai/letta-code.git --path src/skills/builtin/syncing-memory-filesystem--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add letta-ai/letta-code --skill syncing-memory-filesystem -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install letta-ai/letta-code syncing-memory-filesystem --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/letta-ai/letta-code.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/src/skills/builtin/syncing-memory-filesystem .gemini/skills/syncing-memory-filesystem && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "syncing-memory-filesystem" agent skill from https://github.com/letta-ai/letta-code/tree/main/src/skills/builtin/syncing-memory-filesystem into .gemini/skills/syncing-memory-filesystem/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "syncing-memory-filesystem", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install letta-ai/letta-code syncing-memory-filesystemInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add letta-ai/letta-code --skill syncing-memory-filesystem -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/letta-ai/letta-code.git skills-src && mkdir -p .github/skills && cp -r skills-src/src/skills/builtin/syncing-memory-filesystem .github/skills/syncing-memory-filesystem && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "syncing-memory-filesystem" agent skill from https://github.com/letta-ai/letta-code/tree/main/src/skills/builtin/syncing-memory-filesystem into .github/skills/syncing-memory-filesystem/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "syncing-memory-filesystem", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add letta-ai/letta-code --skill syncing-memory-filesystem -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install letta-ai/letta-code syncing-memory-filesystem --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/letta-ai/letta-code.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/src/skills/builtin/syncing-memory-filesystem .opencode/skills/syncing-memory-filesystem && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "syncing-memory-filesystem" agent skill from https://github.com/letta-ai/letta-code/tree/main/src/skills/builtin/syncing-memory-filesystem into .opencode/skills/syncing-memory-filesystem/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "syncing-memory-filesystem", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
syncing-memory-filesystemDiagnose and repair MemFS repository setup, remote sync, authentication failures, optional backup remotes, or merge/rebase conflicts.
Syncing Memory Filesystem is an agent skill from letta-ai/letta-code. Diagnose and repair MemFS repository setup, remote sync, authentication failures, optional backup remotes, or merge/rebase conflicts. Do not load for routine memory reads or edits.
Its SKILL.md is about 1.9k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Development. It works with Letta and Git. The repository describes itself as: Stateful agents that are like people, with memory, identity, and the ability to learn and adapt. The licence is Apache-2.0.
7 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit 42397c7. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Shell commands in SKILL.md call:
gitFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md. Its commands use git, which can reach the network depending on how they are called.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Syncing Memory Filesystem loads about 1.9k tokens when it runs. Until then it costs about 52 tokens; SKILL.md has 915 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from letta-ai/letta-code at commit 42397c7, republished under its Apache-2.0 licence (© letta-ai). 915 words, ~1,923 tokens.
.claude/skills/syncing-memory-filesystem/SKILL.md (or your agent's skills folder).Use this skill only when the Git repository behind an agent's memory is not
setting up or syncing correctly. For ordinary memory reads and edits, use the
memory files without loading this skill. Delegate incidental upkeep during another
task to the background memory subagent. When memory repair is the user's main
request, diagnose and repair it directly, then verify the result before reporting
success. If a memory worker you launched may still be running, wait for it: re-read
its output file until it ends with [Task completed] or [Task failed] before
editing memory files or changing Git state. While the harness reports a repair in
progress, leave both alone as well; that worker edits $MEMORY_DIR in place.
MemFS is a Git repository projected onto the computer where the agent is
running. $MEMORY_DIR is the repository root. There is no second memory/
directory inside it.
The repository can use either memory layout. Inspect its current tree and the memory rules in the system prompt before editing files:
Root layout Existing layout
$MEMORY_DIR/ $MEMORY_DIR/
├── MEMORY.md # root index ├── system/ # in-context memory
├── persona.md # core memory ├── reference/ # deferred memory
├── <topic>/ └── skills/ # agent-owned skills
│ └── MEMORY.md # child index
└── skills/ # agent-owned skillsCloud-backed agents have a hosted MemFS remote. Local-backend agents keep a local-only Git repository and do not need a remote or cloud credentials.
The agent doing the memory work commits its changes. After each turn, the harness pushes
clean committed changes for cloud-backed agents. Local-backend commits remain
on the current machine. Do not run git push for normal MemFS sync; let the
harness push after the turn.
Committed memory changes do not alter the current compiled prompt immediately.
Use /recompile when the current conversation must see changed core memory
right away. Otherwise, the next prompt compilation or conversation will use
the committed revision.
Prefer the harness commands over manual API calls, remote construction, or credential-helper edits:
/memfs status # show whether MemFS is enabled and its path
/memfs enable # initialize or repair MemFS setup
/memfs sync # pull the hosted repositoryFrom a shell, the standalone status and pull commands are:
letta memory status --agent "$AGENT_ID"
letta memory pull --agent "$AGENT_ID"letta memory pull is a no-op for a local-backend agent because there is no
hosted remote.
Do not reproduce /memfs enable by PATCHing agent tags or constructing a Git
remote by hand. The enable flow also updates the system prompt mode, recompiles
the agent, persists local settings, preserves and adds tags, initializes the
checkout, installs hooks, configures identity, and seeds default memory files.
Use $MEMORY_DIR instead of a hard-coded ~/.letta/agents/... path. Local and
cloud-backed agents use different parent directories.
git -C "$MEMORY_DIR" status --short --branch
git -C "$MEMORY_DIR" remote get-url origin | sed -E 's#(https?://)[^/@]+@#\1<redacted>@#'
git -C "$MEMORY_DIR" log -5 --onelineDo not print credential-helper values or tokens. Do not change global Git configuration. The harness installs or refreshes repository-local auth during clone and pull when the active transport supports a persistent helper. Desktop may instead use a temporary Git transport proxy and intentionally omit the persistent helper.
If the checkout is missing .git/, use /memfs enable. If it exists but is
behind, use /memfs sync or letta memory pull --agent "$AGENT_ID". Pull also
repairs recognized stale MemFS origin URLs and refreshes repository-local hooks,
auth, branch tracking, and agent identity.
Raw file edits must preserve the active layout's rules:
MEMORY.md indexes have no frontmatter.
Every other memory Markdown file has exactly name and description.system/ and reference/ need
a non-empty description. read_only is protected and cannot be added,
removed, or changed by the agent.---
description: What this memory file contains
---
Memory content goes here.Review the complete diff before committing. Stage named memory files only and create a new commit. Once the repository is clean, the harness will push a cloud-backed agent's pending commits after the turn.
The harness first tries a fast-forward pull. When a remote push is rejected
because the remote moved, post-turn sync tries git pull --rebase and retries
the push. If that rebase conflicts, the harness launches a fresh background
memory subagent to repair it. The primary conversation is not interrupted.
The harness retries normal sync after the worker finishes. The instructions
below are for explicit troubleshooting; routine repairs run in the background.
Start by reading the current Git operation and every conflicted file:
git -C "$MEMORY_DIR" status
git -C "$MEMORY_DIR" diff --name-only --diff-filter=UResolve the conflict markers without deleting required frontmatter, then stage the resolved files by name. Finish the operation Git reports:
git -C "$MEMORY_DIR" add <resolved-memory-path>
# If git status says a rebase is in progress:
GIT_EDITOR=true git -C "$MEMORY_DIR" rebase --continue
# If git status says a merge is in progress:
git -C "$MEMORY_DIR" commitDo not start a new merge when a rebase is already in progress. Do not reset, abort, or discard either side without the user's approval. When the repository is clean and the merge or rebase is complete, the harness retries the hosted push after a future turn.
/memory-repository mirrors the agent's main branch to an additional Git
URL. This is separate from the hosted MemFS origin.
/memory-repository set git@github.com:you/my-memory.git
/memory-repository status
/memory-repository push
/memory-repository unsetset stores letta.memoryRepository.url in the MemFS repository's local Git
config, installs the post-commit hook, and attempts an initial push. Later
commits on main start a background mirror push. Mirror failures do not block
the commit; /memory-repository status shows the recent push log.
Use normal SSH or Git credential handling for the backup URL. Avoid embedding a
token in the URL because the URL is stored in .git/config. Use
/memory-repository push only for this optional backup remote, not for normal
MemFS synchronization.
$MEMORY_DIR points to the active agent's repository.git status, the origin URL, and the current Git operation./memfs enable for a missing checkout and /memfs sync for a pull.LETTA_DEBUG=1 and report the
redacted error. Never print or copy credential-helper values.© letta-ai, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in src/skills/builtin/syncing-memory-filesystem of letta-ai/letta-code.
Open the folder on GitHubat commit 42397c7
Syncing Memory Filesystem next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Syncing Memory Filesystem this skillletta-ai/letta-code | 3.5k | — | ~1.9k | Automated safety check: Pass | Apache-2.0 | |
| Letta Filesystem To Memfsletta-ai/skills | 147 | — | ~1.3k | Automated safety check: Pass | MIT | |
| Finishing a Development Branchobra/superpowers | 296k | 5 repos | ~1.9k | Automated safety check: Pass | MIT | |
| Code Review ChecklistshareAI-lab/learn-claude-code | 78k | 5 repos | ~1.1k | Automated safety check: Pass | MIT | |
| Codebase Knowledge Graph Q&AEgonex-AI/Understand-Anything | 86k | 1 repos | ~1.2k | Automated safety check: Pass | MIT | |
| Code Design Rationale Investigatorcursor/plugins | 10k | 9 repos | ~2.6k | Automated safety check: Pass | None |
letta-ai/skills
Migrates deprecated Letta Filesystem folders/files to MemFS using markdown document corpora, chunking, local lexical search, and QMD semantic search via the memfs-search skill.
obra/superpowers
Walks the last step of a branch: confirm tests pass, detect the git environment, ask how to integrate, carry out your choice and clean up the worktree.
shareAI-lab/learn-claude-code
Reviews code against a five-part checklist covering security, correctness, performance, maintainability and testing, and reports findings in a fixed format.
Egonex-AI/Understand-Anything
Answers questions about a codebase by searching a prebuilt knowledge graph of its files, functions, classes and dependencies, not by rereading every source file.
cursor/plugins
Digs into why code is shaped the way it is by checking git history, pull requests and connected tools in parallel, then reporting a cited read on the tradeoffs.
Egonex-AI/Understand-Anything
Reads your git changes or a pull request against a prebuilt knowledge graph of the project to explain what changed, which components are affected and what is risky.
letta-ai/letta-code
Guide for creating effective skills. An agent skill from letta-ai/letta-code.
letta-ai/letta-code
Generates and reviews mod learning env JSON files for Letta Code local mods.
letta-ai/letta-code
Comprehensive guide for initializing or reorganizing agent memory.
letta-ai/letta-code
Inspect or modify Letta Code's own memory, model, context window, system prompt, compaction, permissions, toolsets, mods, skills, channels, schedules, agent secrets, and local runtime settings.
letta-ai/letta-code
Control a real browser to navigate pages, click, type, fill forms, inspect rendered UI, take screenshots, or record video.
letta-ai/letta-code
Creates and edits trusted local Letta Code mods, including tools, slash commands, local-only model providers, lifecycle/turn events, scoped conversation helpers, panels, and capability-gated behavior.
Categories
Diagnose and repair MemFS repository setup, remote sync, authentication failures, optional backup remotes, or merge/rebase conflicts. Syncing Memory Filesystem is an agent skill from letta-ai/letta-code. Diagnose and repair MemFS repository setup, remote sync, authentication failures, optional backup remotes, or merge/rebase conflicts.
Syncing Memory Filesystem fits situations like: development work in your project.
Run `npx skills add letta-ai/letta-code --skill syncing-memory-filesystem -a claude-code`. Or copy the skill folder (src/skills/builtin/syncing-memory-filesystem in letta-ai/letta-code) into .claude/skills/syncing-memory-filesystem in your project. Claude Code loads it when a task matches its description.
Run `npx skills add letta-ai/letta-code --skill syncing-memory-filesystem -a codex`. Or copy the skill folder (src/skills/builtin/syncing-memory-filesystem in letta-ai/letta-code) into .agents/skills/syncing-memory-filesystem in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add letta-ai/letta-code --skill syncing-memory-filesystem -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/syncing-memory-filesystem, .gemini/skills/syncing-memory-filesystem, .github/skills/syncing-memory-filesystem and .opencode/skills/syncing-memory-filesystem in your project.
Going by SKILL.md and its folder, Syncing Memory Filesystem needs the command-line tools its instructions call (git).
SKILL.md contains no URLs. Its commands use git, which can reach the network depending on how they are called. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Syncing Memory Filesystem is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.9k tokens (SKILL.md is roughly 7.7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Syncing Memory Filesystem: Letta Filesystem To Memfs (letta-ai/skills, 147 stars), Finishing a Development Branch (obra/superpowers, 296k stars), Code Review Checklist (shareAI-lab/learn-claude-code, 78k stars) and Codebase Knowledge Graph Q&A (Egonex-AI/Understand-Anything, 86k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
letta-ai (a GitHub organization) maintains it in letta-ai/letta-code, which has 3,541 GitHub stars. The repository holds 25 skills in this directory. The repository was last updated on October 8, 2026.
Source: letta-ai/letta-code on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.