You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/memory/CHANGELOG.md
+16-16Lines changed: 16 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
10
10
### Added
11
11
12
12
- Project KV store for ephemeral project state with TTL management
13
-
-`memory-kv-set`, `memory-kv-get`, `memory-kv-delete`, `memory-kv-list` tools for managing project state
13
+
-`memory-kv-set`, `memory-kv-get`, `memory-kv-list` tools for managing project state
14
14
- Automatic cleanup of expired KV entries (30-minute interval)
15
15
- Default 24-hour TTL for KV entries
16
16
@@ -23,9 +23,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
23
23
### Added
24
24
25
25
-`experimental.chat.messages.transform` hook: automatically injects project conventions and decisions into system prompts for every LLM call, with configurable token budget and caching
26
-
- Skill tool awareness in Code and Architect agent prompts
27
-
-`plan_enter` permission on Code agent for switching to Architect mode
28
-
-`memory-edit` documentation in Memory agent's tool list
26
+
- Skill tool awareness in code and architect agent prompts
27
+
-`plan_enter` permission on code agent for switching to architect mode
28
+
-`memory-edit` documentation in Librarian agent's tool list
29
29
- Agent name logging in all tool handlers via new ToolContext.agent field
30
30
31
31
### Changed
@@ -35,24 +35,24 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
35
35
36
36
### Fixed
37
37
38
-
-Memory agent tool documentation now lists all 7 available tools (was missing memory-edit)
38
+
-Librarian agent tool documentation now lists all 7 available tools (was missing memory-edit)
39
39
40
40
## [0.0.9] - 2026-02-27
41
41
42
42
### Added
43
43
44
-
-`experimental.chat.messages.transform` hook that injects read-only enforcement reminder into Architect agent sessions, preventing file edits and non-readonly tool usage at the message level
45
-
-Code Review agent (`ocm-code-review`) — read-only subagent for convention-aware code reviews with memory integration, invoked via Task tool
46
-
-`/review` command that triggers the Code Review agent to review current changes
44
+
-`experimental.chat.messages.transform` hook that injects read-only enforcement reminder into architect agent sessions, preventing file edits and non-readonly tool usage at the message level
45
+
-auditor agent (`ocm-auditor`) — read-only subagent for convention-aware code reviews with memory integration, invoked via Task tool
46
+
-`/review` command that triggers the auditor agent to review current changes
47
47
48
48
### Changed
49
49
50
-
- Restricted `memory-planning-update` and `memory-planning-search` tools to Memory subagent only — Code and Architect agents now delegate planning operations via @Memory Task tool
51
-
- Overhauled Code and Architect agent system prompts with tone/style guidelines, tool usage policies, task management instructions, and planning state delegation patterns
50
+
- Restricted `memory-planning-update` and `memory-planning-search` tools to librarian subagent only — code and architect agents now delegate planning operations via @librarian Task tool
51
+
- Overhauled code and architect agent system prompts with tone/style guidelines, tool usage policies, task management instructions, and planning state delegation patterns
52
52
-`memory-plan-execute` now accepts optional `objective`, `phases`, and `findings` parameters and saves planning state inline before dispatching the plan, eliminating the need for a separate `memory-planning-update` call
53
-
- Planning instruction appended to dispatched plans now directs Code agent to delegate planning updates to @Memory subagent
54
-
- Updated Memory agent description to include planning state and session progress management
55
-
- Updated Code Review agent description to accurately reflect its capabilities
53
+
- Planning instruction appended to dispatched plans now directs code agent to delegate planning updates to @librarian subagent
54
+
- Updated librarian agent description to include planning state and session progress management
55
+
- Updated auditor agent description to accurately reflect its capabilities
56
56
57
57
## [0.0.6] - 2026-02-24
58
58
@@ -62,9 +62,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
62
62
- Planning state tools: `memory-planning-update` and `memory-planning-get` for tracking session objectives, phases, findings, and errors
63
63
-`memory-plan-execute` tool for creating new Code sessions with approved implementation plans
64
64
- Three embedding providers: local (`all-MiniLM-L6-v2`), OpenAI (`text-embedding-3-small/large`, `ada-002`), and Voyage (`voyage-code-3`, `voyage-2`)
65
-
- Bundled Code agent (`ocm-code`) with memory-aware coding workflows
66
-
- Bundled Architect agent (`ocm-architect`) for read-only planning with automatic plan handoff
67
-
- Bundled Memory agent (`ocm-memory`) for expert knowledge curation and post-compaction extraction
65
+
- Bundled code agent (`ocm-code`) with memory-aware coding workflows
66
+
- Bundled architect agent (`ocm-architect`) for read-only planning with automatic plan handoff
67
+
- Bundled librarian agent (`ocm-librarian`) for expert knowledge curation and post-compaction extraction
68
68
- Compaction context injection with custom prompt, planning state, conventions, and decisions
Copy file name to clipboardExpand all lines: packages/memory/README.md
+10-11Lines changed: 10 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,7 +34,7 @@ The local embedding model downloads automatically on install. For API-based embe
34
34
-**Compaction Context Injection** - Injects conventions and decisions into session compaction for seamless continuity
35
35
-**Automatic Memory Injection** - Injects relevant project memories into user messages via semantic search with distance filtering and caching
36
36
-**Project KV Store** - Ephemeral key-value storage with TTL management for project state
37
-
-**Bundled Agents** - Ships with Code, Architect, and Memory agents preconfigured for memory-aware workflows
37
+
-**Bundled Agents** - Ships with Code, Architect, and Librarian agents preconfigured for memory-aware workflows
38
38
-**CLI Tools** - Export, import, list, stats, and cleanup commands via `ocm-mem` binary
39
39
-**Dimension Mismatch Detection** - Detects embedding model changes and guides recovery via reindex
40
40
@@ -44,14 +44,14 @@ The plugin bundles four agents that integrate with the memory system:
44
44
45
45
| Agent | ID | Mode | Description |
46
46
|-------|----|------|-------------|
47
-
|**Code**|`ocm-code`| primary | Primary coding agent with memory awareness. Checks memory before unfamiliar code, stores architectural decisions and conventions as it works. Delegates planning operations to @Memory subagent. |
48
-
|**Architect**|`ocm-architect`| primary | Read-only planning agent. Researches the codebase, delegates to @Memory for broad knowledge retrieval, designs implementation plans, then hands off to Code via `memory-plan-execute`. |
49
-
|**Memory**|`ocm-memory`| subagent | Expert agent for managing project memory. Handles post-compaction memory extraction and contradiction resolution. |
50
-
|**Code Review**|`ocm-code-review`| subagent | Read-only code reviewer with access to project memory for convention-aware reviews. Invoked via Task tool to review diffs, commits, branches, or PRs against stored conventions and decisions. |
47
+
|**code**|`ocm-code`| primary | Primary coding agent with memory awareness. Checks memory before unfamiliar code, stores architectural decisions and conventions as it works. Delegates planning operations to @librarian subagent. |
48
+
|**architect**|`ocm-architect`| primary | Read-only planning agent. Researches the codebase, delegates to @librarian for broad knowledge retrieval, designs implementation plans, then hands off to code via `memory-plan-execute`. |
49
+
|**librarian**|`ocm-librarian`| subagent | Expert agent for managing project memory. Handles post-compaction memory extraction and contradiction resolution. |
50
+
|**auditor**|`ocm-auditor`| subagent | Read-only code auditor with access to project memory for convention-aware reviews. Invoked via Task tool to review diffs, commits, branches, or PRs against stored conventions and decisions. |
51
51
52
-
The Code Review agent is a read-only subagent (`temperature: 0.0`) that can read memory but cannot write, edit, or delete memories or execute plans. It is invoked by other agents via the Task tool to review code changes against stored project conventions and decisions.
52
+
The auditor agent is a read-only subagent (`temperature: 0.0`) that can read memory but cannot write, edit, or delete memories or execute plans. It is invoked by other agents via the Task tool to review code changes against stored project conventions and decisions.
53
53
54
-
The Architect agent operates in read-only mode (`temperature: 0.0`, all edits denied) with additional message-level read-only enforcement via the `experimental.chat.messages.transform` hook. After the user approves a plan, it calls `memory-plan-execute` which creates a new Code session with the full plan as context.
54
+
The architect agent operates in read-only mode (`temperature: 0.0`, all edits denied) with additional message-level read-only enforcement via the `experimental.chat.messages.transform` hook. After the user approves a plan, it calls `memory-plan-execute` which creates a new code session with the full plan as context.
55
55
56
56
## Tools
57
57
@@ -74,7 +74,6 @@ Ephemeral key-value storage for project state with automatic TTL-based expiratio
74
74
|------|-------------|
75
75
|`memory-kv-set`| Store a value with optional TTL (default 24 hours) |
76
76
|`memory-kv-get`| Retrieve a value by key |
77
-
|`memory-kv-delete`| Delete a value by key |
78
77
|`memory-kv-list`| List all active KV entries for the project |
79
78
80
79
## CLI
@@ -260,11 +259,11 @@ When enabled, logs are written to the specified file with timestamps. The log fi
260
259
#### Execution
261
260
-`executionModel` - Model override for plan execution sessions, format: `provider/model` (e.g. `anthropic/claude-haiku-3-5-20241022`). When set, `memory-plan-execute` uses this model for the new Code session. When empty or omitted, OpenCode's default model is used (typically the `model` field from `opencode.json`). **Recommended:** Set this to a fast, cheap model (e.g. Haiku or MiniMax) and use a smart model (e.g. Opus) for the Architect session — planning needs reasoning, execution needs speed.
262
261
263
-
## Architect → Code Workflow
262
+
## architect → code Workflow
264
263
265
-
Plan with a smart model, execute with a fast model. The Architect agent researches and designs; the Code agent implements.
264
+
Plan with a smart model, execute with a fast model. The architect agent researches and designs; the code agent implements.
266
265
267
-
Set `executionModel` in your config to a fast model (e.g., Haiku) and use a smart model (e.g., Opus) for the Architect session.
266
+
Set `executionModel` in your config to a fast model (e.g., Haiku) and use a smart model (e.g., Opus) for the architect session.
268
267
269
268
See the [full workflow guide](https://chriswritescode-dev.github.io/opencode-manager/features/memory/#architect--code) for setup details.
0 commit comments