@basicmemory/openclaw-basic-memory 1.0.0 → 1.1.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.
Files changed (45) hide show
  1. package/README.md +4 -4
  2. package/bm-client.ts +180 -49
  3. package/config.ts +5 -0
  4. package/dist/bm-client.d.ts +40 -20
  5. package/dist/bm-client.js +118 -29
  6. package/dist/config.d.ts +1 -0
  7. package/dist/config.js +1 -0
  8. package/dist/index.js +2 -3
  9. package/dist/memory/basic-memory-capability.js +7 -1
  10. package/dist/tools/schema-diff.js +5 -3
  11. package/dist/tools/schema-infer.js +1 -1
  12. package/dist/tools/schema-validate.js +5 -4
  13. package/index.ts +2 -3
  14. package/memory/basic-memory-capability.ts +7 -1
  15. package/openclaw.plugin.json +1 -1
  16. package/package.json +1 -1
  17. package/scripts/setup-bm.sh +1 -4
  18. package/skills/manifest.json +5 -5
  19. package/skills/memory-agents/SKILL.md +12 -12
  20. package/skills/memory-capture/SKILL.md +1 -1
  21. package/skills/memory-comark/SKILL.md +1 -1
  22. package/skills/memory-continue/SKILL.md +8 -8
  23. package/skills/memory-curate/SKILL.md +2 -2
  24. package/skills/memory-defrag/SKILL.md +2 -2
  25. package/skills/memory-ingest/SKILL.md +4 -3
  26. package/skills/memory-lifecycle/SKILL.md +1 -1
  27. package/skills/memory-literary-analysis/SKILL.md +10 -10
  28. package/skills/memory-metadata-search/SKILL.md +1 -1
  29. package/skills/memory-notes/SKILL.md +1 -1
  30. package/skills/memory-okf/SKILL.md +1 -1
  31. package/skills/memory-quest/SKILL.md +9 -4
  32. package/skills/memory-reflect/SKILL.md +3 -3
  33. package/skills/memory-research/SKILL.md +1 -1
  34. package/skills/memory-schema/SKILL.md +14 -14
  35. package/skills/memory-start/SKILL.md +116 -0
  36. package/skills/memory-tasks/SKILL.md +5 -5
  37. package/tools/schema-diff.ts +7 -3
  38. package/tools/schema-infer.ts +1 -1
  39. package/tools/schema-validate.ts +5 -4
  40. package/skills/memory-onboarding/SKILL.md +0 -153
  41. package/skills/memory-onboarding/evals/evals.json +0 -29
  42. package/skills/memory-onboarding/references/assistant-setup.md +0 -72
  43. package/skills/memory-onboarding/references/conventions.md +0 -118
  44. package/skills/memory-onboarding/references/domain-playbooks.md +0 -159
  45. package/skills/memory-onboarding/references/schema-guide.md +0 -137
@@ -11,7 +11,7 @@ This skill curates the **knowledge graph** — the notes, relations, and tags th
11
11
 
12
12
  ## Project scope
13
13
 
14
- If the project is unknown, discover it with `bm_project(command="list")`.
14
+ If the project is unknown, discover it with `bm_project_list()`.
15
15
  Pass a nonempty `project` on every note, folder, context and schema call, even
16
16
  with one project or a qualified `memory://` URL. Use the chosen project's name,
17
17
  `workspace/project`, or external ID; `<project>` below is a placeholder for it.
@@ -208,7 +208,7 @@ context, suggest adding background. Apply with `bm_edit`.
208
208
  ## Curation Workflows
209
209
 
210
210
  Scale the pass to the request. A health check reports orphans, likely duplicates,
211
- recent activity (`bm_project(command="recent", project="<project>")`), and folder distribution. A deep session works
211
+ recent activity (`bm_recent(project="<project>")`), and folder distribution. A deep session works
212
212
  through the capabilities above in whatever order the findings suggest. A topic pass
213
213
  maps one subject with `bm_search` and `bm_context`, fills the gaps it finds, and
214
214
  ends with a hub note.
@@ -12,7 +12,7 @@ facts contradict new ones, and finished work lingers. Defrag fixes the content;
12
12
 
13
13
  ## Project scope
14
14
 
15
- If the project is unknown, discover it with `bm_project(command="list")`.
15
+ If the project is unknown, discover it with `bm_project_list()`.
16
16
  Pass a nonempty `project` on every note, folder, context and schema call, even
17
17
  with one project or a qualified `memory://` URL. Use the chosen project's name,
18
18
  `workspace/project`, or external ID; `<project>` below is a placeholder for it.
@@ -41,7 +41,7 @@ notes nobody touched lately.
41
41
  bm_find(path="/", depth=10, page_size=100, project="<project>")
42
42
 
43
43
  # Recently busy notes, to look at first
44
- bm_project(command="recent", since="30d", output_format="json", page_size=50, project="<project>")
44
+ bm_recent(since="30d", output_format="json", page_size=50, project="<project>")
45
45
 
46
46
  # Notes on one topic, to spot overlap
47
47
  bm_search(query="launch plan", project="<project>")
@@ -9,7 +9,7 @@ Turn raw, unstructured input into structured Basic Memory entities. Meeting tran
9
9
 
10
10
  ## Project scope
11
11
 
12
- If the project is unknown, discover it with `bm_project(command="list")`.
12
+ If the project is unknown, discover it with `bm_project_list()`.
13
13
  Pass a nonempty `project` on every note, folder, context and schema call, even
14
14
  with one project or a qualified `memory://` URL. Use the chosen project's name,
15
15
  `workspace/project`, or external ID; `<project>` below is a placeholder for it.
@@ -217,8 +217,9 @@ Invent categories as needed — these are suggestions, not a fixed list.
217
217
 
218
218
  For each entity the user approved, create a structured note. Match the entity type to an appropriate template.
219
219
 
220
- If `bm_write` reports similar existing notes, treat that as a match Step 3 missed: merge into
221
- the existing note and delete the new one, or link the two.
220
+ If `bm_write` reports similar existing notes, treat that as a match Step 3 missed. Ask the
221
+ user whether to merge the new note into the existing one or link the two, and keep both
222
+ notes until they decide.
222
223
 
223
224
  ### Person
224
225
 
@@ -9,7 +9,7 @@ Manage how entities move through status stages in Basic Memory. The core princip
9
9
 
10
10
  ## Project scope
11
11
 
12
- If the project is unknown, discover it with `bm_project(command="list")`.
12
+ If the project is unknown, discover it with `bm_project_list()`.
13
13
  Pass a nonempty `project` on every note, folder, context and schema call, even
14
14
  with one project or a qualified `memory://` URL. Use the chosen project's name,
15
15
  `workspace/project`, or external ID; `<project>` below is a placeholder for it.
@@ -9,7 +9,7 @@ Transform a complete literary work into a structured knowledge graph. Characters
9
9
 
10
10
  ## Project scope
11
11
 
12
- If the project is unknown, discover it with `bm_project(command="list")`.
12
+ If the project is unknown, discover it with `bm_project_list()`.
13
13
  Pass a nonempty `project` on every note, folder, context and schema call, even
14
14
  with one project or a qualified `memory://` URL. Use the chosen project's name,
15
15
  `workspace/project`, or external ID; `<work-name>` below is a placeholder for it.
@@ -86,7 +86,7 @@ CLI page sizes and flags below are separate from the MCP shapes.
86
86
  ### Create the Project
87
87
 
88
88
  ```python
89
- bm_project(command="create", name="<work-name>", path="~/basic-memory/<work-name>")
89
+ bm_project_create(name="<work-name>", path="~/basic-memory/<work-name>")
90
90
  ```
91
91
 
92
92
  Use a kebab-case slug of the work's title (e.g., `great-gatsby`, `hamlet`, `beloved`).
@@ -557,18 +557,18 @@ During chapter processing, new minor characters, locations, and symbols will eme
557
557
 
558
558
  ```python
559
559
  # Validate each entity type
560
- bm_schema(command="validate", note_type="Character", project="<work-name>")
561
- bm_schema(command="validate", note_type="Theme", project="<work-name>")
562
- bm_schema(command="validate", note_type="Chapter", project="<work-name>")
563
- bm_schema(command="validate", note_type="Location", project="<work-name>")
564
- bm_schema(command="validate", note_type="Symbol", project="<work-name>")
565
- bm_schema(command="validate", note_type="LiteraryDevice", project="<work-name>")
560
+ bm_schema_validate(note_type="Character", project="<work-name>")
561
+ bm_schema_validate(note_type="Theme", project="<work-name>")
562
+ bm_schema_validate(note_type="Chapter", project="<work-name>")
563
+ bm_schema_validate(note_type="Location", project="<work-name>")
564
+ bm_schema_validate(note_type="Symbol", project="<work-name>")
565
+ bm_schema_validate(note_type="LiteraryDevice", project="<work-name>")
566
566
  ```
567
567
 
568
568
  ### Drift Detection
569
569
 
570
570
  ```python
571
- bm_schema(command="diff", note_type="Character", project="<work-name>")
571
+ bm_schema_diff(note_type="Character", project="<work-name>")
572
572
  # ... for each type
573
573
  ```
574
574
 
@@ -775,7 +775,7 @@ This pipeline works for any literary text. Adjust schemas for genre:
775
775
  - **Relations are your web.** Every chapter should link to characters, themes, locations, and devices. Every entity should link back to chapters where it appears.
776
776
  - **Enrich iteratively.** Entity notes grow richer with each chapter. Don't try to write the perfect character note upfront — append as you go.
777
777
  - **Add prose for depth.** After structured data is in place, add interpretive essays to major notes. The prose captures what observations cannot: argument, nuance, opinion, and voice.
778
- - **Validate periodically.** Run `bm_schema(command="validate", project="<work-name>")` after each batch, not just at the end. Catch drift early.
778
+ - **Validate periodically.** Run `bm_schema_validate(project="<work-name>")` after each batch, not just at the end. Catch drift early.
779
779
  - **Quote generously.** Literary analysis lives on textual evidence. Include significant quotes as `[quote]` observations with chapter attribution.
780
780
  - **Review and revise.** After completing all chapters, review the full graph from an external perspective. Look for thin notes, missing connections, and gaps in coverage. The first pass is never the last.
781
781
  - **Analysis comes last.** Synthesis notes in `analysis/` should be written after all chapters are processed, when you have the full picture.
@@ -9,7 +9,7 @@ Find notes by their structured frontmatter fields instead of (or in addition to)
9
9
 
10
10
  ## Project scope
11
11
 
12
- If the project is unknown, discover it with `bm_project(command="list")`.
12
+ If the project is unknown, discover it with `bm_project_list()`.
13
13
  Pass a nonempty `project` on every note, folder, context and schema call, even
14
14
  with one project or a qualified `memory://` URL. Use the chosen project's name,
15
15
  `workspace/project`, or external ID; `<project>` below is a placeholder for it.
@@ -9,7 +9,7 @@ Write well-structured notes that Basic Memory can parse into a searchable knowle
9
9
 
10
10
  ## Project scope
11
11
 
12
- If the project is unknown, discover it with `bm_project(command="list")`.
12
+ If the project is unknown, discover it with `bm_project_list()`.
13
13
  Pass a nonempty `project` on every note, folder, context and schema call, even
14
14
  with one project or a qualified `memory://` URL. Use the chosen project's name,
15
15
  `workspace/project`, or external ID; `<project>` below is a placeholder for it.
@@ -20,7 +20,7 @@ export converts them.
20
20
 
21
21
  ## Project scope
22
22
 
23
- If the project is unknown, discover it with `bm_project(command="list")`.
23
+ If the project is unknown, discover it with `bm_project_list()`.
24
24
  Pass a nonempty `project` on every note, folder, context and schema call, even
25
25
  with one project or a qualified `memory://` URL. Use the chosen project's name,
26
26
  `workspace/project`, or external ID; `<project>` below is a placeholder for it.
@@ -36,7 +36,7 @@ Work through these in order. Stop at the first step that fails, explain what's m
36
36
 
37
37
  ### 1. Confirm a cloud connection
38
38
 
39
- Call `bm_project(command="list", output_format="json")` and inspect the projects grouped by workspace.
39
+ Call `bm_project_list(output_format="json")` and inspect the projects grouped by workspace.
40
40
 
41
41
  - If it fails, Basic Memory isn't connected to this assistant. Tell the user to connect it and run Memory Quest again.
42
42
  - If no project has `source: cloud` or `source: local+cloud`, this assistant has not demonstrated a cloud connection. Memory Quest lives in Basic Memory Cloud: tell the user to connect their cloud account (`bm cloud login` for the CLI, or the Basic Memory connector in a chat app) and try again.
@@ -65,7 +65,7 @@ If they decline, stop. Say that the mission stays incomplete and they can run Me
65
65
 
66
66
  ### 5. Save the Memory Master note
67
67
 
68
- First choose a project that exists only in Basic Memory Cloud. Call `bm_project(command="list")` with `output_format: "json"` and pick a project whose `source` is exactly `cloud`: the default project if it qualifies, otherwise ask the user which to use. New cloud accounts usually have one, Getting Started. Write to it by its `external_id`.
68
+ First choose a project that exists only in Basic Memory Cloud. Call `bm_project_list()` with `output_format: "json"` and pick a project whose `source` is exactly `cloud`: the default project if it qualifies, otherwise ask the user which to use. New cloud accounts usually have one, Getting Started. Write to it by its `external_id`.
69
69
 
70
70
  Don't use a project listed as `local` or `local+cloud`. When this machine has a local project with the same name as a cloud one, which is common because every local install creates `main`, a local Basic Memory server writes the note to the local copy however you address it, by name, workspace-qualified name, or ID. The write reports success, but the cloud never sees it, so the mission stays incomplete. If no project is listed as `cloud`, stop and tell the user to create one in Basic Memory Cloud (or connect their cloud account), then run Memory Quest again.
71
71
 
@@ -81,7 +81,12 @@ With approval, call `bm_write` once:
81
81
 
82
82
  Pass the code and guidance in `metadata`, never inside `content`. They must arrive as frontmatter fields for the cloud to recognize the write.
83
83
 
84
- If `bm_write` reports that the note already exists, read it with `bm_read`, using the exact path from the refusal and the same `project`, `output_format: "json"` and `include_frontmatter: true`. The frontmatter is where an earlier attempt's markers live, and the JSON includes the note's `checksum`. Only an earlier Memory Quest attempt — a note whose frontmatter has `type: memory_master` and a `memory_quest_code` field — may be replaced. Say so, then call `bm_write` again using the read result's `file_path` as `identifier` instead of `title` + `directory`, `overwrite: true`, and `expected_checksum` set to that checksum. If the note changed after you read it, the write fails instead of discarding the newer version. Read it again and repeat the check. If the existing note is anything else, don't overwrite it: tell the user what's there, and either save under a different title, such as `Memory Master (Memory Quest)`, or let them choose.
84
+ If `bm_write` reports that the note already exists, read it with `bm_read`, using the exact path from the refusal and the same `project`, `output_format: "json"` and `include_frontmatter: true`. In a shared project it can be a teammate's Memory Master note, and a teammate's note carries the same `type: memory_master` and `memory_quest_code` markers as an earlier attempt of the user's own, so only the user can tell them apart. Tell the user who created it, from the `created_by` field in its frontmatter, and when, if the read result shows it. Ask whether it is their own earlier Memory Quest attempt.
85
+
86
+ - **The user confirms it's theirs**, and its frontmatter has `type: memory_master` and a `memory_quest_code`: call `bm_write` again with the read result's `file_path` as `identifier` instead of `title` + `directory`, `overwrite: true`, and `expected_checksum` set to its checksum. If the note changed after you read it, the write fails instead of discarding the newer version: read it again and ask again.
87
+ - **Otherwise** (the user says it isn't theirs or isn't sure, or the note is anything else): leave it untouched. Call `bm_write` again with the same arguments and `title` set to `Memory Master (<today's date as YYYY-MM-DD>)`. If that title exists too, check that note the same way (read it, show who created it, and ask) before trying ` 2`, then ` 3`, and so on until a write succeeds.
88
+
89
+ Never pass `overwrite: true` without the user's confirmation. The cloud verifies the code in the frontmatter, not the note's path, so a dated title completes the mission just as well.
85
90
 
86
91
  ### 6. Tell the user what happens next
87
92
 
@@ -133,7 +138,7 @@ Your assistant now starts from what you already know: it checks Basic Memory for
133
138
 
134
139
  ## Guidelines
135
140
 
136
- - **One write, with approval.** Never write the note before step 4, and never write a second note to retry. Overwrite the same one.
141
+ - **One write, with approval.** Never write the note before step 4. Replace an existing Memory Master note only after the user confirms it is their own earlier attempt; otherwise save under a dated title as step 5 describes. Never overwrite a note the user hasn't confirmed.
137
142
  - **Report guidance honestly.** Only send `memory_quest_guidance: "active"` after step 2 passes.
138
143
  - **Don't invent outcomes.** You can't observe the award. Point the user to Memory Quest instead of announcing success.
139
144
  - **Keep the code in metadata.** A code in the note body verifies nothing.
@@ -15,7 +15,7 @@ not during them.
15
15
 
16
16
  ## Project scope
17
17
 
18
- If the project is unknown, discover it with `bm_project(command="list")`.
18
+ If the project is unknown, discover it with `bm_project_list()`.
19
19
  Pass a nonempty `project` on every note, folder, context and schema call, even
20
20
  with one project or a qualified `memory://` URL. Use the chosen project's name,
21
21
  `workspace/project`, or external ID; `<project>` below is a placeholder for it.
@@ -41,7 +41,7 @@ bm_list(path="reflections", sort="title_desc", page_size=1, project="<project>")
41
41
 
42
42
  # Everything changed since that date (json gives one row per note). With no
43
43
  # reflection yet, use since="7d".
44
- bm_project(command="recent", since="2026-10-13", items=["note"], output_format="json", page_size=50, project="<project>")
44
+ bm_recent(since="2026-10-13", items=["note"], output_format="json", page_size=50, project="<project>")
45
45
  # Ask for page=2, 3, ... until has_more is false.
46
46
 
47
47
  # Read each changed note in full before judging it
@@ -52,7 +52,7 @@ Timeframes count whole days, so the window can overlap the last reflection.
52
52
  Skip notes it lists as `reviewed`, and notes you wrote in an earlier
53
53
  reflection, unless someone edited them since.
54
54
 
55
- `bm_project(command="recent", project="<project>")` looks back at most a year. If the last reflection is older
55
+ `bm_recent(project="<project>")` looks back at most a year. If the last reflection is older
56
56
  than that, use `since="365d"` and record in this reflection that changes
57
57
  before that window were not reviewed.
58
58
 
@@ -9,7 +9,7 @@ Research an external subject, synthesize what you find, and create a structured
9
9
 
10
10
  ## Project scope
11
11
 
12
- If the project is unknown, discover it with `bm_project(command="list")`.
12
+ If the project is unknown, discover it with `bm_project_list()`.
13
13
  Pass a nonempty `project` on every note, folder, context and schema call, even
14
14
  with one project or a qualified `memory://` URL. Use the chosen project's name,
15
15
  `workspace/project`, or external ID; `<project>` below is a placeholder for it.
@@ -9,7 +9,7 @@ Manage structured note types using Basic Memory's Picoschema system. Schemas def
9
9
 
10
10
  ## Project scope
11
11
 
12
- If the project is unknown, discover it with `bm_project(command="list")`.
12
+ If the project is unknown, discover it with `bm_project_list()`.
13
13
  Pass a nonempty `project` on every note, folder, context and schema call, even
14
14
  with one project or a qualified `memory://` URL. Use the chosen project's name,
15
15
  `workspace/project`, or external ID; `<project>` below is a placeholder for it.
@@ -125,10 +125,10 @@ Look for clusters of notes that share structure but have no schema:
125
125
 
126
126
  1. **Search by type**: `bm_search(note_types=["meeting"], project="<project>")` — if many notes share a `type` but no `schema/Meeting.md` exists, it's a candidate.
127
127
 
128
- 2. **Infer a schema**: Use `bm_schema(command="infer", project="<project>")` to analyze existing notes and generate a suggested schema:
128
+ 2. **Infer a schema**: Use `bm_schema_infer` to analyze existing notes and generate a suggested schema:
129
129
  ```python
130
- bm_schema(command="infer", note_type="Meeting", project="<project>")
131
- bm_schema(command="infer", note_type="Meeting", threshold=0.5, project="<project>") # fields in 50%+ of notes
130
+ bm_schema_infer(note_type="Meeting", project="<project>")
131
+ bm_schema_infer(note_type="Meeting", threshold=0.5, project="<project>") # fields in 50%+ of notes
132
132
  ```
133
133
  The threshold (0.0–1.0) controls how common a field must be to be included. Default is usually fine; lower it to catch rarer fields.
134
134
 
@@ -180,13 +180,13 @@ Check how well existing notes conform to their schema:
180
180
 
181
181
  ```python
182
182
  # Validate all notes of a type
183
- bm_schema(command="validate", note_type="Meeting", project="<project>")
183
+ bm_schema_validate(note_type="Meeting", project="<project>")
184
184
 
185
185
  # Validate a single note
186
- bm_schema(command="validate", identifier="meetings/2026-02-10-standup", project="<project>")
186
+ bm_schema_validate(identifier="meetings/2026-02-10-standup", project="<project>")
187
187
  ```
188
188
 
189
- **Important:** `bm_schema(command="validate", project="<project>")` checks for schema fields as **observation categories** in the note body — e.g., a `status` field expects `- [status] active` as an observation. Fields stored only in frontmatter metadata won't satisfy validation. To pass cleanly, include schema fields as both frontmatter values (for metadata search) and observations (for schema validation).
189
+ **Important:** `bm_schema_validate` checks for schema fields as **observation categories** in the note body — e.g., a `status` field expects `- [status] active` as an observation. Fields stored only in frontmatter metadata won't satisfy validation. To pass cleanly, include schema fields as both frontmatter values (for metadata search) and observations (for schema validation).
190
190
 
191
191
  Validation reports **missing required fields** (as observation categories, or relations
192
192
  for entity-reference fields) and **invalid enum values**. Undeclared observation categories
@@ -200,10 +200,10 @@ type-checked.
200
200
 
201
201
  ## Detecting Drift
202
202
 
203
- Over time, notes evolve and schemas lag behind. Use `bm_schema(command="diff", project="<project>")` to find divergence:
203
+ Over time, notes evolve and schemas lag behind. Use `bm_schema_diff` to find divergence:
204
204
 
205
205
  ```python
206
- bm_schema(command="diff", note_type="Meeting", project="<project>")
206
+ bm_schema_diff(note_type="Meeting", project="<project>")
207
207
  ```
208
208
 
209
209
  Diff reports:
@@ -215,7 +215,7 @@ Diff reports:
215
215
 
216
216
  When note structure changes:
217
217
 
218
- 1. **Run diff** to see current state: `bm_schema(command="diff", note_type="Meeting", project="<project>")`
218
+ 1. **Run diff** to see current state: `bm_schema_diff(note_type="Meeting", project="<project>")`
219
219
  2. **Update the schema note** via `bm_edit` with the `metadata` parameter. Top-level
220
220
  keys are replaced whole, so pass the complete updated `schema` map along with the new
221
221
  `version`:
@@ -236,7 +236,7 @@ When note structure changes:
236
236
  project="<project>",
237
237
  )
238
238
  ```
239
- 3. **Re-validate** to confirm existing notes still pass: `bm_schema(command="validate", note_type="Meeting", project="<project>")`
239
+ 3. **Re-validate** to confirm existing notes still pass: `bm_schema_validate(note_type="Meeting", project="<project>")`
240
240
  4. **Fix outliers** — update notes that don't conform to the new schema
241
241
 
242
242
  ### Evolution Guidelines
@@ -250,10 +250,10 @@ When note structure changes:
250
250
  ## Workflow Summary
251
251
 
252
252
  ```
253
- 1. Notice repeated note structure → infer schema (bm_schema(command="infer", project="<project>"))
253
+ 1. Notice repeated note structure → infer schema (bm_schema_infer)
254
254
  2. Review + create schema note → write to schema/ (bm_write)
255
- 3. Validate existing notes → check conformance (bm_schema(command="validate", project="<project>"))
255
+ 3. Validate existing notes → check conformance (bm_schema_validate)
256
256
  4. Fix outliers → edit non-conforming notes (bm_edit)
257
- 5. Periodically check drift → detect divergence (bm_schema(command="diff", project="<project>"))
257
+ 5. Periodically check drift → detect divergence (bm_schema_diff)
258
258
  6. Evolve schema as needed → update schema note (bm_edit)
259
259
  ```
@@ -0,0 +1,116 @@
1
+ ---
2
+ name: memory-start
3
+ description: "Help a new user's first Basic Memory session: save one short note, show it, and explain how to get it back. Use when getting started, or when a project is new, empty, or holds only starter notes."
4
+ ---
5
+
6
+ # Memory Start
7
+
8
+ A new user has just connected Basic Memory. Show them the whole loop in their
9
+ first session: save one thing, see it, get it back in a new chat, add to it.
10
+ Keep it short. Use their real work, not a demo.
11
+
12
+ Speak plainly. Don't explain schemas, observations, or the knowledge graph.
13
+ Say "note", not "entity".
14
+
15
+ ## Project scope
16
+
17
+ If the project is unknown, discover it with `bm_project_list()`. The
18
+ list marks the default project. Use it unless the user names another. Pass the
19
+ same `project` on every note, search, and folder call.
20
+
21
+ ## Saving
22
+
23
+ Save by default. Connecting a memory service already says the user wants notes
24
+ saved, so don't ask before the first save. Tell the user in one line what you
25
+ saved and how to undo it.
26
+
27
+ If the user says "ask me first", say what you would save and where, and save
28
+ only on yes, for the rest of this conversation. To make that hold in every
29
+ chat, suggest they add a line like this to their assistant's custom
30
+ instructions:
31
+
32
+ > Ask me before saving anything to Basic Memory.
33
+
34
+ ## 1. Save one thing
35
+
36
+ Do this on a project that holds only starter notes, or early in a first
37
+ session. Wait until the user has said what they are working on. Skip trivial
38
+ chats ("what's 2+2"), and skip anything plainly personal or sensitive, such as
39
+ health, money, or other people's private details, unless they ask you to save it.
40
+
41
+ Search first (`bm_search`) so you don't duplicate a note that already exists.
42
+ Then write one short note:
43
+
44
+ - a clear title, such as `Q3 pricing plan`;
45
+ - two or three sentences on what the work is and where it stands;
46
+ - two or three `[category]` facts under `## Observations`.
47
+
48
+ Not a transcript. Not a summary of the chat.
49
+
50
+ ```
51
+ bm_write(
52
+ project="<project>",
53
+ title="Q3 pricing plan",
54
+ directory="notes",
55
+ overwrite=False,
56
+ content="""Planning new pricing for the Q3 launch. Two tiers are on the table.
57
+ The team wants a decision before the July board meeting.
58
+
59
+ ## Observations
60
+ - [goal] Pick between flat and usage-based pricing for Q3
61
+ - [deadline] Decision needed before the July board meeting
62
+ - [open_question] Whether the free tier stays""",
63
+ )
64
+ ```
65
+
66
+ Then say what you saved in one line, with the link from the tool result, how
67
+ to undo it, and how to opt out:
68
+
69
+ > Saved "Q3 pricing plan" to Basic Memory. Say "undo" to remove it, or "ask me
70
+ > first" if you'd rather approve saves.
71
+
72
+ Use only links the tool returns. Never build a URL yourself.
73
+
74
+ ## 2. See it
75
+
76
+ Offer to show the note. Give the link from the save. If the host has the Basic
77
+ Memory app (`bm_open` is available), offer to open it:
78
+
79
+ ```
80
+ bm_open(view="note", identifier="Q3 pricing plan", project="<project>")
81
+ ```
82
+
83
+ ## 3. Get it back
84
+
85
+ Tell the user how to use the note in a new chat:
86
+
87
+ > In any new chat, ask me "what did we save about Q3 pricing?"
88
+
89
+ You can't check memory at the start of a new chat unless the user's
90
+ instructions or message prompt you to. So offer one line they can paste into
91
+ their assistant's custom instructions or project instructions:
92
+
93
+ > Use Basic Memory to find and save notes about my work.
94
+
95
+ Say where it goes on this host if you know it: project instructions or custom
96
+ instructions in a chat app, or the agent's context file in a coding tool. If
97
+ you don't know, give the line and say "paste this into your assistant's
98
+ custom instructions." Don't make them set this up now if they'd rather not.
99
+
100
+ ## 4. Add to it
101
+
102
+ When the same topic comes up later, update that note instead of creating a
103
+ new one. Search for it, read it, then use `bm_edit` to append new facts or
104
+ change ones that are out of date. Say what you changed in one line.
105
+
106
+ ## Undo
107
+
108
+ If the user says "undo" after a save, delete the note you just wrote and
109
+ confirm in one line:
110
+
111
+ ```
112
+ bm_delete(project="<project>", identifier="<path from the save result>")
113
+ ```
114
+
115
+ If the save updated an existing note, don't delete it. Edit it back to how it
116
+ was before and say so.
@@ -9,7 +9,7 @@ Manage work-in-progress using Basic Memory's schema system. Tasks are just notes
9
9
 
10
10
  ## Project scope
11
11
 
12
- If the project is unknown, discover it with `bm_project(command="list")`.
12
+ If the project is unknown, discover it with `bm_project_list()`.
13
13
  Pass a nonempty `project` on every note, folder, context and schema call, even
14
14
  with one project or a qualified `memory://` URL. Use the chosen project's name,
15
15
  `workspace/project`, or external ID; `<project>` below is a placeholder for it.
@@ -91,7 +91,7 @@ What future-you needs to pick up this work. Include:
91
91
  )
92
92
  ```
93
93
 
94
- **Why both frontmatter and observations?** Fields in `metadata` (stored as frontmatter) power `bm_search` with `filters`. Fields as observations (`- [status] active`) power `bm_schema(command="validate", project="<project>")`. Include queryable fields in both places for full coverage.
94
+ **Why both frontmatter and observations?** Fields in `metadata` (stored as frontmatter) power `bm_search` with `filters`. Fields as observations (`- [status] active`) power `bm_schema_validate`. Include queryable fields in both places for full coverage.
95
95
 
96
96
  ### Key Principles
97
97
 
@@ -179,8 +179,8 @@ With BM's schema system, tasks are fully queryable:
179
179
  | `bm_search(note_types=["task"], filters={"assigned_to": "claude"}, project="<project>")` | My tasks |
180
180
  | `bm_search("blockers", note_types=["task"], project="<project>")` | Tasks with blockers |
181
181
  | `bm_search(note_types=["task"], time_kind="due", valid_overlaps="[2026-10-14,2026-10-21)", project="<project>")` | Tasks with a step due this week |
182
- | `bm_schema(command="validate", note_type="Task", project="<project>")` | Validate all tasks against schema |
183
- | `bm_schema(command="diff", note_type="Task", project="<project>")` | Detect drift between schema and actual task notes |
182
+ | `bm_schema_validate(note_type="Task", project="<project>")` | Validate all tasks against schema |
183
+ | `bm_schema_diff(note_type="Task", project="<project>")` | Detect drift between schema and actual task notes |
184
184
 
185
185
  ### Due Dates
186
186
 
@@ -201,4 +201,4 @@ also returns overdue items.
201
201
  - **Context > steps** — Steps tell you what to do; context tells you why and how
202
202
  - **Close finished tasks** — Don't leave completed work as `active`
203
203
  - **Link related tasks** — Use `parent_task [[X]]` or relations to connect related work
204
- - **Schema validation is your friend** — Run `bm_schema(command="validate", note_type="Task", project="<project>")` periodically to catch incomplete tasks
204
+ - **Schema validation is your friend** — Run `bm_schema_validate(note_type="Task", project="<project>")` periodically to catch incomplete tasks
@@ -50,7 +50,7 @@ export function registerSchemaDiffTool(
50
50
  }
51
51
  }
52
52
 
53
- const lines: string[] = [`**Type:** ${result.entity_type}`]
53
+ const lines: string[] = [`**Type:** ${result.note_type}`]
54
54
 
55
55
  if (
56
56
  result.new_fields.length === 0 &&
@@ -69,9 +69,13 @@ export function registerSchemaDiffTool(
69
69
  }
70
70
 
71
71
  if (result.dropped_fields.length > 0) {
72
- lines.push("", "### Dropped Fields (in schema, not in notes)")
72
+ // A dropped field can still appear in a few notes, so report how
73
+ // often it does, as BM's own drift report does.
74
+ lines.push("", "### Dropped Fields (in schema, rare in notes)")
73
75
  for (const f of result.dropped_fields) {
74
- lines.push(`- **${f.name}** — declared in ${f.declared_in}`)
76
+ lines.push(
77
+ `- **${f.name}** (${f.source}) — ${(f.percentage * 100).toFixed(0)}% (${f.count}/${f.total})`,
78
+ )
75
79
  }
76
80
  }
77
81
 
@@ -47,7 +47,7 @@ export function registerSchemaInferTool(
47
47
  )
48
48
 
49
49
  const lines: string[] = [
50
- `**Type:** ${result.entity_type}`,
50
+ `**Type:** ${result.note_type}`,
51
51
  `**Notes analyzed:** ${result.notes_analyzed}`,
52
52
  ]
53
53
 
@@ -58,8 +58,8 @@ export function registerSchemaValidateTool(
58
58
  }
59
59
 
60
60
  const lines: string[] = []
61
- if (result.entity_type) {
62
- lines.push(`**Type:** ${result.entity_type}`)
61
+ if (result.note_type) {
62
+ lines.push(`**Type:** ${result.note_type}`)
63
63
  }
64
64
  lines.push(
65
65
  `**Notes:** ${result.total_notes ?? 0} | **Valid:** ${result.valid_count ?? 0} | **Warnings:** ${result.warning_count ?? 0} | **Errors:** ${result.error_count ?? 0}`,
@@ -68,8 +68,9 @@ export function registerSchemaValidateTool(
68
68
  if (result.results && result.results.length > 0) {
69
69
  lines.push("")
70
70
  for (const r of result.results) {
71
- const status = r.valid ? "valid" : "invalid"
72
- lines.push(`- **${r.identifier}** — ${status}`)
71
+ // passed is true when there are no errors; warnings still pass.
72
+ const status = r.passed ? "valid" : "invalid"
73
+ lines.push(`- **${r.note_identifier}** — ${status}`)
73
74
  for (const w of r.warnings) {
74
75
  lines.push(` - warning: ${w}`)
75
76
  }