Skip to content

Add Hindsight Claude Agent SDK memory integration#699

Open
DK09876 wants to merge 1 commit into
anthropics:mainfrom
DK09876:add-hindsight-claude-agent-sdk
Open

Add Hindsight Claude Agent SDK memory integration#699
DK09876 wants to merge 1 commit into
anthropics:mainfrom
DK09876:add-hindsight-claude-agent-sdk

Conversation

@DK09876

@DK09876 DK09876 commented Jun 9, 2026

Copy link
Copy Markdown

Adds a third_party/Hindsight/ cookbook showing how to give a Claude Agent SDK agent long-term memory that persists across sessions, using Hindsight (open-source, MIT) via the hindsight-claude-agent-sdk package.

The notebook demonstrates both integration patterns:

  • In-process MCP toolshindsight_retain / hindsight_recall / hindsight_reflect, called explicitly by the agent.
  • Automatic memory hooks — relevant memories injected before each prompt (UserPromptSubmit) and the result retained afterward (Stop), with no explicit tool calls — so knowledge compounds across sessions.

Changes

  • third_party/Hindsight/claude_agent_sdk_memory.ipynb — the cookbook (passes scripts/validate_notebooks.py)
  • third_party/Hindsight/README.md — directory front page (mirrors existing third_party/* READMEs)
  • registry.yaml — entry, categories [Integrations, Claude Agent SDK]
  • authors.yaml — author entry

The notebook requires a running Hindsight instance (Docker one-liner included, or free Hindsight Cloud) and the Claude Code CLI, so cells aren't executed in CI — consistent with other third_party/ integrations (MongoDB, Pinecone, VoyageAI) that need external accounts/keys. Happy to adjust framing or scope.

@DK09876

DK09876 commented Jun 15, 2026

Copy link
Copy Markdown
Author

Friendly bump on this — it adds a Hindsight + Claude Agent SDK memory integration cookbook. Happy to make any changes if a maintainer has feedback. Thanks!

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