memoryrouter-codex 1.9.0 → 1.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/managed.cjs +1 -1
- package/package.json +1 -1
- package/runtime/constants.cjs +1 -1
- package/runtime/mcp-stdio.cjs +3 -3
package/lib/managed.cjs
CHANGED
|
@@ -155,7 +155,7 @@ function agentsBlock(options = {}) {
|
|
|
155
155
|
const automatic = options.hookMode === 'mcp'
|
|
156
156
|
? '- Automatic hooks (over the signed-in MemoryRouter connection) already run the RETRIEVE search before each prompt and add what they find as context ("MemoryRouter recalled this for the current message"), then save each completed turn: the user\'s message and your final response only, never tool calls, tool output or intermediate steps.\n'
|
|
157
157
|
: '- Automatic hooks already run the RETRIEVE search before each prompt ("MemoryRouter recalled the following context") and save each completed turn (the user\'s message and your final response only) when a MemoryRouter API key is configured.\n';
|
|
158
|
-
return `## MemoryRouter memory\n\n${MEMORY_INSTRUCTIONS}\n\n### How this maps to Codex\n\n- Tool names: search is \`search_memories\` (\`memory_search\` in API-key mode), save is \`store_memory\` (\`memory_store\`), inspection is \`inspect_memory\` (\`memory_inspect\`), and time windows use \`date_search_memories\` (\`memory_date_search\`). There is no update tool: to supersede outdated information, save the corrected fact and say what it replaces.\n${automatic}- When recalled context is present, that search already ran: answer from it and search again only for more detail
|
|
158
|
+
return `## MemoryRouter memory\n\n${MEMORY_INSTRUCTIONS}\n\n### How this maps to Codex\n\n- Tool names: search is \`search_memories\` (\`memory_search\` in API-key mode), save is \`store_memory\` (\`memory_store\`), inspection is \`inspect_memory\` (\`memory_inspect\`), and time windows use \`date_search_memories\` (\`memory_date_search\`). There is no update tool: to supersede outdated information, save the corrected fact and say what it replaces.\n${automatic}- When recalled context is present, that search already ran: answer from it and search again only for more detail.\n- Save with the save tool after every user message worth knowing later (a decision, a preference, a fact about a person, project, or tool, a plan or commitment, a correction, or an outcome), one concise, self-contained memory per call with exact wording, numbers, and identifiers. Default to saving; a missed memory costs more than a redundant one. Hooks capture the turn text, so save the distilled fact rather than repeating the turn.\n- Never save passwords, API keys, tokens or other credentials, payment card numbers, government ID numbers, or health information. If the user asks what was searched or saved, answer truthfully.\n- MemoryRouter is the durable cross-machine, cross-tool memory layer, the same vault Claude Code uses through memoryrouter-claude. Codex native Memories may remain enabled as the local personal recall layer.\n- If MemoryRouter is offline, continue the task without memory; never block work on recall or capture.`;
|
|
159
159
|
}
|
|
160
160
|
|
|
161
161
|
function installAgents(file, options = {}) {
|
package/package.json
CHANGED
package/runtime/constants.cjs
CHANGED
package/runtime/mcp-stdio.cjs
CHANGED
|
@@ -11,7 +11,7 @@ const { contractFrom, validateEntries } = require('./reflect.cjs');
|
|
|
11
11
|
const { INTEGRATION_VERSION } = require('./constants.cjs');
|
|
12
12
|
const { MEMORY_INSTRUCTIONS } = require('./memory-instructions.cjs');
|
|
13
13
|
|
|
14
|
-
const SERVER_INSTRUCTIONS = `${MEMORY_INSTRUCTIONS}\n\nHow this maps to this server: search_memories is memory_search, the save tool is memory_store (one concise, self-contained memory per call
|
|
14
|
+
const SERVER_INSTRUCTIONS = `${MEMORY_INSTRUCTIONS}\n\nHow this maps to this server: search_memories is memory_search, the save tool is memory_store, inspection is memory_inspect, and time windows use memory_date_search. Save with memory_store after every user message worth knowing later (a decision, a preference, a fact about a person, project, or tool, a plan or commitment, a correction, or an outcome), one concise, self-contained memory per call; default to saving, a missed memory costs more than a redundant one. There is no update tool: to supersede outdated information, save the corrected fact and say what it replaces. When recalled context is present that search already ran; when hooks capture turns, save the distilled fact rather than the turn text. Never save passwords, API keys, tokens or other credentials, payment card numbers, government ID numbers, or health information. If the user asks what was searched or saved, answer truthfully. The vault is cross-machine memory shared by every session, repository, and connected tool (Codex, Claude Code, the hosted MemoryRouter MCP, ChatGPT, Claude).`;
|
|
15
15
|
|
|
16
16
|
const TOOLS = [
|
|
17
17
|
{
|
|
@@ -61,7 +61,7 @@ const TOOLS = [
|
|
|
61
61
|
},
|
|
62
62
|
{
|
|
63
63
|
name: 'memory_store',
|
|
64
|
-
description: "Use this after each user message
|
|
64
|
+
description: "Use this after each user message that contains anything worth knowing later, even if the user does not say 'remember this'. Default to saving: a missed memory costs far more than a redundant one, so when in doubt, save. Each of these is a trigger on its own: the user makes a decision, states a preference, gives a fact about a person, project, company, or tool, sets a plan or commitment, makes a correction, or reports progress or an outcome. Save one concise, self-contained memory per call with the exact wording, numbers, dates, names, and identifiers the user gave; several facts in one message mean several calls. Record what the user said, not your inference. There is no update tool: to supersede outdated information, save the corrected fact and say what it replaces. When hooks capture turns, save the distilled fact rather than repeating the turn text. Never save credentials, payment card numbers, government ID numbers, or health information. Stores in the vault (tagged with the current repository), returns a stable content-derived handle, and deduplicates exact repeats.",
|
|
65
65
|
inputSchema: {
|
|
66
66
|
type: 'object',
|
|
67
67
|
properties: {
|
|
@@ -71,7 +71,7 @@ const TOOLS = [
|
|
|
71
71
|
},
|
|
72
72
|
required: ['content'],
|
|
73
73
|
},
|
|
74
|
-
annotations: { title: '
|
|
74
|
+
annotations: { title: 'Save memory', readOnlyHint: false, destructiveHint: false, idempotentHint: true, openWorldHint: true },
|
|
75
75
|
},
|
|
76
76
|
{
|
|
77
77
|
name: 'memory_status',
|