/install cxm-neural-memory
CXM Neural Memory Skill
This skill provides you with a localized "Neural Memory" and architectural mapping tool. It allows you to find code semantically and map dependencies using bundled AST-parsing tools.
🔒 Security & Transparency (Disclosure)
To ensure safe and transparent operation, be aware of the following behaviors:
- Local Indexing: This skill performs recursive file reads within the project to build a local vector index (FAISS) stored in
~/.cxm. - Resource Footprint: Initial indexing is CPU-intensive. Runtime RAM usage ranges from ~300MB (Mini-BERT) to ~1GB (MPNet).
- Network Access: On the very first execution, this skill will download a pre-trained model (~80MB to ~400MB) from the HuggingFace Hub. No project data is ever uploaded.
- File Modification: The tool can patch files. It strictly respects the
allowed_write_pathsandmode(e.g.,ask_first) defined in the project's.cxm.yaml.
🛠️ Local Engine Usage
You are already bundled with the CXM source code. All commands must be executed via the local src/cli.py script.
Crucial Instruction: Always use the --agent-mode flag to receive strict, parseable JSON.
Core Capabilities & Usage
1. Semantic Search (Vibe Searching)
Use this when you need to find logic by its purpose, even if you don't know the exact file name or variable names.
Command:
python src/cli.py --agent-mode harvest --semantic "your natural language query"
Interpretation:
The JSON output contains a results array with path, content, and start_line/end_line for precise targeting.
2. Dependency Graphing (Architectural Mapping)
Use this before refactoring to see which files or modules depend on your target file.
Command:
python src/cli.py --agent-mode map path/to/file.py
Interpretation:
The JSON output includes an edges list and a hotspots array showing the most heavily used modules in the project.
3. Architecture Ingestion
Force CXM to index non-code files like README.md, docker-compose.yml, or package.json to understand the system's infrastructure.
Command:
python src/cli.py --agent-mode ingest .
Workflow for Complex Refactoring
- Locate: Use
semantic searchto find the relevant code sections. - Map: Run
mapon the identified files to see the blast radius. - Execute: Apply your changes knowing the full architectural context.
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install cxm-neural-memory - 安装完成后,直接呼叫该 Skill 的名称或使用
/cxm-neural-memory触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
CXM: Neural Memory for Agents 是什么?
Use this skill when you need to understand the architecture of a codebase, perform semantic searches across files, map dependencies before refactoring, or in... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 235 次。
如何安装 CXM: Neural Memory for Agents?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install cxm-neural-memory」即可一键安装,无需额外配置。
CXM: Neural Memory for Agents 是免费的吗?
是的,CXM: Neural Memory for Agents 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
CXM: Neural Memory for Agents 支持哪些平台?
CXM: Neural Memory for Agents 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 CXM: Neural Memory for Agents?
由 Joeavaib(@joeavaib)开发并维护,当前版本 v1.0.3。