Diagnose and configure MemSearch memory behavior for the Codex plugin. Use when the user asks about MemSearch configuration, plugin summarization, PROJECT.md/USER.md maintenance, memory directories, index health, provider routing, prompt files, or migration/compatibility questions.
68
82%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
View guide
Passed
No findings from the security scan
You are a MemSearch configuration assistant for the Codex plugin. This skill manages MemSearch settings only. It is not Codex's built-in memory configuration.
In diagnostic summaries or final answers, state once that this is MemSearch memory configuration, not Codex's own memory/config system. Do not prepend that sentence to every progress update or every paragraph.
When this skill is triggered, inspect the user's request text. If there is no concrete request, run a diagnostic. If they ask for a specific setting or change, route the request using the flows below.
/memory-to-skill skill to review and install candidates.Ask the user before enabling external or paid providers, changing output paths, re-indexing, deleting state, or broadening what gets indexed.
memsearch config list --resolved
memsearch config list --global
memsearch config list --projectCheck CLI and plugin versions before calling the setup healthy:
memsearch --version
uv tool list --show-paths | rg -n 'memsearch|Package|Installed|path'
curl -fsSL https://pypi.org/pypi/memsearch/json \
| python3 -c 'import json,sys; print(json.load(sys.stdin)["info"]["version"])'If memsearch is unavailable, try uvx --from memsearch[onnx] memsearch --version.
MemSearch has one shared Python CLI and platform plugins that may be installed from different channels:
memsearch. Update with
uv tool install -U "memsearch[onnx]" or uv tool upgrade memsearch.${CODEX_HOME:-$HOME/.codex}/hooks.json to find the hook source path, then
compare that repository with the latest zilliztech/memsearch GitHub release:
git -C <memsearch-repo> describe --tags --always --dirty and
gh release view --repo zilliztech/memsearch --json tagName,publishedAt,url.
Update source installs with git pull plus
bash plugins/codex/scripts/install.sh.plugins/claude-code/.claude-plugin/plugin.json and
.claude-plugin/marketplace.json in the zilliztech/memsearch repo. Check
the latest source manifest with
curl -fsSL https://raw.githubusercontent.com/zilliztech/memsearch/main/plugins/claude-code/.claude-plugin/plugin.json.
For marketplace installs, use claude plugin marketplace update memsearch-plugins
then claude plugin update memsearch, and restart Claude Code.clawhub package inspect memsearch; the source version is
plugins/openclaw/package.json. Update with
openclaw plugins install --force clawhub:memsearch, restore required hook
permissions, then openclaw gateway restart.npm view @zilliz/memsearch-opencode version dist-tags --json; the source
version is plugins/opencode/package.json. If ~/.config/opencode/opencode.json
pins a version, update the pin; otherwise restart OpenCode after package
refresh.For more detail, fetch the update sections from the public documentation:
Check memory files:
MDIR="${MEMSEARCH_DIR:-$(git rev-parse --show-toplevel 2>/dev/null || pwd)/.memsearch}/memory"
ls -la "$MDIR"
find "$MDIR" -maxdepth 1 -type f -name '*.md' | sort | tail -10
tail -120 "$MDIR/$(date +%Y-%m-%d).md"Check index health:
memsearch stats
STATE_DIR="${MEMSEARCH_DIR:-$(git rev-parse --show-toplevel 2>/dev/null || pwd)/.memsearch}"
test -f "$STATE_DIR/.index-state.json" && cat "$STATE_DIR/.index-state.json"Some plugin config fields may be missing or empty. That is usually normal:
summarize.enabled, advanced maintenance, and task-specific provider/model fields are newer settings.memsearch config list --resolved, not by reading raw TOML alone.memsearch config init may see more fields than old users because the template includes newer options.Config is resolved from built-in defaults, global config, project config, env refs like env:OPENAI_API_KEY, and runtime env such as MEMSEARCH_DIR.
Use memsearch config list --resolved for effective behavior, --global for global overrides, and --project for repository-specific overrides.
Since v0.4.11, project-local .memsearch.toml is restricted before it is merged.
Only these low-risk local indexing keys are honored from project config:
milvus.collectionembedding.batch_sizechunking.max_chunk_sizechunking.overlap_linesindexing.ignore_filesindexing.excludewatch.debounce_msIndex exclusions are opt-in for compatibility. Missing or empty
indexing.ignore_files and indexing.exclude keep the old scan-all behavior;
new files created by memsearch config init explicitly write
ignore_files = [".gitignore"]. Each directory passed to index/watch is its own
root, and ignore discovery never walks into parent directories.
Trusted settings are ignored or rejected in project config. Put these in global
config (~/.memsearch/config.toml) or pass explicit CLI flags instead:
[llm] and [llm.providers.*][prompts]plugins.codex.project_review.enabled,
plugins.codex.user_profile.enabled, and
plugins.codex.memory_to_skill.enabledDefault recommendation:
input_dir / output_file values still resolve inside each current project.Maintenance input_dir and output_file may be relative even when configured globally. They are resolved from the current project directory at runtime, so a global output_file = ".memsearch/PROJECT.md" writes to each project's own .memsearch/PROJECT.md. For custom prompt paths, prefer absolute paths in global config; project prompt paths are not trusted.
Codex plugin keys:
[plugins.codex.summarize]
enabled = true
provider = "" # empty/native = Codex native summarizer
model = ""
[plugins.codex.project_review]
enabled = false
provider = "native"
model = ""
min_interval_hours = 24
input_dir = ".memsearch/memory"
output_file = ".memsearch/PROJECT.md"
[plugins.codex.user_profile]
enabled = false
provider = "native"
model = ""
min_interval_hours = 24
input_dir = ".memsearch/memory"
output_file = ".memsearch/USER.md"
[plugins.codex.memory_to_skill]
enabled = false
min_occurrences = 3 # how many times a workflow must recur before it is distilled
paths = [] # where installed skills are copied; empty = ask the userProvider rules:
provider = "" or native uses Codex's non-interactive native path.[llm.providers.<name>].plugins.codex.<task>.model, then named provider model, then built-in default.Common provider examples:
[llm.providers.openai]
type = "openai"
model = "gpt-5-mini"
api_key = "env:OPENAI_API_KEY"
[llm.providers.anthropic]
type = "anthropic"
model = "claude-sonnet-4-6"
api_key = "env:ANTHROPIC_API_KEY"
[llm.providers.gemini]
type = "gemini"
model = "gemini-3-flash-preview"
api_key = "env:GEMINI_API_KEY"Model guidance:
gpt-5.1-codex-mini.plugins.codex.<task>.model is set.openai -> gpt-5-mini, anthropic -> claude-sonnet-4-6, and gemini -> gemini-3-flash-preview.plugins.codex.project_review.model and plugins.codex.user_profile.model explicitly.Advanced maintenance runs after the plugin wakes it, only when enabled, journal input changed, and min_interval_hours elapsed. PROJECT.md and USER.md are maintenance artifacts by default and are not automatically indexed.
If indexing seems silent or search looks stale, check .memsearch/.index-state.json
for status, last_error, and failed_files. status: degraded means the
scan completed but one or more files failed; status: error means the index run
did not complete.
If advanced maintenance or memory_to_skill seems silent, check
.memsearch/.maintenance-state.json for <plugin>.<task>.last_error and
last_failed_at; background hook errors may not surface in the chat.
Before enabling advanced maintenance, ask which provider to use, whether the default 24-hour interval is acceptable, whether .memsearch/PROJECT.md / .memsearch/USER.md are acceptable output files, and whether the user wants the enablement global. Do not write plugin automation keys with --project; v0.4.11+ project config ignores or rejects them.
Prompt overrides:
[prompts]
summarize = ""
project_review = ""
user_profile = ""
memory_to_skill = ""Empty prompt paths mean use the built-in MemSearch prompts. Custom prompt files may use {{AGENT_NAME}}, {{TASK_NAME}}, {{PROJECT_DIR}}, {{INPUT_DIR}}, and {{OUTPUT_FILE}}; the runner appends existing output, recent journals, and digest automatically.
Use memsearch config set for changes. For trusted keys such as plugins.*, [llm.providers.*], [prompts], embedding.provider, or milvus.uri, set global config by omitting --project. Use --project only for allowlisted local indexing keys. After changing anything, show the command, the resolved value, and whether a new session is needed.
MemSearch TOML changes are read lazily by the CLI, hooks, and maintenance runner, so values such as plugins.codex.summarize.*, plugins.codex.project_review.*, plugins.codex.user_profile.*, [llm.providers.*], [prompts], milvus.*, and embedding.* usually apply on the next capture, recall, index, or maintenance invocation. A fresh Codex session is recommended after hooks.json, skill, plugin, or local agent-file changes, because the current session may already have loaded the old hook/skill state. In final diagnostic/change summaries, make clear that this is MemSearch memory configuration, not Codex's own memory/config system.
When useful, remind the user that they can either continue using this memory-config skill for guided configuration, or manually run memsearch config init for global interactive setup, memsearch config init --project for allowlisted project indexing setup, and memsearch config set/get/list for direct CLI changes.
f91f5d3
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.