diff --git a/CLAUDE.md b/CLAUDE.md index 722731b..ff474e3 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -179,7 +179,7 @@ pip install basic-memory When updating docs for a new Basic Memory release, update all of the following: 1. **Welcome page What's New callout** — `content/0.welcome.md`: update the version text (e.g., `v0.22`) and the headline; the link stays `/whats-new/changelog` -2. **Changelog page** — `content/02.whats-new/06.changelog.md`: add a section for the new minor/major version at the top, linking the GitHub release tag(s). Patch release: add a short bullet list under its minor version's section instead. The `::github-releases` block at the bottom auto-fetches full release notes from the GitHub API — no manual update needed there. Since v0.23, significant releases also get a per-version What's New page (`content/02.whats-new/01.v0-XX.md`, zero-padded prefixes so 10+ pages sort correctly); the welcome-page `::note` callout links to it +2. **Changelog page** — `content/02.whats-new/07.changelog.md`: add a section for the new minor/major version at the top, linking the GitHub release tag(s). Patch release: add a short bullet list under its minor version's section instead. The `::github-releases` block at the bottom auto-fetches full release notes from the GitHub API — no manual update needed there. Since v0.23, significant releases also get a per-version What's New page (`content/02.whats-new/00.basic-memory-X-Y.md`, zero-padded prefixes so 10+ pages sort correctly; renumber the older pages down one slot, URLs do not change); the welcome-page `::note` callout links to it 3. **Feature docs** — if the release adds user-facing features, update the relevant guide and reference pages (`content/3.cloud/`, `content/9.reference/`, etc.) 4. **Deploy** — push to main auto-deploys to development; production requires manual workflow dispatch via GitHub Actions diff --git a/content/0.welcome.md b/content/0.welcome.md index d8e01ad..e496c07 100644 --- a/content/0.welcome.md +++ b/content/0.welcome.md @@ -11,7 +11,7 @@ seo: **Basic Memory** is real memory for your AI — a knowledge base you own. Built-in AI memory is small, vendor-owned, and usually invisible. Basic Memory is large, structured, and inspectable: a knowledge graph written in plain Markdown. Open it in any editor, hand it to any AI tool, and keep it forever. ::note{icon="i-lucide-megaphone"} -**New in 1.0:** a wiki for every project, live notes, documents as searchable notes, and Basic Memory agents (beta). See [Basic Memory 1.0](/whats-new/basic-memory-1-0). Upgrading the local package? Read [Upgrade to v0.24](/whats-new/v0-24-upgrade) and [Migrating to 1.0](/reference/migrating-to-1-0). +**New in 1.1:** one operation per MCP tool, moves between projects, skills over MCP, and a read-only mode. See [Basic Memory 1.1](/whats-new/basic-memory-1-1), and check its [breaking changes](/whats-new/basic-memory-1-1#breaking-changes) if your setup names `bm_project` or `bm_schema`. Coming from 0.x? Read [Basic Memory 1.0](/whats-new/basic-memory-1-0) and [Migrating to 1.0](/reference/migrating-to-1-0). :: ::docs-video{src="/videos/hero.mp4" poster="/videos/posters/hero.png" alt="What Basic Memory is, in one minute"} diff --git a/content/01.start-here/1.what-is-basic-memory.md b/content/01.start-here/1.what-is-basic-memory.md index 55f06f6..82409aa 100644 --- a/content/01.start-here/1.what-is-basic-memory.md +++ b/content/01.start-here/1.what-is-basic-memory.md @@ -339,7 +339,7 @@ Basic Memory uses the [Model Context Protocol (MCP)](https://modelcontextprotoco - `bm_search` - Full-text and semantic search - `bm_edit` - Incremental editing - `bm_context` - Load related notes -- `bm_project(command="list")` - List your projects +- `bm_project_list` - List your projects - `bm_list` and `bm_find` - Browse directories and discover paths - `bm_man` - Read or search the built-in manual - ...and many more diff --git a/content/02.whats-new/00.basic-memory-1-1.md b/content/02.whats-new/00.basic-memory-1-1.md new file mode 100644 index 0000000..8bd4377 --- /dev/null +++ b/content/02.whats-new/00.basic-memory-1-1.md @@ -0,0 +1,92 @@ +--- +title: Basic Memory 1.1 +description: One operation per MCP tool, moves between projects, skills over MCP, a read-only mode, and a long list of fixes, many from contributors. +--- + +**Basic Memory 1.1** gives every MCP tool one operation, adds moves between projects, serves skills over MCP, and adds a read-only mode. It also fixes a crash that stopped some Windows installs from starting, plus many bugs reported and fixed by contributors. + +Restart your MCP clients after upgrading so they load the new tool list. Read [Breaking changes](#breaking-changes) first if you have MCP allowlists, agent instructions, or hooks that name `bm_project` or `bm_schema`. + +## Breaking changes + +Check these before you upgrade: + +- **`bm_project` and `bm_schema` are split into one tool per operation**, with no alias for the old names (see the table below). `bm_schema_infer` and `bm_schema_diff` require `note_type` and no longer take `identifier`. `bm tool` follows: `bm tool project-list`, `project-create`, `recent`, `schema-validate`, `schema-infer`, and `schema-diff`; the `bm schema validate|infer|diff` command keeps its shape. **Fix:** update MCP allowlists, agent instructions, and hooks that name `bm_project` or `bm_schema`. `bm man tools-migration` maps every 1.0 call to its replacement. +- **The `memory://ai_assistant_guide` resource is removed.** **Fix:** use the server instructions and the manual (`bm_man`, `memory://man`). +- **Note formatting is removed:** the `format_on_save`, `formatter_command`, `formatters`, and `formatter_timeout` settings, their `BASIC_MEMORY_*` environment variables, and `bm format`. Notes are stored exactly as written, and old keys in `config.json` are ignored. **Fix:** run your formatter from your editor, or over the project folder yourself. +- **A workspace-qualified project now reaches Cloud.** `/` or a Cloud project's external ID, in an MCP tool or `bm tool`, used to reach a same-named local project. It now goes to the named Cloud workspace, or fails with "no cloud credentials" when you have none. **Fix:** pass the bare project name to reach the local project. +- **Embedding batch sizes default per provider:** 64 for LiteLLM and OpenAI, 2 for FastEmbed. A value of 2 saved in `config.json` by an earlier release still wins. **Fix:** `bm config unset semantic_embedding_batch_size` and `bm config unset semantic_embedding_sync_batch_size`. +- **The Claude Code plugin's `/basic-memory:bm-setup` is now `/basic-memory:bm-claude-code-setup`.** +- **Auto-update installs only patch releases from 1.1 on.** Minor and major releases are announced with `bm update` instructions instead. +- **`bm_move` is marked destructive**, since a move between projects deletes the original. Clients that confirm destructive tools now ask before a move. + +## One operation per tool + +`bm_project` and `bm_schema` each split into three tools. Chat clients pick and fill single-purpose tools more reliably than one tool with a `command` argument. + +| 1.0 call | 1.1 tool | +|---|---| +| `bm_project(command="list")` | `bm_project_list()` | +| `bm_project(command="create", ...)` | `bm_project_create(name, path)` | +| `bm_project(command="recent", ...)` | `bm_recent(project)` | +| `bm_schema(command="validate", ...)` | `bm_schema_validate(...)` | +| `bm_schema(command="infer", ...)` | `bm_schema_infer(note_type)` | +| `bm_schema(command="diff", ...)` | `bm_schema_diff(note_type)` | + +The old names are removed with no alias. Update MCP allowlists, agent instructions, and hooks that name `bm_project` or `bm_schema`. `bm man tools-migration` lists every 1.0 call and its replacement. See the [MCP Tools Reference](/reference/mcp-tools-reference). + +## Move notes between projects + +`bm_move` takes `destination_project` to move a note or a whole folder into another project: + +```python +bm_move(identifier="plans/launch.md", destination="inbox/", + project="work", destination_project="research") +``` + +The note is written in the other project and then deleted from this one. In its new project it gets a new id, a permalink for its new path, and its own history. Its old permalink does not follow it, and links in either project are not rewritten. A note already at the destination is never replaced, and the original is deleted only if it is still the revision that was copied. + +## Skills over MCP + +The MCP server serves skills as resources and supports the MCP skills extension, so clients that support it can list and load them: + +- **Bundled skills** such as `memory-notes`, `memory-capture`, and the new `memory-start` for a first session, served as `skill:///SKILL.md`. +- **Your own notes.** A note with `type: skill` and `name` and `description` frontmatter is served as `skill:////SKILL.md`. + +Serving notes as skills is off by default, because any agent that can write a note could write a skill. Turn it on for a project you trust: + +```bash +bm project skills research +bm project skills research --off # turn it off again +``` + +`bm man skills` covers both kinds. + +## Read-only mode + +Set `read_only` in config, or `BASIC_MEMORY_READ_ONLY=true`, and the MCP server lists only read tools. `bm_write`, `bm_edit`, `bm_move`, `bm_delete`, `bm_project_create`, and `bm_project_delete` are hidden. Indexing keeps running. + +## Search and schemas + +- **CJK and other unsegmented scripts.** When full-text search finds nothing, it retries with the script's terms ORed together, so hybrid search on a CJK vault returns full-text matches. +- **Schemas read frontmatter.** A schema field is satisfied by a frontmatter key or by an observation category, frontmatter first. +- **Fresher semantic results.** Search responses report how current the semantic index is (`semantic_index_current_as_of`). +- **Faster search.** Hybrid search runs its full-text and vector legs at the same time, and vector and hybrid searches read about 70% fewer bytes. +- **Embedding timeouts.** `semantic_embedding_timeout` (30 seconds by default) bounds each LiteLLM or OpenAI embedding request. A timeout or rate limit returns a retryable error that suggests `mode="text"`. + +## Fixes worth knowing + +- **Windows:** with Smart App Control on, `bm mcp` exited before it answered the client. It starts now. +- **Note bodies are kept byte for byte** when frontmatter changes, during indexing, updates, moves, and API writes. +- **A path like `entities/Claude.ai.md` reaches that note**, not its sibling `entities/Claude.md`. +- **A workspace-qualified project (`/`) reaches that Cloud project**, even when a local project has the same name, and `bm project remove /` deletes only that workspace's project. +- **Imports:** ChatGPT and Claude conversations that share a date and title each get their own file, and ChatGPT image, audio, and file messages keep their text. +- **Ubuntu 22.04:** vector search works with SQLite 3.37. + +The [changelog](/whats-new/changelog) and the [v1.1.0 release notes](https://github.com/basicmachines-co/basic-memory/releases/tag/v1.1.0) list every change. + +## Upgrading + +Installs on 1.0.0 receive 1.1 through background auto-update. From 1.1 on, auto-update installs only patch releases; minor and major releases are announced with `bm update` instructions. To upgrade now, run `bm update`, or `uv tool upgrade basic-memory`, or `brew upgrade basic-memory`. Then restart your MCP clients. + +Thanks to everyone who reported and fixed bugs in this release, including @orshih6, @mikemikimike, @Goldloli, @rahulcomet, @stella-h-choi, @arturbordignon, @spark142857142857, @umer-2k1, @duchangyi666, @tonydzi, @Jonny-boy9000, @aloneangel45, @anhnt256, and @GEM-ICE. diff --git a/content/02.whats-new/00.basic-memory-1-0.md b/content/02.whats-new/01.basic-memory-1-0.md similarity index 100% rename from content/02.whats-new/00.basic-memory-1-0.md rename to content/02.whats-new/01.basic-memory-1-0.md diff --git a/content/02.whats-new/01.v0-24.md b/content/02.whats-new/02.v0-24.md similarity index 100% rename from content/02.whats-new/01.v0-24.md rename to content/02.whats-new/02.v0-24.md diff --git a/content/02.whats-new/02.v0-24-upgrade.md b/content/02.whats-new/03.v0-24-upgrade.md similarity index 100% rename from content/02.whats-new/02.v0-24-upgrade.md rename to content/02.whats-new/03.v0-24-upgrade.md diff --git a/content/02.whats-new/03.comments-and-suggestions.md b/content/02.whats-new/04.comments-and-suggestions.md similarity index 100% rename from content/02.whats-new/03.comments-and-suggestions.md rename to content/02.whats-new/04.comments-and-suggestions.md diff --git a/content/02.whats-new/04.interactive-mcp-app.md b/content/02.whats-new/05.interactive-mcp-app.md similarity index 100% rename from content/02.whats-new/04.interactive-mcp-app.md rename to content/02.whats-new/05.interactive-mcp-app.md diff --git a/content/02.whats-new/05.teams.md b/content/02.whats-new/06.teams.md similarity index 100% rename from content/02.whats-new/05.teams.md rename to content/02.whats-new/06.teams.md diff --git a/content/02.whats-new/06.changelog.md b/content/02.whats-new/07.changelog.md similarity index 89% rename from content/02.whats-new/06.changelog.md rename to content/02.whats-new/07.changelog.md index 8e22f7c..3f71e44 100644 --- a/content/02.whats-new/06.changelog.md +++ b/content/02.whats-new/07.changelog.md @@ -7,6 +7,18 @@ Notable changes in each Basic Memory release, most recent first. For complete pa --- +## 1.1 — One operation per tool + +*December 2026 · [v1.1.0](https://github.com/basicmachines-co/basic-memory/releases/tag/v1.1.0)* + +Every MCP tool now does one thing. `bm_project` splits into `bm_project_list`, `bm_project_create`, and `bm_recent`, and `bm_schema` splits into `bm_schema_validate`, `bm_schema_infer`, and `bm_schema_diff`. `bm_move` takes `destination_project` to move a note or folder into another project, where it gets a new permalink for its new path. The server serves the bundled `memory-*` skills over MCP, and, once you run `bm project skills `, your own `type: skill` notes too. A read-only mode (`BASIC_MEMORY_READ_ONLY=true`) lists only read tools. Search retries CJK and other unsegmented scripts term by term, schemas read frontmatter, and hybrid search reads about 70% fewer bytes. + +Fixes include a Windows startup crash under Smart App Control, note bodies kept byte for byte when frontmatter changes, paths like `Claude.ai.md` reaching the right note, workspace-qualified projects reaching Cloud when a local project has the same name, vector search on SQLite 3.37, and ChatGPT and Claude imports that no longer overwrite or drop conversations. Many fixes came from contributors. + +**Breaking changes:** the old `bm_project` and `bm_schema` names are removed with no alias, and `bm_schema_infer`/`bm_schema_diff` no longer take `identifier`; the `memory://ai_assistant_guide` resource is removed; note formatting (`format_on_save`, `bm format`) is removed; a `/` project now reaches Cloud instead of a same-named local project; embedding batch sizes default per provider; the Claude Code plugin's `/basic-memory:bm-setup` is now `/basic-memory:bm-claude-code-setup`; and auto-update installs only patch releases from 1.1 on. Restart MCP clients after upgrading. Read [Basic Memory 1.1](/whats-new/basic-memory-1-1#breaking-changes) for what to change. + +--- + ## 1.0 — A workspace your team can read In Basic Memory Cloud, every project opens as a [Wiki](/cloud/wiki), with an overview, folder pages, and a change log kept current as `index.md` and `log.md` files in the Open Knowledge Format. Notes can hold [live notes](/cloud/live-notes) components (KPIs, Gantt charts, comparisons, task boards) written in Comark, including live views that query the project each time you open them. Uploaded PDF, Word, PowerPoint, and CSV files become searchable notes. [Basic Memory agents](/agents/about) (beta) look after notes on their own, with every change in a shared review queue you can keep or undo. In browsers that support WebMCP, the web app gives browser agents tools that act as you. Plans move to Cloud ($19), Pro ($99), and Business ($249), with usage credits, member limits, and a spending limit you set; see [Plans and Billing](/teams/seats-and-billing) and [Usage and Credits](/cloud/usage-and-credits). diff --git a/content/03.cloud/19.usage-and-credits.md b/content/03.cloud/19.usage-and-credits.md index ce12d5e..40166a7 100644 --- a/content/03.cloud/19.usage-and-credits.md +++ b/content/03.cloud/19.usage-and-credits.md @@ -46,6 +46,6 @@ Trials stop at their included credits, with no extra credits and no grace day. ## Read usage from your AI -Owners and billing managers can ask their AI for the same numbers. `bm_project(command="usage")` reports the workspace the session is connected to, for the current billing period or a `since`/`until` range, grouped by `actor`, `day`, or `job_type`. API keys and MCP sessions can read usage the same way; changing the spending limit stays in the web app. +Owners and billing managers can ask their AI for the same numbers. `bm_workspace_usage` reports the workspace the session is connected to, for the current billing period or a `since`/`until` range, grouped by `actor`, `day`, or `job_type`. API keys and MCP sessions can read usage the same way; changing the spending limit stays in the web app. Anyone else gets a message to ask an owner or billing manager. diff --git a/content/04.teams/4.team-projects.md b/content/04.teams/4.team-projects.md index 176a0b4..f3cbb2e 100644 --- a/content/04.teams/4.team-projects.md +++ b/content/04.teams/4.team-projects.md @@ -77,7 +77,7 @@ bm cloud workspace list bm cloud workspace set-default acme ``` -You can also target a specific workspace when creating a project, either from the CLI (`--workspace`) or from MCP (`bm_project(command="create", workspace="acme")`). +You can also target a specific workspace when creating a project, either from the CLI (`--workspace`) or from MCP (`bm_project_create(name=..., path=..., workspace="acme")`). ### Targeting a team project explicitly diff --git a/content/04.teams/5.join-a-team.md b/content/04.teams/5.join-a-team.md index 21c1607..194ce88 100644 --- a/content/04.teams/5.join-a-team.md +++ b/content/04.teams/5.join-a-team.md @@ -62,7 +62,7 @@ bm cloud workspace set-default acme bm project list --workspace acme ``` -From MCP, pass the workspace through `bm_project(command="create", workspace="acme")`, or reference notes with a workspace-qualified memory URL — `memory://acme/research/note-title`. See [Team Projects](/teams/team-projects) for the full targeting guide. +From MCP, pass the workspace through `bm_project_create(name=..., path=..., workspace="acme")`, or reference notes with a workspace-qualified memory URL — `memory://acme/research/note-title`. See [Team Projects](/teams/team-projects) for the full targeting guide. --- diff --git a/content/07.local/4.mcp-tools-local.md b/content/07.local/4.mcp-tools-local.md index 4b9f38b..2534e70 100644 --- a/content/07.local/4.mcp-tools-local.md +++ b/content/07.local/4.mcp-tools-local.md @@ -15,7 +15,7 @@ Once your MCP client runs the local server (see [Local install](/local/local-ins - `bm_read` to load a note - `bm_write` to create or update a note - `bm_edit` to append or replace sections -- `bm_schema(command="validate")`, `bm_schema(command="infer")`, `bm_schema(command="diff")` for schema workflows +- `bm_schema_validate`, `bm_schema_infer`, `bm_schema_diff` for schema workflows - `bm_context` for graph traversal via [memory:// URLs](/concepts/memory-urls) Most tools default to `output_format="text"` (human-readable) and also accept `"json"` (machine-readable); `bm_context` defaults to `"json"` — see the [MCP Tools Reference](/reference/mcp-tools-reference) for per-tool defaults. diff --git a/content/07.local/5.user-guide.md b/content/07.local/5.user-guide.md index b0286e5..53d187f 100644 --- a/content/07.local/5.user-guide.md +++ b/content/07.local/5.user-guide.md @@ -246,7 +246,7 @@ Deleting a note keeps the links that pointed at it as unresolved references inst ## Multi-Project Workflows -Basic Memory supports multiple projects for organizing different knowledge bases. The AI discovers your projects with `bm_project(command="list")` and names the project on each tool call; unqualified note and search calls are refused when several projects are addressable, even if a default exists. There's no per-session "active project". Project setup and CLI default-project commands are covered in [Set Up Local Projects](/local/getting-started). +Basic Memory supports multiple projects for organizing different knowledge bases. The AI discovers your projects with `bm_project_list()` and names the project on each tool call; unqualified note and search calls are refused when several projects are addressable, even if a default exists. There's no per-session "active project". Project setup and CLI default-project commands are covered in [Set Up Local Projects](/local/getting-started). ### Single Project Mode (Locked) @@ -450,7 +450,7 @@ You: "I've been writing a lot of person notes. Can you help me standardize them? Claude: Let me analyze your existing person notes to find common patterns. -[Uses bm_schema with command="infer", note_type="person"] +[Uses bm_schema_infer with note_type="person"] Based on your notes, here's what most of them include: - name (in 95% of notes) diff --git a/content/08.concepts/0.vs-built-in-memory.md b/content/08.concepts/0.vs-built-in-memory.md index 18e179f..0057adb 100644 --- a/content/08.concepts/0.vs-built-in-memory.md +++ b/content/08.concepts/0.vs-built-in-memory.md @@ -13,7 +13,7 @@ Save this to your memory: Use Basic Memory as my long-term knowledge store — record durable decisions, research, and context there as notes. Keep your built-in memory for short-term working context, and have your memories reference Basic Memory notes for the details. Use Basic -Memory's bm_search, bm_project(command="recent"), and bm_context +Memory's bm_search, bm_recent, and bm_context to find information before answering questions about past work. ``` diff --git a/content/08.concepts/1.knowledge-format.md b/content/08.concepts/1.knowledge-format.md index 22284b2..febdd43 100644 --- a/content/08.concepts/1.knowledge-format.md +++ b/content/08.concepts/1.knowledge-format.md @@ -66,7 +66,7 @@ modified: 2026-08-10T09:15:00Z - **permalink** — A stable identifier for this note. Generated automatically from the file's path (and prefixed with the project name by default) if you don't set one. Stays the same even if you later move the file. Every Markdown note has one — as of v0.24 there is no setting to turn permalinks off. - **created** and **modified** — Optional authoritative timestamps for the note. When present, Basic Memory uses them for recency ordering instead of filesystem timestamps. Without `created`, a new note takes its file's creation time, and later edits, moves, and reindexes keep it. -Historical `created` or `modified` values can move a note earlier in `bm_project(command="recent")` and date-sorted search results after the note is reindexed. Use valid date or datetime values and change them only when you intend to change the note's recorded chronology. +Historical `created` or `modified` values can move a note earlier in `bm_recent` and date-sorted search results after the note is reindexed. Use valid date or datetime values and change them only when you intend to change the note's recorded chronology. ### Keys Basic Memory manages diff --git a/content/08.concepts/2.projects-and-folders.md b/content/08.concepts/2.projects-and-folders.md index a8268c6..c07712f 100644 --- a/content/08.concepts/2.projects-and-folders.md +++ b/content/08.concepts/2.projects-and-folders.md @@ -40,7 +40,7 @@ Switch to a different project in conversation using the MCP tool: Switch to the "personal" project. ``` -The AI will simply pass `project="personal"` on its next tool calls — there's no switch step; it discovers your projects with `bm_project(command="list")`. From the CLI, change the fallback for commands that don't specify a project: +The AI will simply pass `project="personal"` on its next tool calls — there's no switch step; it discovers your projects with `bm_project_list()`. From the CLI, change the fallback for commands that don't specify a project: ```bash bm project default "personal" diff --git a/content/08.concepts/3.observations-and-relations.md b/content/08.concepts/3.observations-and-relations.md index c9a8172..03726ae 100644 --- a/content/08.concepts/3.observations-and-relations.md +++ b/content/08.concepts/3.observations-and-relations.md @@ -185,7 +185,7 @@ Categories, tags, and relation types give your AI assistant structured metadata If you want to ensure consistency across similar notes, Basic Memory's schema system (introduced in v0.19) can validate that notes of a certain type contain the observations and relations you expect. -For example, you could define a schema that requires every "person" note to have a `name` observation and a `works_at` relation. You can then validate notes on demand — ask your AI to check them (the `bm_schema(command="validate")` tool) or run `bm schema validate` — and the report flags anything that's missing. Validation warns rather than blocking writes. +For example, you could define a schema that requires every "person" note to have a `name` observation and a `works_at` relation. You can then validate notes on demand — ask your AI to check them (the `bm_schema_validate` tool) or run `bm schema validate` — and the report flags anything that's missing. Validation warns rather than blocking writes. ::note See [Schema System](/concepts/schema-system) for details on defining and applying schemas. diff --git a/content/08.concepts/6.schema-system.md b/content/08.concepts/6.schema-system.md index fd7ef24..e07ff32 100644 --- a/content/08.concepts/6.schema-system.md +++ b/content/08.concepts/6.schema-system.md @@ -518,7 +518,7 @@ See the [CLI Reference](/reference/cli-reference) for full flag documentation. ### MCP tool parameters -See the [MCP Tools Reference](/reference/mcp-tools-reference) for full `bm_schema(command="validate")`, `bm_schema(command="infer")`, and `bm_schema(command="diff")` parameter tables. +See the [MCP Tools Reference](/reference/mcp-tools-reference) for full `bm_schema_validate`, `bm_schema_infer`, and `bm_schema_diff` parameter tables. --- diff --git a/content/10.how-to/1.project-documentation.md b/content/10.how-to/1.project-documentation.md index 8a4a992..f4bd141 100644 --- a/content/10.how-to/1.project-documentation.md +++ b/content/10.how-to/1.project-documentation.md @@ -13,7 +13,7 @@ Create a project for your documentation — ask your AI, and it works the same o Create a new project called "my-project-docs" ``` -The AI calls `bm_project(command="create")` behind the scenes. +The AI calls `bm_project_create` behind the scenes. **Cloud is a great home for project docs**: browse and edit them in the [web app](/cloud/web-app), give the whole [team](/teams/about) (and their agents) access, and publish any page externally with a [share link](/cloud/shared-notes). Prefer docs living inside the repo? On a local install, point the project at your `docs/` folder instead: diff --git a/content/11.reference/1.cli-reference.md b/content/11.reference/1.cli-reference.md index c2b0b07..4337062 100644 --- a/content/11.reference/1.cli-reference.md +++ b/content/11.reference/1.cli-reference.md @@ -718,6 +718,17 @@ Update a local project's configured filesystem path. This changes configuration bm project move research /new/path/to/research ``` +### `bm project skills` + +Serve a project's `type: skill` notes as MCP skills, or stop with `--off`. Each note with `type: skill` and Agent Skills `name` and `description` frontmatter is served as `skill:////SKILL.md`. Off by default. Turn it on only for projects whose notes you trust as instructions: any agent that can write a note there can write a skill. New in 1.1. + +```bash +bm project skills research +bm project skills research --off +``` + +Restart MCP clients that cache the skill list. See `bm man skills`. + ### `bm project ls` List files in a project directory. @@ -1121,35 +1132,46 @@ bm tool build-context memory://specs/search --compact | `--local` | Force local routing | | `--cloud` | Force cloud routing | -### `bm tool recent-activity` +### `bm tool recent` + +Runs `bm_recent`. Before 1.1 this was `bm tool project recent`. ```bash -bm tool recent-activity -bm tool recent-activity --timeframe 30d --page-size 20 -bm tool recent-activity --type entity --type observation +bm tool recent --since 3d +bm tool recent --project research --items note ``` | Flag | Description | |------|-------------| -| `--type` | Filter by item type (repeatable) | -| `--depth` | Context depth, 1–5 (default `1`) | -| `--timeframe` | Time window (default `7d`) | +| `--since` | How far back: `3d`, `24h`, or a date (default `7d`) | +| `--items` | `note`, `observation`, or `relation` (repeatable) | | `--page` | Page number (default `1`) | | `--page-size` | Results per page (default `10`) | | `--project` | Target project | +| `--json` | Print the tool's JSON result | | `--local` | Force local routing | | `--cloud` | Force cloud routing | +### Project tool commands + +`bm tool project-list` runs `bm_project_list` and `bm tool project-create` runs `bm_project_create`. Before 1.1 these were `bm tool project list` and `bm tool project create`. + +```bash +bm tool project-list +bm tool project-list --json +bm tool project-create --name research --path ~/research +bm tool project-create --name research --path ~/research --set-default +``` + ### Schema tool commands -These are CLI wrappers around the schema MCP tools with JSON output: +`bm tool schema-validate`, `schema-infer`, and `schema-diff` run `bm_schema_validate`, `bm_schema_infer`, and `bm_schema_diff`. `schema-infer` and `schema-diff` require `--note-type`. ```bash -bm tool schema-validate person -bm tool schema-infer person -bm tool schema-diff person -bm tool list-projects -bm tool list-workspaces +bm tool schema-validate --note-type person +bm tool schema-validate --identifier people/ada.md +bm tool schema-infer --note-type meeting --threshold 0.5 +bm tool schema-diff --note-type person ``` --- diff --git a/content/11.reference/2.mcp-tools-reference.md b/content/11.reference/2.mcp-tools-reference.md index e6c1f66..77ccbd1 100644 --- a/content/11.reference/2.mcp-tools-reference.md +++ b/content/11.reference/2.mcp-tools-reference.md @@ -4,12 +4,12 @@ description: Basic Memory 1.0 MCP tools, parameters, responses, and migration gu --- ::note -Upgrading from v0.24? See [Migrating to 1.0](/reference/migrating-to-1-0) for the changes. +Upgrading from v0.24? See [Migrating to 1.0](/reference/migrating-to-1-0) for the changes. Basic Memory 1.1 split `bm_project` and `bm_schema` into one tool per operation; `bm man tools-migration` maps each 1.0 call to its 1.1 replacement. :: -The twelve core tools share target, routing, pagination, and error conventions. Most default to text; `bm_context` defaults to JSON. Pass `output_format="json"` for machine-readable results. +The core tools share target, routing, pagination, and error conventions. Most default to text; `bm_context` defaults to JSON. Pass `output_format="json"` for machine-readable results. -Pass a project name, `workspace/project`, or the project's external UUID as `project`. Get IDs from `bm_project(command="list")`. A constrained server wins over a supplied project; otherwise use an explicit route when several projects are addressable. Unqualified note/search calls are refused in that case. `bm_list(path="/")` without a project lists project mounts. +Pass a project name, `workspace/project`, or the project's external UUID as `project`. Get IDs from `bm_project_list()`. A constrained server wins over a supplied project; otherwise use an explicit route when several projects are addressable. Unqualified note/search calls are refused in that case. `bm_list(path="/")` without a project lists project mounts. ## Errors and revision guards @@ -346,13 +346,13 @@ bm_delete(identifier="plans/launch-plan.md", expected_checksum="stale", project= ### NAME -**bm-move** — move or rename a note or a directory within its project +**bm-move** — move or rename a note or a directory, within a project or into another ### SYNOPSIS ``` bm_move(destination, identifier=None, path=None, expected_checksum=None, - output_format="text", project=None) + destination_project=None, output_format="text", project=None) ``` ### DESCRIPTION @@ -367,8 +367,21 @@ differs from an existing one only in case or Unicode form lands in the existing folder, and the result names it. Pass `expected_checksum` (from bm_read) to move a note only if it is still the -revision you read. Moving into another project is refused: bm_read the note, -bm_write it there, then bm_delete the original. +revision you read. + +`destination_project` moves into another project; `destination` is then a path +in that project. The note is written there and then deleted here, so it is a +new note: it gets a new id, a permalink for its new path, and its own version +history. Its old permalink and `memory://` URL do not follow it, and links in +either project are not rewritten. The original is deleted only after the copy is +written, and only if it is still the revision that was copied; if that delete +is refused, the copy is removed again and nothing has moved. A note already at +the destination is never replaced, and a locked note is refused. A directory +moves note by note; files that are not notes stay, and the result lists +whatever did not move. + +A `destination` that starts with another project's name, without +`destination_project`, is refused rather than becoming a folder of that name. ### PARAMETERS @@ -376,6 +389,7 @@ bm_write it there, then bm_delete the original. - **identifier** (string | null, optional, default: None) — The note to move: a path, permalink, memory:// URL or exact title. - **path** (string | null, optional, default: None) — The directory to move, with everything in it, e.g. 'drafts/2025'. - **expected_checksum** (string | null, optional, default: None) — Move the note only while it is still this revision (from bm_read). +- **destination_project** (string | null, optional, default: None) — Move into this project instead: a project name, 'workspace/project', or project external id. `destination` is then a path in that project. - **output_format** (optional, default: "text") - **project** (string | null, optional, default: None) — Project name, 'workspace/project', or project external id. With several projects, pass an explicit scope or a project-qualified target. @@ -387,6 +401,10 @@ bm_move(identifier="plans/release-checklist.md", destination="archive/", project bm_move(path="archive", destination="old", project="demo") # → Moved directory archive to old (1 files) + +bm_move(identifier="plans/launch.md", destination="inbox/", project="demo", + destination_project="research") +# → Moved plans/launch.md (project demo) to inbox/launch.md (project research) ``` ### GOTCHAS @@ -681,65 +699,136 @@ bm_find(path="demo/", filters={"status": "active"}, fields=["status"]) - [bm_list](#bm_list) - [bm_search](#bm_search) -## `bm_project` +## `bm_project_list` + +### NAME + +**bm-project-list** — list the projects you can reach, grouped by workspace + +### SYNOPSIS + +``` +bm_project_list(output_format="text") +``` + +### DESCRIPTION + +Lists every project this server can address. Local projects come first; with +Basic Memory Cloud credentials, cloud projects follow, grouped by workspace. Each +row carries the project's name, its qualified `workspace/project` name and its +external id, any of which can be passed as `project` to the other tools. + +JSON output has `projects`, `default_project` and `constrained_project`. A server +started for one project (`BASIC_MEMORY_MCP_PROJECT`) lists only that project. + +The shell counterpart is `bm project list`. + +### PARAMETERS + +- **output_format** (optional, default: "text") + +### EXAMPLES + +``` +bm_project_list() +# → Available projects: +# - demo (local) [b2a21302…] +# - main (local) [9b4d5944…] +``` + +### SEE ALSO + +- [bm_project_create](#bm_project_create) +- [bm_recent](#bm_recent) +- see_also [[bm-project-delete(3)]] + +## `bm_project_create` ### NAME -**bm-project** — list, create, and show recent activity in projects +**bm-project-create** — create a project whose notes live in a folder ### SYNOPSIS ``` -bm_project(command, name=None, path=None, set_default=False, workspace=None, - since="7d", items=None, page=1, page_size=10, - output_format="text", project=None) +bm_project_create(name, path, set_default=False, workspace=None, + output_format="text") ``` ### DESCRIPTION -`command` picks what to do: +Creates a project named `name` over the folder `path` and indexes it before +answering. `set_default` makes it the default project. In Cloud, `workspace` +picks the workspace that holds it. -- `list` — the projects you can address, grouped by workspace. -- `create` — add a project: `name`, `path`, optional `set_default` and - `workspace`. -- `recent` — what changed lately: `since`, `items`, paging. `project` picks the - project, else the default project; with no default, every project. JSON - output carries `page`, `page_size` and `has_more`, plus `guidance` for any - project that was never indexed. +Creating the same project again (the same folder, in any name case or with a +trailing slash) is not an error: the answer says it already exists, and a project +whose first index never ran is indexed then. The same name over another folder is +refused with ALREADY_EXISTS. -bm_project never deletes; bm_project_delete does, and only when the server +bm_project_create never deletes; bm_project_delete does, and only when the server enables it. -The shell counterpart for `recent` is tail(1). +The shell counterpart is `bm project add`. ### PARAMETERS -- **command** (required) — What to do. -- **name** (string | null, optional, default: None) — For create: the new project's name. -- **path** (string | null, optional, default: None) — For create: the folder that holds the project's notes. -- **set_default** (boolean, optional, default: False) — For create: make the new project the default. +- **name** (string, required) — The new project's name. +- **path** (string, required) — The folder that holds the project's notes. +- **set_default** (boolean, optional, default: False) — Make the new project the default. - **workspace** (string | null, optional, default: None) — In Cloud: the workspace slug, name or id that holds the project. -- **since** (string, optional, default: "7d") — How far back to look: '7d', '24h', '2 days ago', 'last week', or a date. Windows shorter than one day are widened to one day. -- **items** (array | null, optional, default: None) — What to return: notes, observations, relations, or a mix. Default: notes. -- **page** (integer, optional, default: 1) — Page number. -- **page_size** (integer, optional, default: 10) — Results per page (1-100). - **output_format** (optional, default: "text") -- **project** (string | null, optional, default: None) — Project name, 'workspace/project', or project external id. With several projects, pass an explicit scope or a project-qualified target. ### EXAMPLES ``` -bm_project(command="create", name="demo", path="/Users/me/demo", set_default=True) +bm_project_create(name="demo", path="/Users/me/demo", set_default=True) # → ✓ Project 'demo' added successfully # ... # Project is now available for use in tool calls; indexing completed. +``` -bm_project(command="list") -# → Available projects: -# - demo (local) [b2a21302…] -# - main (local) [9b4d5944…] +### SEE ALSO + +- [bm_project_list](#bm_project_list) +- see_also [[bm-project-delete(3)]] + +## `bm_recent` + +### NAME + +**bm-recent** — show what changed lately in a project + +### SYNOPSIS + +``` +bm_recent(project, since="7d", items=None, page=1, page_size=10, + output_format="text") +``` + +### DESCRIPTION + +Lists the notes, observations or relations (`items`) of `project` that changed +within `since`, newest first, paged. JSON output carries `results`, `page`, +`page_size` and `has_more`. A project that was never indexed returns no rows plus +`guidance` that says how to index it, so a miss is not mistaken for an empty +project. -bm_project(command="recent", since="1d") +The shell spelling is `bm tool recent`. + +### PARAMETERS + +- **project** (string, required) — Project name, 'workspace/project', or project external id. Discover projects with bm_project_list(). +- **since** (string, optional, default: "7d") — How far back to look: '7d', '24h', '2 days ago', 'last week', or a date. Windows shorter than one day are widened to one day. +- **items** (array | null, optional, default: None) — What to return: notes, observations, relations, or a mix. Default: notes. +- **page** (integer, optional, default: 1) — Page number. +- **page_size** (integer, optional, default: 10) — Results per page (1-100). +- **output_format** (optional, default: "text") + +### EXAMPLES + +``` +bm_recent(since="1d", project="demo") # → ## Recent Activity: demo (1d) # **📄 Recent Notes & Documents (1):** # • launch-plan (plans) [id: 686e696d…] @@ -747,63 +836,138 @@ bm_project(command="recent", since="1d") ### SEE ALSO -- see_also [[tail(1)]] -- see_also [[bm-project-delete(3)]] -- [bm_list](#bm_list) +- [bm_search](#bm_search) +- [bm_context](#bm_context) +- [bm_project_list](#bm_project_list) -## `bm_schema` +## `bm_schema_validate` ### NAME -**bm-schema** — validate notes against schemas, infer schemas, find drift +**bm-schema-validate** — check notes against their Picoschema schema ### SYNOPSIS ``` -bm_schema(command, note_type=None, identifier=None, threshold=0.25, - output_format="text", project=None) +bm_schema_validate(project, note_type=None, identifier=None, + output_format="text") ``` ### DESCRIPTION -Works with Picoschema note schemas. A schema is a note with `type: schema` -whose `entity` field names the note type it describes. `command` picks what to -do: +Checks notes against their schema: one `note_type`, one note by `identifier`, +or, with neither, every note type that has a schema. Giving both is refused, +because a note's own type decides its schema. A schema is a note with +`type: schema` whose `entity` field names the note type it describes. -- `validate` — check notes against their schema: one `note_type`, one note by - `identifier`, or every type that has a schema. -- `infer` — suggest a schema from the notes of a `note_type`; `threshold` is - the share of notes a field must appear in. -- `diff` — compare a `note_type`'s notes with its schema to find drift. +A schema field is satisfied by a frontmatter key or an observation category of +the same name. Frontmatter is checked first: `attendees: 4` in frontmatter +satisfies `attendees: integer`, and a `- [attendees]` observation is used only +when the key is absent. Enum checks apply to either. A field whose type is +another note type is satisfied by relations. A type with no schema, or no notes, is a `NOT_FOUND` error that says how to create one. ### PARAMETERS -- **command** (required) — What to do. -- **note_type** (string | null, optional, default: None) — The frontmatter `type:` to check. Required for infer and diff. -- **identifier** (string | null, optional, default: None) — For validate: one note, instead of a whole note type. -- **threshold** (number, optional, default: 0.25) — For infer: the share of notes a field must appear in to be suggested. +- **project** (string, required) — Project name, 'workspace/project', or project external id. Discover projects with bm_project_list(). +- **note_type** (string | null, optional, default: None) — The frontmatter `type:` to check. +- **identifier** (string | null, optional, default: None) — One note, instead of a whole note type. - **output_format** (optional, default: "text") -- **project** (string | null, optional, default: None) — Project name, 'workspace/project', or project external id. With several projects, pass an explicit scope or a project-qualified target. ### EXAMPLES ``` -bm_schema(command="infer", note_type="plan", project="demo") +bm_schema_validate(note_type="plan", project="demo") +# → # Schema Validation: plan +# Notes: 1 | Valid: 1 | Warnings: 1 | Errors: 0 +# - **launch-plan** — valid +# - warning: Missing required field: owner (expected owner: in frontmatter or a [owner] observation) +``` + +### SEE ALSO + +- [bm_schema_infer](#bm_schema_infer) +- [bm_schema_diff](#bm_schema_diff) +- [bm_write](#bm_write) + +## `bm_schema_infer` + +### NAME + +**bm-schema-infer** — suggest a Picoschema schema from a note type's notes + +### SYNOPSIS + +``` +bm_schema_infer(note_type, project, threshold=0.25, output_format="text") +``` + +### DESCRIPTION + +Suggests a schema for `note_type` from the fields its notes share. A field is +suggested when at least `threshold` of the notes have it. Frontmatter keys count +as fields, except `title`, `type`, `permalink`, `tags` and `schema`. Save the +suggestion with bm_write to start validating. + +A type with no notes, or no field above the threshold, is a `NOT_FOUND` error +that says what to try. + +### PARAMETERS + +- **note_type** (string, required) — The frontmatter `type:` to check. +- **project** (string, required) — Project name, 'workspace/project', or project external id. Discover projects with bm_project_list(). +- **threshold** (number, optional, default: 0.25) — The share of notes a field must appear in to be suggested. +- **output_format** (optional, default: "text") + +### EXAMPLES + +``` +bm_schema_infer(note_type="plan", project="demo") # → # Schema Inference: plan # Notes analyzed: 1 # ... # - **goal** (observation) — 100% (1/1) [required] +``` -bm_schema(command="validate", note_type="plan", project="demo") -# → # Schema Validation: plan -# Notes: 1 | Valid: 1 | Warnings: 1 | Errors: 0 -# - **launch-plan** — valid -# - warning: Missing required field: owner (expected [owner] observation) +### SEE ALSO + +- [bm_schema_validate](#bm_schema_validate) +- [bm_schema_diff](#bm_schema_diff) +- [bm_find](#bm_find) + +## `bm_schema_diff` + +### NAME + +**bm-schema-diff** — show drift between a note type's notes and its schema + +### SYNOPSIS + +``` +bm_schema_diff(note_type, project, output_format="text") +``` -bm_schema(command="diff", note_type="plan", project="demo") +### DESCRIPTION + +Compares the notes of `note_type` with its schema and reports drift: fields +the notes added, fields they dropped, and cardinality changes. Frontmatter keys +count as fields, except `title`, `type`, `permalink`, `tags` and `schema`. + +A type with no schema, or no notes, is a `NOT_FOUND` error that says how to +create one; no notes is not reported as "no drift". + +### PARAMETERS + +- **note_type** (string, required) — The frontmatter `type:` to check. +- **project** (string, required) — Project name, 'workspace/project', or project external id. Discover projects with bm_project_list(). +- **output_format** (optional, default: "text") + +### EXAMPLES + +``` +bm_schema_diff(note_type="plan", project="demo") # → # Schema Drift: plan # ## New Fields (in notes but not in schema) # - **decision** (observation) — 100% (1/1) @@ -811,8 +975,8 @@ bm_schema(command="diff", note_type="plan", project="demo") ### SEE ALSO -- [bm_find](#bm_find) -- [bm_write](#bm_write) +- [bm_schema_validate](#bm_schema_validate) +- [bm_schema_infer](#bm_schema_infer) ## `bm_man` @@ -878,7 +1042,11 @@ bm_man(page="nope(3)") ## Resources and hosted extensions -`memory://man` lists the built-in manual; `memory://man/bm-read(3)` reads one page. `bm man bm-read` reads the same page in the terminal. `memory:///` reads a note resource, and `memory://ai_assistant_guide` provides usage guidance. +`memory://man` lists the built-in manual; `memory://man/bm-read(3)` reads one page. `bm man bm-read` reads the same page in the terminal. `memory:///` reads a note resource. The `memory://ai_assistant_guide` resource was removed in 1.1; the server instructions and the manual cover the same ground. + +Bundled skills are served as `skill:///SKILL.md`. Notes with `type: skill` and `name` and `description` frontmatter are served as `skill:////SKILL.md` once you turn note skills on for that project with `bm project skills `. They are off by default. See `bm man skills`. + +With `read_only` set (`BASIC_MEMORY_READ_ONLY=true`), the server lists only read tools: `bm_write`, `bm_edit`, `bm_move`, `bm_delete`, `bm_project_create` and `bm_project_delete` are hidden. Cloud-only tools such as `review_note` and `open_basic_memory` are separate extensions. See [Comments and Suggestions](/cloud/comments-and-suggestions) and [Pocketbook](/cloud/mcp-app) for their hosted contracts. Their rollout is independent of the core 1.0 tools. ChatGPT's `search` and `fetch` compatibility tools remain client-specific wrappers. diff --git a/content/11.reference/3.ai-assistant-guide.md b/content/11.reference/3.ai-assistant-guide.md index aaf2ca0..cf4f0f5 100644 --- a/content/11.reference/3.ai-assistant-guide.md +++ b/content/11.reference/3.ai-assistant-guide.md @@ -22,6 +22,8 @@ npx skills add basicmachines-co/basic-memory/skills -g That installs the full set for your user account. To start smaller, add just one: `npx skills add basicmachines-co/basic-memory/skills --skill memory-notes -g` (the core note-writing skill), and add others as you need them. +Since 1.1, the MCP server also serves the bundled skills as `skill:///SKILL.md` resources. Clients that support the MCP skills extension can list and load them without a separate install. See `bm man skills`. + --- ## 2. Add project-level instructions @@ -62,7 +64,9 @@ You have persistent memory through Basic Memory's MCP tools. ``` ::note -Want more to work from? The [extended AI assistant guide](https://github.com/basicmachines-co/basic-memory/blob/main/docs/ai-assistant-guide-extended.md) is a full instruction document you can download and customize. A [condensed version](https://github.com/basicmachines-co/basic-memory/blob/main/src/basic_memory/mcp/resources/ai_assistant_guide.md) ships inside Basic Memory as the `memory://ai_assistant_guide` resource, and the built-in manual serves a page per tool at `memory://man`. +Want more to work from? The [extended AI assistant guide](https://github.com/basicmachines-co/basic-memory/blob/main/docs/ai-assistant-guide-extended.md) is a full instruction document you can download and customize. + +The `memory://ai_assistant_guide` resource was removed in 1.1. The MCP server's instructions, which clients receive when they connect, and the built-in manual cover the same ground. The manual serves a page per tool through `bm_man` and at `memory://man`; `bm man setup` explains how to make an assistant use Basic Memory in every chat. :: --- @@ -96,16 +100,17 @@ Your assistant can even write a note about *how you like your notes* — and fin --- -## Preparing instructions for 1.0 +## Writing instructions for 1.1 -- Use the twelve `bm_*` core tools. `bm_project(command="recent", since="7d")` replaces recent-activity calls; its JSON result contains a `results` array. +- Use the `bm_*` core tools. `bm_recent(project="main", since="7d")` replaces recent-activity calls; its JSON result contains a `results` array. `bm_project_list()` lists projects. +- 1.1 split `bm_project` and `bm_schema` into one tool per operation, with no aliases. Instructions, hooks, and MCP allowlists that name `bm_project` or `bm_schema` need updating; `bm man tools-migration` lists each replacement. - `bm_edit` requires an existing note. Create with `bm_write` after a `NOT_FOUND` refusal when creation is intended. - A JSON refusal has `error`, `message`, and optional `try_instead`. Re-read after `REVISION_CONFLICT`; inspect state before retrying `OUTCOME_UNKNOWN` or `PARTIAL_FAILURE`. - Pass `expected_checksum` from `bm_read` to guard changes. Metadata-only reads use `include_content=False`. - `bm_read` includes frontmatter by default. Use `section`, line bounds, or `max_tokens` for smaller reads. - Read `bm_man(page="bm-edit")` or `memory://man` for exact signatures. -Moving instructions over from the earlier tools? See [Migrating to 1.0](/reference/migrating-to-1-0). +Moving instructions over from the pre-1.0 tools? See [Migrating to 1.0](/reference/migrating-to-1-0). For the full tool surface — parameters, aliases, defaults — see the [MCP Tools Reference](/reference/mcp-tools-reference). diff --git a/content/11.reference/6.configuration.md b/content/11.reference/6.configuration.md index 87bb29e..1285023 100644 --- a/content/11.reference/6.configuration.md +++ b/content/11.reference/6.configuration.md @@ -249,10 +249,30 @@ Embedding dimensions override. Embedding batch size. -- Type: integer -- Default: `2` +- Type: integer | null +- Default: `null` (provider default: `64` for `openai` and `litellm`, `2` for `fastembed`) - Env: `BASIC_MEMORY_SEMANTIC_EMBEDDING_BATCH_SIZE` +### `semantic_embedding_sync_batch_size` + +Batch size for vector sync flushes. + +- Type: integer | null +- Default: `null` (provider default: `64` for `openai` and `litellm`, `2` for `fastembed`) +- Env: `BASIC_MEMORY_SEMANTIC_EMBEDDING_SYNC_BATCH_SIZE` + +Releases before 1.1 saved `2` for both batch sizes into `config.json`, and a saved value wins over the provider default. To use the new defaults, run `bm config unset semantic_embedding_batch_size` and `bm config unset semantic_embedding_sync_batch_size`. + +### `semantic_embedding_timeout` + +Maximum seconds for each `openai` or `litellm` embedding request. FastEmbed runs locally and ignores it. New in 1.1. + +- Type: float greater than 0 +- Default: `30.0` +- Env: `BASIC_MEMORY_SEMANTIC_EMBEDDING_TIMEOUT` + +A provider timeout, refused connection, or rate limit returns a retryable error that suggests `mode="text"`. + ### Embedding endpoint and asymmetric-model settings | Key | Type | Default | Environment variable | Purpose | @@ -391,6 +411,16 @@ bm config set enable_posix_tools false Restart your MCP client after changing it. +### `read_only` + +Offer only read tools to MCP clients. `bm_write`, `bm_edit`, `bm_move`, `bm_delete`, `bm_project_create`, and `bm_project_delete` are hidden. New in 1.1. + +- Type: boolean +- Default: `false` +- Env: `BASIC_MEMORY_READ_ONLY` + +Indexing keeps running, so notes changed on disk still appear in search. The indexer can still write to disk, for example to add a `permalink` to frontmatter. When several MCP clients share one project folder and only one should write, also set `BASIC_MEMORY_INDEX_CHANGES=false` on the read-only ones. + --- ## Indexing and watch settings diff --git a/content/11.reference/7.migrating-to-1-0.md b/content/11.reference/7.migrating-to-1-0.md index 646ff5a..2d3a492 100644 --- a/content/11.reference/7.migrating-to-1-0.md +++ b/content/11.reference/7.migrating-to-1-0.md @@ -5,6 +5,8 @@ description: Update MCP clients, agent instructions, and integrations for the Ba Basic Memory 1.0 replaces the MCP tools with the `bm_*` set. This page covers what changes for MCP clients, agent instructions, and integrations, and how to update them. +Basic Memory 1.1 splits `bm_project` and `bm_schema` into one tool per operation. Run `bm man tools-migration` for each 1.0 call and its 1.1 replacement. + ## MCP tools: migrate to the bm_* surface Upgrade your