← 返回
AI智能 中文

BEE Belief Extraction Engine

Install and configure BEE — the Belief Extraction Engine for OpenClaw. Gives agents persistent structured memory across sessions. Auto-extracts beliefs at se...
为 OpenClaw 安装配置 BEE(信念提取引擎)。赋予智能体跨会话持久化结构化记忆。自动提取信念...
vashkartik
AI智能 clawhub v0.1.1 1 版本 99863.4 Key: 无需
★ 0
Stars
📥 731
下载
💾 12
安装
1
版本
#latest

概述

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

  • GitHub: https://github.com/skysphere-labs/openclaw-bee
  • npm: https://www.npmjs.com/package/@skysphere-labs/openclaw-bee
  • Built by Skysphere AI Labs

版本历史

共 1 个版本

  • v0.1.1 当前
    2026-03-29 14:42 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-intelligence

Proactive Agent

halthelobster
将AI智能体从任务执行者升级为主动预判需求、持续优化的智能伙伴。集成WAL协议、工作缓冲区、自主定时任务及实战验证模式。Hal Stack核心组件 🦞
★ 836 📥 213,187
ai-intelligence

Nano Banana Pro

steipete
使用 Nano Banana Pro (Gemini 3 Pro Image) 生成或编辑图像。支持文生图、图生图及 1K/2K/4K 分辨率,适用于图像创建、修改及编辑请求,使用 --input-image 指定输入图像。
★ 418 📥 115,240
ai-intelligence

ontology

oswalpalash
类型化知识图谱,用于结构化智能体记忆与可组合技能。支持创建/查询实体(人员、项目、任务、事件、文档)及关联...
★ 712 📥 243,883