Claude-skill-registry-data mem-persist
Saves Claude Code or Codex CLI conversation threads to Nowledge Mem knowledge base via HTTP API. Use when user requests to save, persist, or backup the current session or conversation thread.
install
source · Clone the upstream repo
git clone https://github.com/majiayu000/claude-skill-registry-data
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/majiayu000/claude-skill-registry-data "$T" && mkdir -p ~/.claude/skills && cp -r "$T/data/mem-persist" ~/.claude/skills/majiayu000-claude-skill-registry-data-mem-persist && rm -rf "$T"
manifest:
data/mem-persist/SKILL.mdsource content
Save Conversation to Nowledge Mem
Persists the current conversation thread to a remote Nowledge Mem server.
Usage
IMPORTANT: Always set
PROJECT_PATH to the actual project directory (from <env> block's working directory), not the skill's directory.
# Save current session PROJECT_PATH=/path/to/project uv run python -m mem_persist save # With custom title PROJECT_PATH=/path/to/project uv run python -m mem_persist save --title "Feature X implementation" # Force specific source (skip auto-detect) PROJECT_PATH=/path/to/project uv run python -m mem_persist save --source codex
Troubleshooting
PROJECT_PATH=/path/to/project uv run python -m mem_persist diagnose
Configuration
Environment variables (optional):
- API endpoint (default:MEM_API_URL
)http://localhost:14243
- Bearer token (default:MEM_AUTH_TOKEN
)helloworld
-MEM_SESSION_SOURCE
/auto
/claude
(default:codex
)auto
For detailed configuration and
.env file setup, see README.md.