openclaw-bee

Install and configure BEE — the Belief Extraction Engine for OpenClaw. Gives agents persistent structured memory across sessions. Auto-extracts beliefs at session end, scopes by agent namespace, and injects recalled context on agent start. Use when: setting up agent memory, configuring belief persistence, or troubleshooting BEE. NOT for: general memory questions (use built-in memory tools instead).

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "openclaw-bee" with this command: npx skills add vashkartik/openclaw-bee

BEE — Belief Extraction Engine

Give your OpenClaw agents persistent, structured memory across sessions.

What BEE Does

BEE hooks into the OpenClaw lifecycle and:

  • Extracts beliefs at session end via a lightweight LLM call (Haiku by default)
  • Injects recalled context before every agent spawn
  • Scopes by namespace — each agent (VECTOR, FORGE, ORACLE, etc.) has isolated beliefs
  • Deduplicates — cosine similarity check prevents duplicate beliefs (>0.92 → merge)
  • Tracks spawns — monitors subagent budget per session

Beliefs live in a SQLite database (vector.db) and persist indefinitely across restarts.


Installation

Step 1 — Install the package

From npm (recommended):

npm install -g @skysphere-labs/openclaw-bee

From GitHub (latest):

npm install -g github:skysphere-labs/openclaw-bee

Step 2 — Configure openclaw.json

Add BEE to your extensions in ~/.openclaw/openclaw.json:

{
  "extensions": {
    "entries": {
      "bee": {
        "enabled": true,
        "config": {
          "dbPath": "~/.openclaw/workspace/state/vector.db",
          "agentId": "main",
          "extractionEnabled": true,
          "extractionModel": "anthropic/claude-haiku-4-5",
          "maxCoreBeliefs": 10,
          "maxActiveBeliefs": 5,
          "maxRecalledBeliefs": 5
        }
      }
    }
  }
}

Step 3 — Restart the gateway

openclaw gateway restart

BEE will run its database migration on first start and begin capturing beliefs.


Configuration Options

OptionDefaultDescription
dbPathrequiredPath to your SQLite database
agentId"main"Namespace for belief scoping
extractionEnabledtrueEnable/disable belief extraction
extractionModel"anthropic/claude-haiku-4-5"Model used for extraction (cheapest works well)
extractionMinConfidence0.55Minimum confidence to store a belief (0-1)
maxCoreBeliefs10Core beliefs injected into every session
maxActiveBeliefs5Recently active beliefs injected
maxRecalledBeliefs5Semantically recalled beliefs per query
maxOutputChars2000Max chars of belief context injected
debugfalseEnable verbose logging
spawnBudgetWarning20Warn when subagent spawns exceed this threshold

Verifying It Works

After restart, ask your agent:

"How many beliefs do you have?"

Or check directly:

sqlite3 ~/.openclaw/workspace/state/vector.db "SELECT COUNT(*) FROM beliefs"

You should see beliefs accumulate after sessions complete.


Multi-Agent Setup

For setups with multiple named agents (VECTOR, FORGE, ORACLE, etc.), use different agentId values per agent spawn. BEE scopes beliefs by agentId so each PM has isolated memory.


Source

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Automation

Evolver Local

A self-evolution engine for AI agents. Analyzes runtime history to identify improvements and applies protocol-constrained evolution.

Registry SourceRecently Updated
Automation

Entrepreneur PM Framework

企业家 PM 思维框架 Skill — 面向 Leevar 团队管理层。激活场景:(1) 分配 Agent 处理复杂多步骤任务,(2) 确保 Agent 精准理解并达成用户目标,(3) 让 Agent 100% 按任务需求调用已掌握的 Skill,(4) 促进管理层持续学习和经验积累,(5) 任何涉及"如何更好地...

Registry SourceRecently Updated
Automation

Nervix Onboarding

Use this skill when onboarding a new agent or operator into Nervix, verifying live federation prerequisites, enrolling through the Nervix flow, and preparing...

Registry SourceRecently Updated
Automation

moltbook

The social network for AI agents. Post, comment, upvote, and create communities.

Registry SourceRecently Updated