Skip to content
Agentmart
Submit a tool

memory-upgrade

Diagnose and fix broken memory search in OpenClaw.

Skill by profbernardoj

IndexedMIT★ 110
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/profbernardoj-memory-upgrade

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Diagnose and fix broken memory search in OpenClaw. Enables local embeddings, hybrid search (BM25+vector), session transcript indexing, MMR diversity, and temporal decay — all running locally with zero API keys. Use when: memory_search returns empty results, agent has poor cross-session recall, user wants to upgrade their memory system, or after a fresh OpenClaw install.

Use cases: backend, agent-building

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found
Runs as
Shell scripts

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/memory-upgrade

What's inside

Skill name
memory-upgrade
Description
Diagnose and fix broken memory search in OpenClaw. Enables local embeddings, hybrid search (BM25+vector), session transcript indexing, MMR diversity, and temporal decay — all running locally with zero API keys. Use when: memory_search returns empty results, agent has poor cross-session recall, user wants to upgrade their memory system, or after a fresh OpenClaw install.
License
MIT
Instructions
59 lines in SKILL.md · view on GitHub

Before installing

  • Ships executable scripts

Files (6)

  • SKILL.md
  • configure.sh · scripts/
  • diagnose.sh · scripts/
  • organize.sh · scripts/
  • tag.sh · scripts/
  • verify.sh · scripts/

SKILL.md (first lines)

# Memory Upgrade

Most OpenClaw installs have **broken memory search** — the `memory_search` tool returns empty results because no embedding provider is configured. OpenClaw auto-detects OpenAI → Google → Voyage keys; if none exist, embeddings stay disabled silently.

This skill fixes it with fully local inference. No API keys. No data leaves the machine.

## Quick Start

```bash
# 1. Diagnose
bash scripts/diagnose.sh

# 2. Fix (patches openclaw.json, restart [REDACTED] after)
bash scripts/configure.sh

# 3. Restart [REDACTED]
openclaw [REDACTED] restart

# 4. Verify (waits for indexing, runs test query)
bash scripts/verify.sh
```

## Optional Enhancements

```bash
# Organize memory files into clean directory structure
bash scripts/organize.sh

# Add YAML frontmatter tags to untagged files
bash scripts/tag.sh
```

## What Gets Enabled

| Feature | Details |
|---------|---------|
| **Local embeddings** | embeddinggemma-300m (~328MB GGUF, auto-downloads) |
| **Hybrid search** | BM25 keyword + vector semantic (70/30 weight) |
| **Session transcripts** | Past conversations become searchable |
| **MMR diversity** | Reduces duplicate/overlapping results (λ=0.7) |
| **Temporal decay** | Recent memories rank higher (30-day half-life) |
| **Embedding cache** | 50k entries, avoids re-embedding unchanged text |
| **File watcher** | Auto-reindexes when memory files change |

## How It Works

- Patches `agents.defaults.memorySearch` in `openclaw.json`
- Uses `node-llama-cpp` (ships with OpenClaw) for local embeddings
- Vector search via `sqlite-vec` (ships with OpenClaw)
- No external dependencies required

## Notes

- First search after restart may be slow (model loads into memory)
- Initial indexing takes 30-120s depending on file count
- Embedding model runs on CPU (ARM/x86), ~768-dim vectors
- Compatible with existing memory files — no migration needed

From profbernardoj/everclaw-community-branches, MIT.

More from profbernardoj/everclaw-community-branches

Signals

Stars
110
Forks
20
Open issues
1
Last commit (this folder)
May 28, 2026 (5 months ago)
Last release
May 15, 2026 (5 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

Same skill elsewhere

Copies of this SKILL.md published by others; search shows only one of them.

More from profbernardoj

Cite this page

memory-upgrade skill. Agent Mart. https://agentmart.dev/skills/profbernardoj-memory-upgrade (last updated 2026-10-24)