Skip to content

feat(memory): add standalone web knowledge workspace - #163

Merged
Grivn merged 3 commits into
mnemon-dev:masterfrom
mtroym:feat/mnemon-web-workspace
Oct 18, 2026
Merged

Grivn merged 3 commits into
mnemon-dev:masterfrom
mtroym:feat/mnemon-web-workspace

Conversation

@mtroym

@mtroym mtroym commented Oct 18, 2026 •

Copy link
Copy Markdown
Contributor

What

Add mnemon web, a standalone local knowledge workspace for the memories accumulated by agents. The command serves an embedded React application at http://127.0.0.1:8484 with store selection, overview, searchable/filterable memory library, Markdown reader, interactive relationship graph, entity explorer, and activity history. The official logo, locally bundled Space Grotesk typography, and graphite/silver light and dark themes provide a consistent workspace; appearance can follow the system or persist an explicit choice across tabs. Store-scoped URLs preserve filters, graph selection, and browser navigation. Views support manual refresh and visible-tab polling.

A dedicated SQLite live read-only connection observes committed WAL writes without changing memory content, access counters, retention scores, operation logs, or the CLI's active store. Request-owned read transactions provide consistent results within each response. APIs enforce loopback hosts, same-origin access, read-only methods, query deadlines, path confinement, and bounded pages/graphs; deleted memories remain hidden. Markdown disables raw HTML and remote image loading.

Frontend dependencies and generated production assets live under web/; assets are embedded in the existing executable, so ordinary go build -o mnemon . requires only Go. CI and release validation rebuild the frontend and verify generated asset parity. README and the workspace guide document launch, live-read behavior, development, and query limits.

Why

Mnemon's existing viz command produces a graph snapshot. Humans also need a persistent place to search, read, and understand the knowledge their agents accumulate. This adds that workspace using existing stores and relationship semantics, with library and graph interactions inspired by dsh-mnemon.

The initial release supports local read-only browsing. Human editing, document storage, remote/team hosting, and automatic model-based topic classification remain separate increments.

Validation

  • make test (including go vet ./...).
  • go test ./test/memory/web -count=1: real server startup/shutdown and visibility of external writes.
  • go build -o mnemon .; Windows amd64 product cross-build.
  • Race checks for the HTTP reader, live store, command, and lifecycle boundaries.
  • Public-registry npm ci, frontend typecheck, and 49 frontend tests.
  • Production frontend rebuild with identical asset filenames and bytes.
  • Desktop/mobile browser flows: search, filters, pagination, reader/correction navigation, deep-link reload and Back/Forward, direct graph node selection, neighborhood/relationship controls, entity/activity navigation, store isolation, empty/missing/deleted states, safe Markdown and Chinese tables, live writes, and failed-refresh pagination recovery.
  • Synthetic 10,000-memory browse benchmark; graphs cap at 200 nodes / 800 edges, and relevance ranking uses a disclosed 5,000-match candidate budget.

Release-note impact

New command: mnemon web [--port 8484] [--store <name>]. It serves a local read-only memory website from the single Mnemon executable with all runtime assets bundled locally.

Checklist

  • Deterministic tests pass (make test)
  • Relevant Web process boundary passes (go test ./test/memory/web -count=1; full Agency/Docker integration suite not run)
  • New/changed behavior is covered by tests
  • Documentation updated
  • User-facing release-note impact described

Serve a local read-only memory library, Markdown reader, relationship graph,
entity explorer, and activity view with live WAL visibility and isolated store
navigation. Embed the frontend in the existing executable and enforce bounded
reads, origin checks, safe rendering, and cancellation-owned server lifecycle.

Add store/API/frontend/lifecycle coverage, reproducible asset checks in CI and
release validation, and workspace documentation. Validated with make test,
19 frontend tests, production asset parity, product builds, race checks, and
end-to-end desktop/mobile browser flows.
@mtroym
mtroym force-pushed the feat/mnemon-web-workspace branch from c16aa22 to de82203 Compare October 18, 2026 09:39
mtroym and others added 2 commits October 18, 2026 20:08
Use the official Mnemon logo and graphite/silver palette throughout the memory
workspace, with locally bundled Space Grotesk typography. Align library filters
and adapt shared reading, graph, and navigation surfaces for light and dark modes.

Add system-aware appearance selection, first-paint initialization, persistence,
and cross-tab synchronization. Preserve graph layout and correction semantics
while replacing theme styles. Validated with 49 frontend tests, make test,
embedded-asset checks, reproducible builds, and desktop/mobile browser flows.
Keep Windows drive letters in the SQLite file URI path, matching the existing immutable reader. Use a portable path-escaping fixture while retaining question-mark coverage on platforms that allow it.

Validated with focused live-reader tests, the product build, make test, and the Web server lifecycle integration test.

@Grivn Grivn left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks @mtroym for building this and for the branding and theme refinements. The latest version looks great after trying it locally, and I appreciate the read-only design within the existing Mnemon executable.

Validated frontend typechecking, all 49 frontend tests, production asset parity, the product build, make test, and the Web server lifecycle integration test. I added a small Windows path compatibility fix before merging; Linux and Windows CI now both pass. Thanks for the contribution!

@Grivn
Grivn merged commit d840ef3 into mnemon-dev:master Oct 18, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants