Search

PythonReactSEOPDF
OpenClaw

Brain Cms

Brain CMS ๐Ÿง 

harrey4010 source installsโ˜† 0 Repository stars

Installation

Follow the repository instructions for this skill and your agent. Review the files and dependencies before adding it to your workflow.

SkillHub CLI

skillhub install harrey401/brain-cms

Inspect the source and compatibility requirements, then follow its installation steps.

Give your agent the source link and ask it to inspect instructions and dependencies before explaining the installation steps.

View source โ†—Guides

Skill instructions

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:

  1. Create memory/<topic>.md
  2. Add to INDEX.md with triggers + priority + cross-links
  3. 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)

| Layer | Files |...

Source information

Source
github
Repository
openclaw/skills
Path
skills/harrey401/brain-cms
Version
โ€”
Commit
ab919da9a4e056701446b1739df976457d446ac7
Classification source
rules
Status
active
Visibility
public

These signals come from indexed source analysis and may lag behind changes. Check the current source files.

Extracted content

SKILL.md
# 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)

```bash
# 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:
```bash
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:
1. Create `memory/<topic>.md`
2. Add to INDEX.md with triggers + priority + cross-links
3. Re-index: `memory_brain/.venv/bin/python3 memory_brain/index_memory.py`

**Sleep cycles:**
```bash
# 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)

| Layer | Files |...

Related skills

OpenClaw

ai-maestro

23blocks-os

AI Agent Orchestrator with Skills System - Give AI Agents superpowers: memory search, code graph queries, agent-to-agent messaging. Manage Claude, Codex or any AI Agent from one dashboard. Move Agents between c...

OpenClaw

registry-broker-skills

hashgraph-online

AI agent skills for the Universal Registry - search, chat, and register 72,000+ agents across 14+ protocols. Works with Claude, Codex, Cursor, OpenClaw, and any AI assistant.

OpenClaw

skills-manager

rito-w

A cross-platform skills manager for AI IDEs. Search marketplace, download locally, and install to Claude, Cursor, Windsurf, and more with one click.