Skip to content

blog: Persistent Memory for the Vercel AI SDK in Five Tools#2374

Merged
benfrank241 merged 2 commits into
mainfrom
blog/vercel-ai-sdk-persistent-memory
Jun 23, 2026
Merged

blog: Persistent Memory for the Vercel AI SDK in Five Tools#2374
benfrank241 merged 2 commits into
mainfrom
blog/vercel-ai-sdk-persistent-memory

Conversation

@benfrank241

Copy link
Copy Markdown
Member

Adds a dedicated integration blog post for the Vercel AI SDK (@vectorize-io/hindsight-ai-sdk). This was a genuine gap — the SDK is one of the largest audiences in the catalog and had zero dedicated coverage (only passing mentions in a release note and the chat post).

Post: hindsight-docs/blog/2026-06-23-vercel-ai-sdk-persistent-memory.md
Slug: /blog/2026/06/23/vercel-ai-sdk-persistent-memory
Title: "Persistent Memory for the Vercel AI SDK in Five Tools"

Angle

Unlike the hook-based integrations (Cline, MS Agent Framework), the AI SDK is a tool-calling framework, so memory is exposed as tools — the native idiom. The post's thesis is the integration's actual design strength: the semantic-vs-infrastructure split. The agent controls semantic inputs (what to remember / search / reflect on); the application locks infrastructure (bank ID, budget, tags, async) at construction. The model can't change the bank or blow the token budget.

Coverage

  • The five tools: retain, recall, reflect, getMentalModel, getDocument
  • Setup (Cloud + self-host via uvx hindsight-embed)
  • generateText, streamText, ToolLoopAgent, and a per-user Next.js route handler
  • Constructor options for tuning without touching the agent loop

Accuracy checklist

  • All code pulled from src/tools/index.ts, the README, and examples/integrations/ai-sdk.ts — signatures match (createHindsightTools({ client, bankId }), per-tool option groups)
  • Five tools + the agent/application input split verified against source and the docs page
  • 31/31 unit tests pass (vitest run)
  • npm run build green, no broken links from this post (the only build break on this branch is a pre-existing stray eliza WIP file unrelated to this PR)
  • Em-dash-free prose (the two are empty table-cell placeholders, matching the docs page)
  • Internal link /sdks/integrations/ai-sdk resolves; cross-links absolute

Open items

  • Placeholder cover at static/img/blog/vercel-ai-sdk-persistent-memory.png — swap for final art
  • Draft: flip out of draft when ready

🤖 Generated with Claude Code

benfrank241 and others added 2 commits June 23, 2026 10:06
Add a dedicated integration post for @vectorize-io/hindsight-ai-sdk.
Covers the five memory tools (retain, recall, reflect, getMentalModel,
getDocument), the semantic-vs-infrastructure input split, setup, and
generateText/streamText/ToolLoopAgent/Next.js usage. Placeholder cover.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@benfrank241 benfrank241 marked this pull request as ready for review June 23, 2026 18:27
@benfrank241 benfrank241 merged commit e4afa5a into main Jun 23, 2026
84 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.

1 participant