Repository navigation
Conversation
One private eve file memory document per nuxt.com account, which Nuxi edits with save and remove tools: their Nuxt version, hosting or main modules. Anonymous visitors, Slack, Discord and schedules get none. Documents live in a new agent_memory table through internal routes, with optimistic versioning. Each carries its account id, so deleting the account deletes it, and data retention deletes documents untouched for 12 months. Amp-Thread-ID: https://ampcode.com/threads/T-01a1f850-034a-7018-8f21-8ff8e18f1355
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stacked on #2684; merge that first, and this PR's diff shrinks to memory only.
Nuxi forgets everything between chats, so a signed-in nuxt.com user repeats their Nuxt version, hosting or main modules in every new conversation. This gives each person signed in on nuxt.com one small private note document (eve's
fileMemory()), which Nuxi edits withpersonal__save_memoryandpersonal__remove_memoryand reads back at the start of each turn. Nobody else gets memory: anonymous visitors, Slack (DMs included), Discord and schedules are all off. That keeps notes about one person out of any conversation other people read, and stops anyone in a shared channel from planting a "convention" that shapes Nuxi's answers for everyone.To try it locally, run
pnpm dev:nuxi, sign in, tell Nuxi "I deploy on Cloudflare with Nuxt 4", then open a new chat and ask how to deploy. The preview link will follow once the migration has run on the preview database.The notes are stored in a new
agent_memorytable in the nuxt.com database, through two internal routes, instead of a new Blob store. Each document carries the account id withON DELETE CASCADE, so deleting the account deletes the notes, and data retention deletes documents untouched for 12 months, like chats. Writes are conditional on the version eve read, so two tool calls racing on one document can't overwrite each other. These are checked indata-retention.spec.ts: create-only doesn't overwrite, a stale version conflicts, account deletion cascades, and retention purges old documents. Who gets memory at all is checked inagent-memory-scope.spec.ts.A recall failure is logged and skipped, so a database hiccup costs the turn its notes, not its answer. It does add one internal HTTP call before the model runs on every signed-in web turn.
Needs migration
0016_agent_memory. Nobody has tried memory against a real deployment or database yet: the tests use a local SQLite file, and the evals run with memory in the process. The existing 7 evals still pass, but none checks what Nuxi chooses to save.ELI5
When you're logged in on nuxt.com, Nuxi can now jot down a few things about you, like which Nuxt version you use, so you don't have to repeat them next time. Only you see them, they're deleted with your account, and they disappear after a year without use.