@mulmoclaude/core 5.11.0 → 5.11.1

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.
@@ -71,6 +71,8 @@ See [Wiki](config/helps/wiki.md) for details on how it works.
71
71
  - [Attached files](config/helps/attachments.md) — the `[Attached file: …]` markers on a user message: where each path lives, PPTX arriving as PDF, multi-image `editImages`, and the original-filename rules
72
72
  - [Image references](config/helps/image-references.md) — how a `.md` / `.html` file embeds an image so it renders both in the app and from disk: relative paths only, and the forms that break
73
73
  - [Task scheduling](config/helps/scheduling.md) — `schedule:` frontmatter syntax (`daily HH:MM` is UTC), recommended intervals, and changing a system task's frequency via the overrides API
74
+ - [Memory (topic files)](config/helps/memory-topic.md) — how the agent saves memory as `conversations/memory/<type>/<topic>.md` topic files: the file format, picking the type, adding a bullet, creating a topic and its `MEMORY.md` line
75
+ - [Memory (typed entries)](config/helps/memory-atomic.md) — the older one-file-per-entry memory layout: frontmatter, picking the type, and the `MEMORY.md` index line
74
76
  - [Error recovery](config/helps/error-recovery.md) — the lookup the agent reads on tool failures (sandbox gh/git/SSH, Marp PDF, registry import, build/workspace, plugin runtime, a bridge gone quiet), plus the triage for a “broken” report
75
77
  - [Bug-report FAQ](config/helps/bug-report-faq.md) — symptoms that turn out to be configuration or by design (voice input, push, chat titles, journal, connector tools, preset skills, custom views); says where to read the live value, never what it is
76
78
  - [Telegram Bridge](config/helps/telegram.md) — how to talk to MulmoClaude from the Telegram app: creating a bot, starting the bridge, allowlisting chat IDs, commands, and troubleshooting
@@ -0,0 +1,35 @@
1
+ # Memory — typed-entry layout
2
+
3
+ The full write procedure for the typed-entry memory layout (one file per entry). The system prompt keeps only the rules that apply on every turn and points here before a write.
4
+
5
+ When you learn something from the conversation that would be useful to remember in future sessions, silently save it as a typed entry under `conversations/memory/`. Do not ask permission — just write it.
6
+
7
+ Each entry is one markdown file with YAML frontmatter:
8
+
9
+ ```yaml
10
+ ---
11
+ name: <one-line label>
12
+ description: <short blurb shown in the index>
13
+ type: <preference|interest|fact|reference>
14
+ ---
15
+ <optional longer body>
16
+ ```
17
+
18
+ Pick the type:
19
+
20
+ - `preference` — durable habit, preference, or convention. Examples: "uses yarn (npm not allowed)", "prefers Emacs", "writes commits in English".
21
+ - `interest` — a topic, hobby, or domain followed long-term. Examples: "AI research papers", "robotics", "Impressionist painting".
22
+ - `fact` — a concrete personal fact that could become stale over time. Examples: "planning a trip to Egypt", "owns a toaster oven", "currently working on BootCamp project".
23
+ - `reference` — pointer to an internal/external resource. Examples: "main repo at ~/ss/llm/mulmoclaude4", "weekly art-exhibitions-watch task".
24
+
25
+ Filename convention: `<type>_<short-slug>.md` (lowercase ASCII, hyphenated). The frontmatter `type` is the source of truth — the filename is just for ergonomics. After writing the entry, also add a 1-line entry to `conversations/memory/MEMORY.md` of the form:
26
+
27
+ ```
28
+ - [<name>](<filename>) — <description>
29
+ ```
30
+
31
+ Write when: the fact is durable, not derivable from code or git history, and not already covered by an existing entry. Update an existing entry (and its index line) instead of creating a near-duplicate.
32
+
33
+ Skip when: it is ephemeral task state, sensitive (credentials, `~/.ssh`, tokens), a duplicate, or something the user asked you to forget.
34
+
35
+ Keep entries short — name + description + a few lines of body at most. Bias toward fewer high-signal entries rather than exhaustive logging.
@@ -0,0 +1,62 @@
1
+ # Memory — topic-file layout
2
+
3
+ The full write procedure for the topic-file memory layout. The system prompt keeps only the rules that apply on every turn (save silently, when to write or skip, recall before answering) and points here before a write.
4
+
5
+ When you learn something from the conversation that would be useful to remember in future sessions, silently save it under `conversations/memory/`. Do not ask permission — just write it.
6
+
7
+ Memory is organised by **topic file**. Each file lives at `conversations/memory/<type>/<topic>.md` and groups related bullets under H2 sections. The system prompt's Memory section shows the existing topics — pick from that list when adding a new bullet, and only create a new topic when nothing fits.
8
+
9
+ ## Using memory proactively
10
+
11
+ Before answering, scan the system prompt's Memory section for topics related to the user's current message. The H2 tags after each `<type>/<topic>.md` line are searchable hints — match against the user's words (e.g. art / music / travel / tooling). When a topic looks relevant, `Read` the file first and weave the relevant bullets naturally into your answer. Examples:
12
+
13
+ - The user mentions a trip → check `fact/travel.md` (and any related interest topic) before suggesting destinations.
14
+ - The user asks about a tool / language → check `preference/dev.md` so you don't suggest something they've already vetoed.
15
+ - The user picks up a long-running project → check the matching `fact` or `reference` topic for prior context.
16
+
17
+ Do NOT announce that you are using memory ("according to your memory…"). The recall is for grounding your answer, not for narration. If nothing in memory is relevant, just answer normally.
18
+
19
+ Each topic file is one markdown document:
20
+
21
+ ```yaml
22
+ ---
23
+ type: <preference|interest|fact|reference>
24
+ topic: <slug>
25
+ ---
26
+
27
+ # <Topic Name>
28
+
29
+ ## <H2 Section>
30
+ - bullet
31
+ - another bullet
32
+
33
+ ## <Another H2>
34
+ - bullet
35
+ ```
36
+
37
+ Pick the type:
38
+
39
+ - `preference` — durable habit, preference, or convention. Examples: yarn over npm, prefers Emacs, writes commits in English.
40
+ - `interest` — a topic, hobby, or domain followed long-term. Examples: AI research papers, robotics, Impressionist painting.
41
+ - `fact` — a concrete personal fact that could become stale over time. Examples: planning a trip to Egypt, owns a toaster oven, currently working on BootCamp project.
42
+ - `reference` — pointer to an internal/external resource. Examples: main repo path, weekly art-exhibitions-watch task.
43
+
44
+ Adding a new bullet:
45
+
46
+ 1. Read the system prompt's Memory section. Find the topic file whose subject covers the new bullet.
47
+ 2. `Read` that topic file. Pick the H2 section the bullet fits under (or add a new H2 if none fits — H2 sections are optional, you may also append directly under H1 for a small / new topic).
48
+ 3. Append your bullet. Keep it short, one line ideally.
49
+ 4. `Write` the file back.
50
+ 5. `MEMORY.md` is rebuilt during clustering and on explicit `regenerateTopicIndex` calls; individual topic-file writes do NOT update the index immediately. If your bullet adds a new H2 that should appear in the index right away, also `Write` an updated `MEMORY.md` line for that topic.
51
+
52
+ Creating a new topic file:
53
+
54
+ - Filename: `<type>/<topic>.md` where `<topic>` is a short lowercase ASCII slug (a-z, 0-9, hyphenated). Examples: `interest/music.md`, `fact/travel.md`, `reference/tasks.md`.
55
+ - Body: H1 with a humanised topic name + bullet(s) under it. H2 sections are optional and best added once the topic has enough material to warrant grouping.
56
+ - After the topic file is written, also `Write` a matching line into `conversations/memory/MEMORY.md` so the new topic is discoverable in the next turn's Memory context. Same caveat as adding an H2: individual topic-file writes do NOT update `MEMORY.md` automatically — the index is only rebuilt during clustering or on explicit `regenerateTopicIndex` calls.
57
+
58
+ Write when: the fact is durable, not derivable from code or git history, and not already covered by an existing bullet. Update an existing bullet instead of adding a near-duplicate.
59
+
60
+ Skip when: it is ephemeral task state, sensitive (credentials, `~/.ssh`, tokens), a duplicate, or something the user asked you to forget.
61
+
62
+ Keep entries short — bias toward fewer high-signal bullets rather than exhaustive logging.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mulmoclaude/core",
3
- "version": "5.11.0",
3
+ "version": "5.11.1",
4
4
  "description": "Shared server-side core for MulmoClaude and MulmoTerminal — the always-shipped-together subsystems consolidated behind subpath exports so the two hosts can't drift. Server-only except the browser-safe ./artifacts, ./whisper/client, ./workspace-setup/slug, ./translation/client, ./remote-view, ./remote-host and ./plugin-vue entries. All host specifics are injected.",
5
5
  "repository": {
6
6
  "type": "git",