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
{{ message }}
Repository navigation
Commit 31f5bb4
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: packages/memory/src/server.ts
+6-5Lines changed: 6 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -25,13 +25,14 @@ type ToolResponse = {
25
25
constSTORE_TOOL={
26
26
name: "memory_storeKnowledge",
27
27
description:
28
-
"Persist verified, reusable knowledge for future sessions. After completing meaningful work, store decisions, conventions, gotchas, or fixes that a future agent would otherwise rediscover the hard way (e.g. 'This repo pins better-sqlite3 to 12.x; native builds fail on newer versions'). Prefer updating an existing item over storing a near-duplicate.",
28
+
"AFTER completing a task — and especially right after fixing an error, discovering a gotcha, or making a decision a future agent would otherwise rediscover the hard way — persist it as verified, reusable knowledge for future sessions (e.g. 'This repo pins better-sqlite3 to 12.x; native builds fail on newer versions'). Before storing, run memory_searchKnowledge on what you learned; if a matching item exists, use memory_updateKnowledge instead of creating a near-duplicate. Do not store secrets, raw logs, task progress, or one-off details.",
29
29
inputSchema: {
30
30
type: "object"asconst,
31
31
properties: {
32
32
title: {
33
33
type: "string",
34
-
description: "Short, explicit description of the rule (5-12 words, 10-100 chars)",
34
+
description:
35
+
"Short, explicit description of the rule, written so a future agent knows when it applies (5-12 words, 10-100 chars)",
35
36
},
36
37
content: {
37
38
type: "string",
@@ -56,7 +57,7 @@ const STORE_TOOL = {
56
57
constUPDATE_TOOL={
57
58
name: "memory_updateKnowledge",
58
59
description:
59
-
"Correct an existing knowledge item by ID when you learn it is outdatedor inaccurate — update it instead of storing a duplicate. First run memory_searchKnowledge to find the item and its ID; pass only the fields that change.",
60
+
"Correct an existing knowledge item by ID when you learn it is outdated, inaccurate, or incomplete — update it instead of storing a duplicate. First run memory_searchKnowledge to find the item and its ID; pass only the fields that change.",
60
61
inputSchema: {
61
62
type: "object"asconst,
62
63
properties: {
@@ -90,14 +91,14 @@ const UPDATE_TOOL = {
90
91
constSEARCH_TOOL={
91
92
name: "memory_searchKnowledge",
92
93
description:
93
-
"Call BEFORE starting any non-trivial task to check for prior knowledge — this is cheap and prevents redoing solved work. Pass a short description of what you are about to do (e.g. 'wire MCP server into Gemini CLI settings' or 'fix vitest flaky teardown in cli package') and apply relevant results. Also call it when a task reveals a convention worth remembering later.",
94
+
"Call BEFORE starting ANY task — trivial or not — and again IMMEDIATELY when you hit an error, test failure, or surprising behavior during work. This check is cheap and prevents re-solving already-solved problems. Pass a short description of what you are about to do or the error you hit (e.g. 'wire MCP server into Gemini CLI settings', 'vitest flaky teardown in cli package', 'EPERM on npm ci in worktree'). Skip only for pure conversation with no action. Apply relevant results, and prefer them over re-deriving from scratch.",
94
95
inputSchema: {
95
96
type: "object"asconst,
96
97
properties: {
97
98
query: {
98
99
type: "string",
99
100
description:
100
-
"Natural language task description to search for relevant knowledge (3-500 chars)",
101
+
"Natural language task description — or paste the error text you just hit — to search for relevant knowledge (3-500 chars)",
0 commit comments