Repository navigation
feat: scope memory entries by project - #759
Merged
Merged
Conversation
Memory fact-files were one flat global directory with no way to tell which project a fact belonged to (#758). Now: - Project facts live in per-project subdirectories (<project-slug>/<slug>.md); global facts stay at the root. Legacy flat files keep working as global - no migration. - New internal/project package detects the project (git remote origin -> org/repo, fallback cwd basename) once per process. - Frontmatter records metadata.project (human-readable org/repo) and metadata.session (the session that last wrote the fact). - Memory write gains an optional project arg; defaults: user facts are global, feedback/project/reference go under the detected project; "global" forces the root. - The injected MEMORY.md index is filtered to current-project + global entries, with one summary line naming other projects; the injection cap default drops 4000 -> 2000 chars (memory.max_chars). - New per-entry write cap memory.max_entry_chars (default 4000, INFER_MEMORY_MAX_ENTRY_CHARS); zero means default so existing memory.yaml files keep loading. - Chat tool context now carries the conversation ID as the session ID so provenance works in both chat and headless modes. Closes #758
4 tasks
inference-gateway-releaser Bot
added a commit
that referenced
this pull request
Jul 6, 2026
## [0.133.0](v0.132.1...v0.133.0) (2026-07-06) ### 🚀 Features * add nvidia provider support ([#753](#753)) ([e9ea883](e9ea883)), closes [#751](#751) * **agent:** cap rendered skills list and harden system prompt injection ([#761](#761)) ([cb0f36e](cb0f36e)) * scope memory entries by project ([#759](#759)) ([cabda08](cabda08)), references [#758](#758) * **chat:** show session continuation instructions on exit ([#757](#757)) ([8d04a3a](8d04a3a)), closes [#756](#756) ### 🐛 Bug Fixes * **chat:** add --session-id flag and fix exit message ([#760](#760)) ([a2202ba](a2202ba)) * **ci:** release notes are not being generated ([32b7acf](32b7acf)) * replace /compact with /new when plan is accepted ([#755](#755)) ([30304ed](30304ed)), closes [#754](#754) ### ♻️ Code Refactoring * **agent:** remove comments about skill description capping ([e50aa30](e50aa30)) ### 🧹 Maintenance * **deps:** bump claude-code-action v1.0.161 -> v1.0.165 ([#752](#752)) ([44d1985](44d1985)) * **deps:** update flox packages ([8a35d5e](8a35d5e))
Contributor
|
🎉 This PR is included in version 0.133.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
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.
Summary
Closes #758. Memory fact-files lived in one flat global directory with no way to tell which project a fact belonged to; cross-project slugs could collide, and the whole index was injected into every session.
<project-slug>/<slug>.md(e.g.inference-gateway-cli/build-commands.md); global facts stay at the root. Legacy flat files keep working as global — no migration needed.internal/projectpackage — git remote origin →org/repo, fallback cwd basename, else global; cached per process.metadata.project(human-readableorg/repo) andmetadata.session(the session that last wrote the fact; chat now injects the conversation ID into the tool context, headless already had one).projectarg; defaults by type —userfacts are global,feedback/project/referencego under the detected project;"global"forces the root;nameacceptsslugorproject/slugexactly as shown in the index (traversal names are now rejected outright).memory.max_chars,INFER_MEMORY_MAX_CHARS). The Memory tool's indexreadstill returns the full index.memory.max_entry_chars(default 2000,INFER_MEMORY_MAX_ENTRY_CHARS); over-cap writes are rejected with an actionable error. Zero/missing means default, so existingmemory.yamlfiles keep loading.Acceptance criteria (#758)
readbyproject/slug)max_chars2000 default, newmax_entry_chars2000 default)Cross-repo impact
.memorygit remotes: subdirectories sync via the existinggit add -A; mixed old/new CLI versions against one remote are safe (both index-line forms share one grammar; old CLIs treat everything as flat/global).[DOCS]follow-up for the new layout,projectarg,max_entry_chars, and the 2000-char default (see docs ticket).prompts.yamlkeeps the old Memory tool description untilinfer init --overwrite; bare names remain valid, so behavior degrades to "no project awareness", never breaks.Testing
task testgreen,task lint0 issues.projectarg, name-embedded project), read/delete byproject/slugand legacy bare slug, index isolation ofxvsp/x,sanitizeNametable incl. traversal rejection, entry-cap boundaries, session-ID frontmatter,filterMemoryIndextable,Slugify/remote-URL parsing, config validation and env overrides.