Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .claude/commands/release/beta.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ You are an expert release manager for the Basic Memory project. When the user ru
### Step 0: Pre-release dependency check

While `pyproject.toml` pins a FastMCP pre-release (`fastmcp==X.Y.Zb1`), `just beta` refuses to
run: every documented install passes `--prerelease=allow`, which uv applies to basic-memory
run: installs would then need `--prerelease=allow`, which uv applies to basic-memory
itself, so a beta on PyPI would become the default install for stable users (#1338). Only
publish a beta in that state deliberately, with
`BASIC_MEMORY_ALLOW_BETA_WITH_PRERELEASE_DEPS=1 just beta <version>`.
Expand Down
2 changes: 1 addition & 1 deletion .claude/commands/release/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ Example:

### Installation
```bash
uv tool install basic-memory --prerelease=allow
uv tool install basic-memory
```

### Known Issues
Expand Down
6 changes: 3 additions & 3 deletions .claude/commands/release/release.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ The GitHub Actions workflow (`.github/workflows/release.yml`) then:

#### PyPI Publication
1. Verify package published at: https://pypi.org/project/basic-memory/<version>/
2. Test installation: `uv tool install basic-memory --prerelease=allow`
2. Test installation: `uv tool install basic-memory`
3. Verify installed version: `basic-memory --version`

#### Homebrew Formula (Stable Releases Only)
Expand Down Expand Up @@ -182,13 +182,13 @@ Before starting, verify:
🚀 GitHub Actions: Completed

Install with pip/uv:
uv tool install basic-memory --prerelease=allow
uv tool install basic-memory

Install with Homebrew:
brew install basicmachines-co/basic-memory/basic-memory

Users can now upgrade:
uv tool upgrade basic-memory --prerelease=allow
uv tool upgrade basic-memory
brew upgrade basic-memory
```

Expand Down
2 changes: 1 addition & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ The recipe runs `just lint` + `just typecheck`, then updates every release manif

**Release dry run:** `just release-dry-run v0.21.4` previews the consolidated version update without writing files.

**Development builds are not published to PyPI.** Documented installs pass `--prerelease=allow` (published releases through v0.23.2 pin a FastMCP pre-release), and uv applies that flag to basic-memory itself, so a `.devN` build on PyPI would outrank the stable release for every fresh install. To try unreleased `main`, install from git: `uv tool install "basic-memory @ git+https://github.com/basicmachines-co/basic-memory" --prerelease=allow`. Keep any old `.dev` versions on PyPI yanked.
**Development builds are not published to PyPI.** Installs made with `--prerelease=allow` (documented through 1.0, and saved in older uv tool receipts) apply that flag to basic-memory itself, so a `.devN` build on PyPI would outrank the stable release for those installs. To try unreleased `main`, install from git: `uv tool install "basic-memory @ git+https://github.com/basicmachines-co/basic-memory"`. Keep any old `.dev` versions on PyPI yanked.

**Do not tag releases by hand.** A bare `git tag vX.Y.Z` skips the in-code version bump. Package metadata is still correct (uv-dynamic-versioning derives it from the git tag) but `basic-memory --version` reports the previous release, which is what happened with v0.21.2 → v0.21.3.

Expand Down
21 changes: 8 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,19 +81,14 @@ Pick the path that fits you. Both run the same product on the same Markdown.
- Requires Python via [`uv`](https://docs.astral.sh/uv/)

```bash
uv tool install basic-memory --prerelease=allow
uv tool install basic-memory
```

`--prerelease=allow` is required: Basic Memory 0.23 depends on a FastMCP 4
pre-release, and `uv` only accepts pre-releases of transitive dependencies when
told to — without the flag it silently installs an older release. The same flag
goes on every `uvx` / `uv tool upgrade` command below.

For Postgres deployments that store semantic vectors in Milvus, install the
first-party optional extra instead:

```bash
uv tool install "basic-memory[milvus]" --prerelease=allow
uv tool install "basic-memory[milvus]"
```

[**Configure your client ↓**](#connect-your-ai-client)
Expand Down Expand Up @@ -286,7 +281,7 @@ Edit `~/Library/Application Support/Claude/claude_desktop_config.json`:
"mcpServers": {
"basic-memory": {
"command": "uvx",
"args": ["--prerelease=allow", "basic-memory", "mcp"]
"args": ["basic-memory", "mcp"]
}
}
}
Expand All @@ -300,7 +295,7 @@ Restart Claude Desktop. Notes live in `~/basic-memory` by default.
### Claude Code

```bash
claude mcp add basic-memory -- uvx --prerelease=allow basic-memory mcp
claude mcp add basic-memory -- uvx basic-memory mcp
```

For the full memory bridge — session briefings, pre-compaction checkpoints, and
Expand All @@ -314,7 +309,7 @@ Add to `~/.codex/config.toml`:
```toml
[mcp_servers.basic-memory]
command = "uvx"
args = ["--prerelease=allow", "basic-memory", "mcp"]
args = ["basic-memory", "mcp"]
```

Codex can keep its default MCP approval behavior, or you can pre-approve eligible
Expand All @@ -323,7 +318,7 @@ Basic Memory tools by adding this server-scoped setting to the same table:
```toml
[mcp_servers.basic-memory]
command = "uvx"
args = ["--prerelease=allow", "basic-memory", "mcp"]
args = ["basic-memory", "mcp"]
default_tools_approval_mode = "approve"
```

Expand All @@ -342,7 +337,7 @@ Add to `.cursor/mcp.json` (project) or `~/.cursor/mcp.json` (global):
"mcpServers": {
"basic-memory": {
"command": "uvx",
"args": ["--prerelease=allow", "basic-memory", "mcp"]
"args": ["basic-memory", "mcp"]
}
}
}
Expand All @@ -358,7 +353,7 @@ Add to your User Settings (JSON):
"servers": {
"basic-memory": {
"command": "uvx",
"args": ["--prerelease=allow", "basic-memory", "mcp"]
"args": ["basic-memory", "mcp"]
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ explicit arguments:
"mcpServers": {
"basic-memory": {
"command": "uvx",
"args": ["--prerelease=allow", "basic-memory", "mcp"]
"args": ["basic-memory", "mcp"]
}
}
}
Expand Down
8 changes: 4 additions & 4 deletions docs/litellm-provider.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ the direct OpenAI embedding provider work without it. To opt into LiteLLM
embeddings or reranking, install the extra in the environment running Basic Memory:

```bash
uv tool install --force "basic-memory[litellm]" --prerelease=allow --python 3.14
uv tool install --force "basic-memory[litellm]" --python 3.14
# Or, in a pip-managed environment:
pip install "basic-memory[litellm]"
```
Expand All @@ -33,7 +33,7 @@ does not yet provide Python 3.15 wheels.

When reinstalling with uv, include every extra you still use in the same
specification. For example, users who also use Milvus need
`uv tool install --force "basic-memory[litellm,milvus]" --prerelease=allow --python 3.14`.
`uv tool install --force "basic-memory[litellm,milvus]" --python 3.14`.

When upgrading an existing LiteLLM configuration, keep requesting this extra.
Selecting `litellm` in config does not install packages automatically; without
Expand All @@ -47,7 +47,7 @@ pip or `uv tool install` does not modify that environment. Use an isolated uv
process when opting into LiteLLM, rather than changing Homebrew-managed files:

```bash
uvx --python 3.14 --prerelease=allow --from "basic-memory[litellm]" bm --help
uvx --python 3.14 --from "basic-memory[litellm]" bm --help
```

Pass the desired `bm` subcommand after `bm`. For an MCP client, use this launch
Expand All @@ -56,7 +56,7 @@ configuration so it starts the process that has the SDK:
```json
{
"command": "uvx",
"args": ["--python", "3.14", "--prerelease=allow", "--from", "basic-memory[litellm]", "bm", "mcp"]
"args": ["--python", "3.14", "--from", "basic-memory[litellm]", "bm", "mcp"]
}
```

Expand Down
2 changes: 1 addition & 1 deletion integrations/hermes/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ memory:

If you run the gateway, restart it (`hermes gateway restart`). Done.

The plugin self-installs the `basic-memory` CLI on first init via `uv tool install basic-memory --prerelease=allow` (one-time ~10s pause if it isn't already present). The bm binary lands at `~/.local/bin/bm` — the same location a manual `uv tool install basic-memory` would produce, so a later manual install or upgrade is a no-op rather than a second install.
The plugin self-installs the `basic-memory` CLI on first init via `uv tool install basic-memory` (one-time ~10s pause if it isn't already present). The bm binary lands at `~/.local/bin/bm` — the same location a manual `uv tool install basic-memory` would produce, so a later manual install or upgrade is a no-op rather than a second install.

### Prerequisites

Expand Down
17 changes: 6 additions & 11 deletions integrations/hermes/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@ def _install_bm_via_uv(timeout: float = 180.0) -> str | None:
Bootstrap-install basic-memory via `uv tool install`.

Idempotent — re-runs are no-ops when the tool is already installed, so this
converges with later manual `uv tool install basic-memory --prerelease=allow`
converges with later manual `uv tool install basic-memory`
calls and avoids
the two-installations-sharing-one-config-dir foot-gun.

Expand All @@ -476,24 +476,20 @@ def _install_bm_via_uv(timeout: float = 180.0) -> str | None:
return None
try:
result = subprocess.run(
# basic-memory pins a FastMCP pre-release; without this flag uv
# silently installs the last release that had none (#1338).
[uv, "tool", "install", "basic-memory", "--prerelease=allow", "--quiet"],
[uv, "tool", "install", "basic-memory", "--quiet"],
check=False,
capture_output=True,
timeout=timeout,
env=_clean_child_env(),
)
except Exception as e:
logger.warning(
"basic-memory: `uv tool install basic-memory --prerelease=allow` failed: %s", e
)
logger.warning("basic-memory: `uv tool install basic-memory` failed: %s", e)
return None
if result.returncode != 0:
# uv prints to stderr; capture the tail so the operator can debug.
stderr_tail = (result.stderr or b"").decode("utf-8", errors="replace")[-400:]
logger.warning(
"basic-memory: `uv tool install basic-memory --prerelease=allow` exited %s: %s",
"basic-memory: `uv tool install basic-memory` exited %s: %s",
result.returncode,
stderr_tail.strip(),
)
Expand Down Expand Up @@ -1202,12 +1198,11 @@ def initialize(self, session_id: str, **kwargs: Any) -> None:
if _install_bm_via_uv() is None:
logger.error(
"basic-memory: auto-install via uv failed. Run "
"`uv tool install basic-memory --prerelease=allow` manually to debug. "
"`uv tool install basic-memory` manually to debug. "
"Provider will not initialize."
)
self._record_init_failure(
"`uv tool install basic-memory --prerelease=allow` failed; "
"run it by hand to see why"
"`uv tool install basic-memory` failed; run it by hand to see why"
)
return

Expand Down
2 changes: 1 addition & 1 deletion integrations/hermes/tests/test_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ def _fake_run(argv, **kwargs):
assert len(calls) == 1
argv = calls[0][0]
assert argv[0] == "/fake/uv"
assert argv[1:] == ["tool", "install", "basic-memory", "--prerelease=allow", "--quiet"]
assert argv[1:] == ["tool", "install", "basic-memory", "--quiet"]


def test_install_bm_via_uv_failed_returncode(bm, monkeypatch):
Expand Down
2 changes: 1 addition & 1 deletion integrations/openclaw/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ Cloud extends local-first — still plain Markdown, still yours. [Start a free t

## Troubleshooting

**`bm` not found** — Install uv, then restart the gateway. Or install manually: `uv tool install basic-memory --prerelease=allow` (the flag is required — basic-memory depends on a FastMCP pre-release, and without it uv silently installs an older release)
**`bm` not found** — Install uv, then restart the gateway. Or install manually: `uv tool install basic-memory`

**Search returns nothing** — Check that Basic Memory connected (look for `connected to BM` in logs). Verify files exist in the project directory.

Expand Down
5 changes: 2 additions & 3 deletions integrations/openclaw/SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ On first startup, this plugin checks whether the `bm` (Basic Memory) CLI is avai
### What happens

1. The plugin checks if `bm` exists on `PATH`
2. If missing, it executes `uv tool install basic-memory --prerelease=allow --force`
(the flag is needed because basic-memory depends on a FastMCP pre-release)
2. If missing, it executes `uv tool install basic-memory --force`
3. This installs the Basic Memory CLI into uv's managed tool directory (`~/.local/bin/bm` on most systems)

### What this means
Expand All @@ -23,7 +22,7 @@ On first startup, this plugin checks whether the `bm` (Basic Memory) CLI is avai
You can install Basic Memory yourself before enabling the plugin:

```bash
uv tool install basic-memory --prerelease=allow
uv tool install basic-memory
```

Or with pip:
Expand Down
4 changes: 1 addition & 3 deletions integrations/openclaw/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,9 @@ async function installBasicMemoryIfMissing(bmBin: string): Promise<void> {
}

log.info("installing basic-memory via uv (this may take a minute)...")
// basic-memory pins a FastMCP pre-release; without this flag uv silently
// installs the last release that had none (#1338).
const { stdout } = await execFileAsync(
"uv",
["tool", "install", "basic-memory", "--prerelease=allow", "--force"],
["tool", "install", "basic-memory", "--force"],
{ encoding: "utf-8", timeout: 120_000 },
)
log.info(`basic-memory installed: ${stdout.trim().split("\n").pop()}`)
Expand Down
5 changes: 1 addition & 4 deletions integrations/openclaw/scripts/setup-bm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,14 @@ if ! command -v uv >/dev/null 2>&1; then
fi

# ── install basic-memory ────────────────────────────────
# basic-memory pins a FastMCP pre-release; without --prerelease=allow uv
# silently installs the last release that had none (#1338).
if [[ -n "${BM_REF}" ]]; then
echo "Installing basic-memory from ${BM_REPO}@${BM_REF} ..."
uv tool install \
"basic-memory @ git+${BM_REPO}@${BM_REF}" \
--prerelease=allow \
--force
else
echo "Installing latest basic-memory from PyPI ..."
uv tool install basic-memory --prerelease=allow --force
uv tool install basic-memory --force
fi

# ── verify ────────────────────────────────────────────────────────
Expand Down
7 changes: 2 additions & 5 deletions llms-install.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,8 @@ steps in order.
Use one of the following package managers to install:

```bash
# Install with uv (recommended). --prerelease=allow is required: basic-memory
# depends on a FastMCP pre-release, and without the flag uv silently installs
# an older release.
uv tool install basic-memory --prerelease=allow
# Install with uv (recommended)
uv tool install basic-memory

# Or with pip
pip install basic-memory
Expand All @@ -29,7 +27,6 @@ Add the following to your config:
"basic-memory": {
"command": "uvx",
"args": [
"--prerelease=allow",
"basic-memory",
"mcp"
]
Expand Down
4 changes: 1 addition & 3 deletions plugins/claude-code/docs/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,8 @@ A ~5-minute walkthrough from zero to a working memory bridge. New to the idea? R
- **Claude Code.**
- **Basic Memory** with the 1.0 `bm_*` tool surface installed and connected as an MCP server:
```bash
uv tool install basic-memory --prerelease=allow
uv tool install basic-memory
```
(`--prerelease=allow` is required: Basic Memory depends on a FastMCP pre-release,
and without the flag uv silently installs an older release.)
Then add it to Claude Code (`claude mcp add` or your MCP config). Confirm it's
reachable — Claude should be able to call `bm_project_list()`.

Expand Down
14 changes: 6 additions & 8 deletions plugins/claude-code/skills/bm-setup/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,9 @@ First confirm the **Basic Memory MCP server is connected** — call
wired into Claude Code yet. **Stop and walk the user through it first** (everything
below depends on it):

1. Install it: `uv tool install basic-memory --prerelease=allow` (or
`pip install basic-memory`), a version exposing the 1.0 `bm_*` tools. Keep `--prerelease=allow`
with uv: published releases pin a FastMCP pre-release, and without the flag uv
silently installs an older Basic Memory release.
2. Connect it: `claude mcp add basic-memory -- uvx --prerelease=allow basic-memory mcp`,
1. Install it: `uv tool install basic-memory` (or
`pip install basic-memory`), a version exposing the 1.0 `bm_*` tools.
2. Connect it: `claude mcp add basic-memory -- uvx basic-memory mcp`,
then restart the session so the MCP server loads.

Re-check `bm_project_list()` before continuing — don't start the interview until
Expand Down Expand Up @@ -62,7 +60,7 @@ Ask only what you can't infer. Cover:
- *Cloud project* (the user wants capture in a cloud workspace): pass the
`workspace` selector (a slug from `bm_project_list()`) and a cloud-style path
like `/<name>`, and create it with a **cloud-connected** MCP server. A purely
local server (`uvx --prerelease=allow basic-memory mcp`) treats the path as a local directory and
local server (`uvx basic-memory mcp`) treats the path as a local directory and
fails to create it (e.g. read-only `/`). When both a local and a cloud server
are connected, route creation *and* the schema seeding through the cloud one,
and pin `primaryProject` to the new project's `external_id` UUID
Expand Down Expand Up @@ -233,7 +231,7 @@ nudge — the config's presence is the signal that setup has run.
Before you close, prove recall actually resolves — this catches a misnamed project,
missing cloud credentials, or a ref that doesn't route, while the user is still here
to fix it. Use the CLI the hook uses (`basic-memory` / `bm` /
`uvx --prerelease=allow basic-memory`). `--project` takes a project name,
`uvx basic-memory`). `--project` takes a project name,
`workspace/project`, or a project id.

- **Primary:** run the open-decision query the SessionStart hook runs against
Expand All @@ -249,7 +247,7 @@ to fix it. Use the CLI the hook uses (`basic-memory` / `bm` /
**error** means the ref doesn't route.
- **Hook health:** run
`basic-memory hook status --harness claude --project-dir <project-root>` with
the first available `basic-memory`, `bm`, or `uvx --prerelease=allow basic-memory` launcher. It
the first available `basic-memory`, `bm`, or `uvx basic-memory` launcher. It
must find the intended settings and report the selected project and capture
state. Record the shared inbox depth and last-flush state in the setup summary;
the counts include envelopes from every supported harness.
Expand Down
2 changes: 1 addition & 1 deletion plugins/claude-code/skills/bm-status/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ when a default is configured.
## Gather

1. **CLI reachable?** Run `basic-memory --version`, then `bm --version`, then
`uvx --prerelease=allow basic-memory --version`. If no launcher resolves, report the CLI status as
`uvx basic-memory --version`. If no launcher resolves, report the CLI status as
unavailable and continue with MCP/config checks. The plugin hooks can still use
their uv-managed environment.

Expand Down
1 change: 0 additions & 1 deletion plugins/codex/.mcp.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"basic-memory": {
"command": "uvx",
"args": [
"--prerelease=allow",
"basic-memory",
"mcp"
]
Expand Down
Loading
Loading