Skip to content

Conversation

@Prasanna721
Copy link
Collaborator

feat: add Supermemory memory plugin for Clawdbot

Supermemory Plugin — long-term memory for Clawdbot

Changes:

  • Auto-recall hook injects relevant memories + user profile into context before every AI turn
  • Auto-capture hook stores conversation turns after each agent interaction, strips injected tags before saving
  • 4 AI tools: supermemory_search, supermemory_store, supermemory_forget, supermemory_profile
  • 2 slash commands: /remember (save to memory), /recall (search memories)
  • 3 CLI commands: supermemory search, supermemory profile, supermemory wipe (bulk delete with confirmation)
  • Supermemory SDK client with input validation, content sanitization, and metadata enforcement
  • Request integrity headers (HMAC-SHA256 signing) for server-side plugin access verification
  • Configurable capture modes: all (filters short texts, strips injected context) vs everything (raw)
  • Memory deduplication across static profile, dynamic context, and search results during recall
  • Automatic memory category detection (preference, fact, decision, entity)
  • Container tag scoping per hostname for multi-machine isolation
  • Session-based document IDs for grouping conversation memories
  • Profile injection frequency control (full profile every N turns, search results every turn)
  • Structured logger with debug mode for API request/response tracing
  • Environment variable resolution in config (${SUPERMEMORY_API_KEY})
  • Compiled validation module (lib/validate.js) with API key format checks, content sanitization, metadata limits

biome ci fix

Supermemory Plugin — long-term memory for Clawdbot

  Changes:

  - Auto-recall hook injects relevant memories + user profile into context before every AI turn
  - Auto-capture hook stores conversation turns after each agent interaction, strips injected <supermemory-context> tags before saving
  - 4 AI tools: supermemory_search, supermemory_store, supermemory_forget, supermemory_profile
  - 2 slash commands: /remember (save to memory), /recall (search memories)
  - 3 CLI commands: supermemory search, supermemory profile, supermemory wipe (bulk delete with confirmation)
  - Supermemory SDK client with input validation, content sanitization, and metadata enforcement
  - Request integrity headers (HMAC-SHA256 signing) for server-side plugin access verification
  - Configurable capture modes: all (filters short texts, strips injected context) vs everything (raw)
  - Memory deduplication across static profile, dynamic context, and search results during recall
  - Automatic memory category detection (preference, fact, decision, entity)
  - Container tag scoping per hostname for multi-machine isolation
  - Session-based document IDs for grouping conversation memories
  - Profile injection frequency control (full profile every N turns, search results every turn)
  - Structured logger with debug mode for API request/response tracing
  - Environment variable resolution in config (${SUPERMEMORY_API_KEY})
  - Compiled validation module (lib/validate.js) with API key format checks, content sanitization, metadata limits
Copy link
Collaborator Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@Prasanna721 Prasanna721 self-assigned this Jan 27, 2026
@Prasanna721 Prasanna721 requested a review from Dhravya January 27, 2026 21:16
@Prasanna721 Prasanna721 marked this pull request as ready for review January 27, 2026 21:16
@Dhravya Dhravya merged commit 2c33daa into main Jan 27, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants