feat(memos-local-plugin): v2.0 full rewrite with Reflect2Evolve architecture#1511
Merged
hijzy merged 2 commits intoMemTensor:mainfrom Apr 22, 2026
Merged
feat(memos-local-plugin): v2.0 full rewrite with Reflect2Evolve architecture#1511hijzy merged 2 commits intoMemTensor:mainfrom
hijzy merged 2 commits intoMemTensor:mainfrom
Conversation
…tecture
Complete end-to-end rewrite of the memos-local-plugin package into a
layered, agent-agnostic memory runtime with support for both OpenClaw
and Hermes adapters.
Highlights:
- New `core/` package (agent-agnostic): capture, embedding, feedback,
hub, LLM client, logger, memory (L1/L2/L3), pipeline, reward, recall,
retrieval, skill, session, storage, config modules — each with its
own README + ALGORITHMS notes.
- New `adapters/` layer with `openclaw/` and `hermes/` integrations
isolated from core. Agent-specific concepts (turns, installers,
bridge clients) live only here.
- New `agent-contract/` — single shared contract (dto, errors, events,
jsonrpc, log-record, memory-core) between core and adapters.
- New `bridge/` — JSON-RPC stdio bridge (methods.ts, stdio.ts).
- New `server/` — HTTP/SSE server for the viewer.
- New `site/` — Vite-built public product site + release notes index.
- New `web/` — Vite-built viewer app with memory/skill/timeline/world
model views.
- New `docs/` — ALGORITHM, DATA-MODEL, LOGGING, MANUAL_E2E_TESTING,
Reflect2Skill design core, multi-agent viewer, etc.
- New `tests/` — vitest unit/integration + python bridge tests.
- Tooling: TypeScript multi-project build (tsconfig.{json,site,web}),
Vite + Vitest, cross-platform install.sh / install.ps1, npm release
checker, package-lock committed.
- Removes legacy `src/` and `www/` structure from main branch; the new
layout replaces it entirely.
This change is fully scoped to apps/memos-local-plugin/ and does not
touch any other package.
- Remove unused imports (Iterable, Dict, List) in memos_provider/__init__.py - Move Callable into TYPE_CHECKING block in bridge_client.py - Replace try/except/pass with contextlib.suppress in bridge_client.py - Combine nested if in test_bridge_client.py - Apply ruff format to 4 Python files (hermes adapter + tests) All files now pass `ruff check` and `ruff format --check`.
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
Complete end-to-end rewrite of
apps/memos-local-plugin/into a layered, agent-agnostic memory runtime with adapters for both OpenClaw and Hermes. This replaces the previoussrc/+www/layout onmainentirely.The change is fully scoped to
apps/memos-local-plugin/— no other package is modified.What's new
core/— agent-agnostic runtime: capture, embedding, feedback, hub, LLM client, logger, memory (L1/L2/L3), pipeline, reward, recall, retrieval, session, skill, storage, config. Each module ships with aREADME.mdand, where relevant, anALGORITHMS.md.adapters/— agent-specific integrations isolated from core:openclaw/— TS bridge + tools + installerhermes/— Pythonmemos_provider+ bridge client + install scriptagent-contract/— the only shared contract between core and adapters (dto / errors / events / jsonrpc / log-record / memory-core).bridge/— JSON-RPC stdio bridge (methods.ts,stdio.ts).server/— HTTP/SSE server backing the viewer.web/— Vite viewer app (Overview / Memories / Policies / Skills / Tasks / WorldModels / Settings views).site/— Vite-built public product site + per-version release notes index.docs/— algorithm alignment, data model, logging, manual E2E scenario, Reflect2Skill design core, multi-agent viewer.tests/— vitest unit + integration + Python bridge tests.tsconfig.{json,site,web}.json), Vite + Vitest, cross-platforminstall.sh/install.ps1, npm release checker,package-lock.jsoncommitted.Structural changes vs
mainsrc/andwww/layout onmain— the new module layout supersedes it..gitignoreand.npmignoreupdated to cover new build outputs (site/dist/,web/dist/,coverage/, etc.).Stats
615 files changed · +94,489 / −36,040.
Type of change
apps/memos-local-plugin/)Test plan
cd apps/memos-local-plugin && npm installnpm run lintnpm test(vitest unit + integration)apps/memos-local-plugin/docs/MANUAL_E2E_TESTING.md./install.shon macOS/Linux;install.ps1on Windowsadapters/hermes/install.hermes.shnpm run dev:web→ open Overview / Memories / Skills viewsnpm run build:site