memorix 1.4.5 → 1.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +78 -0
- package/CLAUDE.md +7 -3
- package/README.md +5 -2
- package/dist/cli/index.js +1470 -1014
- package/dist/index.js +1279 -989
- package/dist/{maintenance-jobs-B1-W0ssz.d.ts → maintenance-jobs-DVRF-46r.d.ts} +1 -1
- package/dist/maintenance-runner.d.ts +1 -1
- package/dist/maintenance-runner.js +1769 -830
- package/dist/media-audio-runner.js +1774 -836
- package/dist/media-video-runner.js +1769 -831
- package/dist/memcode-runtime/CHANGELOG.md +78 -0
- package/dist/sdk.js +1271 -988
- package/dist/types.d.ts +6 -0
- package/dist/vector-backfill-runner.d.ts +1 -1
- package/dist/vector-backfill-runner.js +1765 -827
- package/docs/1.4.5-AGENT-AUTO-MEMORY-RESEARCH.md +95 -0
- package/docs/API_REFERENCE.md +23 -4
- package/docs/CONFIGURATION.md +29 -3
- package/docs/SETUP.md +5 -3
- package/package.json +1 -1
- package/plugins/antigravity/memorix/mcp_config.json +3 -1
- package/plugins/claude/memorix/.claude-plugin/plugin.json +1 -1
- package/plugins/claude/memorix/.mcp.json +1 -1
- package/plugins/codebuddy/memorix/.codebuddy-plugin/plugin.json +1 -1
- package/plugins/codebuddy/memorix/.mcp.json +1 -1
- package/plugins/codex/memorix/.codex-plugin/plugin.json +1 -1
- package/plugins/codex/memorix/.mcp.json +1 -1
- package/plugins/copilot/memorix/.mcp.json +1 -1
- package/plugins/copilot/memorix/plugin.json +1 -1
- package/plugins/gemini/memorix/gemini-extension.json +4 -2
- package/plugins/omp/memorix/package.json +1 -1
- package/plugins/openclaw/memorix/.codex-plugin/plugin.json +1 -1
- package/plugins/openclaw/memorix/.mcp.json +3 -1
- package/plugins/pi/memorix/package.json +1 -1
- package/server.json +2 -2
- package/src/cli/commands/dashboard.ts +14 -3
- package/src/cli/commands/ingest-commit.ts +47 -3
- package/src/cli/commands/memory.ts +17 -4
- package/src/cli/commands/purge.ts +120 -0
- package/src/cli/commands/serve-http.ts +39 -5
- package/src/cli/commands/setup.ts +3 -1
- package/src/cli/index.ts +3 -804
- package/src/codegraph/auto-context.ts +82 -1
- package/src/config/yaml-loader.ts +3 -8
- package/src/config.ts +23 -7
- package/src/evaluation/session-replay.ts +98 -0
- package/src/git/extractor.ts +5 -3
- package/src/hooks/installers/index.ts +15 -0
- package/src/knowledge/workset.ts +58 -0
- package/src/memory/long-term.ts +97 -2
- package/src/runtime/control-plane-maintenance.ts +1 -0
- package/src/runtime/isolated-maintenance.ts +1 -0
- package/src/runtime/lifecycle.ts +19 -0
- package/src/runtime/maintenance-jobs.ts +1 -0
- package/src/runtime/project-maintenance.ts +8 -0
- package/src/search/surfaced-registry.ts +62 -0
- package/src/server.ts +74 -14
- package/src/store/orama-store.ts +17 -1
- package/src/types.ts +6 -0
- package/src/cli/commands/audit-list.ts +0 -89
- package/src/cli/commands/purge-all-memory.ts +0 -85
- package/src/cli/commands/purge-project-memory.ts +0 -83
- package/src/cli/commands/uninstall-project-artifacts.ts +0 -86
- package/src/cli/tui/Sidebar.tsx +0 -179
- package/src/cli/tui/interactive-commands.ts +0 -261
- package/src/cli/tui/markdown-render.tsx +0 -371
- package/src/cli/tui/use-mouse.ts +0 -157
- package/src/cli/tui/useNavigation.ts +0 -56
- package/src/orchestrate/context-compact.ts +0 -188
- package/src/team/file-locks.ts +0 -173
- package/src/team/index.ts +0 -23
- package/src/team/messages.ts +0 -203
- package/src/team/persistence.ts +0 -96
- package/src/team/registry.ts +0 -158
- package/src/team/tasks.ts +0 -211
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,84 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
|
|
5
|
+
## [1.5.0] - 2026-08-14
|
|
6
|
+
|
|
7
|
+
### Added
|
|
8
|
+
- **Stability stress suite** -- Five deterministic, offline stress exams now
|
|
9
|
+
run in the normal test suite: a 2,000-observation corpus (planted needles,
|
|
10
|
+
ranked determinism, project isolation), 60-way parallel writes plus
|
|
11
|
+
20-way same-topic upserts, session churn across projects with parallel
|
|
12
|
+
starts, 300-record long-term maintenance exactness, and repeated CLI
|
|
13
|
+
invocations. Live embedding stress exams are env-gated
|
|
14
|
+
(`MEMORIX_RUN_LIVE_EMBEDDING_TESTS=1`) and never run in CI.
|
|
15
|
+
- **Provider-aware embedding default** -- When the embedding base URL
|
|
16
|
+
points at OpenRouter and no model is configured, the default is now
|
|
17
|
+
`qwen/qwen3-embedding-8b` (4096 dimensions) instead of the OpenAI-only
|
|
18
|
+
default. An explicitly configured model always wins.
|
|
19
|
+
|
|
20
|
+
### Changed
|
|
21
|
+
- **Verified OpenRouter embedding lane** -- The `api` embedding provider
|
|
22
|
+
was exercised live against `qwen/qwen3-embedding-8b` on OpenRouter:
|
|
23
|
+
a 100-text batch, cache round-trip, and provider-singleton stability all
|
|
24
|
+
pass. Docs cover the env-var form and borrowing `OPENROUTER_API_KEY`.
|
|
25
|
+
- **Multimodal vision option documented** -- Image analysis can run on the
|
|
26
|
+
LLM lane through an OpenAI-compatible vision endpoint, including
|
|
27
|
+
OpenRouter models such as `qwen/qwen3-vl-8b-instruct`.
|
|
28
|
+
|
|
29
|
+
## [1.4.6] - 2026-08-14
|
|
30
|
+
|
|
31
|
+
### Added
|
|
32
|
+
- **Memory-native brief block** -- Every task brief opens with a "You and
|
|
33
|
+
this workspace" block: the user profile (personal `user-profile`
|
|
34
|
+
observations), the latest ended session summary, and recent durable
|
|
35
|
+
long-term memories, all inside the existing token budget. Older callers
|
|
36
|
+
and fixtures without the block are unaffected.
|
|
37
|
+
- **Long-term memory self-maintenance (rule leg, no LLM required)** --
|
|
38
|
+
Explicit long-term requests (MCP `longTerm: true`, CLI add/promote)
|
|
39
|
+
auto-qualify on the spot instead of waiting for a manual review;
|
|
40
|
+
hook-captured and Git-derived candidates keep the review path. Stale
|
|
41
|
+
qualified/approved records auto-archive after 30 days without activity,
|
|
42
|
+
and a newer record auto-supersedes same-title records in the same scope
|
|
43
|
+
and kind. Maintenance runs in the existing durable lane at session start,
|
|
44
|
+
after each explicit promotion, then on a daily heartbeat. Approval stays
|
|
45
|
+
an explicit operator action.
|
|
46
|
+
- **`memorix purge`** -- Retires the current project's memories from
|
|
47
|
+
retrieval (`--all` for every project, `--yes` required outside a
|
|
48
|
+
terminal). Observations and long-term records are archived, never
|
|
49
|
+
hard-deleted, so the audit trail survives.
|
|
50
|
+
- **Eval coverage** -- New deterministic, offline exams pin the always-on
|
|
51
|
+
brief, long-term maintenance, profile parity, purge safety, git ingest
|
|
52
|
+
policy, media schema honesty, and server config defaults.
|
|
53
|
+
|
|
54
|
+
### Changed
|
|
55
|
+
- **Installed tool profile matches taught tools** -- `memorix setup` and
|
|
56
|
+
every plugin template now run `memorix serve --mode lite`, so the tools
|
|
57
|
+
taught in generated guidance (sessions, timeline, reasoning, retention)
|
|
58
|
+
actually exist. Repo guidance marks the full-only tools
|
|
59
|
+
(`promote`, `rules_sync`, `workspace_sync`) with `MEMORIX_MODE=full`.
|
|
60
|
+
- **Honest media schema** -- With the generation/transcription gates
|
|
61
|
+
closed, `memorix_media` no longer advertises `generate-image`,
|
|
62
|
+
`generate-video`, or `derive-audio` (or their parameters); agents see
|
|
63
|
+
only what the operator enabled.
|
|
64
|
+
- **Config that does something** -- `[server].port` and
|
|
65
|
+
`[server].dashboardPort` are now real startup defaults for `serve-http`
|
|
66
|
+
and `dashboard`; `git.ingest_on_commit` actually gates post-commit
|
|
67
|
+
ingestion and `git.max_diff_size` caps captured diff content. The
|
|
68
|
+
never-consumed `mcpServers` key was removed from `memorix.yml`
|
|
69
|
+
(unknown keys are ignored), and `[team]`/`[hooks]` are documented as
|
|
70
|
+
parsed-but-reserved.
|
|
71
|
+
|
|
72
|
+
### Fixed
|
|
73
|
+
- **Guidance hygiene** -- Generated agent guidance now teaches
|
|
74
|
+
store-the-underivable, dual-channel feedback, verify-before-use, the
|
|
75
|
+
ignore contract, user-profile capture, and session-end summaries.
|
|
76
|
+
- **Session search dedup** -- `memorix_search` demotes rows already shown
|
|
77
|
+
in the same session (duplicate rate 25% → 19% in the replay exam, hits
|
|
78
|
+
and token budget unchanged).
|
|
79
|
+
- **Dead code removal** -- Removed the superseded slash-REPL, the legacy
|
|
80
|
+
in-memory team layer, retired TUI components, and duplicate commands
|
|
81
|
+
(about 4,600 net lines), each verified unreferenced before deletion.
|
|
82
|
+
|
|
5
83
|
## [1.4.5] - 2026-08-14
|
|
6
84
|
|
|
7
85
|
### Added
|
package/CLAUDE.md
CHANGED
|
@@ -61,6 +61,10 @@ Use `memorix_resolve` when a task is done or a bug is fixed. This keeps future s
|
|
|
61
61
|
|
|
62
62
|
### Tools quick reference
|
|
63
63
|
|
|
64
|
+
The installed `memorix serve --mode lite` surface exposes every tool below
|
|
65
|
+
except the three marked `MEMORIX_MODE=full` (set that env var or `--mode full`
|
|
66
|
+
to enable them).
|
|
67
|
+
|
|
64
68
|
| Tool | Use when |
|
|
65
69
|
|---|---|
|
|
66
70
|
| `memorix_search` | Find relevant past context |
|
|
@@ -73,9 +77,9 @@ Use `memorix_resolve` when a task is done or a bug is fixed. This keeps future s
|
|
|
73
77
|
| `memorix_session_start` | Load session context (handoff, team coordination) |
|
|
74
78
|
| `memorix_timeline` | See chronological context around a memory |
|
|
75
79
|
| `memorix_retention` | Check memory health and archive expired items |
|
|
76
|
-
| `memorix_promote` | Turn repeated patterns into permanent skills |
|
|
77
|
-
| `memorix_rules_sync` | Inspect or sync rules across agents |
|
|
78
|
-
| `memorix_workspace_sync` | Inspect or migrate workspace integrations |
|
|
80
|
+
| `memorix_promote` (MEMORIX_MODE=full) | Turn repeated patterns into permanent skills |
|
|
81
|
+
| `memorix_rules_sync` (MEMORIX_MODE=full) | Inspect or sync rules across agents |
|
|
82
|
+
| `memorix_workspace_sync` (MEMORIX_MODE=full) | Inspect or migrate workspace integrations |
|
|
79
83
|
|
|
80
84
|
## Active Work
|
|
81
85
|
|
package/README.md
CHANGED
|
@@ -435,7 +435,7 @@ This opens memcode, a terminal coding agent that uses the same Memorix project m
|
|
|
435
435
|
|
|
436
436
|
Search is project-scoped by default. `scope="global"` searches across projects. The search boosts Git Memory for "what changed" questions and reasoning records for "why" questions.
|
|
437
437
|
|
|
438
|
-
Long-term memory is deliberately not an automatic dump of every note. A source observation, Claim, workflow, session, and code snapshot keep their existing roles. An agent may ask `memorix_store` to create an additional long-term
|
|
438
|
+
Long-term memory is deliberately not an automatic dump of every note. A source observation, Claim, workflow, session, and code snapshot keep their existing roles. An agent may ask `memorix_store` to create an additional long-term record; an explicit request auto-qualifies and enters task briefs as a durable anchor, while hook-captured or Git-derived candidates stay pending until qualified. Approval stays an explicit operator review. Use `memorix memory long-term approve|archive|supersede` to record the evidence-backed lifecycle. Only a manually created or user-confirmed `user + portable` item may be considered in another local project; project code, Git facts, tests, workflows, sessions, and observations cannot be promoted into portable user memory.
|
|
439
439
|
|
|
440
440
|
`memorix context "..."` is the default Memory Autopilot entry. It builds a compact task-lensed brief for agents: bugfix tasks lean toward tests and repros, release tasks lean toward package/changelog/build checks, onboarding tasks lean toward docs and entry points, and stale or unrelated memories stay in warning lanes instead of flooding the prompt. A normal new task does not receive an old-session dump. For an explicit continuation, `memorix resume "..."` adds only the latest useful session summary, up to three readable durable anchors, and at most one recent source-labelled host compact checkpoint. A durable anchor carries a `durable:<id>` reference, so an agent can expand the full reviewed record through `memorix_detail` only when needed. Keyword matches stay primary; when no reviewed durable item matches and an embedding provider is configured, Memorix makes one 1.8-second, no-retry semantic fallback for paraphrases or cross-language tasks. A slow or unavailable provider simply leaves the normal keyword-only Workset intact. A checkpoint is lifecycle evidence, not durable memory or a transcript backup. Agents should read the suggested files before trusting stored memory.
|
|
441
441
|
|
|
@@ -450,12 +450,15 @@ Long-term memory is deliberately not an automatic dump of every note. A source o
|
|
|
450
450
|
| Debug HTTP MCP in the foreground | `memorix serve-http --port 3211` |
|
|
451
451
|
| Inspect or manage memory directly | `memorix memory`, `memorix reasoning`, `memorix session`, `memorix ingest`, `memorix media` |
|
|
452
452
|
| Manage reviewed long-term memory | `memorix memory long-term list|show|add|promote|qualify|approve|archive|supersede` |
|
|
453
|
+
| Retire memories from retrieval | `memorix purge` (current project), `memorix purge --all --yes` (everything) |
|
|
453
454
|
| Inspect native compaction continuity | `memorix checkpoint list|show|context|archive` |
|
|
454
455
|
| Use the interactive terminal memory control plane | `memorix workbench` |
|
|
455
456
|
| Use the bundled terminal agent | `memorix` or `memcode` |
|
|
456
457
|
| Run orchestrated subagent work | `memorix orchestrate --goal "..."` |
|
|
457
458
|
|
|
458
|
-
`memorix serve` defaults to `--mode micro` (9 tools) to keep MCP tool schemas small for agents.
|
|
459
|
+
`memorix serve` defaults to `--mode micro` (9 tools) to keep MCP tool schemas small for agents. `memorix setup` writes `--mode lite` into the installed MCP config so every tool taught in the generated guidance is reachable. Use `--mode team` for coordination tools, or `--mode full` for advanced and compatibility tools such as checkpoint inspection.
|
|
460
|
+
|
|
461
|
+
Shortcuts and aliases: `memorix search` / `remember` / `recent` are direct query shortcuts, `bg`/`bs` start the background service, `hook` runs the hook launcher, and `memorix config get|path|migrate` inspects or migrates config files.
|
|
459
462
|
|
|
460
463
|
`memorix orchestrate` uses the current checkout for single-worker runs. When running multiple workers, it creates task worktrees under `.worktrees/` and merges successful task branches back. Use `--isolated` to force worktree isolation for one worker, `--no-worktree` to disable it, `--allow-dirty` to run with uncommitted changes, and `--no-auto-merge` to preserve task worktrees for manual review.
|
|
461
464
|
|