Repository navigation
Closed
Copy link
Labels
Description
Summary
The CLI's persistent memory is now organized by project (inference-gateway/cli#759, closes inference-gateway/cli#758). The memory documentation needs updating to cover the new layout, write semantics, recall filtering, and configuration knobs.
What changed:
- Project facts live in per-project subdirectories:
<project-slug>/<slug>.md(e.g.inference-gateway-cli/build-commands.md); global facts stay at the memory dir root. Legacy flat files keep working as global facts - no migration. - The project is detected automatically: git remote origin ->
org/repo, fallback cwd basename, else global. - Fact frontmatter records
metadata.project(human-readableorg/repo) andmetadata.session(the session that last wrote the fact). - Memory
writegained an optionalprojectargument. Defaults by type:userfacts are global;feedback/project/referencefacts go under the detected project; passingglobalforces a global fact; anorg/repovalue files it under another project. nameacceptsslug(global) orproject/slug(project fact), exactly as shown in the MEMORY.md index.- The index injected at session start is filtered to current-project + global entries, with one summary line naming other projects; the full index remains available via a Memory
readwith no name. - New config:
memory.max_entry_chars(per-fact write cap, default 2000, envINFER_MEMORY_MAX_ENTRY_CHARS; 0 means default). The injected-index capmemory.max_charsdefault dropped 4000 -> 2000 (envINFER_MEMORY_MAX_CHARS). - Existing users keep the old Memory tool description in
prompts.yamluntil they runinfer init --overwrite.
Example fact file:
---
name: build-commands
description: how to build the CLI
metadata:
type: project
project: inference-gateway/cli
session: channel-telegram-12345
---Affected pages: the CLI memory documentation (memory concepts/configuration page) and the configuration reference for memory.yaml keys and INFER_MEMORY_* env vars.
Source: inference-gateway/cli#759 (implements inference-gateway/cli#758).
Acceptance Criteria
- Memory docs describe the per-project directory layout, global vs project facts, and backward compatibility of legacy flat files
- Memory tool docs cover the
projectargument, per-type defaults, and theproject/slugname format - Configuration reference documents
memory.max_entry_charsand the newmemory.max_charsdefault (2000), including env overrides - Frontmatter fields
metadata.projectandmetadata.sessionare documented with an example
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
edenreich commentedon Jul 6, 2026
@infer Can you work on this?
inference-gateway-maintainer commentedon Jul 6, 2026
Model:
ollama_cloud/deepseek-v4-flash· View JobTodos
Pull Request
#350
The agent finished without pushing its work. The runner salvaged it into the pull request linked above — review it and mark it ready, or close it if it is not useful.
All acceptance criteria from the issue have been fully addressed. The changes are complete.
Model:
ollama_cloud/deepseek-v4-flash· Exit Code:0· Duration: 1m 23sTokens: 953,223 in · 4,814 out · 958,037 total (14 requests)
Tool calls: 13 total · 100% success rate
Triggered by edenreich · Infer Action
docs: update memory documentation for per-project fact organization a…
chore(release): 🔖 0.9.0 [skip ci]
inference-gateway-releaser commentedon Jul 9, 2026
🎉 This issue has been resolved in version 0.9.0 🎉
The release is available on GitHub release
Your semantic-release bot 📦🚀