# Send Lily Memory Plugin to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Then review README.md for any prerequisites, environment setup, or post-install checks. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Then review README.md for any prerequisites, environment setup, or post-install checks. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "lily-memory",
    "name": "Lily Memory Plugin",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/kevinodell/lily-memory",
    "canonicalUrl": "https://clawhub.ai/kevinodell/lily-memory",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/lily-memory",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=lily-memory",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "CHANGELOG.md",
      "README.md",
      "SKILL.md",
      "index.js",
      "lib/budget.js",
      "lib/capture.js"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "lily-memory",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-04T23:28:30.979Z",
      "expiresAt": "2026-05-11T23:28:30.979Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=lily-memory",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=lily-memory",
        "contentDisposition": "attachment; filename=\"lily-memory-5.2.3.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "lily-memory"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/lily-memory"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/lily-memory",
    "downloadUrl": "https://openagent3.xyz/downloads/lily-memory",
    "agentUrl": "https://openagent3.xyz/skills/lily-memory/agent",
    "manifestUrl": "https://openagent3.xyz/skills/lily-memory/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/lily-memory/agent.md"
  }
}
```
## Documentation

### Lily Memory

Persistent memory plugin for OpenClaw agents. Gives your agent long-term memory that survives session resets, compaction, and restarts.

### What It Does

Auto-recall: Injects relevant memories as context before each LLM turn
Auto-capture: Extracts facts from conversations and stores them automatically
Hybrid search: SQLite FTS5 keyword search + Ollama vector cosine similarity
Stuck detection: Detects topic repetition and nudges the agent to break loops
Memory consolidation: Deduplicates entries on startup
Dynamic entities: Config-driven allowlist + runtime tool to add entities
Graceful degradation: Works without Ollama (keyword-only mode)
Minimal dependencies: Uses better-sqlite3 for secure parameterized queries + native fetch

### Requirements

Node.js 18+ (for native fetch)
better-sqlite3 npm package (installed via npm install)
Optional: Ollama with nomic-embed-text model for semantic search

### Quick Start

Install the plugin to your extensions directory
Add to your openclaw.json:

{
  "plugins": {
    "slots": { "memory": "lily-memory" },
    "entries": {
      "lily-memory": {
        "enabled": true,
        "config": {
          "dbPath": "~/.openclaw/memory/decisions.db",
          "entities": ["config", "system"]
        }
      }
    }
  }
}

Restart the gateway: openclaw gateway restart

### Tools

ToolDescriptionmemory_searchFTS5 keyword search across all factsmemory_entityLook up all facts for a specific entitymemory_storeSave a fact to persistent memorymemory_semantic_searchVector similarity search via Ollamamemory_add_entityRegister a new entity at runtime

### Configuration

OptionTypeDefaultDescriptiondbPathstring~/.openclaw/memory/decisions.dbSQLite database pathautoRecallbooleantrueInject memories before each turnautoCapturebooleantrueExtract facts from responsesmaxRecallResultsnumber10Max memories per turnmaxCapturePerTurnnumber5Max facts per responsestuckDetectionbooleantrueTopic repetition detectionvectorSearchbooleantrueOllama semantic searchollamaUrlstringhttp://localhost:11434Ollama endpointembeddingModelstringnomic-embed-textEmbedding modelconsolidationbooleantrueDedup on startupvectorSimilarityThresholdnumber0.5Min cosine similarityentitiesarray[]Additional entity names

### Architecture

Recall flow: Extract keywords from message -> FTS5 + vector search -> merge and deduplicate -> inject as context

Capture flow: Regex scan for entity: key = value patterns -> validate entity against allowlist -> store to SQLite -> async embed via Ollama

Stuck detection: Track top 5 content words per response -> Jaccard similarity -> if 3+ consecutive >60% overlap, inject Reflexion nudge

### License

MIT
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: kevinodell
- Version: 5.2.3
## Source health
- Status: healthy
- Item download looks usable.
- Yavira can redirect you to the upstream package for this item.
- Health scope: item
- Reason: direct_download_ok
- Checked at: 2026-05-04T23:28:30.979Z
- Expires at: 2026-05-11T23:28:30.979Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/lily-memory)
- [Send to Agent page](https://openagent3.xyz/skills/lily-memory/agent)
- [JSON manifest](https://openagent3.xyz/skills/lily-memory/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/lily-memory/agent.md)
- [Download page](https://openagent3.xyz/downloads/lily-memory)