From e1890d0554d13f10c95ce7941f2464f11235f406 Mon Sep 17 00:00:00 2001 From: Chris Scott <99081550+chriswritescode-dev@users.noreply.github.com> Date: Sat, 7 Mar 2026 10:41:40 -0500 Subject: [PATCH] memory: v0.0.15 with code-review workflow and agent updates --- packages/memory/package.json | 2 +- packages/memory/src/agents/code-review.ts | 12 ++++++++++-- packages/memory/src/agents/code.ts | 5 +++-- packages/memory/src/version.ts | 2 +- 4 files changed, 15 insertions(+), 6 deletions(-) diff --git a/packages/memory/package.json b/packages/memory/package.json index c86c90b6..d333a935 100644 --- a/packages/memory/package.json +++ b/packages/memory/package.json @@ -1,6 +1,6 @@ { "name": "@opencode-manager/memory", - "version": "0.0.14", + "version": "0.0.15", "type": "module", "main": "./dist/index.js", "types": "./dist/index.d.ts", diff --git a/packages/memory/src/agents/code-review.ts b/packages/memory/src/agents/code-review.ts index b59a3e02..07e7e1fb 100644 --- a/packages/memory/src/agents/code-review.ts +++ b/packages/memory/src/agents/code-review.ts @@ -14,7 +14,7 @@ export const codeReviewAgent: AgentDefinition = { ## Your Role -You are a subagent invoked via the Task tool. The calling agent provides what to review (diff, commit, branch, PR). You gather context, check against project memory, and return a structured review summary. +You are a subagent invoked via the Task tool. The calling agent provides what to review (diff, commit, branch, PR). You gather context, check against project memory, and return a structured review with actionable findings. When bugs or warnings are found, you direct the calling agent to create a fix plan and present it for user approval. ## Determining What to Review @@ -84,7 +84,7 @@ If you're uncertain about something and can't verify it, say "I'm not sure about Return your review as a structured summary. The calling agent will use this to inform the user. ### Summary -One-sentence overview of the review (e.g., "3 issues found: 1 bug, 2 convention violations"). +One-sentence overview of the review (e.g., "3 issues found: 1 bug, 2 convention violations"). If bugs or warnings exist, indicate that fixes are needed. ### Issues For each issue found: @@ -97,6 +97,14 @@ For each issue found: ### Observations Any non-issue observations worth noting (positive patterns, questions for the author). +### Next Steps +If any bugs or warnings were found: +- Direct the calling agent: "Create a plan to address the issues above and present it for approval before making changes." +- The calling agent is responsible for planning the fixes — do not construct the plan yourself. + +If only suggestions were found or no issues at all: +- State "No critical issues requiring fixes. The suggestions above are optional improvements." + If no issues are found, say so clearly and briefly. ## Constraints diff --git a/packages/memory/src/agents/code.ts b/packages/memory/src/agents/code.ts index c4203632..326b8dbe 100644 --- a/packages/memory/src/agents/code.ts +++ b/packages/memory/src/agents/code.ts @@ -12,7 +12,7 @@ export const codeAgent: AgentDefinition = { plan_enter: 'allow', }, tools: { - exclude: ['memory-plan-execute'], + exclude: [], }, systemPrompt: `You are a coding agent that helps users with software engineering tasks. You have access to a persistent memory system that stores project conventions, architectural decisions, and contextual knowledge across sessions. @@ -70,6 +70,7 @@ Your messages may include \`\` blocks containing memories automa - **[decision]**: Architectural choices with rationale — treat as constraints - **[context]**: Reference information — file locations, domain knowledge, known issues -These memories may be stale or irrelevant to the current task. Use your judgement. If a memory seems outdated or incorrect, flag it to the user and use memory-edit or memory-delete to correct it. +These memories may be stale or irrelevant to the current task. Use your judgement. If a memory seems outdated or incorrect for the current task, you can ignore it. +If you notice patterns of outdated or incorrect memories, consider asking the user to curate them. Use the @Memory subagent to perform memory research and contradiction resolution. `, } diff --git a/packages/memory/src/version.ts b/packages/memory/src/version.ts index 9d936c72..27988ff1 100644 --- a/packages/memory/src/version.ts +++ b/packages/memory/src/version.ts @@ -1 +1 @@ -export const VERSION = '0.0.14' +export const VERSION = '0.0.15'