Repository navigation
feat: use pi-memory in projects - #2973
Open
maxy-shpfy wants to merge 1 commit into
Open
maxy-shpfy wants to merge 1 commit into
maxy-shpfy wants to merge 1 commit into
Conversation
maxy-shpfy
force-pushed
the
maxy/feat--use-pimemory-in-projects
branch
from
October 31, 2026 05:55
3cec55f to
5e388a5
Compare
🎩 PreviewA preview build has been created at: |
maxy-shpfy
commented
Oct 31, 2026
Comment on lines
+88
to
92
| "@tangent/embed-react": "github:TangleML/tangent-shell#8f2c11c4611eac24732d1e54ac934a2d30905c70&path:packages/embed-react", | ||
| "@tangent/remote-subagent": "github:TangleML/tangent-shell#8f2c11c4611eac24732d1e54ac934a2d30905c70&path:packages/remote-subagent", | ||
| "@tangent/shared": "github:TangleML/tangent-shell#8f2c11c4611eac24732d1e54ac934a2d30905c70&path:packages/shared", | ||
| "@tanstack/history": "1.162.5", | ||
| "@tanstack/react-query": "^5.105.0", |
Collaborator
Author
There was a problem hiding this comment.
This changes are TMP just for tophatting - will be reverted before merge as soon as shell PR TangleML/tangent-shell#145 landed
maxy-shpfy
marked this pull request as ready for review
October 31, 2026 06:42
Mbeaulne
self-requested a review
November 2, 2026 16:03
This branch has not been 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.
Description
Gives every Tangent session in a project a shared, persistent memory so later sessions build on what earlier ones learned, instead of each session starting cold with its own private store.
On the first session start in a project, a Tangent shared folder is provisioned and its id is saved in the project metadata (
tangentSharedFolderId); subsequent sessions reuse it. Each session then mounts that folder asproject/and binds a composite memory — a human-readablesimple-mdnote underproject/NOTESplus api-memorystore underproject/pi-memory— somemory_*tool writes and files are visible across all sessions in the project. When a shared folder exists, the session's standing memory seed also includes a brief explaining how to use it (record decisions/conventions withmemory_write,memory_searchbefore re-deriving, keepproject/NOTES/MEMORY.mdcurrent, never write secrets).Provisioning is defensive: it reads project metadata from the server (not the cache) because the PATCH replaces the whole metadata object, and re-reads after creating the folder so a folder another tab saved in the meantime wins rather than splitting memory across two stores. The mutation uses a per-project scope so concurrent starts run one at a time and reuse the first folder. Any failure (missing base URL/token, Tangent or project API refusal) resolves to
undefinedso the session still starts — just without the shared folder.Also bumps the
@tangent/*dependencies frommainto a pinned commit that provides thepi-memorymemory binding support.Related Issue and Pull requests
Type of Change
Line Breakdown
Checklist
Screenshots (if applicable)
Tangent.-.Project.memory.preview.mp4
Test Instructions
tangentSharedFolderId.memory_writeto record something, then start a second session in the same project and confirmmemory_searchsurfaces it and files written underproject/are visible.Additional Comments