Loading...
Loading...
Compare original and translation side by side
Requires Memory Filesystem (memfs)This workflow is memfs-first. If memfs is enabled, do not use the legacy block commands — they can conflict with file-based edits.To check: Look for ablock in your system prompt. If it shows a tree structure starting withmemory_filesystemincluding a/memory/directory, memfs is enabled.system/To enable: Ask the user to run, then reload the CLI./memfs enable
需要内存文件系统(memfs)本工作流优先使用memfs。如果已启用memfs,请勿使用旧版块命令——它们会与基于文件的编辑产生冲突。检查方法: 查看你的系统提示中是否存在块。如果它展示了以memory_filesystem开头的树状结构,且包含/memory/目录,说明已启用memfs。system/启用方法: 请用户执行命令,然后重载CLI。/memfs enable
letta memfs export --agent <source-agent-id> --out /tmp/letta-memfs-<source-agent-id>system/cp -r /tmp/letta-memfs-agent-abc123/system/project ~/.letta/agents/$LETTA_AGENT_ID/memory/system/
cp /tmp/letta-memfs-agent-abc123/notes.md ~/.letta/agents/$LETTA_AGENT_ID/memory/letta memfs sync --agent $LETTA_AGENT_IDletta memfs export --agent <source-agent-id> --out /tmp/letta-memfs-<source-agent-id>system/cp -r /tmp/letta-memfs-agent-abc123/system/project ~/.letta/agents/$LETTA_AGENT_ID/memory/system/
cp /tmp/letta-memfs-agent-abc123/notes.md ~/.letta/agents/$LETTA_AGENT_ID/memory/letta memfs sync --agent $LETTA_AGENT_IDletta blocks listletta blocks copyletta blocks attachletta blocks listletta blocks copyletta blocks attachduplicate key value violates unique constraint--labelletta blocks copy --block-id <id> --label project-imported--overrideletta blocks copy --block-id <id> --override
letta blocks attach --block-id <id> --overridememorymemory(agent_state, "delete", path="/memories/<label>")letta blocks attach--labelduplicate key value violates unique constraint--labelletta blocks copy --block-id <id> --label project-imported--overrideletta blocks copy --block-id <id> --override
letta blocks attach --block-id <id> --overridememorymemory(agent_state, "delete", path="/memories/<label>")letta blocks attach--labelagent-abc123Skill({ skill: "finding-agents" })agent-abc123Skill({ skill: "finding-agents" })agent-abc123letta memfs export --agent agent-abc123 --out /tmp/letta-memfs-agent-abc123cp -r /tmp/letta-memfs-agent-abc123/system/project ~/.letta/agents/$LETTA_AGENT_ID/memory/system/letta memfs sync --agent $LETTA_AGENT_IDagent-abc123letta memfs export --agent agent-abc123 --out /tmp/letta-memfs-agent-abc123cp -r /tmp/letta-memfs-agent-abc123/system/project ~/.letta/agents/$LETTA_AGENT_ID/memory/system/letta memfs sync --agent $LETTA_AGENT_ID