Install any skill in seconds. Free to start, no credit card required.
Get Started Free →tanstack/tanstack-ai-memory-hindsight
Use when wiring hindsight() from @tanstack/ai-memory/hindsight — a hosted memory adapter that buckets memory per conversation and exposes retain/recall/reflect tools to the model. Requires the optional @vectorize-io/hindsight-client peer.
Passed 22 of 23 test cases with the skill, and 6 of 23 without it.
and 21 more in the full report
17 fixed7 passed either way1 still failing0 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 15 test cases the skill fixed. Same model, same prompt, with and without the skill.
When memoryMiddleware invokes recall on the Hindsight adapter, what exact three tool names are returned in the adapter payload for the LLM to interact with memory?
| Checked | Without skill | With skill |
|---|---|---|
| Prefixes memory tool names with hindsight_ | Missed | Passed |
| Includes hindsight_reflect for long-term memory reflection | Missed | Passed |
The instructions your model reads when the skill loads.
Hosted recall/save adapter backed by Hindsight. Hindsight owns extraction and
ranking server-side, buckets memory into per-conversation "banks"
({tenantId|_}__{user}__{threadId}), and — uniquely — exposes LLM tools through recall so the
model can retain/recall/reflect directly.
import { memoryMiddleware } from '@tanstack/ai-memory'
import { hindsight } from '@tanstack/ai-memory/hindsight'
// Build per request from the server-validated session — never from req.body.
function memoryFor(session: { userId: string; threadId: string }) {
const memory = hindsight({ user: session.userId }) // baseUrl defaults to HINDSIGHT_URL
return memoryMiddleware({
adapter: memory,
scope: { threadId: session.threadId, userId: session.userId },
})
}
@vectorize-io/hindsight-client is an optional peer dependency, loaded lazily on
first use — install it where you use hindsight().
user — durable user id for the bank key (falls back to scope.userId).baseUrl — Hindsight server URL (default HINDSIGHT_URL or http://localhost:8888).budget — recall budget: 'low' | 'mid' | 'high' (default 'mid').onToolRetain / onToolRecall — callbacks fired when the model uses the memory tools.Scope fields: bank id is {tenantId|_}__{user}__{threadId}. namespace is ignored.
recall returns hindsight_retain, hindsight_recall, and hindsight_reflect in its
tools plus a toolGuidance block. memoryMiddleware merges them into the run so the
test cases passed, vs 6 / 23 without
Published skills whose descriptions closely match this one, with their headline benchmark lift.
More skills from the same source and nearby in the registry, with their headline benchmark lift.