{"_id":"@vectorize-io/hindsight-eve","_rev":"5-a5276498671a18b476974b5fa43c94b8","name":"@vectorize-io/hindsight-eve","dist-tags":{"latest":"0.3.1"},"versions":{"0.1.0":{"name":"@vectorize-io/hindsight-eve","version":"0.1.0","keywords":["eve","vercel","agents","mcp","memory","hindsight","llm","long-term-memory"],"author":{"name":"Vectorize","email":"support@vectorize.io"},"license":"MIT","_id":"@vectorize-io/hindsight-eve@0.1.0","maintainers":[{"name":"nicoloboschi","email":"boschi1997@gmail.com"},{"name":"dk09876","email":"Dikshant.pradhan@vectorize.io"},{"name":"benfrank241","email":"benbart02@gmail.com"}],"homepage":"https://github.com/vectorize-io/hindsight#readme","bugs":{"url":"https://github.com/vectorize-io/hindsight/issues"},"dist":{"shasum":"28967fbb5fedd6a5750a776fb07924921cecfc32","tarball":"https://registry.npmjs.org/@vectorize-io/hindsight-eve/-/hindsight-eve-0.1.0.tgz","fileCount":5,"integrity":"sha512-Hy7T/MmB/aTdtT71Gq3WgiYMGIIHgQDLPfdWDFQBtsPVLJzMFnfgbko9aS1QEMAaXROMzoFPTOmb1f1v7kP3qg==","signatures":[{"sig":"MEYCIQDev/r02K15LeRMi0zyIQyBe/hGW5cAatu6gOxfZF+9XAIhAJv9OYg2gJ3UMCnpRbYZPta9QtzfRp/gWVV8DSrmlIRA","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@vectorize-io%2fhindsight-eve@0.1.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":17715},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","engines":{"node":">=24"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"9dafadc7eb562dc1edce1fa1ec25f69ea83ff65d","scripts":{"dev":"tsc --watch","test":"vitest run","build":"tsup","clean":"rm -rf dist","test:watch":"vitest","prepublishOnly":"npm run clean && npm run build"},"_npmUser":{"name":"nicoloboschi","email":"boschi1997@gmail.com"},"overrides":{"vite":">=8.0.5","rollup":"^4.59.0","picomatch":">=2.3.2 <3.0.0 || >=4.0.4"},"repository":{"url":"git+https://github.com/vectorize-io/hindsight.git","type":"git","directory":"hindsight-integrations/eve"},"_npmVersion":"10.9.8","description":"Hindsight long-term memory for Vercel Eve agents - a one-line MCP connection exposing retain, recall, and reflect","directories":{},"_nodeVersion":"22.22.3","_hasShrinkwrap":false,"devDependencies":{"eve":"0.11.4","tsup":"^8.5.1","vitest":"^4.1.2","typescript":"^5.7.0","@types/node":"^22.0.0"},"peerDependencies":{"eve":">=0.11.0"},"_npmOperationalInternal":{"tmp":"tmp/hindsight-eve_0.1.0_1782327158384_0.5127289909569905","host":"s3://npm-registry-packages-npm-production"}},"0.2.0":{"name":"@vectorize-io/hindsight-eve","version":"0.2.0","keywords":["eve","vercel","agents","hooks","memory","hindsight","llm","long-term-memory"],"author":{"name":"Vectorize","email":"support@vectorize.io"},"license":"MIT","_id":"@vectorize-io/hindsight-eve@0.2.0","maintainers":[{"name":"nicoloboschi","email":"boschi1997@gmail.com"},{"name":"dk09876","email":"Dikshant.pradhan@vectorize.io"},{"name":"benfrank241","email":"benbart02@gmail.com"}],"homepage":"https://github.com/vectorize-io/hindsight#readme","bugs":{"url":"https://github.com/vectorize-io/hindsight/issues"},"dist":{"shasum":"9a57b9d7cdb0b7bcae1f5e8f570c6d4a808c263f","tarball":"https://registry.npmjs.org/@vectorize-io/hindsight-eve/-/hindsight-eve-0.2.0.tgz","fileCount":5,"integrity":"sha512-7EoVoLnSTdh2wD8Lv6f0PUdFfHXxn7tLRqxfy3cTUS89kyJUfJj21QGyVQZI5TUKBwI7pS+3/anfzE+XssHGmg==","signatures":[{"sig":"MEYCIQD7SsAERo0hDDksucEL+1o6SsnVDBiMSgYx9xf+ZxDRYQIhAPHcR4BWb+9SPjRg1y4UFQlUJOGhMy0nkm0n0kv/tpqj","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@vectorize-io%2fhindsight-eve@0.2.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":41839},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","engines":{"node":">=24"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"016b5f03639eb44f9f54ce1fd624d0f4792aac46","scripts":{"dev":"tsc --watch","test":"vitest run","build":"tsup","clean":"rm -rf dist","test:watch":"vitest","prepublishOnly":"npm run clean && npm run build"},"_npmUser":{"name":"nicoloboschi","email":"boschi1997@gmail.com"},"overrides":{"vite":">=8.0.5","rollup":"^4.59.0","picomatch":">=2.3.2 <3.0.0 || >=4.0.4"},"repository":{"url":"git+https://github.com/vectorize-io/hindsight.git","type":"git","directory":"hindsight-integrations/eve"},"_npmVersion":"10.9.8","description":"Automatic long-term memory for Vercel Eve agents — Hindsight memory injected before each turn and retained after, with no model tool-calling","directories":{},"_nodeVersion":"22.23.1","_hasShrinkwrap":false,"devDependencies":{"eve":"0.11.4","tsup":"^8.5.1","vitest":"^4.1.2","typescript":"^5.7.0","@types/node":"^22.0.0"},"peerDependencies":{"eve":">=0.11.0"},"_npmOperationalInternal":{"tmp":"tmp/hindsight-eve_0.2.0_1783091285147_0.5544651278628487","host":"s3://npm-registry-packages-npm-production"}},"0.2.1":{"name":"@vectorize-io/hindsight-eve","version":"0.2.1","keywords":["eve","vercel","agents","hooks","memory","hindsight","llm","long-term-memory"],"author":{"name":"Vectorize","email":"support@vectorize.io"},"license":"MIT","_id":"@vectorize-io/hindsight-eve@0.2.1","maintainers":[{"name":"nicoloboschi","email":"boschi1997@gmail.com"},{"name":"dk09876","email":"Dikshant.pradhan@vectorize.io"},{"name":"benfrank241","email":"benbart02@gmail.com"}],"homepage":"https://github.com/vectorize-io/hindsight#readme","bugs":{"url":"https://github.com/vectorize-io/hindsight/issues"},"dist":{"shasum":"1cd19aebd0f8c5e27eaa02c3477034b51ae44ea0","tarball":"https://registry.npmjs.org/@vectorize-io/hindsight-eve/-/hindsight-eve-0.2.1.tgz","fileCount":5,"integrity":"sha512-dFrCRgX/fXNV7bCCXfifmKTEQnj4insbxOQ79GU9mHMwZ9XfjQ1Oq8679C9xHwpItCtx6cDPqWZkluq8iY+qNg==","signatures":[{"sig":"MEUCIQC5koRfnA8+xLTrO4NdbQ8DzZDU5z6pWSTRP4t5H5Qq3AIgU9ehFyyM9c7+yt9vcr7aQNl9xeSnBPVsZm23OnNAftU=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@vectorize-io%2fhindsight-eve@0.2.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":42106},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","engines":{"node":">=24"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"e97b6155473631b35804fcb8fb65bb09cb862e5d","scripts":{"dev":"tsc --watch","test":"vitest run","build":"tsup","clean":"rm -rf dist","test:watch":"vitest","prepublishOnly":"npm run clean && npm run build"},"_npmUser":{"name":"nicoloboschi","email":"boschi1997@gmail.com"},"overrides":{"vite":">=8.0.5","rollup":"^4.59.0","picomatch":">=2.3.2 <3.0.0 || >=4.0.4"},"repository":{"url":"git+https://github.com/vectorize-io/hindsight.git","type":"git","directory":"hindsight-integrations/eve"},"_npmVersion":"10.9.8","description":"Automatic long-term memory for Vercel Eve agents — Hindsight memory injected before each turn and retained after, with no model tool-calling","directories":{},"_nodeVersion":"22.23.1","_hasShrinkwrap":false,"devDependencies":{"eve":"0.11.4","tsup":"^8.5.1","vitest":"^4.1.2","typescript":"^5.7.0","@types/node":"^22.0.0"},"peerDependencies":{"eve":">=0.11.0"},"_npmOperationalInternal":{"tmp":"tmp/hindsight-eve_0.2.1_1783361387624_0.40596830182921106","host":"s3://npm-registry-packages-npm-production"}},"0.3.0":{"name":"@vectorize-io/hindsight-eve","version":"0.3.0","keywords":["eve","vercel","agents","hooks","memory","hindsight","llm","long-term-memory"],"author":{"name":"Vectorize","email":"support@vectorize.io"},"license":"MIT","_id":"@vectorize-io/hindsight-eve@0.3.0","maintainers":[{"name":"nicoloboschi","email":"boschi1997@gmail.com"},{"name":"dk09876","email":"Dikshant.pradhan@vectorize.io"},{"name":"benfrank241","email":"benbart02@gmail.com"}],"homepage":"https://github.com/vectorize-io/hindsight#readme","bugs":{"url":"https://github.com/vectorize-io/hindsight/issues"},"dist":{"shasum":"532c688fb25f466225a27820dc1727864568ecb4","tarball":"https://registry.npmjs.org/@vectorize-io/hindsight-eve/-/hindsight-eve-0.3.0.tgz","fileCount":5,"integrity":"sha512-ZcbRnj6zWvqLIoDa4Ji811PhgWOzdQCN/9qJtHmgKF6vKUwH7hsrVAiF5O0jDUTwJSGwQ74Zj8lMbLh0fg7PYQ==","signatures":[{"sig":"MEUCICs1AHSj/G1A8wQwNIvScVivVR/XO54l3UFVCj9Ss1xaAiEA8aNfDUFOCVYIRSrLOoDus+G91KnuWYaREvVfRuGCtPg=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEYCIQC6XzfxB9VYOsMLddVjqg2WNaqBKZzOqJuZU3jWxAqWXQIhAPnonVOwSbv1MWkFJf1Tc4uEDE3OqB9IEscdkRAfqR+z","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@vectorize-io%2fhindsight-eve@0.3.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":81106},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","engines":{"node":">=24"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"ab095014699e96073b2fbc67c7e73d2fca1bbfc2","scripts":{"dev":"tsc --watch","test":"vitest run","build":"tsup","clean":"rm -rf dist","test:watch":"vitest","prepublishOnly":"npm run clean && npm run build"},"_npmUser":{"name":"nicoloboschi","email":"boschi1997@gmail.com"},"overrides":{"vite":">=8.0.5","rollup":"^4.59.0","esbuild":">=0.28.1 <0.29.0","postcss":">=8.5.23 <9.0.0","picomatch":">=2.3.2 <3.0.0 || >=4.0.4"},"repository":{"url":"git+https://github.com/vectorize-io/hindsight.git","type":"git","directory":"hindsight-integrations/eve"},"_npmVersion":"10.9.8","description":"Hindsight memory provider for Vercel Eve agents — scoped recall before each turn, automatic capture after, and a reflect tool","directories":{},"_nodeVersion":"22.23.2","_hasShrinkwrap":false,"devDependencies":{"eve":"0.66.2","tsup":"^8.5.1","vitest":"^4.1.11","typescript":"^5.7.0","@types/node":"^22.0.0"},"peerDependencies":{"eve":">=0.45.1"},"_npmOperationalInternal":{"tmp":"tmp/hindsight-eve_0.3.0_1790602961817_0.8562465899299572","host":"s3://npm-registry-packages-npm-production"}},"0.3.1":{"_id":"@vectorize-io/hindsight-eve@0.3.1","bugs":{"url":"https://github.com/vectorize-io/hindsight/issues"},"dist":{"shasum":"029937d2c1d5c3ce9a60d9012bc3e6d83755de3b","tarball":"https://registry.npmjs.org/@vectorize-io/hindsight-eve/-/hindsight-eve-0.3.1.tgz","fileCount":5,"integrity":"sha512-Qi8CTDKB3ZFmepyBVsc5BPCZptKL/OLwrs+K4re8LaQlHyxZw2WtRRo0mkNuEJWJu5wdks/KF0Gp2+BfBFsINw==","signatures":[{"sig":"MEQCIGo6KXIBrcR7QNcU3SK2/EvfShhJgpJUFPQ3GeqWGCxbAiAXc5SMciGNTgk1JbgVDA05mCCPDi/iUlRP0CWTU13iPA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIEl4U/QB4wqgxrY/CjUu5WPSToBB54gCzMTbyZZpPieTAiEA45fO7ZXPkYFNiZpzYFsT0SXfx8NAk2bdaGrlrnnSvWk="}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@vectorize-io%2fhindsight-eve@0.3.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":82199},"main":"dist/index.js","name":"@vectorize-io/hindsight-eve","type":"module","types":"dist/index.d.ts","author":{"name":"Vectorize","email":"support@vectorize.io"},"engines":{"node":">=24"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"a6653806c800ea3000d07f8f7a381b66fa1b0ef6","license":"MIT","scripts":{"dev":"tsc --watch","test":"vitest run","build":"tsup","clean":"rm -rf dist","test:watch":"vitest","prepublishOnly":"npm run clean && npm run build"},"version":"0.3.1","_npmUser":{"name":"nicoloboschi","email":"boschi1997@gmail.com"},"homepage":"https://github.com/vectorize-io/hindsight#readme","keywords":["eve","vercel","agents","hooks","memory","hindsight","llm","long-term-memory"],"overrides":{"eve":{"undici":">=8.10.2 <9.0.0","@ai-sdk/provider-utils":{"undici":">=7.29.1 <8.0.0"}},"vite":">=8.0.5","rollup":"^4.59.0","esbuild":">=0.28.1 <0.29.0","postcss":">=8.5.23 <9.0.0","picomatch":">=2.3.2 <3.0.0 || >=4.0.4"},"repository":{"url":"git+https://github.com/vectorize-io/hindsight.git","type":"git","directory":"hindsight-integrations/eve"},"_npmVersion":"10.9.9","description":"Hindsight memory provider for Vercel Eve agents — scoped recall before each turn, automatic capture after, and a reflect tool","directories":{},"maintainers":[{"name":"nicoloboschi","email":"boschi1997@gmail.com"},{"name":"dk09876","email":"Dikshant.pradhan@vectorize.io"},{"name":"benfrank241","email":"benbart02@gmail.com"}],"_nodeVersion":"22.23.3","_hasShrinkwrap":false,"devDependencies":{"eve":"0.66.2","tsup":"^8.5.1","vitest":"^4.1.11","typescript":"^5.7.0","@types/node":"^22.0.0"},"peerDependencies":{"eve":">=0.45.1"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/hindsight-eve_0.3.1_1791801681338_0.32793086589545606"}}},"time":{"created":"2026-06-24T18:52:38.211Z","modified":"2026-10-12T10:41:21.832Z","0.1.0":"2026-06-24T18:52:38.526Z","0.2.0":"2026-07-03T15:08:05.278Z","0.2.1":"2026-07-06T18:09:47.746Z","0.3.0":"2026-09-28T13:42:41.913Z","0.3.1":"2026-10-12T10:41:21.423Z"},"bugs":{"url":"https://github.com/vectorize-io/hindsight/issues"},"author":{"name":"Vectorize","email":"support@vectorize.io"},"license":"MIT","homepage":"https://github.com/vectorize-io/hindsight#readme","keywords":["eve","vercel","agents","hooks","memory","hindsight","llm","long-term-memory"],"repository":{"url":"git+https://github.com/vectorize-io/hindsight.git","type":"git","directory":"hindsight-integrations/eve"},"description":"Hindsight memory provider for Vercel Eve agents — scoped recall before each turn, automatic capture after, and a reflect tool","maintainers":[{"name":"nicoloboschi","email":"boschi1997@gmail.com"},{"name":"dk09876","email":"Dikshant.pradhan@vectorize.io"},{"name":"benfrank241","email":"benbart02@gmail.com"}],"readme":"# Hindsight for Eve\n\nLong-term memory for [Vercel Eve](https://eve.dev) agents, powered by\n[Hindsight](https://vectorize.io/hindsight). A memory provider for Eve's\n[memory slots](https://eve.dev/docs/memory): relevant memory is recalled on the live user\nmessage before every turn, each exchange is captured after, and every scope (user, tenant,\nchannel) gets its own isolated Hindsight bank — **without the model ever choosing to call a\ntool.**\n\n## How it works\n\nEve resolves and locks a scope for every turn, then calls the provider at fixed points:\n\n| Phase            | What Hindsight does                                                                                |\n| ---------------- | -------------------------------------------------------------------------------------------------- |\n| `turn.started`   | Recalls memories relevant to the user's message and places them in context, attributed to the slot |\n| `turn.completed` | Retains the user message and the assistant's final reply (idempotent per eve operation id)         |\n| tools            | Exposes `<slot>__reflect`, so the model can ask long-term memory a question when it needs to       |\n\nEvery read and write is partitioned by the locked scope key: one Hindsight bank per scope,\nauto-created on first use. Two tenants can never see each other's memory.\n\n## Install\n\n```bash\nnpm install @vectorize-io/hindsight-eve\n```\n\n`eve` (>= 0.45.1) is a peer dependency — you already have it in an Eve project.\n\n## Quick start\n\nCreate one file:\n\n```ts\n// agent/memory/hindsight.ts\nimport { hindsightMemory } from \"@vectorize-io/hindsight-eve\";\nimport { defineMemory } from \"eve/memory\";\nimport { byPrincipal } from \"eve/memory/scope\";\n\nexport default defineMemory({\n  description: \"Long-term memory about the current user.\",\n  provider: hindsightMemory(),\n  scope: byPrincipal,\n});\n```\n\nThat's it. The provider reads its connection from the environment:\n\n| Env var             | Purpose                                                                  |\n| ------------------- | ------------------------------------------------------------------------ |\n| `HINDSIGHT_API_KEY` | Bearer token sent as `Authorization: Bearer <key>`                       |\n| `HINDSIGHT_API_URL` | Hindsight REST base (defaults to Hindsight Cloud)                        |\n| `HINDSIGHT_BANK_ID` | _Optional._ Pin every scope to one shared bank (single-user agents only) |\n\n### Hindsight Cloud\n\nSet `HINDSIGHT_API_KEY` to a key from your [Hindsight Cloud](https://hindsight.vectorize.io)\ndashboard. `HINDSIGHT_API_URL` defaults to `https://api.hindsight.vectorize.io`, so no URL is\nneeded.\n\n### Self-hosted\n\n```bash\nexport HINDSIGHT_API_URL=\"http://localhost:8000\"\nexport HINDSIGHT_API_KEY=\"…\"   # or pass apiKey: null below for a no-auth server\n```\n\n```ts\nprovider: hindsightMemory({ apiUrl: \"http://localhost:8000\", apiKey: null }),\n```\n\n## Scope → bank\n\n`scope` is Eve's — `byPrincipal` gives each authenticated caller their own memory; a custom\nresolver can scope by tenant, channel, or anything else in trusted session metadata (see\n[Eve's memory docs](https://eve.dev/docs/memory)). Hindsight maps each locked scope to a bank:\n\n- **Default:** the bank is the scope key (`memscope1_…`), an opaque digest Eve derives from the\n  namespace and scope. Isolation is automatic.\n- **Custom:** pass a resolver to name banks yourself, e.g. ``bankId: (scope) => `eve-${scope.value}` ``\n  for human-readable bank names in the Hindsight dashboard.\n- **Shared:** a string `bankId` (or `HINDSIGHT_BANK_ID`) pins every scope to a single bank. Only\n  do this for single-user agents — it disables per-scope isolation.\n\n## Options\n\n```ts\nhindsightMemory({\n  apiUrl, // string — REST base; defaults to HINDSIGHT_API_URL, then Cloud\n  apiKey, // string | null — bearer token; null = no auth (local dev)\n  bankId, // string | (scope) => string — see \"Scope → bank\"\n  budget, // \"low\" | \"mid\" | \"high\" — recall result budget (default \"mid\")\n  maxTokens, // number — recall token budget (default 1024)\n  recallQuery, // string — query when the turn has no user text (default: a broad profile query)\n  context, // string — `context` tag written on retained items (default \"eve\")\n  includeAssistantReply, // boolean — also retain the assistant's reply (default true)\n  capture, // boolean — retain each turn (default true; false = recall-only)\n  tools, // boolean — expose the `reflect` tool (default true)\n  timeoutMs, // number — HTTP timeout (default 15000)\n  onError, // (err, phase) => void — failures degrade via this (default console.warn)\n});\n```\n\n## Notes\n\n- Recall never fails a turn: a Hindsight error is reported through `onError` and the turn runs\n  without memory. Captures run asynchronously and never block a reply.\n- Each turn's recall is one message with a stable id, so it **supersedes** the previous turn's\n  block instead of piling up in session history — including after compaction.\n- Captures are keyed by Eve's `operationId`; a replayed capture replaces the earlier document\n  rather than storing it twice.\n- By default **both** the user's message and the assistant's reply are retained — the reply is\n  usually where the answer lives. Set `includeAssistantReply: false` to store only the user's\n  message.\n\n## Known issue: capture on eve 0.51.0 – 0.68.x\n\neve 0.51.0 stopped passing the turn's history to `turn.completed` (a regression from\n[vercel/eve#2690](https://github.com/vercel/eve/pull/2690)), so **no provider's\n`capture[\"turn.completed\"]` runs** on those versions — memory is recalled but nothing new is\nstored. Tracked in [vercel/eve#3223](https://github.com/vercel/eve/issues/3223) and fixed by\n[vercel/eve#3985](https://github.com/vercel/eve/pull/3985), which ships in eve 0.69.0 — upgrade\nto it. Recall, the `reflect` tool, and compaction capture are unaffected. On an older eve, either\npin `eve@0.50.0`, or keep the\ndeprecated `hindsightRetainHook()` in `agent/hooks/hindsight.ts` next to the provider — eve's hook\nevents still fire — giving both the same string `bankId` so they share a bank.\n\n## Verify\n\nRun your agent. Tell it a durable preference in one session (\"whenever you write me code, use\nPython with full type hints and no comments\"). Start a **fresh** session as the same user and\nask for something — the agent applies the remembered preference, because the memory was recalled\nbefore the model ran, with no tool call.\n\n## Migrating from 0.2\n\n0.2 wired memory through two authored files (`agent/instructions/hindsight.ts` with\n`hindsightMemory()` and `agent/hooks/hindsight.ts` with `hindsightRetainHook()`), before Eve had a\nmemory provider contract. Replace both with the single `agent/memory/hindsight.ts` above. The old\nentrypoints still ship as `hindsightAutoRecall()` and `hindsightRetainHook()` (deprecated, removed\nin the next release); `hindsightMemory()` now returns the provider.\n\nWhat changes: recall uses the live user message instead of a fixed broad query, memory is\nisolated per scope instead of one bank for everyone, and recalled context arrives as a\nslot-attributed message rather than system instructions.\n\n## Links\n\n- [Hindsight docs](https://hindsight.vectorize.io)\n- [Eve memory](https://eve.dev/docs/memory) ·\n  [Build a memory provider](https://github.com/vercel/eve/blob/main/docs/memory/custom-provider.md)\n","readmeFilename":"README.md"}