# Send triple-memory-baidu-embedding to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Then review README.md for any prerequisites, environment setup, or post-install checks. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Then review README.md for any prerequisites, environment setup, or post-install checks. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "triple-memory-baidu-embedding",
    "name": "triple-memory-baidu-embedding",
    "source": "tencent",
    "type": "skill",
    "category": "效率提升",
    "sourceUrl": "https://clawhub.ai/xqicxx/triple-memory-baidu-embedding",
    "canonicalUrl": "https://clawhub.ai/xqicxx/triple-memory-baidu-embedding",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/triple-memory-baidu-embedding",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=triple-memory-baidu-embedding",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "CREDITS.md",
      "install.sh",
      "README.md",
      "USAGE_EXAMPLES.md",
      "SKILL.md",
      "configure.sh"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-30T16:55:25.780Z",
      "expiresAt": "2026-05-07T16:55:25.780Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
        "contentDisposition": "attachment; filename=\"network-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/triple-memory-baidu-embedding"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/triple-memory-baidu-embedding",
    "downloadUrl": "https://openagent3.xyz/downloads/triple-memory-baidu-embedding",
    "agentUrl": "https://openagent3.xyz/skills/triple-memory-baidu-embedding/agent",
    "manifestUrl": "https://openagent3.xyz/skills/triple-memory-baidu-embedding/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/triple-memory-baidu-embedding/agent.md"
  }
}
```
## Documentation

### Triple Memory System with Baidu Embedding

A comprehensive memory architecture combining three complementary systems for maximum context retention across sessions, with full privacy protection using Baidu Embedding technology.

### 📋 Original Source & Modifications

Original Source: Triple Memory (by Clawdbot Team)
Modified By: [Your Clawdbot Instance]
Modifications: Replaced LanceDB with Baidu Embedding DB for enhanced privacy and Chinese language support

Original Triple Memory SKILL.md was adapted to create this version that:

Replaces OpenAI-dependent LanceDB with Baidu Embedding DB
Maintains the same three-tier architecture
Preserves Git-Notes integration
Adds privacy-focused local storage

### 🏗️ Architecture Overview

User Message
     ↓
[Baidu Embedding auto-recall] → injects relevant conversation memories
     ↓
Agent responds (using all 3 systems)
     ↓
[Baidu Embedding auto-capture] → stores preferences/decisions automatically
     ↓
[Git-Notes] → structured decisions with entity extraction
     ↓
[File updates] → persistent workspace docs

### 1. Baidu Embedding (Conversation Memory)

Auto-recall: Relevant memories injected before each response using Baidu Embedding-V1 (requires API credentials)
Auto-capture: Preferences/decisions/facts stored automatically with local vector storage (requires API credentials)
Privacy Focused: All embeddings processed via Baidu API with local storage
Chinese Optimized: Better understanding of Chinese language semantics
Tools: baidu_memory_recall, baidu_memory_store, baidu_memory_forget (require API credentials)
Triggers: "remember", "prefer", "my X is", "I like/hate/want"
Note: When API credentials are not provided, this layer is unavailable and the system operates in degraded mode.

### 2. Git-Notes Memory (Structured, Local)

Branch-aware: Memories isolated per git branch
Entity extraction: Auto-extracts topics, names, concepts
Importance levels: critical, high, normal, low
No external API calls

### 3. File Search (Workspace)

Searches: MEMORY.md, memory/*.md, any workspace file
Script: scripts/file-search.sh

### Install Dependencies

clawdhub install git-notes-memory
clawdhub install memory-baidu-embedding-db

### Configure Baidu API

Set environment variables:

export BAIDU_API_STRING='your_bce_v3_api_string'
export BAIDU_SECRET_KEY='your_secret_key'

### Create File Search Script

Copy scripts/file-search.sh to your workspace.

### Session Start (Always)

python3 skills/git-notes-memory/memory.py -p $WORKSPACE sync --start

### Store Important Decisions

python3 skills/git-notes-memory/memory.py -p $WORKSPACE remember \\
  '{"decision": "Use PostgreSQL", "reason": "Team expertise"}' \\
  -t architecture,database -i h

### Search Workspace Files

./scripts/file-search.sh "database config" 5

### Baidu Embedding Memory (Automatic)

Baidu Embedding handles this automatically when API credentials are available. Manual tools:

baidu_memory_recall "query" - search conversation memory using Baidu vectors (requires API credentials)
baidu_memory_store "text" - manually store something with Baidu embedding (requires API credentials)
baidu_memory_forget - delete memories (GDPR, requires API credentials)

In Degraded Mode (without API credentials):

System operates using only Git-Notes and File System layers
Manual tools are unavailable
Auto-recall and auto-capture are disabled

### 🎯 Importance Levels

FlagLevelWhen to Use-i cCritical"always remember", explicit preferences-i hHighDecisions, corrections, preferences-i nNormalGeneral information-i lLowTemporary notes

### 📋 When to Use Each System

SystemUse ForBaidu EmbeddingConversation context, auto-retrieval with privacyGit-NotesStructured decisions, searchable by entity/tagFile SearchWorkspace docs, daily logs, MEMORY.md

### 📁 File Structure

workspace/
├── MEMORY.md              # Long-term curated memory
├── memory/
│   ├── active-context.md  # Current session state
│   └── YYYY-MM-DD.md      # Daily logs
├── scripts/
│   └── file-search.sh     # Workspace search
└── skills/
    ├── triple-memory-baidu-embedding/  # Enhanced memory system
    ├── git-notes-memory/  # Structured memory
    └── memory-baidu-embedding-db/  # Vector storage

### 🔧 Hook Integration

This skill can be integrated with Clawdbot's startup hooks for automatic initialization:

### Memory Boot Hook Integration

To ensure the Triple Memory Baidu system starts automatically when the gateway starts:

The memory-boot-loader hook can be configured to run /root/clawd/session-init-triple-baidu.sh
This ensures all three memory layers are initialized on startup
Provides immediate access to Git-Notes, Baidu Embedding, and file-based memory

### Configuration

The system can be integrated with the gateway startup sequence to ensure:

Git-Notes synchronization on startup
Baidu Embedding connection check
File-based memory initialization
Ready-to-use memory system from the start

### 🤫 Silent Operation

Never announce memory operations to users. Just do it:

❌ "I'll remember this"
❌ "Saving to memory"
✅ (silently store and continue)

### 🔄 Migration from Original Triple Memory

Install this skill in your skills/ directory
Configure your Baidu API credentials
Disable original triple-memory if desired
Update your bot configuration to use this memory system
Verify data integrity and performance

### 📈 Performance Benefits

Enhanced Privacy: All vector storage local with Baidu API
Better Chinese Support: Baidu Embedding optimized for Chinese
Reduced Costs: Potentially lower API costs compared to OpenAI
Same Architecture: Maintains proven three-tier design

### 🤝 Contributing

Based on original Triple Memory system by Clawdbot Team. Contributions welcome to enhance the Baidu Embedding integration.

### 📄 License

Original license applies with modifications noted above. Credit given to original authors.
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: xqicxx
- Version: 1.0.0
## Source health
- Status: healthy
- Source download looks usable.
- Yavira can redirect you to the upstream package for this source.
- Health scope: source
- Reason: direct_download_ok
- Checked at: 2026-04-30T16:55:25.780Z
- Expires at: 2026-05-07T16:55:25.780Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/triple-memory-baidu-embedding)
- [Send to Agent page](https://openagent3.xyz/skills/triple-memory-baidu-embedding/agent)
- [JSON manifest](https://openagent3.xyz/skills/triple-memory-baidu-embedding/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/triple-memory-baidu-embedding/agent.md)
- [Download page](https://openagent3.xyz/downloads/triple-memory-baidu-embedding)