Skip to content

Implement memory routing: global vs. project #22819

@SandyTao520

Description

@SandyTao520

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/agentIssues 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 workstreams🔒 maintainer only⛔ Do not contribute. Internal roadmap item.

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions