Skip to content

Commit 13ebfc1

Browse files
Update memory docs with Code Review agent
1 parent 89a508e commit 13ebfc1

1 file changed

Lines changed: 14 additions & 1 deletion

File tree

docs/features/memory.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ The plugin injects active planning state into compaction context so task progres
384384

385385
## Agents
386386

387-
The plugin registers three agents that are configured into OpenCode:
387+
The plugin registers four agents that are configured into OpenCode:
388388

389389
### Code Agent (primary)
390390

@@ -445,6 +445,19 @@ When `memory-plan-execute` runs, it automatically appends a planning instruction
445445

446446
The Architect agent does not have direct access to `memory-planning-update` or `memory-planning-search`. It delegates broad memory research to the @Memory subagent and reads its own session's planning state via `memory-planning-get`.
447447

448+
### Code Review Agent (subagent)
449+
450+
- **Display name:** `Code Review`
451+
- **Mode:** `subagent`
452+
- **Temperature:** 0.0 (deterministic)
453+
- **Role:** Convention-aware code reviewer with memory access
454+
455+
The Code Review agent is a read-only subagent invoked by other agents via the Task tool to review diffs, commits, branches, or PRs. It checks changes against stored project conventions and decisions, then returns a structured review summary with issues (bug/warning/suggestion) and observations.
456+
457+
The agent can read memory (`memory-read`) and planning state (`memory-planning-get`, `memory-planning-search`, `memory-planning-update`) but cannot write, edit, or delete memories. It also cannot execute plans — `memory-plan-execute`, `memory-write`, `memory-edit`, and `memory-delete` are excluded.
458+
459+
The `/review` slash command triggers this agent as a subtask with the template: "Review the current code changes."
460+
448461
### Built-in Agent Enhancements
449462

450463
The plugin also modifies built-in OpenCode agents:

0 commit comments

Comments
 (0)