docs(examples): secure agent memory with Hindsight#1148
Open
DK09876 wants to merge 1 commit into
Open
Conversation
|
@DK09876 is attempting to deploy a commit to the Superagent Team on Vercel. A member of the Team first needs to authorize it. |
Author
|
Hi @homanp — friendly bump on this one. It adds a docs example for securing agent memory with Hindsight. Happy to make any changes you'd like; just let me know if anything needs adjusting before merge. Thanks! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds an example showing how to use Superagent Guard + Redact to protect an agent's long-term memory — blocking prompt-injection payloads and stripping PII before content is stored, and guarding queries before recall.
It uses Hindsight (open-source memory engine) via the
hindsight-superagentSafeHindsightwrapper, which applies Superagent safety checks around each memory operation. Directly analogous to the existingsecure-rag-pipelineexample, for the memory write/read path.docs/content/docs/sdk/examples/secure-agent-memory.mdxPython example (uses your Python SDK under the hood). Happy to adjust framing or move it.
Note
Low Risk
Documentation-only addition with no runtime, auth, or application code changes.
Overview
Adds a new SDK docs example page
secure-agent-memory.mdxthat walks through protecting long-term agent memory with Superagent Guard and Redact via Hindsight’sSafeHindsightwrapper (hindsight-superagent).The page covers prerequisites, install/env setup, a full
retain/recallPython sample (guard + redact on write, guard on read), a short flow diagram,retain_batchbehavior (whole batch aborted if Guard blocks any item), and links to PyPI, integration source, and the Python SDK.Note: The diff only adds the MDX file; it does not update
docs/content/docs/sdk/meta.json, so the page may not appear in the examples nav until that is added separately.Reviewed by Cursor Bugbot for commit 13037a6. Bugbot is set up for automated code reviews on this repo. Configure here.