mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-05 12:24:30 +01:00
memory: v0.0.15 with code-review workflow and agent updates
This commit is contained in:
1 parent
6ef68774d8
commit
e1890d0554
4 files changed
+15
-6
No files matched your search
@@ -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",
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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 \`<project-memory>\` 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.
|
||||
`,
|
||||
}
|
||||
@@ -1 +1 @@
|
||||
export const VERSION = '0.0.14'
|
||||
export const VERSION = '0.0.15'
|
||||
Reference in new issue
Block a user