Files
opencode-manager/packages/memory/CHANGELOG.md
T
Chris Scott 6ef68774d8 Clean up and enhance memory plugin (#151)
* refactor storage to use worker-based vector operations

* update memory service and agent implementations

* update opencode plugin sdk

* update memory plugin documentation

* add tests for memory service and injection hook

* update lockfile for dependency changes

* Add memory plugin v0.0.13 with message deduplication and config UI

* Remove planning state feature from memory plugin
2026-03-06 20:24:52 -05:00

3.9 KiB

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

[0.0.12] - 2026-03-05

Added

  • experimental.chat.messages.transform hook: automatically injects project conventions and decisions into system prompts for every LLM call, with configurable token budget and caching
  • Skill tool awareness in Code and Architect agent prompts
  • plan_enter permission on Code agent for switching to Architect mode
  • memory-edit documentation in Memory agent's tool list
  • Agent name logging in all tool handlers via new ToolContext.agent field

Changed

  • Upgraded @opencode-ai/plugin from ^1.2.9 to ^1.2.16
  • Renamed deprecated maxSteps to steps in AgentDefinition and AgentConfig types

Fixed

  • Memory agent tool documentation now lists all 7 available tools (was missing memory-edit)

[0.0.9] - 2026-02-27

Added

  • 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
  • Code Review agent (ocm-code-review) — read-only subagent for convention-aware code reviews with memory integration, invoked via Task tool
  • /review command that triggers the Code Review agent to review current changes

Changed

  • 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
  • Overhauled Code and Architect agent system prompts with tone/style guidelines, tool usage policies, task management instructions, and planning state delegation patterns
  • 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
  • Planning instruction appended to dispatched plans now directs Code agent to delegate planning updates to @Memory subagent
  • Updated Memory agent description to include planning state and session progress management
  • Updated Code Review agent description to accurately reflect its capabilities

[0.0.6] - 2026-02-24

Added

  • Core memory tools: memory-read, memory-write, memory-edit, memory-delete, memory-health
  • Planning state tools: memory-planning-update and memory-planning-get for tracking session objectives, phases, findings, and errors
  • memory-plan-execute tool for creating new Code sessions with approved implementation plans
  • Three embedding providers: local (all-MiniLM-L6-v2), OpenAI (text-embedding-3-small/large, ada-002), and Voyage (voyage-code-3, voyage-2)
  • Bundled Code agent (ocm-code) with memory-aware coding workflows
  • Bundled Architect agent (ocm-architect) for read-only planning with automatic plan handoff
  • Bundled Memory agent (ocm-memory) for expert knowledge curation and post-compaction extraction
  • Compaction context injection with custom prompt, planning state, conventions, and decisions
  • Configurable compaction settings: custom prompt, inline planning, token budget, snapshot storage
  • CLI export/import for backing up and migrating memories as JSON or Markdown
  • Embedding cache with SHA-256 keying and 24-hour TTL
  • Embedding sync service with batch processing and retry logic
  • Session state KV store with TTL management (7-day planning, 24-hour snapshots)
  • Automatic deduplication via exact match and semantic similarity detection
  • Dimension mismatch detection on startup with guided recovery via reindex
  • Build-time version injection displayed in memory-health output
  • Automatic model download via postinstall script
  • Auto-copy of bundled config on first run
  • SQLite storage with sqlite-vec for vector similarity search