Skip to content

cookbook: add Superagent safe memory notebook#30

Draft
DK09876 wants to merge 6 commits into
mainfrom
cookbook/superagent-safe-memory
Draft

cookbook: add Superagent safe memory notebook#30
DK09876 wants to merge 6 commits into
mainfrom
cookbook/superagent-safe-memory

Conversation

@DK09876
Copy link
Copy Markdown
Contributor

@DK09876 DK09876 commented Apr 17, 2026

Summary

  • Adds notebook 11-superagent-safe-memory.ipynb demonstrating the hindsight-superagent integration
  • Covers SafeHindsight setup, retain with PII redaction, recall, guard blocking prompt injection, reflect, selective safety config, and global configuration

Test plan

  • Run notebook end-to-end with live Hindsight + Superagent API keys
  • Verify all cells execute without errors

🤖 Generated with Claude Code

DK09876 and others added 6 commits April 17, 2026 08:40
Demonstrates hindsight-superagent integration with Guard (prompt injection
detection) and Redact (PII removal) wrapping Hindsight memory operations.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Package is not yet on PyPI. Switch install cell to install from the
repo directly, with a comment showing the PyPI command for later.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Superagent's hosted guard endpoints are currently unavailable. Use
openai/gpt-4o-mini for both guard and redact models. Update all
SafeHindsight examples including selective safety and global config.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Disable guard on retain (OpenAI models over-classify PII content)
- Point install at feat/superagent-integration branch
- Change guard demo from retain to recall (where guard is active)
- Add guard_model to all SafeHindsight examples

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
gpt-4.1-nano eliminates false positives on PII content, so guard can
run on all operations without blocking legitimate input.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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.

1 participant