Uh oh!
There was an error while loading. Please reload this page.
feat(memory): implement persistent project memory and background extraction - #43870
Open
DhanushPillay wants to merge 8 commits into
Open
feat(memory): implement persistent project memory and background extraction#43870DhanushPillay wants to merge 8 commits into
DhanushPillay wants to merge 8 commits into
Conversation
Contributor
Thanks for updating your PR! It now meets our contributing guidelines. 👍 |
Enough1122
commented
Aug 21, 2026
|
DhanushPillayforce-pushed
the
feat/persistent-memory
branch
from
August 21, 2026 12:57
415d84e to
8035746Compare- Add pruneAuto to cap auto-extracted memories at 200 - Fix JSON parsing in extraction with Schema.decodeUnknownOption - Move SessionRunnerModel.resolve outside of background job - Fix ID branding bypass in tools.ts - Add unit tests for memory core service
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 freeto 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.
Issue for this PR
Closes #
Type of change
What does this PR do?
Introduces a persistent memory system so the agent remembers project-specific context (architectural decisions, quirks, API patterns) across sessions without forgetting.
memorySQLite table to store project-scoped memory strings.core/memoryservice for DB CRUD operations.SessionStatusEvent.Status. When a session goes idle after meaningful tool use, it asynchronously prompts the LLM to extract non-obvious learnings and saves them.MemoryContextnode to inject these stored memories into the agent's system prompt (<project-memory>) on boot.memory_list,memory_delete, andmemory_addLLM tools so the agent can self-manage its memories directly.It uses a background job to prevent blocking the UI/event loop when a session ends, and injects context directly into the system registry so the agent always has immediate access to past learnings.
How did you verify your code works?
Compiled the core package against the TypeScript compiler to verify strong types and schema alignment. Validated the Effect service registration and verified that the background job hooks correctly into the event stream without blocking.
Screenshots / recordings
N/A - Background systems and LLM tooling.
Checklist