返回 Skill 列表
extension
分类: 开发与工程无需 API Key

mem-persist

通过HTTP API将Claude Code或Codex CLI会话线程保存到Nowledge Mem知识库。当用户请求保存、持久化或备份当前会话或会话线程时使用。

person作者: jakexiaohubgithub

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):

  • MEM_API_URL - API endpoint (default: http://localhost:14243)
  • MEM_AUTH_TOKEN - Bearer token (default: helloworld)
  • MEM_SESSION_SOURCE - auto/claude/codex (default: auto)

For detailed configuration and .env file setup, see README.md.