-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Implement memory routing: global vs. project #22819
Copy link
Copy link
Open
Labels
area/agentIssues related to Core Agent, Tools, Memory, Sub-Agents, Hooks, Agent QualityIssues related to Core Agent, Tools, Memory, Sub-Agents, Hooks, Agent Qualityworkstream-rollupLabel used to tag epics and features that are associated with one of the three primary workstreamsLabel used to tag epics and features that are associated with one of the three primary workstreams🔒 maintainer only⛔ Do not contribute. Internal roadmap item.⛔ Do not contribute. Internal roadmap item.
Description
When the memory subagent saves something, it needs to put it in the right place:
- Global (
~/.gemini/) - things about the user that apply everywhere: "I prefer concise commit messages", tool preferences, personal conventions. - Project (
.gemini/) - things specific to this codebase: "this project uses vitest not jest", architecture decisions, known pitfalls.
The subagent prompt needs clear routing guidance. There are genuinely ambiguous cases (e.g., "always use TypeScript strict mode" - is that a personal preference or a project convention?) so we need reasonable heuristics, not just hard rules.
The design doc specifically calls out needing "a small set of behavioral evals to lock in this behavior." We should have evals for: a clearly global fact, a clearly project-specific fact, and at least one ambiguous case to verify the heuristic.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area/agentIssues related to Core Agent, Tools, Memory, Sub-Agents, Hooks, Agent QualityIssues related to Core Agent, Tools, Memory, Sub-Agents, Hooks, Agent Qualityworkstream-rollupLabel used to tag epics and features that are associated with one of the three primary workstreamsLabel used to tag epics and features that are associated with one of the three primary workstreams🔒 maintainer only⛔ Do not contribute. Internal roadmap item.⛔ Do not contribute. Internal roadmap item.