Agent skill
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 this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/data/mem-persist
SKILL.md
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.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?