← 返回
未分类 中文

Synapse

Self-learning memory engine for OpenClaw agents. Analyzes agent interactions, extracts operator intelligence, updates structured profiles, and improves recal...
用于 OpenClaw 代理的自学习记忆引擎。分析代理交互,提取操作员智能,更新结构化画像,并提升重新校准...
shadoprizm shadoprizm 来源
未分类 clawhub v1.1.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 447
下载
💾 0
安装
1
版本
#intelligence#latest#learning#memory#patterns#preferences#profile

概述

Synapse — Self-Learning Memory Engine

Augments OpenClaw's built-in memory system with structured learning, preference tracking, and cross-session intelligence. Does NOT replace memory_search/memory_get — enhances them.

Core Principles

  • Use existing OpenClaw memory tools firstmemory_search and memory_get are the primary read path
  • Synapse adds structure on top — profiles, preferences, patterns, learning logs
  • Never fabricate memories — only store what was explicitly stated or directly observed
  • Quiet learning — note observations without being asked, but inform the user briefly

Memory Architecture

~/.openclaw/workspace-astra/memory/synapse/
├── profile.json          # Structured operator profile (facts, preferences, patterns)
├── preferences.json      # Tracked preferences with confidence scores
├── patterns.jsonl        # Append-only pattern detection log
├── daily/                # Daily learning cycle outputs
│   └── YYYY-MM-DD.md     # What was learned today
└── associations.json     # Cross-reference map (topic → related memories)

Workflow

On Any Conversation

  1. Scan for learnable signals:
    • Explicit statements: "I prefer X", "I don't like Y", "Remember that..."
    • Implicit signals: repeated corrections, consistent tool choices, time-of-day patterns
    • Decision patterns: chosen option vs rejected alternatives
  1. Extract and classify:
    • Fact — verifiable statement ("I work at DGA EPM")
    • Preference — subjective choice ("I prefer TypeScript over Python")
    • Pattern — behavioral trend ("always asks for cost estimates before builds")
    • Correction — prior information updated ("actually, it's Teya not Matea in casual context")
  1. Store in appropriate file using write or edit tool

Learning Cycles (Triggered by cron or on-demand)

  1. Read last 24h of session transcripts (if accessible)
  2. Scan MEMORY.md for new entries
  3. Check daily memory notes (memory/YYYY-MM-DD.md)
  4. Extract new intelligence from steps above
  5. Update profile.json with incremental changes
  6. Write daily log to daily/YYYY-MM-DD.md
  7. Surface summary: "Learned X new facts, Y preferences updated, Z patterns detected"

Recall Flow

  1. Always try memory_search first for general queries
  2. For profile-specific queries ("what are my preferences?"), read profile.json
  3. For pattern queries ("what have I been working on?"), scan daily/ logs
  4. Cross-reference associations.json for related topics

Profile Structure (profile.json)

{
  "version": 1,
  "lastUpdated": "ISO-8601",
  "facts": {
    "name": "shadoprizm",
    "location": "Ottawa, Ontario",
    "timezone": "EST"
  },
  "preferences": [
    {
      "category": "communication",
      "item": "direct, no fluff",
      "confidence": 0.95,
      "source": "explicit",
      "firstSeen": "ISO-8601",
      "lastConfirmed": "ISO-8601"
    }
  ],
  "patterns": [
    {
      "description": "Always asks for cost before deploying paid agents",
      "frequency": 12,
      "confidence": 0.9
    }
  ],
  "corrections": [
    {
      "from": "Matea",
      "to": "Teya (casual) / Matea (formal)",
      "date": "ISO-8601"
    }
  ]
}

Constraints

  • Do NOT store sensitive information (passwords, API keys, tokens)
  • Do NOT fabricate memories — if unsure, note low confidence
  • Do NOT replace MEMORY.md — Synapse is a supplement
  • Maximum 200 preferences tracked (oldest/lowest-confidence pruned first)
  • Daily logs older than 90 days archived to daily/archive/

Integration with OpenClaw Memory

Query TypePrimary ToolSynapse Supplement
---------
General knowledgememory_search
Operator preferencesmemory_searchprofile.jsonStructured preference data
Behavioral patternsmemory_searchpatterns.jsonlTrend analysis
Daily activitymemory/YYYY-MM-DD.mddaily/YYYY-MM-DD.md (learned items)
Cross-session contextmemory_searchassociations.json

Daily Learning Prompt Template

When running a learning cycle:

Review recent interactions and extract:
1. New facts learned about the operator
2. Preference signals (explicit or implicit)
3. Behavioral patterns observed
4. Corrections to prior knowledge
5. Topics of recurring interest

Update profile.json, write daily/YYYY-MM-DD.md, do NOT fabricate.

版本历史

共 1 个版本

  • v1.1.0 当前
    2026-05-03 11:13 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-agent

Self-Improving + Proactive Agent

ivangdavila
自我反思+自我批评+自我学习+自组织记忆。智能体评估自身工作、发现错误并持续改进。
★ 1,394 📥 322,231
it-ops-security

CyberLens Security Scanner

shadoprizm
使用本地快速网站扫描和 CyberLens 云端分析,扫描网站、GitHub 仓库和 Claw Hub 技能,发现实际安全问题。
★ 1 📥 483
ai-agent

Find Skills

guipi888
场景驱动+关键词双模式技能发现工具。当用户用自然语言描述场景/需求(如"我想做一个海报""帮我分析股票"),或明确说"安装技能/find skills/找个skill"时,自动从官方内置、本地已安装、SkillHub、虾评、GitHub、C
★ 1,459 📥 507,175