mirror of
https://github.com/supermemoryai/supermemory.git
synced 2026-05-17 21:11:04 +00:00
adds withSupermemory wrapper and input/output processors for
mastra agents:
- input processor fetches and injects memories into system prompt
before llm calls
- output processor saves conversations to supermemory after
responses
- supports profile, query, and full memory search modes
- includes custom prompt templates and requestcontext support
const agent = new Agent(withSupermemory(
{ id: "my-assistant", model: openai("gpt-4o"), instructions:
"..." },
"user-123",
{ mode: "full", addMemory: "always", threadId: "conv-456" }
))
includes docs as well
this pr also reworks how the tools package works into shared modules
|
||
|---|---|---|
| .. | ||
| opts | ||
| 232.png | ||
| add-gmail-node-zapier.png | ||
| anthropic-1.svg | ||
| bearer-auth-add-n8n.png | ||
| claude-code-icon.svg | ||
| claude-code-supermemory.png | ||
| connectors-flow.png | ||
| core-http-req.png | ||
| create-api.png | ||
| dev-platform-api-keys.png | ||
| dev-platform-copy-key.png | ||
| dev-platform-create-key.png | ||
| dev-platform-login.png | ||
| doc-to-memory-process.png | ||
| gmail-content.png | ||
| gmail-trigger.png | ||
| graph-view.png | ||
| hero-dark.svg | ||
| hero-light.svg | ||
| infinite-context.png | ||
| make-zap.png | ||
| map-content-to-gmail.png | ||
| mastra-icon.svg | ||
| memories-inferred.png | ||
| memory-graph.png | ||
| openai.svg | ||
| openclaw-logo.jpg | ||
| opencode-logo.png | ||
| overview-image.png | ||
| pipecat.svg | ||
| pipeline.png | ||
| process.png | ||
| processing.png | ||
| query-rewriting.png | ||
| quickstart-icon.svg | ||
| rerank.png | ||
| Screenshot 2025-06-19 at 3.50.20 PM.png | ||
| Screenshot 2025-07-05 at 7.16.18 PM (2).png | ||
| Screenshot 2025-07-05 at 7.16.18 PM (3).png | ||
| Screenshot 2025-07-05 at 7.16.18 PM.png | ||
| Screenshot 2025-07-05 at 7.16.22 PM (2).png | ||
| Screenshot 2025-07-05 at 7.16.22 PM (3).png | ||
| Screenshot 2025-07-05 at 7.16.22 PM.png | ||
| sm-header.png | ||
| static-dynamic-profile.png | ||
| supermemory.svg | ||
| transparent-proxy.png | ||
| zapier-output.png | ||