记忆

AgentMemory Adapter

试用

Install, wire, audit, and harden AgentMemory for AI coding agents and project workspaces. Use when Codex needs to adopt rohitg00/agentmemory, configure Codex...

它能做什么

Use this skill to make AgentMemory a dependable shared memory layer, not just a copied MCP snippet.

技能文档

AgentMemory Adapter

Use this skill to make AgentMemory a dependable shared memory layer, not just a copied MCP snippet.

When To Use

Use this skill when the user wants to install AgentMemory, wire AgentMemory MCP into Codex or OpenClaw, audit an existing memory setup, publish AgentMemory guidance to ClawHub, or debug memory failures involving npx, localhost routing, bearer-token safety, stale hooks, duplicate plugin paths, or degraded MCP fallback mode.

Operating Order

  1. Confirm the target surface: Codex, OpenClaw, ClawHub skill packaging, or a specific project workspace.
  2. Read the bundled references for current architecture and platform-specific recipes.
  3. Prefer a pinned local AgentMemory binary over long-lived npx commands.
  4. Apply the narrowest config change that satisfies the target surface, preserving existing user settings.
  5. Run the diagnostic script before and after changes, then explain any warnings as operational risks rather than hiding them.
  6. For public skill work, run Codex quick validation, ClawHub skill doctor, leak/prompt-bleed scans, ClawPatch review, and a gstack-style ship gate before publishing.

First Pass

  1. Inspect the target agent and project scope before editing config. Prefer user-level integration for "all current projects"; prefer repo-local integration only when the user asks for project-specific behavior.
  2. Read references/agentmemory-deep-analysis.md for the current AgentMemory architecture and references/platform-recipes.md for exact Codex, OpenClaw, and ClawHub-ready patterns.
  3. Run scripts/check_agentmemory.py before and after changes. Use --url when the server is remote or uses a non-default port.
  4. Preserve existing user config and backups. agentmemory connect writes backups under ~/.agentmemory/backups; manual JSON/TOML edits should be equally scoped.

Install Strategy

Prefer a stable local command over unbounded npx in long-lived MCP configs:

npm install --prefix ~/.agentmemory/npm @agentmemory/agentmemory@0.9.22 --omit=optional
mkdir -p ~/.local/bin
ln -sfn ~/.agentmemory/npm/node_modules/.bin/agentmemory ~/.local/bin/agentmemory

Use full optional dependencies only when the user explicitly needs local vector/image embeddings and accepts native package install cost. If npx @agentmemory/agentmemory@latest stalls, install the core package locally as above and point MCP entries at ~/.local/bin/agentmemory mcp.

Codex Workflow

  1. Wire MCP with the local command:
codex mcp remove agentmemory 2>/dev/null || true
codex mcp add agentmemory \
  --env AGENTMEMORY_URL=http://localhost:3111 \
  --env AGENTMEMORY_TOOLS=all \
  -- ~/.local/bin/agentmemory mcp
  1. Install the Codex hook fallback when Codex Desktop or plugin-local hooks are unreliable:
agentmemory connect codex --with-hooks --force

Then re-run the MCP add command above if connect rewrites the server back to npx.

  1. Install the upstream Codex plugin or a local marketplace copy when slash skills are wanted. Patch the plugin .mcp.json to the local command if avoiding npx.

  2. Verify:

codex mcp list
python3 ~/.codex/skills/agentmemory-adapter/scripts/check_agentmemory.py

OpenClaw Workflow

  1. Add the MCP server:
openclaw mcp set agentmemory '{"command":"'"$HOME"'/.local/bin/agentmemory","args":["mcp"],"env":{"AGENTMEMORY_URL":"http://localhost:3111","AGENTMEMORY_TOOLS":"all"}}'
  1. Install or link the OpenClaw memory plugin from a durable directory, not a temporary source checkout.
  2. Ensure plugins.slots.memory is agentmemory, plugins.entries.agentmemory.enabled is true, and the plugin config includes base_url, token_budget, min_confidence, fallback_on_error, and timeout_ms.
  3. Verify with:
openclaw mcp show agentmemory
openclaw plugins inspect agentmemory
openclaw plugins doctor

Edge-Case Rules

  • Treat MCP fallback mode as degraded: it exposes only a small local tool set when the REST server is unreachable. Start the server for the full tool surface.
  • For sandboxed agents, localhost may point inside the sandbox. Use a reachable host route and AGENTMEMORY_FORCE_PROXY=1 only when the route is correct.
  • Never send AGENTMEMORY_SECRET over non-loopback http://. Prefer HTTPS or SSH tunneling; set AGENTMEMORY_REQUIRE_HTTPS=1 for hard failure.
  • Re-run agentmemory connect codex --with-hooks after upgrading AgentMemory because user-scope hooks contain absolute script paths.
  • Remove duplicate OpenClaw plugin paths; stale temp paths can shadow durable installs.
  • Use AGENT_ID and AGENTMEMORY_AGENT_SCOPE=isolated only when roles need strict separation. Default shared memory is usually better for one user's coding agents.
  • Keep AGENTMEMORY_INJECT_CONTEXT=false and AGENTMEMORY_AUTO_COMPRESS=false unless the user explicitly accepts token spend.
  • Do not use memory_governance_delete or the /forget workflow without explicit confirmation.

ClawHub-Ready Skill Work

For a skill intended for ClawHub, keep SKILL.md concise, declare OpenClaw runtime requirements in metadata.openclaw, avoid paid-skill/licensing claims, and include a --clawscan-note when publishing because this workflow intentionally configures local binaries, MCP, and network access. Use references/platform-recipes.md before publishing or reviewing the bundle.

相关技能

在本地磁盘以分类纯 Markdown 文件保存需要长期留存的事实,与智能体内置记忆并存。

作者 Iván559 次安装18 星标

以 AI 机器人身份加入视频会议,提供语音、虚拟形象与屏幕共享四种模式。

作者 johnpatternai22 次安装8 星标

把自然语言描述转为结构化 JSON,并由 mcp-diagram-generator MCP 服务生成 Draw.io、Mermaid 或 Excalidraw 图表文件。

作者 nssa.io1.0k 次安装47 星标

诊断生产力系统反复失效的根因,给出最小干预——容量测算、瓶颈定位、可靠的本地记录。

作者 Iván855 次安装69 星标

从 AdMapix API 拉取广告创意、应用、榜单和收入预估等数据,原样返回结构化 JSON。

作者 fly0pants4.3k 次安装296 星标

zack-dev-cm 的更多技能

浏览全部技能

OpenClaw CWS Publisher is a public ClawHub Chrome Web Store publisher skill. Use it when the user says "chrome web store publisher", "extension release publi...

作者 zack-dev-cm29 次安装3 星标

SOTA Agent is a public ClawHub SOTA-campaign skill for CV and DS work. Use it when the user says "sota agent", "state of the art benchmark scouting", or want...

作者 zack-dev-cm28 次安装2 星标

Use when studying or normalizing Chinese lesson transcript/subtitle inputs with bundled public lesson data, learner docs, local export bundles, and pilot-fir...

作者 zack-dev-cm22 次安装1 星标

OpenClaw YouTube Publisher is a public ClawHub YouTube publishing skill. Use it when the user says "youtube creator ops", "youtube publisher", "YouTube Studi...

作者 zack-dev-cm25 次安装2 星标

Build source-backed research claim ledgers from drafts, literature matrices, notes, citation lists, PDFs, source packets, or reviewer comments. Use when the...

作者 zack-dev-cm13 次安装

Strictly review any new skill, browser extension, app, community, course, template, or micro-product before building or launching it. Use when the user wants...

作者 zack-dev-cm12 次安装