Local Semantic Memory Search for OpenClaw Agents Using Harrier Embeddings

A new repo shows how to give an OpenClaw agent local semantic memory search without sending embeddings to an external service. The approach runs a small local embedding server around Microsoft's Harrier model (microsoft/harrier-oss-v1-0.6b), exposes an Ollama-compatible API, and wires it to OpenClaw's memorySearch config.
How it works
The embedding server runs Harrier locally and provides /api/embed and /api/embeddings endpoints that match Ollama's API format. OpenClaw's memorySearch already supports Ollama-style endpoints, so pointing it at http://localhost:8000 gives the agent a local SOTA semantic memory layer.
Why this matters for agent memory
Most agent memory systems have two pain points:
- Shoving too much memory into the prompt burns tokens and makes context messy.
- Keeping memory files small and manual becomes hard to maintain as history grows.
Semantic memory search offers a middle path. Long-term memory stays in normal markdown files (MEMORY.md, daily logs, notes, project files) that are human-readable and editable. At runtime, the agent retrieves only relevant chunks.
Benefits
- Less token waste — not stuffing every durable fact into every prompt.
- Cleaner memory files — no need to compress into one giant context blob.
- Better recall — finds conceptually related notes even when wording doesn't match exactly.
- Easier debugging — source of truth is plain text, not an opaque vector database.
- Better privacy — embeddings computed locally, no data shipped to hosted API.
What the repo includes
- Small Python embedding server implementing Ollama-compatible endpoints
- Example OpenClaw
memorySearchconfig - macOS launchd service template
- Mock markdown memory corpus
- Smoke tests and local query demo
The repo is at github.com/promptclickrun/harrier-openclaw-memory-search.
📖 Read the full source: r/openclaw
👀 See Also

Persistent AI Advisor with Cross-Platform Memory: Tracks Decision History for 3 Months
A Reddit user built a persistent AI advisor that remembers every product decision across Claude Code, Cursor, and a web interface, catching contradictions and improving over months.

LLMs Leak Reasoning into Structured Output Despite Explicit Instructions
A developer building a tool that makes parallel API calls to Claude and parses structured output found that validation models intermittently output reasoning text before corrected content, despite explicit instructions to return only corrected text. The fix involved prompt tightening plus a defensive strip function that runs before parsing.
MartinLoop: Open-Source Control Plane for AI Coding Agents with Budget Stops and Audit Trails
MartinLoop is an open-source control plane that adds hard budget stops, JSONL audit trails, failure classification, and test-verified completion checks to AI coding agents.

Hollow Agent OS: Local AI workers call Claude as senior architect when stuck
Hollow Agent OS uses local Qwen models that run 24/7, but when they hit logic errors or need major changes, they trigger a Claude call via MCP. Claude reorganizes file structures, reviews code, and acts as a manager for autonomous local workers.