You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(evals): update save_memory evals and simplify tool description
- Updated behavioral evaluations to verify workspace-local memory restriction using clear examples (schema, artifacts, entry points).
- Simplified and consolidated save_memory tool description and schema to explicitly forbid workspace-specific facts while maintaining token efficiency.
- Ensured evaluations have appropriate file tools to prevent hallucinations or incorrect behavior.
- Verified stable passage across both Gemini 2.5 and Gemini 3 models.
'Saves a specific piece of information, fact, or user preference to your long-term memory. Use this when the user explicitly asks you to remember something, or when they state a clear, concise fact or preference that seems important to retain for future interactions. Examples: "Always lint after building", "Never run sudo commands", "Remember my address".',
33
-
parametersJsonSchema: {
34
-
type: 'object',
35
-
properties: {
36
-
fact: {
37
-
type: 'string',
38
-
description:
39
-
'The specific fact or piece of information to remember. Should be a clear, self-contained statement.',
40
-
},
41
-
},
42
-
required: ['fact'],
43
-
additionalProperties: false,
44
-
},
45
-
};
46
-
47
28
constmemoryToolDescription=`
48
-
Saves a specific piece of information or fact to your long-term memory.
49
-
50
-
Use this tool:
51
-
52
-
- When the user explicitly asks you to remember something (e.g., "Remember that I like pineapple on pizza", "Please save this: my cat's name is Whiskers").
53
-
- When the user states a clear, concise fact about themselves, their preferences, or their environment that seems important for you to retain for future interactions to provide a more personalized and effective assistance.
29
+
Saves concise global user context (preferences, facts) for use across ALL workspaces.
54
30
55
-
Do NOT use this tool:
31
+
### CRITICAL: GLOBAL CONTEXT ONLY
32
+
NEVER save workspace-specific context, local paths, or commands (e.g. "The entry point is src/index.js", "The test command is npm test"). These are local to the current workspace and must NOT be saved globally. EXCLUSIVELY for context relevant across ALL workspaces.
56
33
57
-
- To remember conversational context that is only relevant for the current session.
58
-
- To save long, complex, or rambling pieces of text. The fact should be relatively short and to the point.
59
-
- If you are unsure whether the information is a fact worth remembering long-term. If in doubt, you can ask the user, "Should I remember that for you?"
60
-
61
-
## Parameters
62
-
63
-
- \`fact\` (string, required): The specific fact or piece of information to remember. This should be a clear, self-contained statement. For example, if the user says "My favorite color is blue", the fact would be "My favorite color is blue".`;
0 commit comments