Update memory package KV store documentation

Add memory-kv-delete documentation and review finding retrieval logic
This commit is contained in:
Chris Scott committed 2026-03-25 15:49:39 -04:00
1 parent cc1256d6ec
commit 7c956e9bba
4 files changed
+7 -4

No files matched your search

+3 -2
View File
@@ -60,9 +60,10 @@ ${getInjectedMemory('architect')}
## Project KV Store
You have access to a project-scoped key-value store with 7-day TTL for ephemeral state:
- \`memory-kv-set\`: Store planning progress, research findings, or any project state
- \`memory-kv-set\`: Store planning progress, research findings, or session state
- \`memory-kv-get\`: Retrieve previously stored state
- \`memory-kv-list\`: See all active entries for the project
- \`memory-kv-list\`: List all active entries for the project
- \`memory-kv-delete\`: Delete a key-value pair for the project
KV entries are scoped to the current project and expire after 7 days. Use this for state that needs to survive compaction but isn't permanent enough for memory-write.
+1 -1
View File
@@ -82,7 +82,7 @@ You are the execution agent. Your job is to write code, not describe code.
You have access to a project-scoped key-value store with 7-day TTL for ephemeral state:
- \`memory-kv-set\`: Store ephemeral findings, planning progress, or session state
- \`memory-kv-get\`: Retrieve previously stored state
- \`memory-kv-list\`: See all active entries for the project
- \`memory-kv-list\`: List all active key-value pairs for the project. Optionally filter by key prefix.
KV entries are scoped to the current project and expire after 7 days. Use this for state that needs to survive compaction but isn't permanent enough for memory-write.
`,
+1 -1
View File
@@ -920,7 +920,7 @@ Do NOT output text without also making this tool call.
},
}),
'memory-kv-list': tool({
description: 'List all active key-value pairs for the current project.',
description: 'List all active key-value pairs for the current project. Optionally filter by key prefix.',
args: {
prefix: z.string().optional().describe('Filter entries by key prefix (e.g. "review-finding:")'),
},
+2
View File
@@ -139,6 +139,8 @@ export function createRalphService(
'If you find bugs in related code that affect the correctness of this task, report them — even if the buggy code was not directly modified.',
'If everything looks good, state "No issues found." clearly.',
'',
'Before reviewing, retrieve all existing review findings from the KV store using `memory-kv-list` with prefix `review-finding:`. For each existing finding, verify whether the issue has been resolved in the current code. Delete resolved findings using `memory-kv-delete`. Report any unresolved findings that still apply.',
'',
'This is an automated loop — do not direct the agent to "create a plan" or "present for approval." Just report findings directly.',
].join('\n')
}