记忆

Synapse Layer

试用

Provides persistent, encrypted AI agent memory with a 4-layer security pipeline for storing, retrieving, sharing, and analyzing agent memories.

它能做什么

Synapse Layer provides persistent, encrypted memory for AI agents with a 4-layer security pipeline.

技能文档

Synapse Layer Skill

Synapse Layer provides persistent, encrypted memory for AI agents with a 4-layer security pipeline.

Quick Setup

Install and use:

pip install synapse-layer
from synapse_test import SynapseClient

client = SynapseClient(api_key="sk_connect_...")

# Save memory
result = client.remember("User prefers dark mode", agent="mel")

# Retrieve memories
memories = client.recall("user preferences", agent="mel")

See scripts/synapse_client.py for a complete client implementation.

MCP Integration (External Tools)

Add to OpenClaw gateway config for external MCP clients:

{
  "mcp": {
    "servers": {
      "synapse-layer": {
        "url": "https://forge.synapselayer.org/mcp",
        "headers": {
          "Authorization": "Bearer sk_connect_YOUR_API_KEY"
        }
      }
    }
  }
}

Note: This is for external MCP clients (Claude Desktop, Cursor) to connect to SynapseLayer, not for OpenClaw agents to use directly.

Available Tools

Once configured via Python SDK, these operations are available:

  • save_to_synapse - Store memory with full security pipeline
  • recall - Retrieve memories ranked by Trust Quotient™
  • search - Cross-agent memory search with full-text matching
  • process_text - Auto-detect decisions, milestones, and alerts
  • health_check - System health, version, and capability report

Cognitive Security Pipeline

Every memory passes through 4 non-bypassable layers:

  1. Semantic Privacy Guard™ - 15+ regex patterns detect PII, secrets, credentials
  2. Intelligent Intent Validation™ - Two-step categorization with self-healing
  3. AES-256-GCM Encryption - Authenticated encryption with PBKDF2 key derivation
  4. Differential Privacy - Calibrated Gaussian noise on embeddings

Key Concepts

Trust Quotient™ (TQ)

Score (0-1) ranking memory reliability. Higher TQ = more trusted memory.

Cross-Agent Memory

Memories can be shared across agents using the same agent_id or cross-agent search.

Storage Backends

  • Remote (Forge) - PostgreSQL via forge.synapselayer.org (recommended)
  • SQLite - Local .synapse/memories.db (requires local setup)

Usage Patterns

Basic Memory Operations

Use the Python SDK client:

from scripts.synapse_client import SynapseClient

client = SynapseClient(api_key="sk_connect_...")

# Save
client.remember("Important decision", agent="mel", importance=5)

# Recall
memories = client.recall("recent decisions", agent="mel", limit=5)

# Search
all_memories = client.search("project deadlines", limit=10)

Process Text Automatically

Extract events from free-form text:

events = client.process_text(
    "Decided to use PostgreSQL. Deadline is May 1st.",
    agent="hermes",
    project="website-redesign"
)

Security Considerations

Data Privacy

  • PII automatically redacted before storage
  • All data encrypted at rest (AES-256-GCM)
  • Differential privacy protects individual entries
  • Zero-knowledge architecture

Resilience Strategy

Recommended approach for production:

  1. Use SynapseLayer as primary memory store
  2. Keep OpenClaw's MEMORY.md/memory/ as backup
  3. Monitor service health via health_check
  4. Have fallback procedure if service unavailable

Troubleshooting

Connection Issues

  1. Run health_check to verify connectivity
  2. Verify API key is valid
  3. Check network access to forge.synapselayer.org

Memory Not Persisting

  1. Check API key permissions
  2. Verify security pipeline didn't reject content
  3. Review Trust Quotient in response

Low Trust Quotient

  1. Review security pipeline logs
  2. Increase confidence/importance scores
  3. Check if content was sanitized

Testing

Use the test script:

python3 /app/skills/synapse-layer/scripts/synapse_test.py

This script verifies:

  • Service connectivity (health_check)
  • Basic save operations
  • Memory retrieval
  • Cross-agent search

Reference Documentation

For more details, see:

  • API Reference - Complete tool documentation
  • Security Details - Deep dive on security pipeline
  • Framework Integrations - Integration guides
  • Python Client - Ready-to-use SDK wrapper

相关技能

在本地磁盘以分类纯 Markdown 文件保存需要长期留存的事实,与智能体内置记忆并存。

作者 Iván555 次安装18 星标

以 AI 机器人身份加入视频会议,提供语音、虚拟形象与屏幕共享四种模式。

作者 johnpatternai21 次安装8 星标

通过一个命令行工具完成多链加密货币交易、钱包管理与 AI 市场分析。

作者 lowesyang162 次安装109 星标

按用户明确指令,在得到大脑(Get笔记)中保存、搜索并管理笔记与知识库。

作者 iswalle763 次安装66 星标

从 AdMapix API 拉取广告创意、应用、榜单和收入预估等数据,原样返回结构化 JSON。

作者 fly0pants4.3k 次安装296 星标

诊断生产力系统反复失效的根因,给出最小干预——容量测算、瓶颈定位、可靠的本地记录。

作者 Iván854 次安装69 星标

rafacpti23 的更多技能

浏览全部技能

PAPI WhatsApp Cloud API - Envio e automação de mensagens WhatsApp (texto, PTT áudio de voz, mídias, botões interativos, enquetes, listas e webhooks).

作者 rafacpti23100 次安装2 星标

Automate WhatsApp messaging, interactive content, instance and group management, catalogs, and webhooks via a scalable microservices API with an admin panel.

作者 rafacpti2393 次安装1 星标

Zero-Knowledge persistent memory layer for Hermes Agent. Provides encrypted cross-session memory, Trust Quotient (TQ) scoring, and automatic recall across AL...

作者 rafacpti2316 次安装1 星标

Subagente autônomo especialista em Meta Ads. Cria campanhas completas via MCP (Super Prompt), gera criativos com IA, monitora métricas (CPA/ROAS/CTR), executa otimizações, pausa anúncios ruins e alerta via Papi. Suporta multi-contas de anúncios.

作者 rafacpti232 次安装

Ferramenta de integração com o GoHighLevel (GHL) API v2. Permite gerenciar contatos, mover cartões no Kanban, identificar leads sem resposta, adicionar contatos a fluxos, ENVIAR MENSAGENS DIRETAS e receber novos leads instantaneamente via WEBHOOK.

作者 rafacpti231 次安装

Motor autônomo de redação direta e criativos visuais de alta conversão para Meta Ads via Habilis MCP Gateway (https://xvix.com.br). Gera variações AIDA/PAS e publica criativos.

作者 rafacpti231 次安装