一键导入
memory-sync
Git synchronization operations for pi-memory-md repository. Use when you need to sync memory.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Git synchronization operations for pi-memory-md repository. Use when you need to sync memory.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Digest recent tape anchors and session context into curated pi-memory-md memories when tape mode is enabled. Use only with tape mode enabled when the user asks to summarize recent work, extract learnings, preserve decisions, convert tape/session history into memory, or review recent intent for durable memory updates.
Search and retrieve information from pi-memory-md memory files. Use when you need to search memory.
Initialize memory repository - clone git repo and create directory structure. Use when you need to set up pi-memory-md for the first time or initalize project's memory files.
Import durable knowledge from URLs, folders, or files into pi-memory-md. Use when the user asks to preserve external content as memory.
Create or update pi-memory-md memory files using the native write/edit tools plus the bundled template script. Use whenever writing, creating, or updating memory files.
| name | memory-sync |
| description | Git synchronization operations for pi-memory-md repository. Use when you need to sync memory. |
Git synchronization for pi-memory-md repository.
Configure pi-memory-md.repoUrl in settings file (global: ~/.pi/agent/settings.json, project: .pi/settings.json)
Fetch latest changes from remote:
memory_sync(action="pull")
Use before starting work or switching machines.
Upload local changes to remote:
memory_sync(action="push")
Auto-commits changes before pushing.
Before pushing, ALWAYS run memory_check first:
memory_check()
This verifies that the folder structure is correct (e.g., files are in core/project/ not in a root project/ folder).
Check uncommitted changes:
memory_sync(action="status")
Shows modified/added/deleted files.
| Action | Command |
|---|---|
| Get updates | memory_sync(action="pull") |
| Check changes | memory_sync(action="status") |
| Upload changes | memory_sync(action="push") |
| Error | Solution |
|---|---|
| Non-fast-forward | Pull first, then push |
| Conflicts | Manual resolution via bash git commands |
| Not a git repo | Run memory_init(force=true) |
| Permission denied | Check SSH keys or repo URL |
memory-management - Read and write filesmemory-init - Setup repository