# Send Brain CMS 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. 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. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "brain-cms",
    "name": "Brain CMS",
    "source": "tencent",
    "type": "skill",
    "category": "AI 智能",
    "sourceUrl": "https://clawhub.ai/harrey401/brain-cms",
    "canonicalUrl": "https://clawhub.ai/harrey401/brain-cms",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/brain-cms",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=brain-cms",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "SKILL.md",
      "brain_scripts/index_memory.py",
      "brain_scripts/nrem.py",
      "brain_scripts/query_memory.py",
      "brain_scripts/rem.py",
      "install.py"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "brain-cms",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-30T04:41:48.180Z",
      "expiresAt": "2026-05-07T04:41:48.180Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=brain-cms",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=brain-cms",
        "contentDisposition": "attachment; filename=\"brain-cms-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "brain-cms"
      },
      "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/brain-cms"
    },
    "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/brain-cms",
    "downloadUrl": "https://openagent3.xyz/downloads/brain-cms",
    "agentUrl": "https://openagent3.xyz/skills/brain-cms/agent",
    "manifestUrl": "https://openagent3.xyz/skills/brain-cms/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/brain-cms/agent.md"
  }
}
```
## Documentation

### Brain CMS 🧠

A neuroscience-inspired memory architecture for OpenClaw agents.
Replaces flat file injection with sparse, semantic, frequency-gated memory loading.

### What This Installs

memory/
├── INDEX.md          ← Hippocampus: topic router + cross-links
├── ANCHORS.md        ← Permanent high-significance event store
└── schemas/          ← Domain-specific semantic schemas (you create these)

memory_brain/
├── index_memory.py   ← Embeds schemas into LanceDB vector store
├── query_memory.py   ← Semantic similarity search
├── nrem.py           ← NREM sleep cycle (compression + anchor promotion)
├── rem.py            ← REM sleep cycle (LLM consolidation via Ollama)
└── vectorstore/      ← LanceDB database (auto-created)

### Setup (one-time)

# 1. Run the installer
python3 ~/.openclaw/workspace/skills/brain-cms/install.py

# 2. Index your schemas
cd ~/.openclaw/workspace/memory_brain
.venv/bin/python3 index_memory.py

# 3. Test retrieval
.venv/bin/python3 query_memory.py "your topic here" --sources-only

### How It Works

Boot sequence: Load MEMORY.md (lean core) + today's daily log. Nothing else.

When a topic appears: Read memory/INDEX.md → load only the relevant schemas (spreading activation). Check memory/ANCHORS.md for high-significance events.

For ambiguous topics: Run semantic search:

memory_brain/.venv/bin/python3 memory_brain/query_memory.py "message text" --sources-only

Auto-schema creation: When a new significant project or domain appears:

Create memory/<topic>.md
Add to INDEX.md with triggers + priority + cross-links
Re-index: memory_brain/.venv/bin/python3 memory_brain/index_memory.py

Sleep cycles:

# NREM — run on shutdown (~30s, no LLM)
cd ~/.openclaw/workspace/memory_brain && .venv/bin/python3 nrem.py

# REM — run weekly (2-5 min, uses local llama3.2:3b, free)
cd ~/.openclaw/workspace/memory_brain && .venv/bin/python3 rem.py

### Memory Layers (CMS)

LayerFilesWhen loadedPurposeWorkingMEMORY.md + today logEvery sessionCore contextEpisodicmemory/YYYY-MM-DD.mdSession bootRecent eventsSemanticmemory/*.md schemasOn triggerDomain knowledgeAnchorsmemory/ANCHORS.mdOn CRITICAL topicsPermanent ground truthVectormemory_brain/vectorstore/On demandSemantic search

### Tagging Anchors

In any daily log, tag high-significance events:

[ANCHOR] Major demo success — full pipeline working end-to-end

NREM auto-promotes these to ANCHORS.md on next shutdown.

### Token Savings

Typical MEMORY.md: 150-300 lines injected every session.
With Brain CMS: ~50-line core + schemas loaded only when relevant.
Estimated savings: 40-60% reduction in context tokens per session.

### Requirements

Python 3.10+
Ollama (for embeddings + REM consolidation)
500MB+ storage for vector store and models
lancedb, numpy, pyarrow, requests (auto-installed)
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: harrey401
- Version: 1.0.0
## 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-04-30T04:41:48.180Z
- Expires at: 2026-05-07T04:41:48.180Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/brain-cms)
- [Send to Agent page](https://openagent3.xyz/skills/brain-cms/agent)
- [JSON manifest](https://openagent3.xyz/skills/brain-cms/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/brain-cms/agent.md)
- [Download page](https://openagent3.xyz/downloads/brain-cms)