feat(memory): per-agent memory isolation and context retrieval#4511
Closed
herjarsa wants to merge 12 commits into
Closed
feat(memory): per-agent memory isolation and context retrieval#4511herjarsa wants to merge 12 commits into
herjarsa wants to merge 12 commits into
Conversation
added 7 commits
May 24, 2026 11:37
- Create @oh-my-opencode/semantic-memory package with SQLite storage - Implement simple embedding generation using term frequency hashing - Add cosine similarity search for semantic memory retrieval - Create memory-context-injector hook for automatic memory storage - Add 'omo memory' CLI with search, recent, store, delete, stats, clear commands - Support memory types: context, decision, error, pattern, insight - Include comprehensive test suite (13 tests) Closes code-yeongyu#2
…errors - Remove packages/semantic-memory package - Move implementation to src/features/semantic-memory/ - Update imports to use relative paths - Fix type errors by removing non-existent type imports - Update CLI command to import from local feature
Feature code-yeongyu#3775: Per-agent persistent memory system. - agent-memory.ts with retrieveAgentMemories (weighted scoring) and storeAgentMemory - AgentMemoryContextHook for tool.execute.before/after per-agent context injection - Weighted agent scoring: agent-specific memories get 1.5x boost - Automatic memory classification (decision/error/pattern/insight/context) - Based on existing semantic-memory system (supports agentName field) Closes code-yeongyu#3775
added 5 commits
May 26, 2026 15:25
…rc/features/semantic-memory/)
…e CI compatibility
Contributor
Author
|
Superseded by #4404 (per-agent memory, clean version) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Isolated memory spaces per agent type with cross-session context retrieval.
Features
Summary by cubic
Adds per‑agent persistent semantic memory with cross‑session retrieval and automatic context capture/injection. Includes a
memoryCLI, moves code tosrc/features/semantic-memory/, updates the lockfile to 4.5.1, and fixes a workspace config typo to unblock CI; fulfills #3775.New Features
bun:sqlite, simple TF‑hash embeddings, and cosine similarity search.memory-context-injectorand tool hooks.Migration
memory-context-injectorhook in config to auto‑capture context.SEMANTIC_MEMORY_DB_PATHto set the DB location.Written for commit 358d1be. Summary will update on new commits. Review in cubic