# CHANGELOG

## v0.21.6 (2026-06-04)

Monorepo consolidation plus a redesigned Claude Code plugin. The satellite
repositories now live in the main `basic-memory` tree, and the plugin is
rebuilt as a memory bridge with a guided setup interview, capture skills, and
team workspaces. Codex, Hermes, and OpenClaw integration packages ship
alongside it.

### Core

- Consolidated the Basic Memory satellite repositories into the main
  `basic-memory` tree as the canonical source, discovery, documentation,
  issue, and release home.
- Added root marketplace/package validation for the consolidated repository
  layout.
- Added root and package-local justfile targets so Claude Code, Codex, skills,
  Hermes, and OpenClaw builds can be verified from the monorepo.
- Removed the legacy `ui/` directory.

### API

- Entity resolution now exposes the owning project on resolved entities so
  callers can route follow-up reads to the correct workspace/project.

### CLI

- Added an "auto BM" GitHub CI workflow that captures notes from CI runs.
- Exposed project sync-support metadata and surfaced copyable workspace
  identifiers in project listings.
- `cloud login` now surfaces non-subscription errors instead of masking them.
- Team workspaces block `rclone sync`, with the team-workspace guard limited
  to `bisync`.

### Claude Code

- Rebuilt the Claude Code plugin as a memory bridge with SessionStart and
  PreCompact hooks, a bundled output style, and seeded note schemas.
- Added the `/basic-memory:setup` bootstrap interview and the
  `/basic-memory:remember`, `/basic-memory:status`, and `/basic-memory:share`
  skills.
- Added team workspace support with attribution for shared writes.
- Prefixed plugin skills with `bm-` and installed the shared `memory-*` skills
  instead of duplicating them in the plugin.
- Hooks fall back to `uvx`/`uv` when no CLI binary is on PATH.

### Codex

- Added the Codex plugin under `plugins/codex/` with its native
  `.codex-plugin`, hooks, seeded schemas, and `bm-*` skills.

### Skills

- Added the shared Basic Memory `SKILL.md` collection under top-level
  `skills/` and ported useful retired plugin skills into the `memory-*` set.
- Fixed invalid picoschema enum YAML in the memory skills.

### Hermes

- Added the Hermes memory provider plugin under `integrations/hermes/` with
  its native Python module, `plugin.yaml`, skill, tests, docs, and release
  metadata.

### OpenClaw

- Added the OpenClaw plugin under `integrations/openclaw/` with its native
  npm/TypeScript package shape, tests, docs, and release metadata; skill
  bundling copies from the top-level `skills/` source.

## v0.21.5 (2026-05-26)

Workspace/project routing fixes for MCP, plus a SQLite vector reindex stability fix.

### Bug Fixes

- **#854**: MCP project listing now keeps duplicate cloud project rows distinct by
  workspace, so only the selected workspace row inherits local project state.
- **#853**: `write_note` returns workspace-qualified permalinks for cloud
  workspace writes, allowing follow-up `memory://` reads to route back to the
  correct workspace/project.
- **#852**: Full SQLite vector reindex now loads `sqlite-vec` before dropping
  `vec0` virtual tables, preventing reindex crashes.
- **#838**: Local ASGI database initialization is preloaded so MCP routing can
  safely enter local project contexts.

## v0.21.1 (2026-05-16)

CI-only release. No user-facing changes.

### Maintenance

- **#833**: Replace `mislav/bump-homebrew-formula-action` with an inline
  bash bump step. The action's `resolveRedirect` HEAD-requests
  `api.github.com /repos/.../tarball/<ref>` expecting HTTP 302; GitHub now
  returns 303 for authenticated requests on that endpoint, which broke
  the v0.21.0 Homebrew job and required a manual tap bump. The inline
  step does the same work (curl + sha256sum, clone tap, sed-bump
  `url`/`sha256`, commit, push) without any third-party dependency.

## v0.21.0 (2026-05-16)

Workspace-aware everywhere: every MCP tool and CLI command now routes through the
same workspace/project model, the search and sync paths are noticeably faster,
and a handful of long-standing parsing and routing footguns are gone.

### Breaking Changes

- Relation parsing no longer treats unquoted multi-word text before a wikilink as a
  custom relation type. Use single-token relation types like `relates_to [[Target]]`,
  or quote multi-word relation types like `"relates to" [[Target]]` or
  `'relates to' [[Target]]`.
  - Bare list wikilinks like `- [[Target]]` now index as `links_to`.
  - Prose list items like `- some other thing [[Target]]` now index as `links_to`.
  - To preserve existing multi-word relation types on re-sync, quote them before upgrading.
  - See **#824**.

### Features

- **#816**: `bm orphan` CLI command surfaces entities whose underlying markdown
  files are gone, with a flag to clean them out.
- **#789**: Create projects directly by cloud workspace slug from MCP
  (`create_memory_project(workspace=...)`).
- **#757**: Discover projects across every accessible cloud workspace in MCP's
  project list — no more per-workspace blind spots.
- **#766**: MCP tools accept training-data-friendly parameter aliases
  (`q`/`search`/`text` for `query`, etc.) so models reach for them naturally.
- **#776**: `bm db reset` refuses to run while a `basic-memory mcp` process is
  alive, so resets can no longer corrupt an open session.
- **#791**: Search responses include result totals so pagers can stop guessing.
- **#719**: Cloud `note_content` tenant schema primitive lands on the backend.
- **#715**: `bm project add` accepts a `--visibility` flag for cloud projects.

### Bug Fixes

#### Search and recent activity
- **#832**: SQLite project deletion now sweeps `search_index`,
  `search_vector_chunks`, and `search_vector_embeddings`, so a project that
  reuses a recycled auto-increment id can't inherit the previous tenant's content.
- **#812**: `recent_activity` orders and filters by `updated_at`, so edits bubble
  to the top instead of staying pinned to creation time.
- **#807**: Multi-project `search_notes` is opt-in (`search_all_projects=True`);
  default search stays scoped to the resolved project.
- **#785**: `recent_activity` caps responses and emits an explicit truncation
  footer instead of silently dropping rows.
- **#713**: Eliminated an N+1 query in search result hydration.

#### Workspace / project routing
- **#822**: `bm project list` now includes projects from every workspace, not
  just the current one.
- **#813**, **#808**, **#806**, **#803**, **#801**, **#795**, **#790**, **#778**,
  **#777**, **#722**, **#712**, **#704**: Workspace-qualified permalink routing
  is centralized and applied consistently across `edit_note`, `delete_project`,
  `build_context`, `memory://` URLs, factory-mode project listing, cloud uploads,
  and the API client.

#### Sync
- **#827**: `rclone bisync` filters from `.bmignore` are preserved across syncs.
- **#815**: Watch service ignores hidden paths relative to the watched project,
  not just relative to `$HOME`.
- **#814**: `scan` subprocesses no longer go through the shell, avoiding quoting
  issues with paths that contain special characters.
- **#759**: Watch service stays inside `--project` scope.
- **#746**: Canonical markdown is preserved during single-file sync.

#### Parsing
- **#796**: Picoschema modifier descriptions (`field?(modifier, description)`)
  parse correctly.
- **#769**: Obsidian callout blocks are skipped by the observation parser
  instead of being mis-extracted as observations.

#### CLI
- **#775**: `bm project set-cloud` / `set-local` cleans up local DB state for
  the affected project.
- **#773**: `bm cloud logout` clears `default_workspace`.
- **#780**: `bm cloud setup` hint points at `bm cloud sync-setup`.
- **#734**: `bm project info` shows cloud index freshness.
- **#718**: Private cloud projects display under their `display_name` instead of
  raw UUID.
- **#768**: `read_note` / `view_note` drop no-op pagination params from their
  signatures.

#### Stability
- **#774**: `sqlite-vec` failures during init degrade gracefully to keyword-only
  search instead of crashing startup.
- **#733**: Delete-vector and cloud-sync cleanup is now consistent.
- **#702**: Race conditions in concurrent `delete_entity` are resolved.
- **#724**: `external_id` is preserved when entities are re-upserted during a
  re-index.
- **#728**: Vector init no longer issues runtime `ALTER TABLE`.
- **#744**: `BASIC_MEMORY_CONFIG_DIR` is honored across remaining call sites.
- **#743**: FastEmbed cache lives under the data dir instead of `/tmp`.
- **#752**: Cloud projects report `source=cloud` in factory mode.
- Stripped null bytes from markdown content before DB insert.
- Allowed long `relation_type` values in API responses.

#### Installer
- **#772**: Docker-compose config volume mounts under the `appuser` home.
- **#695**: Bumped `brew outdated` timeout from 15s to 60s.

### Performance

- **#828**: CLI startup no longer pulls in the local ASGI FastAPI app when it
  isn't needed.
- **#751**, **#726**, **#717**, **#714**, single-file/batch indexing: marked
  speedups on the sync hot path; unchanged markdown is skipped entirely.
- **#731**, **#723**: Vector sync is faster on both backends, with tuned
  fastembed defaults.

### Maintenance

- **#825**: Dependency refresh + security hardening.
- Updated to `fastmcp` 3.3.1.
- **#754**: Removed in-house telemetry wrappers in favor of direct `logfire`
  usage.
- **#736**: `ty` is now the default typechecker.
- **#771**, **#770**, **#716**: New regression guards for vector-row cleanup,
  long relation types, and recent activity hydration.

## v0.20.3 (2026-03-26)

### Bug Fixes

- **#698**: CLI cloud commands now use API key when configured
  - `get_authenticated_headers()` only checked OAuth tokens, ignoring `config.cloud_api_key`
  - All CLI cloud commands (`upload`, `status`, `snapshot`, `restore`, etc.) failed for API-key-only users while MCP tools worked fine
  - Now mirrors the same credential priority as MCP: API key first, OAuth fallback
  - Fixes `bm cloud upload --project` returning "project does not exist" when authenticated with `bmc_*` API key

## v0.20.2 (2026-03-10)

### Bug Fixes

- Fix auto-update Homebrew detection: `brew outdated` exits 1 when a formula is outdated, not on error
  - Previously treated exit code 1 as a failure, causing "Automatic update check failed" instead of detecting the available update

## v0.20.1 (2026-03-10)

### Bug Fixes

- **#661**: Fix `bm project list` MCP column to show transport type (stdio/https) instead of DB presence
  - Renamed "MCP (stdio)" column to "MCP"
  - Shows actual routing mode: `stdio` for local, `https` for cloud projects
  - Clears local path display for cloud-mode projects
- **#662**: Invalidate config cache when file is modified by another process
  - Adds mtime-based cache validation to `ConfigManager.load_config()`
  - Long-lived processes (MCP stdio server) now detect external config changes
  - Fixes `bm project set-cloud` having no effect on running MCP server

## v0.20.0 (2026-03-10)

### Features

- **#643**: Default-on auto-update system and `bm update` command
  - Automatic background update checks for CLI installs (uv tool, Homebrew)
  - Install-source detection (homebrew, uv_tool, uvx, unknown) with uvx skip behavior
  - Periodic check gating via `auto_update_last_checked_at` + `update_check_interval` config
  - Manager-specific update flows: Homebrew (`brew upgrade`) and uv tool (`uv tool upgrade`)
  - Silent, non-blocking MCP behavior via daemon thread before server run
  - Manual commands: `bm update` (force check + apply) and `bm update --check` (check only)
  - New config fields: `auto_update`, `update_check_interval`, `auto_update_last_checked_at`

## v0.19.2 (2026-03-09)

### Bug Fixes

- **#657**: Coerce string params to list/dict in MCP tools
  - MCP clients that serialize `list`/`dict` arguments as JSON strings no longer fail Pydantic validation
  - Adds `BeforeValidator` coercion to `search_notes` (`entity_types`, `note_types`, `tags`, `metadata_filters`), `write_note` (`metadata`), and `canvas` (`nodes`, `edges`)
- **#655**: Handle SQLite and Windows semantic search regressions
  - Fix embedding status query for non-semantic SQLite databases
  - Windows-safe log file rotation with per-process log filenames
  - Robust `setup_logging` that handles all environments cleanly

## v0.19.1 (2026-03-08)

### Bug Fixes

- **#649**: Enforce strict entity resolution in destructive MCP tools (`edit_note`, `move_note`, `delete_note`)
  - Prevents fuzzy-match fallback from silently editing/moving/deleting the wrong note
  - DST-related timeframe validation fix (round instead of truncate days)

### Features

- **#648**: Add `insert_before_section` and `insert_after_section` edit operations
- Add `GET /knowledge/graph` endpoint for full graph visualization

### Dependencies

- Bump authlib from 1.6.6 to 1.6.7

## v0.19.0 (2026-03-07)

### Highlights

- **Semantic vector search** for SQLite and Postgres with FastEmbed embeddings
- **Schema system** for validating and inferring knowledge base structure
- **Per-project cloud routing** with API key authentication
- **Upgraded to FastMCP 3.0** with tool annotations
- **CLI overhaul** with JSON output, workspace awareness, and project dashboard

### Features

- **#550**: Add semantic vector search for SQLite and Postgres
  - FastEmbed-based embeddings with automatic backfill
  - Hybrid search combining full-text and vector similarity
  - Score-based fusion replacing RRF for better ranking
  - `min_similarity` override for tuning search precision
  - Semantic dependencies are now default, with optional extras fallback

- **#549**: Schema system for Basic Memory
  - `schema_infer` — infer schema from existing notes
  - `schema_validate` — validate notes against a schema definition
  - `schema_diff` — compare schemas across projects
  - Frontmatter validation support (#597)
  - Read schema definitions from file instead of stale DB metadata (#635)

- **#555**: Per-project local/cloud routing with API key auth
  - Individual projects route through cloud while others stay local
  - `basic-memory cloud set-key` and `basic-memory project set-cloud/set-local`
  - Stdio MCP honors per-project cloud routing (#590)

- **#598**: Upgrade FastMCP 2.12.3 to 3.0.1 with tool annotations

- **#585**: Add JSON output mode for MCP tools (default text)
  - `--json` output for CLI commands for scripting and CI

- **#576**: Add workspace selection flow for MCP and CLI
  - Workspace-aware cloud project listing
  - CLI refactoring for workspace support

- **#544**: Project-prefixed permalinks and memory URL routing

- **#632**: Add overwrite guard to `write_note` tool

- **#614**: `edit_note` append/prepend auto-creates note if not found

- **#609**: Richer content context in search results
  - Return matched chunk text in search results (#601)
  - Improved content hit rate

- **#602**: Add `created_by` and `last_updated_by` user tracking to Entity

- **#600**: Rename `entity_type` to `note_type` across codebase

- **#574**: Add `display_name` and `is_private` to ProjectItem

- **#569**: Expose `external_id` in EntityResponse and link resolver

- **#567**: Isolate default SQLite DB by config dir

- **#560**: Enable `default_project_mode` by default

- **#559**: Add `basic-memory watch` CLI command

- **#546**: Add cloud discovery touchpoints to CLI and MCP

- **#572**: CLI analytics via Umami event collector

- Replace project info with htop-inspired dashboard

- Merge `search_by_metadata` into `search_notes` with optional query

- Add `--strip-frontmatter` to `basic-memory tool read-note`

- Add `destination_folder` parameter to `move_note` tool

### Bug Fixes

- **#644**: Fix default project resolution in cloud mode
  - ChatGPT search/fetch tools broken in cloud mode
  - `resolve_project_parameter` falls back to projects API

- **#638**: Restore API backward compatibility for v0.18.x clients

- **#637**: Create backup before config migration overwrites old format

- **#636**: `list_workspaces` bypasses factory pattern on cloud MCP server

- **#631**: `build_context` related_results schema validation failure

- **#613**: Reduce excessive log volume by demoting per-request noise to DEBUG

- **#612**: Handle quoted picoschema enum strings in YAML frontmatter

- **#607**: Guard against closed streams in promo and missing vector tables

- **#606**: Accept null for `expected_replacements` in `edit_note`

- **#595**: `recent_activity` dedup and pagination across MCP tools

- **#593**: Backend-specific distance-to-similarity conversion

- **#582**: Use LinkResolver fallback in `build_context` for flexible identifier matching

- **#577**: Replace RRF with score-based fusion in hybrid search

- **#575**: Remove hardcoded "main" default from `default_project`

- **#534**: Speed up `bm --version` startup

- Fix semantic embeddings not generated on fresh DB or upgrade

- Clarify `search_notes` parameter naming and fix `note_types` case sensitivity

- Parse `tag:` prefix at MCP tool level to avoid hybrid search failure

- Cap sqlite-vec knn k parameter at 4096 limit

- Parameterize SQL queries in search repository type filters

- Coerce list frontmatter values to strings for title and type fields

- Avoid `Post(**metadata)` crash when frontmatter contains 'content' or 'handler' keys

- Upgrade cryptography and python-multipart for security advisories

### Internal

- **#594**: Add `ty` as supplemental type checker
- Batched vector sync orchestration across repositories
- FastEmbed parallel guardrails and provider caching
- Improved cloud CLI status and error messages
- CI coverage and Postgres test fixes

## v0.18.5 (2026-02-13)

### Bug Fixes

- Strip NUL bytes from content before PostgreSQL search indexing
  ([`ec9b2c4`](https://github.com/basicmachines-co/basic-memory/commit/ec9b2c4))

## v0.18.4 (2026-02-12)

### Bug Fixes

- Use global `--header` flag for Tigris consistency on all rclone transactions
  ([`0eae0e1`](https://github.com/basicmachines-co/basic-memory/commit/0eae0e1))
  - `--header-download` / `--header-upload` only apply to GET/PUT requests, missing S3
    ListObjectsV2 calls that bisync issues first. Non-US users saw stale edge-cached metadata.
  - `--header` applies to ALL HTTP transactions (list, download, upload), fixing bisync for
    users outside the Tigris origin region.

## v0.18.2 (2026-02-11)

### Bug Fixes

- **#562**: Use VIRTUAL instead of STORED columns in SQLite migration
  ([`344e651`](https://github.com/basicmachines-co/basic-memory/commit/344e651))
  - Fixes compatibility issue with SQLite STORED generated columns

## v0.18.1 (2026-02-11)

### Features

- **#552**: Add `--format json` to CLI tool commands
  ([`a47c9c0`](https://github.com/basicmachines-co/basic-memory/commit/a47c9c0))
  - CLI tool commands now support `--format json` for machine-readable output

- **#535**: Support `tag:` query shorthand in search
  ([`f1d50c2`](https://github.com/basicmachines-co/basic-memory/commit/f1d50c2))
  - Use `tag:mytag` as a convenient shorthand in search queries

- **#532**: Fast edit entities, refactors for webui, enhanced search
  ([`530cbac`](https://github.com/basicmachines-co/basic-memory/commit/530cbac))
  - Performance improvements for entity editing and search operations

### Bug Fixes

- **#558**: Add X-Tigris-Consistent headers to all rclone commands
  ([`8489a3d`](https://github.com/basicmachines-co/basic-memory/commit/8489a3d))
  - Ensures consistent reads from Tigris object storage during sync

- **#541**: Handle EntityCreationError as conflict
  ([`343a6e1`](https://github.com/basicmachines-co/basic-memory/commit/343a6e1))

- **#536**: Stabilize metadata filters on Postgres
  ([`009e849`](https://github.com/basicmachines-co/basic-memory/commit/009e849))

- **#533**: Fix recent_activity prompt defaults
  ([`24ca5f6`](https://github.com/basicmachines-co/basic-memory/commit/24ca5f6))

- **#530**: Prevent spurious `metadata: {}` in frontmatter output
  ([`e3ced49`](https://github.com/basicmachines-co/basic-memory/commit/e3ced49))

- Add POST legacy compat routes for v0.18.0 CLI
  ([`c46d7a6`](https://github.com/basicmachines-co/basic-memory/commit/c46d7a6))

- Restore legacy `/projects/projects` endpoint for older CLI versions
  ([`a0e754b`](https://github.com/basicmachines-co/basic-memory/commit/a0e754b))

### Internal

- **#538**: Add fast feedback loop tooling (`just fast-check`, `just doctor`, `just testmon`)
  ([`8072449`](https://github.com/basicmachines-co/basic-memory/commit/8072449))

## v0.18.0 (2026-01-28)

### Features

- **#527**: Add context-aware wiki link resolution with source_path support
  ([`0023e73`](https://github.com/basicmachines-co/basic-memory/commit/0023e73))
  - Add `source_path` parameter to `resolve_link()` for context-aware resolution
  - Relative path resolution: `[[nested/note]]` from `folder/file.md` → `folder/nested/note.md`
  - Proximity-based resolution for duplicate titles (prefers notes in same folder)
  - Strict mode to disable fuzzy search fallback for wiki links

- **#518**: Add directory support to move_note and delete_note tools
  ([`0b20801`](https://github.com/basicmachines-co/basic-memory/commit/0b20801))
  - Add `is_directory` parameter to `move_note` and `delete_note` MCP tools
  - New `POST /move-directory` and delete directory API endpoints
  - Rename `folder` → `directory` parameter across codebase for consistency

- **#522**: Local MCP cloud mode routing
  ([`8730067`](https://github.com/basicmachines-co/basic-memory/commit/8730067))
  - Add `--local` and `--cloud` CLI routing flags
  - Local MCP server (`basic-memory mcp`) automatically uses local routing
  - Enables simultaneous use of local Claude Desktop and cloud-based clients
  - Environment variable `BASIC_MEMORY_FORCE_LOCAL=true` for global override

### Bug Fixes

- **#524**: Fix MCP prompt rendering errors
  ([`e14ba92`](https://github.com/basicmachines-co/basic-memory/commit/e14ba92))
  - Fix "Error rendering prompt recent_activity" error
  - Change `TimeFrame` to `str` in prompt type annotations for FastMCP compatibility

## v0.17.9 (2026-01-24)

### Bug Fixes

- **#523**: Fix `remove_project()` checking stale config in cloud mode
  ([`17c0e0a`](https://github.com/basicmachines-co/basic-memory/commit/17c0e0a))
  - In cloud mode, only check database `is_default` field (source of truth)
  - Config file can become stale when users set default project via v2 API

## v0.17.8 (2026-01-24)

### Bug Fixes

- **#521**: Fix `get_default_project()` returning multiple results
  ([`6888eff`](https://github.com/basicmachines-co/basic-memory/commit/6888eff))
  - Query incorrectly matched any project with non-NULL `is_default` (both True and False)
  - Now correctly checks for `is_default=True` only

## v0.17.7 (2026-01-24)

### Features

- **#476**: Add SPEC-29 Phase 3 bucket snapshot CLI commands
  ([`369ad37`](https://github.com/basicmachines-co/basic-memory/commit/369ad37))
  - New `basic-memory cloud snapshot` commands for managing cloud snapshots
  - Commands: `create`, `list`, `delete`, `show`, `browse`

- **#515**: Add MCP registry publication files
  ([`7a502e6`](https://github.com/basicmachines-co/basic-memory/commit/7a502e6))

### Bug Fixes

- **#520**: Read default project from database in cloud mode
  ([`38616c3`](https://github.com/basicmachines-co/basic-memory/commit/38616c3))

- **#513**: Ensure external_id is set on entity creation
  ([`c7835a9`](https://github.com/basicmachines-co/basic-memory/commit/c7835a9))

### Internal

- **#514**: Remove OpenPanel telemetry
  ([`85835ae`](https://github.com/basicmachines-co/basic-memory/commit/85835ae))

- Update README links to point to basicmemory.com
  ([`2aaee73`](https://github.com/basicmachines-co/basic-memory/commit/2aaee73))

## v0.17.6 (2026-01-17)

### Bug Fixes

- **#510**: Fix Docker container Python symlink broken at runtime
  ([`1799c94`](https://github.com/basicmachines-co/basic-memory/commit/1799c94))

### Internal

- Remove logfire config and specs docs, reduce lifespan and sync logging to debug level
  ([`d1d433d`](https://github.com/basicmachines-co/basic-memory/commit/d1d433d),
  [`803f3ef`](https://github.com/basicmachines-co/basic-memory/commit/803f3ef))

## v0.17.5 (2026-01-11)

### Bug Fixes

- **#505**: Prevent CLI commands from hanging on exit (Python 3.14 compatibility)
  ([`863e0a4`](https://github.com/basicmachines-co/basic-memory/commit/863e0a4))
  - Skip `nest_asyncio` on Python 3.14+ where it causes event loop issues
  - Simplify CLI test infrastructure for cross-version compatibility
  - Update pyright to 1.1.408 for Python 3.14 support
  - Fix SQLAlchemy rowcount typing for Python 3.14

## v0.17.4 (2026-01-05)

### Bug Fixes

- **#503**: Preserve search index across server restarts
  ([`26f7e98`](https://github.com/basicmachines-co/basic-memory/commit/26f7e98))
  - Fixes critical bug where search index was wiped on every MCP server restart
  - Bug was introduced in v0.16.3, affecting v0.16.3-v0.17.3
  - **User action**: Run `basic-memory reset` once after updating to rebuild search index

### Internal

- **#502**: Major architecture refactor with composition roots and typed API clients
  ([`5947f04`](https://github.com/basicmachines-co/basic-memory/commit/5947f04))
  - Add composition roots for API, MCP, and CLI entrypoints
  - Split deps.py into feature-scoped modules (config, db, projects, repositories, services, importers)
  - Add ProjectResolver for unified project selection
  - Add SyncCoordinator for centralized sync/watch lifecycle
  - Introduce typed API clients for MCP tools (KnowledgeClient, SearchClient, MemoryClient, etc.)

## v0.17.3 (2026-01-03)

### Features

- **#485**: Add stable external_id (UUID) to Project and Entity models
  ([`a4000f6`](https://github.com/basicmachines-co/basic-memory/commit/a4000f6))
  - Projects and entities now have immutable UUID identifiers
  - API v2 endpoints use external_id for stable references
  - Directory responses include external_id for entities

### Bug Fixes

- **#501**: Update mcp dependency to support protocol version 2025-11-25
  ([`c6baf58`](https://github.com/basicmachines-co/basic-memory/commit/c6baf58))
  - Fixes "Unsupported protocol version" error when using Claude Code
  - Bump mcp from >=1.2.0 to >=1.23.1

- **#499**: Fix route ordering for cloud deployments
  ([`53c4c20`](https://github.com/basicmachines-co/basic-memory/commit/53c4c20))

- **#486**: Skip config file update for set_default_project in cloud mode
  ([`fd732aa`](https://github.com/basicmachines-co/basic-memory/commit/fd732aa))

- **#484**: Make RelationResponse.from_id optional to handle null permalinks
  ([`537e58a`](https://github.com/basicmachines-co/basic-memory/commit/537e58a))

- Use upsert to prevent IntegrityError during parallel search indexing
  ([`4ce2198`](https://github.com/basicmachines-co/basic-memory/commit/4ce2198))

- Use relative file paths in importers for cloud storage compatibility
  ([`8adf1f4`](https://github.com/basicmachines-co/basic-memory/commit/8adf1f4))

### Internal

- Refactor importers to use FileService for cloud compatibility
  ([`45ce181`](https://github.com/basicmachines-co/basic-memory/commit/45ce181))

- Strengthen integration test coverage, remove stdlib mocks
  ([`b4486d2`](https://github.com/basicmachines-co/basic-memory/commit/b4486d2))

## v0.17.2 (2025-12-29)

### Bug Fixes

- Allow recent_activity discovery mode in cloud mode
  ([`0bcda4a`](https://github.com/basicmachines-co/basic-memory/commit/0bcda4a))
  - Add `allow_discovery` parameter to `resolve_project_parameter()`
  - Tools like `recent_activity` can now work across all projects in cloud mode
  - Fix circular import in project_context module

### Internal

- Optimize release workflow by running lint/typecheck only (skip full tests)
  ([`0b5425f`](https://github.com/basicmachines-co/basic-memory/commit/0b5425f))

## v0.17.1 (2025-12-29)

### Bug Fixes

- **#482**: Only set BASIC_MEMORY_ENV=test during pytest runs
  ([`98fbd60`](https://github.com/basicmachines-co/basic-memory/commit/98fbd60))
  - Fixes environment variable pollution affecting alembic migrations
  - Test environment detection now scoped to pytest execution only

## v0.17.0 (2025-12-28)

### Features

- **#478**: Add anonymous usage telemetry with Homebrew-style opt-out
  ([`856737f`](https://github.com/basicmachines-co/basic-memory/commit/856737f))
  - Privacy-respecting anonymous usage analytics
  - Easy opt-out via `BASIC_MEMORY_NO_ANALYTICS=1` environment variable
  - Helps improve Basic Memory based on real usage patterns

- **#474**: Add auto-format files on save with built-in Python formatter
  ([`1fd680c`](https://github.com/basicmachines-co/basic-memory/commit/1fd680c))
  - Automatic markdown formatting on file save
  - Built-in Python formatter for consistent code style
  - Configurable formatting options

- **#447**: Complete Phase 2 of API v2 migration - MCP tools use v2 endpoints
  ([`1a74d85`](https://github.com/basicmachines-co/basic-memory/commit/1a74d85))
  - All MCP tools now use optimized v2 API endpoints
  - Improved performance for knowledge graph operations
  - Foundation for future API enhancements

### Bug Fixes

- Fix UTF-8 BOM handling in frontmatter parsing
  ([`85684f8`](https://github.com/basicmachines-co/basic-memory/commit/85684f8))
  - Handles files with UTF-8 byte order marks correctly
  - Prevents frontmatter parsing failures

- **#475**: Handle null titles in ChatGPT import
  ([`14ce5a3`](https://github.com/basicmachines-co/basic-memory/commit/14ce5a3))
  - Gracefully handles conversations without titles
  - Improved import robustness

- Remove MaxLen constraint from observation content
  ([`45d6caf`](https://github.com/basicmachines-co/basic-memory/commit/45d6caf))
  - Allows longer observation content without truncation
  - Removes arbitrary 2000 character limit

- Handle FileNotFoundError gracefully during sync
  ([`1652f86`](https://github.com/basicmachines-co/basic-memory/commit/1652f86))
  - Prevents sync failures when files are deleted during sync
  - More resilient file watching

- Use canonical project names in API response messages
  ([`c23927d`](https://github.com/basicmachines-co/basic-memory/commit/c23927d))
  - Consistent project name formatting in all responses

- Suppress CLI warnings for cleaner output
  ([`d71c6e8`](https://github.com/basicmachines-co/basic-memory/commit/d71c6e8))
  - Cleaner terminal output without spurious warnings

- Prevent DEBUG logs from appearing on CLI stdout
  ([`63b9849`](https://github.com/basicmachines-co/basic-memory/commit/63b9849))
  - Debug logging no longer pollutes CLI output

- **#473**: Detect rclone version for --create-empty-src-dirs support
  ([`622d37e`](https://github.com/basicmachines-co/basic-memory/commit/622d37e))
  - Automatic rclone version detection for compatibility
  - Prevents errors on older rclone versions

- **#471**: Prevent CLI commands from hanging on exit
  ([`916baf8`](https://github.com/basicmachines-co/basic-memory/commit/916baf8))
  - Fixes CLI hang on shutdown
  - Proper async cleanup

- Add cloud_mode check to initialize_app()
  ([`ef7adb7`](https://github.com/basicmachines-co/basic-memory/commit/ef7adb7))
  - Correct initialization for cloud deployments

### Internal

- Centralize test environment detection in config.is_test_env
  ([`3cd9178`](https://github.com/basicmachines-co/basic-memory/commit/3cd9178))
  - Unified test environment detection
  - Disables analytics in test environments

- Make test-int-postgres compatible with macOS
  ([`95937c6`](https://github.com/basicmachines-co/basic-memory/commit/95937c6))
  - Cross-platform PostgreSQL testing support

## v0.16.3 (2025-12-20)

### Features

- **#439**: Add PostgreSQL database backend support
  ([`fb5e9e1`](https://github.com/basicmachines-co/basic-memory/commit/fb5e9e1))
  - Full PostgreSQL/Neon database support as alternative to SQLite
  - Async connection pooling with asyncpg
  - Alembic migrations support for both backends
  - Configurable via `BASIC_MEMORY_DATABASE_BACKEND` environment variable

- **#441**: Implement API v2 with ID-based endpoints (Phase 1)
  ([`28cc522`](https://github.com/basicmachines-co/basic-memory/commit/28cc522))
  - New ID-based API endpoints for improved performance
  - Foundation for future API enhancements
  - Backward compatible with existing endpoints

- Add project_id to Relation and Observation for efficient project-scoped queries
  ([`a920a9f`](https://github.com/basicmachines-co/basic-memory/commit/a920a9f))
  - Enables faster queries in multi-project environments
  - Improved database schema for cloud deployments

- Add bulk insert with ON CONFLICT handling for relations
  ([`0818bda`](https://github.com/basicmachines-co/basic-memory/commit/0818bda))
  - Faster relation creation during sync operations
  - Handles duplicate relations gracefully

### Performance

- Lightweight permalink resolution to avoid eager loading
  ([`6f99d2e`](https://github.com/basicmachines-co/basic-memory/commit/6f99d2e))
  - Reduces database queries during entity lookups
  - Improved response times for read operations

### Bug Fixes

- **#464**: Pin FastMCP to 2.12.3 to fix MCP tools visibility
  ([`f227ef6`](https://github.com/basicmachines-co/basic-memory/commit/f227ef6))
  - Fixes issue where MCP tools were not visible to Claude
  - Reverts to last known working FastMCP version

- **#458**: Reduce watch service CPU usage by increasing reload interval
  ([`897b1ed`](https://github.com/basicmachines-co/basic-memory/commit/897b1ed))
  - Lowers CPU usage during file watching
  - More efficient resource utilization

- **#456**: Await background sync task cancellation in lifespan shutdown
  ([`efbc758`](https://github.com/basicmachines-co/basic-memory/commit/efbc758))
  - Prevents hanging on shutdown
  - Clean async task cleanup

- **#434**: Respect --project flag in background sync
  ([`70bb10b`](https://github.com/basicmachines-co/basic-memory/commit/70bb10b))
  - Background sync now correctly uses specified project
  - Fixes multi-project sync issues

- **#446**: Fix observation parsing and permalink limits
  ([`73d940e`](https://github.com/basicmachines-co/basic-memory/commit/73d940e))
  - Handles edge cases in observation content
  - Prevents permalink truncation issues

- **#424**: Handle periods in kebab_filenames mode
  ([`b004565`](https://github.com/basicmachines-co/basic-memory/commit/b004565))
  - Fixes filename handling for files with multiple periods
  - Improved kebab-case conversion

- Fix Postgres/Neon connection settings and search index dedupe
  ([`b5d4fb5`](https://github.com/basicmachines-co/basic-memory/commit/b5d4fb5))
  - Optimized connection pooling for Postgres
  - Prevents duplicate search index entries

### Testing & CI

- Replace py-pglite with testcontainers for Postgres testing
  ([`c462faf`](https://github.com/basicmachines-co/basic-memory/commit/c462faf))
  - More reliable Postgres testing infrastructure
  - Uses Docker-based test containers

- Add PostgreSQL testing to GitHub Actions workflow
  ([`66b91b2`](https://github.com/basicmachines-co/basic-memory/commit/66b91b2))
  - CI now tests both SQLite and PostgreSQL backends
  - Ensures cross-database compatibility

- **#416**: Add integration test for read_note with underscored folders
  ([`0c12a39`](https://github.com/basicmachines-co/basic-memory/commit/0c12a39))
  - Verifies folder name handling edge cases

### Internal

- Cloud compatibility fixes and performance improvements (#454)
- Remove logfire instrumentation for cleaner production deployments
- Truncate content_stems to fix Postgres 8KB index row limit

## v0.16.2 (2025-11-16)

### Bug Fixes

- **#429**: Use platform-native path separators in config.json
  ([`6517e98`](https://github.com/basicmachines-co/basic-memory/commit/6517e98))
  - Fixes config.json path separator issues on Windows
  - Uses os.path.join for platform-native path construction
  - Ensures consistent path handling across platforms

- **#427**: Add rclone installation checks for Windows bisync commands
  ([`1af0539`](https://github.com/basicmachines-co/basic-memory/commit/1af0539))
  - Validates rclone installation before running bisync commands
  - Provides clear error messages when rclone is not installed
  - Improves user experience on Windows

- **#421**: Main project always recreated on project list command
  ([`cad7019`](https://github.com/basicmachines-co/basic-memory/commit/cad7019))
  - Fixes issue where main project was recreated unnecessarily
  - Improves project list command reliability
  - Reduces unnecessary file system operations

## v0.16.1 (2025-11-11)

### Bug Fixes

- **#422**: Handle Windows line endings in rclone bisync
  ([`e9d0a94`](https://github.com/basicmachines-co/basic-memory/commit/e9d0a94))
  - Added `--compare=modtime` flag to rclone bisync to ignore size differences from line ending conversions
  - Fixes issue where LF→CRLF conversion on Windows was treated as file corruption
  - Resolves "corrupted on transfer: sizes differ" errors during cloud sync on Windows
  - Users will need to run `--resync` once after updating to establish new baseline

## v0.16.0 (2025-11-10)

### Features

- **#417**: Add run_in_background parameter to sync endpoint
  ([`7ccec7e`](https://github.com/basicmachines-co/basic-memory/commit/7ccec7e))
  - New `run_in_background` parameter for async sync operations
  - Improved API flexibility for long-running sync tasks
  - Comprehensive test coverage for background sync behavior

- **#405**: SPEC-20 Simplified Project-Scoped Rclone Sync
  ([`0b3272a`](https://github.com/basicmachines-co/basic-memory/commit/0b3272a))
  - Simplified and more reliable cloud synchronization
  - Project-scoped rclone configuration
  - Better error handling and status reporting

- **#384**: Streaming Foundation & Async I/O Consolidation (SPEC-19)
  ([`e78345f`](https://github.com/basicmachines-co/basic-memory/commit/e78345f))
  - Foundation for streaming support in future releases
  - Consolidated async I/O patterns across codebase
  - Improved performance and resource management

- **#364**: Add circuit breaker for file sync failures
  ([`434cdf2`](https://github.com/basicmachines-co/basic-memory/commit/434cdf2))
  - Prevents cascading failures during sync operations
  - Automatic recovery from transient errors
  - Better resilience in cloud sync scenarios

- **#362**: Add --verbose and --no-gitignore options to cloud upload
  ([`7f9c1a9`](https://github.com/basicmachines-co/basic-memory/commit/7f9c1a9))
  - Enhanced upload control with verbose logging
  - Option to bypass gitignore filtering when needed
  - Better debugging and troubleshooting capabilities

- **#391**: Add delete_notes parameter to remove project endpoint
  ([`c9946ec`](https://github.com/basicmachines-co/basic-memory/commit/c9946ec))
  - Option to delete notes when removing projects
  - Safer project cleanup workflows
  - Prevents accidental data loss

### Bug Fixes

- **#420**: Skip archive files during cloud upload
  ([`49b2adc`](https://github.com/basicmachines-co/basic-memory/commit/49b2adc))
  - Prevents uploading of zip, tar, gz and other archive files
  - Reduces storage usage and upload time
  - Better file filtering during cloud operations

- **#419**: Rename write_note entity_type to note_type for clarity
  ([`1646572`](https://github.com/basicmachines-co/basic-memory/commit/1646572))
  - Clearer parameter naming in write_note tool
  - Improved API consistency and documentation
  - Better developer experience

- **#418**: Quote string values in YAML frontmatter to handle special characters
  ([`f0d7398`](https://github.com/basicmachines-co/basic-memory/commit/f0d7398))
  - Fixes YAML parsing errors with special characters
  - More robust frontmatter handling
  - Prevents data corruption in edge cases

- **#415**: Handle dict objects in write_resource endpoint
  ([`4614fd0`](https://github.com/basicmachines-co/basic-memory/commit/4614fd0))
  - Fixes errors when writing dictionary resources
  - Better type handling in resource endpoints
  - Improved API robustness

- **#414**: Replace Unicode arrows with ASCII for Windows compatibility
  ([`fc01f6a`](https://github.com/basicmachines-co/basic-memory/commit/fc01f6a))
  - Fixes display issues on Windows terminals
  - Better cross-platform compatibility
  - Improved CLI user experience on Windows

- **#411**: Windows CLI Unicode encoding errors
  ([`0ba6f21`](https://github.com/basicmachines-co/basic-memory/commit/0ba6f21))
  - Resolves Unicode encoding issues on Windows
  - Better handling of international characters
  - Improved Windows platform support

- **#410**: Various rclone fixes for cloud sync on Windows
  ([`c9946ec`](https://github.com/basicmachines-co/basic-memory/commit/c9946ec))
  - Fixes cloud sync reliability on Windows
  - Better path handling for Windows filesystem
  - Improved rclone integration on Windows

- **#402**: Normalize YAML frontmatter types to prevent AttributeError
  ([`a7d7cc5`](https://github.com/basicmachines-co/basic-memory/commit/a7d7cc5))
  - Fixes AttributeError when reading frontmatter
  - More robust type normalization
  - Better error handling in markdown parsing

- **#396**: Strip duplicate headers in edit_note replace_section
  ([`021af74`](https://github.com/basicmachines-co/basic-memory/commit/021af74))
  - Prevents duplicate headers when replacing sections
  - Cleaner note editing behavior
  - Better content consistency

- **#395**: Simplify search_notes schema by removing Optional wrappers
  ([`d775f7b`](https://github.com/basicmachines-co/basic-memory/commit/d775f7b))
  - Cleaner API schema definition
  - Better type safety and validation
  - Improved developer experience

- **#394**: Add explicit type annotations to MCP tool parameters
  ([`581b7b1`](https://github.com/basicmachines-co/basic-memory/commit/581b7b1))
  - Better type safety in MCP tools
  - Improved IDE support and autocomplete
  - Clearer tool documentation

- **#389**: Handle null, empty, and string 'None' title in markdown frontmatter
  ([`bb8da31`](https://github.com/basicmachines-co/basic-memory/commit/bb8da31))
  - Fixes errors with malformed frontmatter titles
  - More robust title handling
  - Better error recovery

- **#380**: Optimize sync memory usage to prevent OOM on large projects
  ([`4fd6d0c`](https://github.com/basicmachines-co/basic-memory/commit/4fd6d0c))
  - Prevents out-of-memory errors on large knowledge bases
  - Better memory management during sync
  - Improved scalability

- **#379**: Handle YAML parsing errors gracefully in update_frontmatter
  ([`32236cd`](https://github.com/basicmachines-co/basic-memory/commit/32236cd))
  - Better error handling for malformed YAML
  - Graceful degradation instead of crashes
  - Improved robustness

- **#377**: Preserve mtime on WebDAV upload
  ([`e6c8e36`](https://github.com/basicmachines-co/basic-memory/commit/e6c8e36))
  - Maintains file modification times during upload
  - Better sync accuracy
  - Prevents unnecessary re-syncing

- **#370**: Prevent deleted projects from being recreated by background sync
  ([`449b62d`](https://github.com/basicmachines-co/basic-memory/commit/449b62d))
  - Fixes race condition with project deletion
  - Better lifecycle management
  - Prevents unwanted project recreation

- **#369**: Use filesystem timestamps for entity sync instead of database operation time
  ([`b7497d7`](https://github.com/basicmachines-co/basic-memory/commit/b7497d7))
  - More accurate sync detection
  - Better handling of external file modifications
  - Improved sync reliability

- **#368**: Handle YAML parsing errors and missing entity_type in markdown files
  ([`d1431bd`](https://github.com/basicmachines-co/basic-memory/commit/d1431bd))
  - Better error handling for malformed markdown
  - Graceful handling of missing metadata
  - Improved robustness

- **#367**: Resolve UNIQUE constraint violation in entity upsert with observations
  ([`171bef7`](https://github.com/basicmachines-co/basic-memory/commit/171bef7))
  - Fixes database constraint errors during sync
  - Better handling of duplicate observations
  - Improved data integrity

- **#366**: Terminate sync immediately when project is deleted
  ([`729a5a3`](https://github.com/basicmachines-co/basic-memory/commit/729a5a3))
  - Faster project deletion
  - Better resource cleanup
  - Improved user experience

- **#357**: Make project creation endpoint idempotent
  ([`53fb13b`](https://github.com/basicmachines-co/basic-memory/commit/53fb13b))
  - Prevents errors when creating existing projects
  - Better API reliability
  - Improved cloud integration

- **#353**: Handle None text values in Claude conversations importer
  ([`bd6c834`](https://github.com/basicmachines-co/basic-memory/commit/bd6c834))
  - Fixes import errors with empty messages
  - Better error handling in importers
  - Improved data migration

### Performance Improvements

- Force full database sync after project sync/bisync operations
  ([`2ad0ee9`](https://github.com/basicmachines-co/basic-memory/commit/2ad0ee9))
  - Ensures database consistency after cloud operations
  - Better sync reliability
  - Improved data integrity

### Documentation

- Add free trial information to README
  ([`a7d7cc5`](https://github.com/basicmachines-co/basic-memory/commit/a7d7cc5), [`8aaddb6`](https://github.com/basicmachines-co/basic-memory/commit/8aaddb6))
  - Updated README with Basic Memory Cloud trial info
  - Better onboarding experience
  - Clearer pricing information

- Announce Basic Memory Cloud launch in README
  ([`d756531`](https://github.com/basicmachines-co/basic-memory/commit/d756531))
  - Official cloud service announcement
  - Updated documentation for cloud features
  - Improved product positioning

### Migration Guide

No manual migration required. Upgrade with:

```bash
# Update via uv
uv tool upgrade basic-memory

# Or install fresh
uv tool install basic-memory
```

**What's New in v0.16.0:**
- Streaming foundation and consolidated async I/O (SPEC-19)
- Simplified project-scoped rclone sync (SPEC-20)
- Circuit breaker for sync failure resilience
- Enhanced Windows platform support
- Improved cloud upload with verbose and gitignore options
- Better error handling across YAML parsing and frontmatter
- Memory optimization for large projects
- Archive file filtering during upload

**Breaking Changes:**
- `write_note` parameter renamed: `entity_type` → `note_type` for clarity

### Installation

```bash
# Latest stable release
uv tool install basic-memory

# Update existing installation
uv tool upgrade basic-memory

# Docker
docker pull ghcr.io/basicmachines-co/basic-memory:v0.16.0
```

## v0.15.2 (2025-10-14)

### Features

- **#356**: Add WebDAV upload command for cloud projects
  ([`5258f45`](https://github.com/basicmachines-co/basic-memory/commit/5258f457))
  - New `bm cloud upload` command for uploading local files/directories to cloud projects
  - WebDAV-based file transfer with automatic directory creation
  - Support for `.gitignore` and `.bmignore` pattern filtering
  - Automatic project creation with `--create-project` flag
  - Optional post-upload sync with `--sync` flag (enabled by default)
  - Human-readable file size reporting (bytes, KB, MB)
  - Comprehensive test coverage (28 unit tests)

### Migration Guide

No manual migration required. Upgrade with:

```bash
# Update via uv
uv tool upgrade basic-memory

# Or install fresh
uv tool install basic-memory
```

**What's New:**
- Upload local files to cloud projects with `bm cloud upload`
- Streamlined cloud project creation and management
- Better file filtering with gitignore integration

### Installation

```bash
# Latest stable release
uv tool install basic-memory

# Update existing installation
uv tool upgrade basic-memory

# Docker
docker pull ghcr.io/basicmachines-co/basic-memory:v0.15.2
```

## v0.15.1 (2025-10-13)

### Performance Improvements

- **#352**: Optimize sync/indexing for 43% faster performance
  ([`c0538ad`](https://github.com/basicmachines-co/basic-memory/commit/c0538ad2perf0d68a2a3604e255c3f2c42c5ed))
  - Significant performance improvements to file synchronization and indexing operations
  - 43% reduction in sync time for large knowledge bases
  - Optimized database queries and file processing

- **#350**: Optimize directory operations for 10-100x performance improvement
  ([`00b73b0`](https://github.com/basicmachines-co/basic-memory/commit/00b73b0d))
  - Dramatic performance improvements for directory listing operations
  - 10-100x faster directory traversal depending on knowledge base size
  - Reduced memory footprint for large directory structures
  - Exclude null fields from directory endpoint responses for smaller payloads

### Bug Fixes

- **#355**: Update view_note and ChatGPT tools for Claude Desktop compatibility
  ([`2b7008d`](https://github.com/basicmachines-co/basic-memory/commit/2b7008d9))
  - Fix view_note tool formatting for better Claude Desktop rendering
  - Update ChatGPT tool integration for improved compatibility
  - Enhanced artifact display in Claude Desktop interface

- **#348**: Add permalink normalization to project lookups in deps.py
  ([`a09066e`](https://github.com/basicmachines-co/basic-memory/commit/a09066e0))
  - Fix project lookup failures due to case sensitivity
  - Normalize permalinks consistently across project operations
  - Improve project switching reliability

- **#345**: Project deletion failing with permalink normalization
  ([`be352ab`](https://github.com/basicmachines-co/basic-memory/commit/be352ab4))
  - Fix project deletion errors related to permalink handling
  - Ensure proper cleanup of project resources
  - Improve error messages for deletion failures

- **#341**: Correct ProjectItem.home property to return path instead of name
  ([`3e876a7`](https://github.com/basicmachines-co/basic-memory/commit/3e876a75))
  - Fix ProjectItem.home to return correct project path
  - Resolve configuration issues with project paths
  - Improve project path resolution consistency

- **#339**: Prevent nested project paths to avoid data conflicts
  ([`795e339`](https://github.com/basicmachines-co/basic-memory/commit/795e3393))
  - Block creation of nested project paths that could cause data conflicts
  - Add validation to prevent project path hierarchy issues
  - Improve error messages for invalid project configurations

- **#338**: Normalize paths to lowercase in cloud mode to prevent case collisions
  ([`07e304c`](https://github.com/basicmachines-co/basic-memory/commit/07e304ce))
  - Fix path case sensitivity issues in cloud deployments
  - Normalize paths consistently across cloud operations
  - Prevent data loss from case-insensitive filesystem collisions

- **#336**: Cloud mode path validation and sanitization (bmc-issue-103)
  ([`2a1c06d`](https://github.com/basicmachines-co/basic-memory/commit/2a1c06d9))
  - Enhanced path validation for cloud deployments
  - Improved path sanitization to prevent security issues
  - Better error handling for invalid paths in cloud mode

- **#332**: Cloud mode path validation and sanitization
  ([`7616b2b`](https://github.com/basicmachines-co/basic-memory/commit/7616b2bb))
  - Additional cloud mode path fixes and improvements
  - Comprehensive path validation for cloud environments
  - Security enhancements for path handling

### Features

- **#344**: Async client context manager pattern for cloud consolidation (SPEC-16)
  ([`8d2e70c`](https://github.com/basicmachines-co/basic-memory/commit/8d2e70cf))
  - Refactor async client to use context manager pattern
  - Improve resource management and cleanup
  - Enable better dependency injection for cloud deployments
  - Foundation for cloud platform consolidation

- **#343**: Add SPEC-15 for configuration persistence via Tigris
  ([`53438d1`](https://github.com/basicmachines-co/basic-memory/commit/53438d1e))
  - Design specification for persistent configuration storage
  - Foundation for cloud configuration management
  - Tigris S3-compatible storage integration planning

- **#334**: Introduce BASIC_MEMORY_PROJECT_ROOT for path constraints
  ([`ccc4386`](https://github.com/basicmachines-co/basic-memory/commit/ccc43866))
  - Add environment variable for constraining project paths
  - Improve security by limiting project creation locations
  - Better control over project directory structure

### Documentation

- **#335**: v0.15.0 assistant guide updates
  ([`c6f93a0`](https://github.com/basicmachines-co/basic-memory/commit/c6f93a02))
  - Update AI assistant guide for v0.15.0 features
  - Improve documentation for new MCP tools
  - Better examples and usage patterns

- **#339**: Add tool use documentation to write_note for root folder usage
  ([`73202d1`](https://github.com/basicmachines-co/basic-memory/commit/73202d1a))
  - Document how to use empty string for root folder in write_note
  - Clarify folder parameter usage
  - Improve tool documentation clarity

- Fix link in ai_assistant_guide resource
  ([`2a1c06d`](https://github.com/basicmachines-co/basic-memory/commit/2a1c06d9))
  - Correct broken documentation links
  - Improve resource accessibility

### Refactoring

- Add SPEC-17 and SPEC-18 documentation
  ([`962d88e`](https://github.com/basicmachines-co/basic-memory/commit/962d88ea))
  - New specification documents for future features
  - Architecture planning and design documentation

### Breaking Changes

**None** - This release maintains full backward compatibility with v0.15.0

### Migration Guide

No manual migration required. Upgrade with:

```bash
# Update via uv
uv tool upgrade basic-memory

# Or install fresh
uv tool install basic-memory
```

**What's Fixed:**
- Significant performance improvements (43% faster sync, 10-100x faster directory operations)
- Multiple cloud deployment stability fixes
- Project path validation and normalization issues resolved
- Better Claude Desktop and ChatGPT integration

**What's New:**
- Context manager pattern for async clients (foundation for cloud consolidation)
- BASIC_MEMORY_PROJECT_ROOT environment variable for path constraints
- Enhanced cloud mode path handling and security
- SPEC-15 and SPEC-16 architecture documentation

### Installation

```bash
# Latest stable release
uv tool install basic-memory

# Update existing installation
uv tool upgrade basic-memory

# Docker
docker pull ghcr.io/basicmachines-co/basic-memory:v0.15.1
```

## v0.15.0 (2025-10-04)

### Critical Bug Fixes

- **Permalink Collision Data Loss Prevention** - Fixed critical bug where creating similar entity names would overwrite existing files
  ([`2a050ed`](https://github.com/basicmachines-co/basic-memory/commit/2a050edee42b07294f5199902a60b626bfc47be8))
  - **Issue**: Creating "Node C" would overwrite "Node A.md" due to fuzzy search incorrectly matching similar file paths
  - **Solution**: Added `strict=True` parameter to link resolution, disabling fuzzy search fallback during entity creation
  - **Impact**: Prevents data loss from false positive path matching like "edge-cases/Node A.md" vs "edge-cases/Node C.md"
  - **Testing**: Comprehensive integration tests and MCP-level permalink collision tests added
  - **Status**: Manually verified fix prevents file overwrite in production scenarios

### Bug Fixes

- **#330**: Remove .env file loading from BasicMemoryConfig
  ([`f3b1945`](https://github.com/basicmachines-co/basic-memory/commit/f3b1945e4c0070d0282eaf98c085ef188c8edd2d))
  - Clean up configuration initialization to prevent unintended environment variable loading

- **#329**: Normalize underscores in memory:// URLs for build_context
  ([`f5a11f3`](https://github.com/basicmachines-co/basic-memory/commit/f5a11f3911edda55bee6970ed9e7c38f7fd7a059))
  - Fix URL normalization to handle underscores consistently in memory:// protocol
  - Improve knowledge graph navigation with standardized URL handling

- **#328**: Simplify entity upsert to use database-level conflict resolution
  ([`ee83b0e`](https://github.com/basicmachines-co/basic-memory/commit/ee83b0e5a8f00cdcc8e24a0f8c9449c6eaddf649))
  - Leverage SQLite's native UPSERT for cleaner entity creation/update logic
  - Reduce application-level complexity by using database conflict resolution

- **#312**: Add proper datetime JSON schema format annotations for MCP validation
  ([`a7bf42e`](https://github.com/basicmachines-co/basic-memory/commit/a7bf42ef495a3e2c66230985c3445cab5c52c408))
  - Fix MCP schema validation errors with proper datetime format annotations
  - Ensure compatibility with strict MCP schema validators

- **#281**: Fix move_note without file extension
  ([`3e168b9`](https://github.com/basicmachines-co/basic-memory/commit/3e168b98f3962681799f4537eb86ded47e771665))
  - Allow moving notes by title alone without requiring .md extension
  - Improve move operation usability and error handling

- **#310**: Remove obsolete update_current_project function and --project flag reference
  ([`17a6733`](https://github.com/basicmachines-co/basic-memory/commit/17a6733c9d280def922e37c2cd171e3ee44fce21))
  - Clean up deprecated project management code
  - Remove unused CLI flag references

- **#309**: Make sync operations truly non-blocking with thread pool
  ([`1091e11`](https://github.com/basicmachines-co/basic-memory/commit/1091e113227c86f10f574e56a262aff72f728113))
  - Move sync operations to background thread pool for improved responsiveness
  - Prevent blocking during file synchronization operations

### Features

- **#327**: CLI Subscription Validation (SPEC-13 Phase 2)
  ([`ace6a0f`](https://github.com/basicmachines-co/basic-memory/commit/ace6a0f50d8d0b4ea31fb526361c2d9616271740))
  - Implement subscription validation for CLI operations
  - Foundation for future cloud billing integration

- **#322**: Cloud CLI sync via rclone bisync
  ([`99a35a7`](https://github.com/basicmachines-co/basic-memory/commit/99a35a7fb410ef88c50050e666e4244350e44a6e))
  - Add bidirectional cloud synchronization using rclone
  - Enable local-cloud file sync with conflict detection

- **#315**: Implement SPEC-11 API performance optimizations
  ([`5da97e4`](https://github.com/basicmachines-co/basic-memory/commit/5da97e482052907d68a2a3604e255c3f2c42c5ed))
  - Comprehensive API performance improvements
  - Optimized database queries and response times

- **#314**: Integrate ignore_utils to skip .gitignored files in sync process
  ([`33ee1e0`](https://github.com/basicmachines-co/basic-memory/commit/33ee1e0831d2060587de2c9886e74ff111b04583))
  - Respect .gitignore patterns during file synchronization
  - Prevent syncing build artifacts and temporary files

- **#313**: Add disable_permalinks config flag
  ([`9035913`](https://github.com/basicmachines-co/basic-memory/commit/903591384dffeba9996a18463818bdb8b28ca03e))
  - Optional permalink generation for users who don't need them
  - Improves flexibility for different knowledge management workflows

- **#306**: Implement cloud mount CLI commands for local file access
  ([`2c5c606`](https://github.com/basicmachines-co/basic-memory/commit/2c5c606a394ab994334c8fd307b30370037bbf39))
  - Mount cloud files locally using rclone for real-time editing
  - Three performance profiles: fast (5s), balanced (10-15s), safe (15s+)
  - Cross-platform rclone installer with package manager fallbacks

- **#305**: ChatGPT tools for search and fetch
  ([`f40ab31`](https://github.com/basicmachines-co/basic-memory/commit/f40ab31685a9510a07f5d87bf24436c0df80680f))
  - Add ChatGPT-specific search and fetch tools
  - Expand AI assistant integration options

- **#298**: Implement SPEC-6 Stateless Architecture for MCP Tools
  ([`a1d7792`](https://github.com/basicmachines-co/basic-memory/commit/a1d7792bdb6f71c4943b861d1c237f6ac7021247))
  - Redesign MCP tools for stateless operation
  - Enable cloud deployment with better scalability

- **#296**: Basic Memory cloud upload
  ([`e0d8aeb`](https://github.com/basicmachines-co/basic-memory/commit/e0d8aeb14913f3471b9716d0c60c61adb1d74687))
  - Implement file upload capabilities for cloud storage
  - Foundation for cloud-hosted Basic Memory instances

- **#291**: Merge Cloud auth
  ([`3a6baf8`](https://github.com/basicmachines-co/basic-memory/commit/3a6baf80fc6012e9434e06b1605f9a8b198d8688))
  - OAuth 2.1 authentication with Supabase integration
  - JWT-based tenant isolation for multi-user cloud deployments

### Platform & Infrastructure

- **#331**: Add Python 3.13 to test matrix
  ([`16d7edd`](https://github.com/basicmachines-co/basic-memory/commit/16d7eddbf704abfe53373663e80d05ecdde15aa7))
  - Ensure compatibility with latest Python version
  - Expand CI/CD testing coverage

- **#316**: Enable WAL mode and add Windows-specific SQLite optimizations
  ([`c83d567`](https://github.com/basicmachines-co/basic-memory/commit/c83d567917267bb3d52708f4b38d2daf36c1f135))
  - Enable Write-Ahead Logging for better concurrency
  - Platform-specific SQLite optimizations for Windows users

- **#320**: Rework lifecycle management to optimize cloud deployment
  ([`ea2e93d`](https://github.com/basicmachines-co/basic-memory/commit/ea2e93d9265bfa366d2d3796f99f579ab2aed48c))
  - Optimize application lifecycle for cloud environments
  - Improve startup time and resource management

- **#319**: Resolve entity relations in background to prevent cold start blocking
  ([`324844a`](https://github.com/basicmachines-co/basic-memory/commit/324844a670d874410c634db520a68c09149045ea))
  - Move relation resolution to background processing
  - Faster MCP server cold starts

- **#318**: Enforce minimum 1-day timeframe for recent_activity
  ([`f818702`](https://github.com/basicmachines-co/basic-memory/commit/f818702ab7f8d2d706178e7b0ed3467501c9c4a2))
  - Fix timezone-related issues in recent activity queries
  - Ensure consistent behavior across time zones

- **#317**: Critical cloud deployment fixes for MCP stability
  ([`2efd8f4`](https://github.com/basicmachines-co/basic-memory/commit/2efd8f44e2d0259079ed5105fea34308875c0e10))
  - Multiple stability improvements for cloud-hosted MCP servers
  - Enhanced error handling and recovery

### Technical Improvements

- **Comprehensive Testing** - Extensive test coverage for critical fixes
  - New permalink collision test suite with 4 MCP-level integration tests
  - Entity service test coverage expanded to reproduce fuzzy search bug
  - Manual testing verification of data loss prevention
  - All 55 entity service tests passing with new strict resolution

- **Windows Support Enhancements**
  ([`7a8b08d`](https://github.com/basicmachines-co/basic-memory/commit/7a8b08d11ee627b54af6f5ea7ab4ef9fcd8cf4ed),
   [`9aa4024`](https://github.com/basicmachines-co/basic-memory/commit/9aa40246a8ad1c3cef82b32e1ca7ce8ea23e1e05))
  - Fix Windows test failures and add Windows CI support
  - Address platform-specific issues for Windows users
  - Enhanced cross-platform compatibility

- **Docker Improvements**
  ([`105bcaa`](https://github.com/basicmachines-co/basic-memory/commit/105bcaa025576a06f889183baded6c18f3782696))
  - Implement non-root Docker container to fix file ownership issues
  - Improved security and compatibility in containerized deployments

- **Code Quality**
  - Enhanced filename sanitization with optional kebab case support
  - Improved character conflict detection for sync operations
  - Better error handling across the codebase
  - Path traversal security vulnerability fixes

### Documentation

- **#321**: Corrected dead links in README
  ([`fc38877`](https://github.com/basicmachines-co/basic-memory/commit/fc38877008cd8c762116f7ff4b2573495b4e5c0f))
  - Fix broken documentation links
  - Improve navigation and accessibility

- **#308**: Update Claude Code GitHub Workflow
  ([`8c7e29e`](https://github.com/basicmachines-co/basic-memory/commit/8c7e29e325f36a67bdefe8811637493bef4bbf56))
  - Enhanced GitHub integration documentation
  - Better Claude Code collaboration workflow

### Breaking Changes

**None** - This release maintains full backward compatibility with v0.14.x

All changes are either:
- Bug fixes that correct unintended behavior
- New optional features that don't affect existing functionality
- Internal optimizations that are transparent to users

### Migration Guide

No manual migration required. Upgrade with:

```bash
# Update via uv
uv tool upgrade basic-memory

# Or install fresh
uv tool install basic-memory
```

**What's Fixed:**
- Data loss bug from permalink collisions is completely resolved
- Cloud deployment stability significantly improved
- Windows platform compatibility enhanced
- Better performance across all operations

**What's New:**
- Cloud sync capabilities via rclone
- Subscription validation foundation
- Python 3.13 support
- Enhanced security and stability

### Installation

```bash
# Latest stable release
uv tool install basic-memory

# Update existing installation
uv tool upgrade basic-memory

# Docker
docker pull ghcr.io/basicmachines-co/basic-memory:v0.15.0
```

## v0.14.2 (2025-07-03)

### Bug Fixes

- **#204**: Fix MCP Error with MCP-Hub integration
  ([`3621bb7`](https://github.com/basicmachines-co/basic-memory/commit/3621bb7b4d6ac12d892b18e36bb8f7c9101c7b10))
  - Resolve compatibility issues with MCP-Hub
  - Improve error handling in project management tools
  - Ensure stable MCP tool integration across different environments

- **Modernize datetime handling and suppress SQLAlchemy warnings**
  ([`f80ac0e`](https://github.com/basicmachines-co/basic-memory/commit/f80ac0e3e74b7a737a7fc7b956b5c1d61b0c67b8))
  - Replace deprecated `datetime.utcnow()` with timezone-aware alternatives
  - Suppress SQLAlchemy deprecation warnings for cleaner output
  - Improve future compatibility with Python datetime best practices

## v0.14.1 (2025-07-03)

### Bug Fixes

- **#203**: Constrain fastmcp version to prevent breaking changes
  ([`827f7cf`](https://github.com/basicmachines-co/basic-memory/commit/827f7cf86e7b84c56e7a43bb83f2e5d84a1ad8b8))
  - Pin fastmcp to compatible version range to avoid API breaking changes
  - Ensure stable MCP server functionality across updates
  - Improve dependency management for production deployments

- **#190**: Fix Problems with MCP integration  
  ([`bd4f551`](https://github.com/basicmachines-co/basic-memory/commit/bd4f551a5bb0b7b4d3a5b04de70e08987c6ab2f9))
  - Resolve MCP server initialization and communication issues
  - Improve error handling and recovery in MCP operations
  - Enhance stability for AI assistant integrations

### Features

- **Add Cursor IDE integration button** - One-click setup for Cursor IDE users
  ([`5360005`](https://github.com/basicmachines-co/basic-memory/commit/536000512294d66090bf87abc8014f4dfc284310))
  - Direct installation button for Cursor IDE in README
  - Streamlined setup process for Cursor users
  - Enhanced developer experience for AI-powered coding

- **Add Homebrew installation instructions** - Official Homebrew tap support
  ([`39f811f`](https://github.com/basicmachines-co/basic-memory/commit/39f811f8b57dd998445ae43537cd492c680b2e11))
  - Official Homebrew formula in basicmachines-co/basic-memory tap
  - Simplified installation process for macOS users
  - Package manager integration for easier dependency management

## v0.14.0 (2025-06-26)

### Features

- **Docker Container Registry Migration** - Switch from Docker Hub to GitHub Container Registry for better security and integration  
  ([`616c1f0`](https://github.com/basicmachines-co/basic-memory/commit/616c1f0710da59c7098a5f4843d4f017877ff7b2))
  - Automated Docker image publishing via GitHub Actions CI/CD pipeline
  - Enhanced container security with GitHub's integrated vulnerability scanning
  - Streamlined container deployment workflow for production environments

- **Enhanced Search Documentation** - Comprehensive search syntax examples for improved user experience
  ([`a589f8b`](https://github.com/basicmachines-co/basic-memory/commit/a589f8b894e78cce01eb25656856cfea8785fbbf))
  - Detailed examples for Boolean search operators (AND, OR, NOT)
  - Advanced search patterns including phrase matching and field-specific queries
  - User-friendly documentation for complex search scenarios

- **Cross-Project File Management** - Intelligent move operations with project boundary detection
  ([`db5ef7d`](https://github.com/basicmachines-co/basic-memory/commit/db5ef7d35cc0894309c7a57b5741c9dd978526d4))
  - Automatic detection of cross-project move attempts with helpful guidance
  - Clear error messages when attempting unsupported cross-project operations

### Bug Fixes

- **#184**: Preserve permalinks when editing notes without frontmatter permalinks
  ([`c2f4b63`](https://github.com/basicmachines-co/basic-memory/commit/c2f4b632cf04921b1a3c2f0d43831b80c519cb31))
  - Fix permalink preservation during note editing operations
  - Ensure consistent permalink handling across different note formats
  - Maintain note identity and searchability during incremental edits

- **#183**: Implement project-specific sync status checks for MCP tools
  ([`12b5152`](https://github.com/basicmachines-co/basic-memory/commit/12b51522bc953fca117fc5bc01fcb29c6ca7e13c))
  - Fix sync status reporting to correctly reflect current project state
  - Resolve inconsistencies where sync status showed global instead of project-specific information
  - Improve project isolation for sync operations and status reporting

- **#180**: Handle Boolean search syntax with hyphenated terms
  ([`546e3cd`](https://github.com/basicmachines-co/basic-memory/commit/546e3cd8db98b74f746749d41887f8a213cd0b11))
  - Fix search parsing issues with hyphenated terms in Boolean queries
  - Improve search query tokenization for complex term structures
  - Enhanced search reliability for technical documentation and multi-word concepts

- **#174**: Respect BASIC_MEMORY_HOME environment variable in Docker containers
  ([`9f1db23`](https://github.com/basicmachines-co/basic-memory/commit/9f1db23c78d4648e2c242ad1ee27eed85e3f3b5d))
  - Fix Docker container configuration to properly honor custom home directory settings
  - Improve containerized deployment flexibility with environment variable support
  - Ensure consistent behavior between local and containerized installations

- **#168**: Scope entity queries by project_id in upsert_entity method
  ([`2a3adc1`](https://github.com/basicmachines-co/basic-memory/commit/2a3adc109a3e4d7ccd65cae4abf63d9bb2338326))
  - Fix entity isolation issues in multi-project setups
  - Prevent cross-project entity conflicts during database operations
  - Strengthen project boundary enforcement at the database level

- **#166**: Handle None from_entity in Context API RelationSummary
  ([`8a065c3`](https://github.com/basicmachines-co/basic-memory/commit/8a065c32f4e41613207d29aafc952a56e3a52241))
  - Fix null pointer exceptions in relation processing
  - Improve error handling for incomplete relation data
  - Enhanced stability for knowledge graph traversal operations

- **#164**: Remove log level configuration from mcp_server.run()
  ([`224e4bf`](https://github.com/basicmachines-co/basic-memory/commit/224e4bf9e4438c44a82ffc21bd1a282fe9087690))
  - Simplify MCP server startup by removing redundant log level settings
  - Fix potential logging configuration conflicts
  - Streamline server initialization process

- **#162**: Ensure permalinks are generated for entities with null permalinks during move operations
  ([`f506507`](https://github.com/basicmachines-co/basic-memory/commit/f50650763dbd4322c132e4bdc959ce4bf074374b))
  - Fix move operations for entities without existing permalinks
  - Automatic permalink generation during file move operations
  - Maintain database consistency during file reorganization

### Technical Improvements

- **Comprehensive Test Coverage** - Extensive test suites for new features and edge cases
  - Enhanced test coverage for project-specific sync status functionality
  - Additional test scenarios for search syntax validation and edge cases
  - Integration tests for Docker CI workflow and container publishing
  - Comprehensive move operations testing with project boundary validation

- **Docker CI/CD Pipeline** - Production-ready automated container publishing
  ([`74847cc`](https://github.com/basicmachines-co/basic-memory/commit/74847cc3807b0c6ed511e0d83e0d560e9f07ec44))
  - Automated Docker image building and publishing on release
  - Multi-architecture container support for AMD64 and ARM64 platforms
  - Integrated security scanning and vulnerability assessments
  - Streamlined deployment pipeline for production environments

- **Release Process Improvements** - Enhanced automation and quality gates
  ([`a52ce1c`](https://github.com/basicmachines-co/basic-memory/commit/a52ce1c8605ec2cd450d1f909154172cbc30faa2))
  - Homebrew formula updates limited to stable releases only
  - Improved release automation with better quality control
  - Enhanced CI/CD pipeline reliability and error handling

- **Code Quality Enhancements** - Improved error handling and validation
  - Better null safety in entity and relation processing
  - Enhanced project isolation validation throughout the codebase
  - Improved error messages and user guidance for edge cases
  - Strengthened database consistency guarantees across operations

### Infrastructure

- **GitHub Container Registry Integration** - Modern container infrastructure
  - Migration from Docker Hub to GitHub Container Registry (ghcr.io)
  - Improved security with integrated vulnerability scanning
  - Better integration with GitHub-based development workflow
  - Enhanced container versioning and artifact management

- **Enhanced CI/CD Workflows** - Robust automated testing and deployment
  - Automated Docker image publishing on releases
  - Comprehensive test coverage validation before deployment
  - Multi-platform container building and publishing
  - Integration with GitHub's security and monitoring tools

### Migration Guide

This release includes several behind-the-scenes improvements and fixes. All changes are backward compatible:

- **Docker Users**: Container images now served from `ghcr.io/basicmachines-co/basic-memory` instead of Docker Hub
- **Search Users**: Enhanced search syntax handling - existing queries continue to work unchanged
- **Multi-Project Users**: Improved project isolation - all existing projects remain fully functional
- **All Users**: Enhanced stability and error handling - no breaking changes to existing workflows

### Installation

```bash
# Latest stable release
uv tool install basic-memory

# Update existing installation  
uv tool upgrade basic-memory

# Docker (new registry)
docker pull ghcr.io/basicmachines-co/basic-memory:latest
```

## v0.13.7 (2025-06-19)

### Bug Fixes

- **Homebrew Integration** - Automatic Homebrew formula updates
- **Documentation** - Add git sign-off reminder to development guide

## v0.13.6 (2025-06-18)

### Bug Fixes

- **Custom Entity Types** - Support for custom entity types in write_note
  ([`7789864`](https://github.com/basicmachines-co/basic-memory/commit/77898644933589c2da9bdd60571d54137a5309ed))
  - Fixed `entity_type` parameter for `write_note` MCP tool to respect value passed in
  - Frontmatter `type` field automatically respected when no explicit parameter provided
  - Maintains backward compatibility with default "note" type

- **#139**: Fix "UNIQUE constraint failed: entity.permalink" database error
  ([`c6215fd`](https://github.com/basicmachines-co/basic-memory/commit/c6215fd819f9564ead91cf3a950f855241446096))
  - Implement SQLAlchemy UPSERT strategy to handle permalink conflicts gracefully
  - Eliminates crashes when creating notes with existing titles in same folders
  - Seamlessly updates existing entities instead of failing with constraint errors

- **Database Migration Performance** - Eliminate redundant migration initialization
  ([`84d2aaf`](https://github.com/basicmachines-co/basic-memory/commit/84d2aaf6414dd083af4b0df73f6c8139b63468f6))
  - Fix duplicate migration calls that slowed system startup
  - Improve performance with multiple projects (tested with 28+ projects)
  - Add migration deduplication safeguards with comprehensive test coverage

- **User Experience** - Correct spelling error in continue_conversation prompt
  ([`b4c26a6`](https://github.com/basicmachines-co/basic-memory/commit/b4c26a613379e6f2ba655efe3d7d8d40c27999e5))
  - Fix "Chose a folder" → "Choose a folder" in MCP prompt instructions
  - Improve grammar and clarity in user-facing prompt text

### Documentation

- **Website Updates** - Add new website and community links to README
  ([`3fdce68`](https://github.com/basicmachines-co/basic-memory/commit/3fdce683d7ad8b6f4855d7138d5ff2136d4c07bc))

- **Project Documentation** - Update README.md and CLAUDE.md with latest project information
  ([`782cb2d`](https://github.com/basicmachines-co/basic-memory/commit/782cb2df28803482d209135a054e67cc32d7363e))

### Technical Improvements

- **Comprehensive Test Coverage** - Add extensive test suites for new features
  - Custom entity type validation with 8 new test scenarios
  - UPSERT behavior testing with edge case coverage
  - Migration deduplication testing with 6 test scenarios
  - Database constraint handling validation

- **Code Quality** - Enhanced error handling and validation
  - Improved SQLAlchemy patterns with modern UPSERT operations
  - Better conflict resolution strategies for entity management
  - Strengthened database consistency guarantees

### Performance

- **Database Operations** - Faster startup and improved scalability
  - Reduced migration overhead for multi-project setups
  - Optimized conflict resolution for entity creation
  - Enhanced performance with growing knowledge bases

### Migration Guide

This release includes automatic database improvements. No manual migration required:

- Existing notes and entity types continue working unchanged
- New `entity_type` parameter is optional and backward compatible
- Database performance improvements apply automatically
- All existing MCP tool behavior preserved

### Installation

```bash
# Latest stable release
uv tool install basic-memory

# Update existing installation
uv tool upgrade basic-memory
```

## v0.13.5 (2025-06-11)

### Bug Fixes

- **MCP Tools**: Renamed `create_project` tool to `create_memory_project` for namespace isolation
- **Namespace**: Continued namespace isolation effort to prevent conflicts with other MCP servers

### Changes

- Tool functionality remains identical - only the name changed from `create_project` to `create_memory_project`
- All integration tests updated to use the new tool name
- Completes namespace isolation for project management tools alongside `list_memory_projects`

## v0.13.4 (2025-06-11)

### Bug Fixes

- **MCP Tools**: Renamed `list_projects` tool to `list_memory_projects` to avoid naming conflicts with other MCP servers
- **Namespace**: Improved tool naming specificity for better MCP server integration and isolation

### Changes

- Tool functionality remains identical - only the name changed from `list_projects` to `list_memory_projects`
- All integration tests updated to use the new tool name
- Better namespace isolation for Basic Memory MCP tools

## v0.13.3 (2025-06-11)

### Bug Fixes

- **Projects**: Fixed case-insensitive project switching where switching succeeded but subsequent operations failed due to session state inconsistency
- **Config**: Enhanced config manager with case-insensitive project lookup using permalink-based matching
- **MCP Tools**: Updated project management tools to store canonical project names from database instead of user input
- **API**: Improved project service to handle both name and permalink lookups consistently

### Technical Improvements

- Added comprehensive case-insensitive project switching test coverage with 5 new integration test scenarios
- Fixed permalink generation inconsistencies where different case inputs could generate different permalinks
- Enhanced project URL construction to use permalinks consistently across all API calls
- Improved error handling and session state management for project operations

### Changes

- Project switching now preserves canonical project names from database in session state
- All project operations use permalink-based lookups for case-insensitive matching
- Enhanced test coverage ensures reliable case-insensitive project operations

## v0.13.2 (2025-06-11)

### Features

- **Release Management**: Added automated release management system with version control in `__init__.py`
- **Automation**: Implemented justfile targets for `release` and `beta` commands with comprehensive quality gates
- **CI/CD**: Enhanced release process with automatic version updates, git tagging, and GitHub release creation

### Development Experience

- Added `.claude/commands/release/` directory with automation documentation
- Implemented release validation including lint, type-check, and test execution
- Streamlined release workflow from manual process to single-command automation

### Technical Improvements

- Updated package version management to use actual version numbers instead of dynamic versioning
- Added release process documentation and command references
- Enhanced justfile with comprehensive release automation targets

## v0.13.1 (2025-06-11)

### Bug Fixes

- **CLI**: Fixed  `basic-memory project` project management commands that were  not working in v0.13.0 (#129)
- **Projects**: Resolved case sensitivity issues when switching between projects that caused "Project not found" errors (#127)
- **API**: Standardized CLI project command endpoints and improved error handling
- **Core**: Implemented consistent project name handling using permalinks to avoid case-related conflicts

### Changes

- Renamed `basic-memory project sync` command to `basic-memory project sync-config` for clarity
- Improved project switching reliability across different case variations
- Removed redundant server status messages from CLI error outputs

## v0.13.0 (2025-06-11)

### Overview

Basic Memory v0.13.0 is a **major release** that transforms Basic Memory into a true multi-project knowledge management system. This release introduces fluid project switching, advanced note editing capabilities, robust file management, and production-ready OAuth authentication - all while maintaining full backward compatibility.

**What's New for Users:**
- 🎯 **Switch between projects instantly** during conversations with Claude
- ✏️ **Edit notes incrementally** without rewriting entire documents
- 📁 **Move and organize notes** with full database consistency
- 📖 **View notes as formatted artifacts** for better readability in Claude Desktop
- 🔍 **Search frontmatter tags** to discover content more easily
- 🔐 **OAuth authentication** for secure remote access
- ⚡ **Development builds** automatically published for beta testing

**Key v0.13.0 Accomplishments:**
- ✅ **Complete Project Management System** - Project switching and project-specific operations
- ✅ **Advanced Note Editing** - Incremental editing with append, prepend, find/replace, and section operations  
- ✅ **View Notes as Artifacts in Claude Desktop/Web** - Use the view_note tool to view a note as an artifact
- ✅ **File Management System** - Full move operations with database consistency and rollback protection
- ✅ **Enhanced Search Capabilities** - Frontmatter tags now searchable, improved content discoverability
- ✅ **Unified Database Architecture** - Single app-level database for better performance and project management

### Major Features

#### 1. Multiple Project Management 

**Switch between projects instantly during conversations:**

```
💬 "What projects do I have?"
🤖 Available projects:
   • main (current, default)
   • work-notes
   • personal-journal
   • code-snippets

💬 "Switch to work-notes"
🤖 ✓ Switched to work-notes project
   
   Project Summary:
   • 47 entities
   • 125 observations  
   • 23 relations

💬 "What did I work on yesterday?"
🤖 [Shows recent activity from work-notes project]
```

**Key Capabilities:**
- **Instant Project Switching**: Change project context mid-conversation without restart
- **Project-Specific Operations**: Operations work within the currently active project context
- **Project Discovery**: List all available projects with status indicators
- **Session Context**: Maintains active project throughout conversation
- **Backward Compatibility**: Existing single-project setups continue to work seamlessly

#### 2. Advanced Note Editing 

**Edit notes incrementally without rewriting entire documents:**

```python
# Append new sections to existing notes
edit_note("project-planning", "append", "\n## New Requirements\n- Feature X\n- Feature Y")

# Prepend timestamps to meeting notes
edit_note("meeting-notes", "prepend", "## 2025-05-27 Update\n- Progress update...")

# Replace specific sections under headers
edit_note("api-spec", "replace_section", "New implementation details", section="## Implementation")

# Find and replace with validation
edit_note("config", "find_replace", "v0.13.0", find_text="v0.12.0", expected_replacements=2)
```

**Key Capabilities:**
- **Append Operations**: Add content to end of notes (most common use case)
- **Prepend Operations**: Add content to beginning of notes
- **Section Replacement**: Replace content under specific markdown headers
- **Find & Replace**: Simple text replacements with occurrence counting
- **Smart Error Handling**: Helpful guidance when operations fail
- **Project Context**: Works within the active project with session awareness

#### 3. Smart File Management

**Move and organize notes:**

```python
# Simple moves with automatic folder creation
move_note("my-note", "work/projects/my-note.md")

# Organize within the active project
move_note("shared-doc", "archive/old-docs/shared-doc.md")

# Rename operations
move_note("old-name", "same-folder/new-name.md")
```

**Key Capabilities:**
- **Database Consistency**: Updates file paths, permalinks, and checksums automatically
- **Search Reindexing**: Maintains search functionality after moves
- **Folder Creation**: Automatically creates destination directories
- **Project Isolation**: Operates within the currently active project
- **Link Preservation**: Maintains internal links and references

#### 4. Enhanced Search & Discovery 

**Find content more easily with improved search capabilities:**

- **Frontmatter Tag Search**: Tags from YAML frontmatter are now indexed and searchable
- **Improved Content Discovery**: Search across titles, content, tags, and metadata
- **Project-Scoped Search**: Search within the currently active project
- **Better Search Quality**: Enhanced FTS5 indexing with tag content inclusion

**Example:**
```yaml
---
title: Coffee Brewing Methods
tags: [coffee, brewing, equipment]
---
```
Now searchable by: "coffee", "brewing", "equipment", or "Coffee Brewing Methods"

#### 5. Unified Database Architecture 

**Single app-level database for better performance and project management:**

- **Migration from Per-Project DBs**: Moved from multiple SQLite files to single app database
- **Project Isolation**: Proper data separation with project_id foreign keys
- **Better Performance**: Optimized queries and reduced file I/O

### Complete MCP Tool Suite

#### New Project Management Tools
- **`list_projects()`** - Discover and list all available projects with status
- **`switch_project(project_name)`** - Change active project context during conversations
- **`get_current_project()`** - Show currently active project with statistics
- **`set_default_project(project_name)`** - Update default project configuration
- **`sync_status()`** - Check file synchronization status and background operations

#### New Note Operations Tools
- **`edit_note()`** - Incremental note editing (append, prepend, find/replace, section replace)
- **`move_note()`** - Move notes with database consistency and search reindexing
- **`view_note()`** - Display notes as formatted artifacts for better readability in Claude Desktop

#### Enhanced Existing Tools
All existing tools now support:
- **Session context awareness** (operates within the currently active project)
- **Enhanced error messages** with project context metadata
- **Improved response formatting** with project information footers
- **Project isolation** ensures operations stay within the correct project boundaries


### User Experience Improvements

#### Installation Options

**Multiple ways to install and test Basic Memory:**

```bash
# Stable release
uv tool install basic-memory

# Beta/pre-releases
uv tool install basic-memory --pre
```


#### Bug Fixes & Quality Improvements

**Major issues resolved in v0.13.0:**

- **#118**: Fixed YAML tag formatting to follow standard specification
- **#110**: Fixed `--project` flag consistency across all CLI commands
- **#107**: Fixed write_note update failures with existing notes
- **#93**: Fixed custom permalink handling in frontmatter
- **#52**: Enhanced search capabilities with frontmatter tag indexing
- **FTS5 Search**: Fixed special character handling in search queries
- **Error Handling**: Improved error messages and validation across all tools

### Breaking Changes & Migration

#### For Existing Users

**Automatic Migration**: First run will automatically migrate existing data to the new unified database structure. No manual action required.

**What Changes:**
- Database location: Moved to `~/.basic-memory/memory.db` (unified across projects)
- Configuration: Projects defined in `~/.basic-memory/config.json` are synced with database

**What Stays the Same:**
- All existing notes and data remain unchanged
- Default project behavior maintained for single-project users
- All existing MCP tools continue to work without modification

### Documentation & Resources

#### New Documentation
- [Project Management Guide](docs/Project%20Management.md) - Multi-project workflows
- [Note Editing Guide](docs/Note%20Editing.md) - Advanced editing techniques

#### Updated Documentation
- [README.md](README.md) - Installation options and beta build instructions
- [CONTRIBUTING.md](CONTRIBUTING.md) - Release process and version management
- [CLAUDE.md](CLAUDE.md) - Development workflow and CI/CD documentation
- [Claude.ai Integration](docs/Claude.ai%20Integration.md) - Updated MCP tool examples

#### Quick Start Examples

**Project Switching:**
```
💬 "Switch to my work project and show recent activity"
🤖 [Calls switch_project("work") then recent_activity()]
```

**Note Editing:**
```
💬 "Add a section about deployment to my API docs"
🤖 [Calls edit_note("api-docs", "append", "## Deployment\n...")]
```

**File Organization:**
```
💬 "Move my old meeting notes to the archive folder"
🤖 [Calls move_note("meeting-notes", "archive/old-meetings.md")]
```



## v0.12.3 (2025-04-17)

### Bug Fixes

- Add extra logic for permalink generation with mixed Latin unicode and Chinese characters
  ([`73ea91f`](https://github.com/basicmachines-co/basic-memory/commit/73ea91fe0d1f7ab89b99a1b691d59fe608b7fcbb))

Signed-off-by: phernandez <paul@basicmachines.co>

- Modify recent_activity args to be strings instead of enums
  ([`3c1cc34`](https://github.com/basicmachines-co/basic-memory/commit/3c1cc346df519e703fae6412d43a92c7232c6226))

Signed-off-by: phernandez <paul@basicmachines.co>


## v0.12.2 (2025-04-08)

### Bug Fixes

- Utf8 for all file reads/write/open instead of default platform encoding
  ([#91](https://github.com/basicmachines-co/basic-memory/pull/91),
  [`2934176`](https://github.com/basicmachines-co/basic-memory/commit/29341763318408ea8f1e954a41046c4185f836c6))

Signed-off-by: phernandez <paul@basicmachines.co>


## v0.12.1 (2025-04-07)

### Bug Fixes

- Run migrations and sync when starting mcp
  ([#88](https://github.com/basicmachines-co/basic-memory/pull/88),
  [`78a3412`](https://github.com/basicmachines-co/basic-memory/commit/78a3412bcff83b46e78e26f8b9fce42ed9e05991))


## v0.12.0 (2025-04-06)

### Bug Fixes

- [bug] `#` character accumulation in markdown frontmatter tags prop
  ([#79](https://github.com/basicmachines-co/basic-memory/pull/79),
  [`6c19c9e`](https://github.com/basicmachines-co/basic-memory/commit/6c19c9edf5131054ba201a109b37f15c83ef150c))

- [bug] Cursor has errors calling search tool
  ([#78](https://github.com/basicmachines-co/basic-memory/pull/78),
  [`9d581ce`](https://github.com/basicmachines-co/basic-memory/commit/9d581cee133f9dde4a0a85118868227390c84161))

- [bug] Some notes never exit "modified" status
  ([#77](https://github.com/basicmachines-co/basic-memory/pull/77),
  [`7930ddb`](https://github.com/basicmachines-co/basic-memory/commit/7930ddb2919057be30ceac8c4c19da6aaa1d3e92))

- [bug] write_note Tool Fails to Update Existing Files in Some Situations.
  ([#80](https://github.com/basicmachines-co/basic-memory/pull/80),
  [`9bff1f7`](https://github.com/basicmachines-co/basic-memory/commit/9bff1f732e71bc60f88b5c2ce3db5a2aa60b8e28))

- Set default mcp log level to ERROR
  ([#81](https://github.com/basicmachines-co/basic-memory/pull/81),
  [`248214c`](https://github.com/basicmachines-co/basic-memory/commit/248214cb114a269ca60ff6398e382f9e2495ad8e))

- Write_note preserves frontmatter fields in content
  ([#84](https://github.com/basicmachines-co/basic-memory/pull/84),
  [`3f4d9e4`](https://github.com/basicmachines-co/basic-memory/commit/3f4d9e4d872ebc0ed719c61b24d803c14a9db5e6))

### Documentation

- Add VS Code instructions to README
  ([#76](https://github.com/basicmachines-co/basic-memory/pull/76),
  [`43cbb7b`](https://github.com/basicmachines-co/basic-memory/commit/43cbb7b38cc0482ac0a41b6759320e3588186e43))

- Updated basicmachines.co links to be https
  ([#69](https://github.com/basicmachines-co/basic-memory/pull/69),
  [`40ea28b`](https://github.com/basicmachines-co/basic-memory/commit/40ea28b0bfc60012924a69ecb76511daa4c7d133))

### Features

- Add watch to mcp process ([#83](https://github.com/basicmachines-co/basic-memory/pull/83),
  [`00c8633`](https://github.com/basicmachines-co/basic-memory/commit/00c8633cfcee75ff640ff8fe81dafeb956281a94))

- Permalink enhancements ([#82](https://github.com/basicmachines-co/basic-memory/pull/82),
  [`617e60b`](https://github.com/basicmachines-co/basic-memory/commit/617e60bda4a590678a5f551f10a73e7b47e3b13e))

- Avoiding "useless permalink values" for files without metadata - Enable permalinks to be updated
  on move via config setting


## v0.11.0 (2025-03-29)

### Bug Fixes

- Just delete db for reset db instead of using migrations.
  ([#65](https://github.com/basicmachines-co/basic-memory/pull/65),
  [`0743ade`](https://github.com/basicmachines-co/basic-memory/commit/0743ade5fc07440f95ecfd816ba7e4cfd74bca12))

Signed-off-by: phernandez <paul@basicmachines.co>

- Make logs for each process - mcp, sync, cli
  ([#64](https://github.com/basicmachines-co/basic-memory/pull/64),
  [`f1c9570`](https://github.com/basicmachines-co/basic-memory/commit/f1c95709cbffb1b88292547b0b8f29fcca22d186))

Signed-off-by: phernandez <paul@basicmachines.co>

### Documentation

- Update broken "Multiple Projects" link in README.md
  ([#55](https://github.com/basicmachines-co/basic-memory/pull/55),
  [`3c68b7d`](https://github.com/basicmachines-co/basic-memory/commit/3c68b7d5dd689322205c67637dca7d188111ee6b))

### Features

- Add bm command alias for basic-memory
  ([#67](https://github.com/basicmachines-co/basic-memory/pull/67),
  [`069c0a2`](https://github.com/basicmachines-co/basic-memory/commit/069c0a21c630784e1bf47d2b7de5d6d1f6fadd7a))

Signed-off-by: phernandez <paul@basicmachines.co>

- Rename search tool to search_notes
  ([#66](https://github.com/basicmachines-co/basic-memory/pull/66),
  [`b278276`](https://github.com/basicmachines-co/basic-memory/commit/b27827671dc010be3e261b8b221aca6b7f836661))

Signed-off-by: phernandez <paul@basicmachines.co>


## v0.10.1 (2025-03-25)

### Bug Fixes

- Make set_default_project also activate project for current session to fix #37
  ([`cbe72be`](https://github.com/basicmachines-co/basic-memory/commit/cbe72be10a646c0b03931bb39aff9285feae47f9))

This change makes the 'basic-memory project default <name>' command both: 1. Set the default project
  for future invocations (persistent change) 2. Activate the project for the current session
  (immediate change)

Added tests to verify this behavior, which resolves issue #37 where the project name and path
  weren't changing properly when the default project was changed.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>

- Make set_default_project also activate project for current session to fix #37
  ([`46c4fd2`](https://github.com/basicmachines-co/basic-memory/commit/46c4fd21645b109af59eb2a0201c7bd849b34a49))

This change makes the 'basic-memory project default <name>' command both: 1. Set the default project
  for future invocations (persistent change) 2. Activate the project for the current session
  (immediate change)

Added tests to verify this behavior, which resolves issue #37 where the project name and path
  weren't changing properly when the default project was changed.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>

Signed-off-by: phernandez <paul@basicmachines.co>

- Move ai_assistant_guide.md into package resources to fix #39
  ([`390ff9d`](https://github.com/basicmachines-co/basic-memory/commit/390ff9d31ccee85bef732e8140b5eeecd7ee176f))

This change relocates the AI assistant guide from the static directory into the package resources
  directory, ensuring it gets properly included in the distribution package and is accessible when
  installed via pip/uv.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>

- Move ai_assistant_guide.md into package resources to fix #39
  ([`cc2cae7`](https://github.com/basicmachines-co/basic-memory/commit/cc2cae72c14b380f78ffeb67c2261e4dbee45faf))

This change relocates the AI assistant guide from the static directory into the package resources
  directory, ensuring it gets properly included in the distribution package and is accessible when
  installed via pip/uv.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>

Signed-off-by: phernandez <paul@basicmachines.co>

- Preserve custom frontmatter fields when updating notes
  ([`78f234b`](https://github.com/basicmachines-co/basic-memory/commit/78f234b1806b578a0a833e8ee4184015b7369a97))

Fixes #36 by modifying entity_service.update_entity() to read existing frontmatter from files before
  updating them. Custom metadata fields such as Status, Priority, and Version are now preserved when
  notes are updated through the write_note MCP tool.

Added test case that verifies this behavior by creating a note with custom frontmatter and then
  updating it.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>

- Preserve custom frontmatter fields when updating notes
  ([`e716946`](https://github.com/basicmachines-co/basic-memory/commit/e716946b4408d017eca4be720956d5a210b4e6b1))

Fixes #36 by modifying entity_service.update_entity() to read existing frontmatter from files before
  updating them. Custom metadata fields such as Status, Priority, and Version are now preserved when
  notes are updated through the write_note MCP tool.

Added test case that verifies this behavior by creating a note with custom frontmatter and then
  updating it.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>

Signed-off-by: phernandez <paul@basicmachines.co>

### Chores

- Remove duplicate code in entity_service.py from bad merge
  ([`681af5d`](https://github.com/basicmachines-co/basic-memory/commit/681af5d4505dadc40b4086630f739d76bac9201d))

Signed-off-by: phernandez <paul@basicmachines.co>

### Documentation

- Add help docs to mcp cli tools
  ([`731b502`](https://github.com/basicmachines-co/basic-memory/commit/731b502d36cec253d114403d73b48fab3c47786e))

Signed-off-by: phernandez <paul@basicmachines.co>

- Add mcp badge, update cli reference, llms-install.md
  ([`b26afa9`](https://github.com/basicmachines-co/basic-memory/commit/b26afa927f98021246cd8b64858e57333595ea90))

Signed-off-by: phernandez <paul@basicmachines.co>

- Update CLAUDE.md ([#33](https://github.com/basicmachines-co/basic-memory/pull/33),
  [`dfaf0fe`](https://github.com/basicmachines-co/basic-memory/commit/dfaf0fea9cf5b97d169d51a6276ec70162c21a7e))

fix spelling in CLAUDE.md: environment typo Signed-off-by: Ikko Eltociear Ashimine
  <eltociear@gmail.com>

### Refactoring

- Move project stats into project subcommand
  ([`2a881b1`](https://github.com/basicmachines-co/basic-memory/commit/2a881b1425c73947f037fbe7ac5539c015b62526))

Signed-off-by: phernandez <paul@basicmachines.co>


## v0.10.0 (2025-03-15)

### Bug Fixes

- Ai_resource_guide.md path
  ([`da97353`](https://github.com/basicmachines-co/basic-memory/commit/da97353cfc3acc1ceb0eca22ac6af326f77dc199))

Signed-off-by: phernandez <paul@basicmachines.co>

- Ai_resource_guide.md path
  ([`c4732a4`](https://github.com/basicmachines-co/basic-memory/commit/c4732a47b37dd2e404139fb283b65556c81ce7c9))

- Ai_resource_guide.md path
  ([`2e9d673`](https://github.com/basicmachines-co/basic-memory/commit/2e9d673e54ad6a63a971db64f01fc2f4e59c2e69))

Signed-off-by: phernandez <paul@basicmachines.co>

- Don't sync *.tmp files on watch ([#31](https://github.com/basicmachines-co/basic-memory/pull/31),
  [`6b110b2`](https://github.com/basicmachines-co/basic-memory/commit/6b110b28dd8ba705ebfc0bcb41faf2cb993da2c3))

Fixes #30

Signed-off-by: phernandez <paul@basicmachines.co>

- Drop search_index table on db reindex
  ([`31cca6f`](https://github.com/basicmachines-co/basic-memory/commit/31cca6f913849a0ab8fc944803533e3072e9ef88))

Signed-off-by: phernandez <paul@basicmachines.co>

- Improve utf-8 support for file reading/writing
  ([#32](https://github.com/basicmachines-co/basic-memory/pull/32),
  [`eb5e4ec`](https://github.com/basicmachines-co/basic-memory/commit/eb5e4ec6bd4d2fe757087be030d867f4ca1d38ba))

fixes #29

Signed-off-by: phernandez <paul@basicmachines.co>

### Chores

- Remove logfire
  ([`9bb8a02`](https://github.com/basicmachines-co/basic-memory/commit/9bb8a020c3425a02cb3a88f6f02adcd281bccee2))

Signed-off-by: phernandez <paul@basicmachines.co>

### Documentation

- Add glama badge. Fix typos in README.md
  ([#28](https://github.com/basicmachines-co/basic-memory/pull/28),
  [`9af913d`](https://github.com/basicmachines-co/basic-memory/commit/9af913da4fba7bb4908caa3f15f2db2aa03777ec))

Signed-off-by: phernandez <paul@basicmachines.co>

- Update CLAUDE.md with GitHub integration capabilities
  ([#25](https://github.com/basicmachines-co/basic-memory/pull/25),
  [`fea2f40`](https://github.com/basicmachines-co/basic-memory/commit/fea2f40d1b54d0c533e6d7ee7ce1aa7b83ad9a47))

This PR updates the CLAUDE.md file to document the GitHub integration capabilities that enable
  Claude to participate directly in the development workflow.

### Features

- Add Smithery integration for easier installation
  ([#24](https://github.com/basicmachines-co/basic-memory/pull/24),
  [`eb1e7b6`](https://github.com/basicmachines-co/basic-memory/commit/eb1e7b6088b0b3dead9c104ee44174b2baebf417))

This PR adds support for deploying Basic Memory on the Smithery platform.

Signed-off-by: bm-claudeai <claude@basicmachines.co>


## v0.9.0 (2025-03-07)

### Chores

- Pre beta prep ([#20](https://github.com/basicmachines-co/basic-memory/pull/20),
  [`6a4bd54`](https://github.com/basicmachines-co/basic-memory/commit/6a4bd546466a45107007b5000276b6c9bb62ef27))

fix: drop search_index table on db reindex

fix: ai_resource_guide.md path

chore: remove logfire

Signed-off-by: phernandez <paul@basicmachines.co>

### Documentation

- Update README.md and CLAUDE.md
  ([`182ec78`](https://github.com/basicmachines-co/basic-memory/commit/182ec7835567fc246798d9b4ad121b2f85bc6ade))

### Features

- Add project_info tool ([#19](https://github.com/basicmachines-co/basic-memory/pull/19),
  [`d2bd75a`](https://github.com/basicmachines-co/basic-memory/commit/d2bd75a949cc4323cb376ac2f6cb39f47c78c428))

Signed-off-by: phernandez <paul@basicmachines.co>

- Beta work ([#17](https://github.com/basicmachines-co/basic-memory/pull/17),
  [`e6496df`](https://github.com/basicmachines-co/basic-memory/commit/e6496df595f3cafde6cc836384ee8c60886057a5))

feat: Add multiple projects support

feat: enhanced read_note for when initial result is not found

fix: merge frontmatter when updating note

fix: handle directory removed on sync watch

- Implement boolean search ([#18](https://github.com/basicmachines-co/basic-memory/pull/18),
  [`90d5754`](https://github.com/basicmachines-co/basic-memory/commit/90d5754180beaf4acd4be38f2438712555640b49))


## v0.8.0 (2025-02-28)

### Chores

- Formatting
  ([`93cc637`](https://github.com/basicmachines-co/basic-memory/commit/93cc6379ebb9ecc6a1652feeeecbf47fc992d478))

- Refactor logging setup
  ([`f4b703e`](https://github.com/basicmachines-co/basic-memory/commit/f4b703e57f0ddf686de6840ff346b8be2be499ad))

### Features

- Add enhanced prompts and resources
  ([#15](https://github.com/basicmachines-co/basic-memory/pull/15),
  [`093dab5`](https://github.com/basicmachines-co/basic-memory/commit/093dab5f03cf7b090a9f4003c55507859bf355b0))

## Summary - Add comprehensive documentation to all MCP prompt modules - Enhance search prompt with
  detailed contextual output formatting - Implement consistent logging and docstring patterns across
  prompt utilities - Fix type checking in prompt modules

## Prompts Added/Enhanced - `search.py`: New formatted output with relevance scores, excerpts, and
  next steps - `recent_activity.py`: Enhanced with better metadata handling and documentation -
  `continue_conversation.py`: Improved context management

## Resources Added/Enhanced - `ai_assistant_guide`: Resource with description to give to LLM to
  understand how to use the tools

## Technical improvements - Added detailed docstrings to all prompt modules explaining their purpose
  and usage - Enhanced the search prompt with rich contextual output that helps LLMs understand
  results - Created a consistent pattern for formatting output across prompts - Improved error
  handling in metadata extraction - Standardized import organization and naming conventions - Fixed
  various type checking issues across the codebase

This PR is part of our ongoing effort to improve the MCP's interaction quality with LLMs, making the
  system more helpful and intuitive for AI assistants to navigate knowledge bases.

🤖 Generated with [Claude Code](https://claude.ai/code)

---------

Co-authored-by: phernandez <phernandez@basicmachines.co>

- Add new `canvas` tool to create json canvas files in obsidian.
  ([#14](https://github.com/basicmachines-co/basic-memory/pull/14),
  [`0d7b0b3`](https://github.com/basicmachines-co/basic-memory/commit/0d7b0b3d7ede7555450ddc9728951d4b1edbbb80))

Add new `canvas` tool to create json canvas files in obsidian.

---------

Co-authored-by: phernandez <phernandez@basicmachines.co>

- Incremental sync on watch ([#13](https://github.com/basicmachines-co/basic-memory/pull/13),
  [`37a01b8`](https://github.com/basicmachines-co/basic-memory/commit/37a01b806d0758029d34a862e76d44c7e5d538a5))

- incremental sync on watch - sync non-markdown files in knowledge base - experimental
  `read_resource` tool for reading non-markdown files in raw form (pdf, image)


## v0.7.0 (2025-02-19)

### Bug Fixes

- Add logfire instrumentation to tools
  ([`3e8e3e8`](https://github.com/basicmachines-co/basic-memory/commit/3e8e3e8961eae2e82839746e28963191b0aef0a0))

- Add logfire spans to cli
  ([`00d23a5`](https://github.com/basicmachines-co/basic-memory/commit/00d23a5ee15ddac4ea45e702dcd02ab9f0509276))

- Add logfire spans to cli
  ([`812136c`](https://github.com/basicmachines-co/basic-memory/commit/812136c8c22ad191d14ff32dcad91aae076d4120))

- Search query pagination params
  ([`bc9ca07`](https://github.com/basicmachines-co/basic-memory/commit/bc9ca0744ffe4296d7d597b4dd9b7c73c2d63f3f))

### Chores

- Fix tests
  ([`57984aa`](https://github.com/basicmachines-co/basic-memory/commit/57984aa912625dcde7877afb96d874c164af2896))

- Remove unused tests
  ([`2c8ed17`](https://github.com/basicmachines-co/basic-memory/commit/2c8ed1737d6769fe1ef5c96f8a2bd75b9899316a))

### Features

- Add cli commands for mcp tools
  ([`f5a7541`](https://github.com/basicmachines-co/basic-memory/commit/f5a7541da17e97403b7a702720a05710f68b223a))

- Add pagination to build_context and recent_activity
  ([`0123544`](https://github.com/basicmachines-co/basic-memory/commit/0123544556513af943d399d70b849b142b834b15))

- Add pagination to read_notes
  ([`02f8e86`](https://github.com/basicmachines-co/basic-memory/commit/02f8e866923d5793d2620076c709c920d99f2c4f))


## v0.6.0 (2025-02-18)

### Chores

- Re-add sync status console on watch
  ([`66b57e6`](https://github.com/basicmachines-co/basic-memory/commit/66b57e682f2e9c432bffd4af293b0d1db1d3469b))

### Features

- Configure logfire telemetry ([#12](https://github.com/basicmachines-co/basic-memory/pull/12),
  [`6da1438`](https://github.com/basicmachines-co/basic-memory/commit/6da143898bd45cdab8db95b5f2b75810fbb741ba))

Co-authored-by: phernandez <phernandez@basicmachines.co>


## v0.5.0 (2025-02-18)

### Features

- Return semantic info in markdown after write_note
  ([#11](https://github.com/basicmachines-co/basic-memory/pull/11),
  [`0689e7a`](https://github.com/basicmachines-co/basic-memory/commit/0689e7a730497827bf4e16156ae402ddc5949077))

Co-authored-by: phernandez <phernandez@basicmachines.co>


## v0.4.3 (2025-02-18)

### Bug Fixes

- Re do enhanced read note format ([#10](https://github.com/basicmachines-co/basic-memory/pull/10),
  [`39bd5ca`](https://github.com/basicmachines-co/basic-memory/commit/39bd5ca08fd057220b95a8b5d82c5e73a1f5722b))

Co-authored-by: phernandez <phernandez@basicmachines.co>


## v0.4.2 (2025-02-17)


## v0.4.1 (2025-02-17)

### Bug Fixes

- Fix alemic config
  ([`71de8ac`](https://github.com/basicmachines-co/basic-memory/commit/71de8acfd0902fc60f27deb3638236a3875787ab))

- More alembic fixes
  ([`30cd74e`](https://github.com/basicmachines-co/basic-memory/commit/30cd74ec95c04eaa92b41b9815431f5fbdb46ef8))


## v0.4.0 (2025-02-16)

### Features

- Import chatgpt conversation data ([#9](https://github.com/basicmachines-co/basic-memory/pull/9),
  [`56f47d6`](https://github.com/basicmachines-co/basic-memory/commit/56f47d6812982437f207629e6ac9a82e0e56514e))

Co-authored-by: phernandez <phernandez@basicmachines.co>

- Import claude.ai data ([#8](https://github.com/basicmachines-co/basic-memory/pull/8),
  [`a15c346`](https://github.com/basicmachines-co/basic-memory/commit/a15c346d5ebd44344b76bad877bb4d1073fcbc3b))

Import Claude.ai conversation and project data to basic-memory Markdown format.

---------

Co-authored-by: phernandez <phernandez@basicmachines.co>


## v0.3.0 (2025-02-15)

### Bug Fixes

- Refactor db schema migrate handling
  ([`ca632be`](https://github.com/basicmachines-co/basic-memory/commit/ca632beb6fed5881f4d8ba5ce698bb5bc681e6aa))


## v0.2.21 (2025-02-15)

### Bug Fixes

- Fix osx installer github action
  ([`65ebe5d`](https://github.com/basicmachines-co/basic-memory/commit/65ebe5d19491e5ff047c459d799498ad5dd9cd1a))

- Handle memory:// url format in read_note tool
  ([`e080373`](https://github.com/basicmachines-co/basic-memory/commit/e0803734e69eeb6c6d7432eea323c7a264cb8347))

- Remove create schema from init_db
  ([`674dd1f`](https://github.com/basicmachines-co/basic-memory/commit/674dd1fd47be9e60ac17508476c62254991df288))

### Features

- Set version in var, output version at startup
  ([`a91da13`](https://github.com/basicmachines-co/basic-memory/commit/a91da1396710e62587df1284da00137d156fc05e))


## v0.2.20 (2025-02-14)

### Bug Fixes

- Fix installer artifact
  ([`8de84c0`](https://github.com/basicmachines-co/basic-memory/commit/8de84c0221a1ee32780aa84dac4d3ea60895e05c))


## v0.2.19 (2025-02-14)

### Bug Fixes

- Get app artifact for installer
  ([`fe8c3d8`](https://github.com/basicmachines-co/basic-memory/commit/fe8c3d87b003166252290a87cbe958301cccf797))


## v0.2.18 (2025-02-14)

### Bug Fixes

- Don't zip app on release
  ([`8664c57`](https://github.com/basicmachines-co/basic-memory/commit/8664c57bb331d7f3f7e0239acb5386c7a3c6144e))


## v0.2.17 (2025-02-14)

### Bug Fixes

- Fix app zip in installer release
  ([`8fa197e`](https://github.com/basicmachines-co/basic-memory/commit/8fa197e2ec8a1b6caaf6dbb39c3c6626bba23e2e))


## v0.2.16 (2025-02-14)

### Bug Fixes

- Debug inspect build on ci
  ([`1d6054d`](https://github.com/basicmachines-co/basic-memory/commit/1d6054d30a477a4e6a5d6ac885632e50c01945d3))


## v0.2.15 (2025-02-14)

### Bug Fixes

- Debug installer ci
  ([`dab9573`](https://github.com/basicmachines-co/basic-memory/commit/dab957314aec9ed0e12abca2265552494ae733a2))


## v0.2.14 (2025-02-14)


## v0.2.13 (2025-02-14)

### Bug Fixes

- Refactor release.yml installer
  ([`a152657`](https://github.com/basicmachines-co/basic-memory/commit/a15265783e47c22d8c7931396281d023b3694e27))

- Try using symlinks in installer build
  ([`8dd923d`](https://github.com/basicmachines-co/basic-memory/commit/8dd923d5bc0587276f92b5f1db022ad9c8687e45))


## v0.2.12 (2025-02-14)

### Bug Fixes

- Fix cx_freeze options for installer
  ([`854cf83`](https://github.com/basicmachines-co/basic-memory/commit/854cf8302e2f83578030db05e29b8bdc4348795a))


## v0.2.11 (2025-02-14)

### Bug Fixes

- Ci installer app fix #37
  ([`2e215fe`](https://github.com/basicmachines-co/basic-memory/commit/2e215fe83ca421b921186c7f1989dc2cb5cca278))


## v0.2.10 (2025-02-14)

### Bug Fixes

- Fix build on github ci for app installer
  ([`29a2594`](https://github.com/basicmachines-co/basic-memory/commit/29a259421a0ccb10cfa68e3707eaa506ad5e55c0))


## v0.2.9 (2025-02-14)


## v0.2.8 (2025-02-14)

### Bug Fixes

- Fix installer on ci, maybe
  ([`edbc04b`](https://github.com/basicmachines-co/basic-memory/commit/edbc04be601d234bb1f5eb3ba24d6ad55244b031))


## v0.2.7 (2025-02-14)

### Bug Fixes

- Try to fix installer ci
  ([`230738e`](https://github.com/basicmachines-co/basic-memory/commit/230738ee9c110c0509e0a09cb0e101a92cfcb729))


## v0.2.6 (2025-02-14)

### Bug Fixes

- Bump project patch version
  ([`01d4672`](https://github.com/basicmachines-co/basic-memory/commit/01d46727b40c24b017ea9db4b741daef565ac73e))

- Fix installer setup.py change ci to use make
  ([`3e78fcc`](https://github.com/basicmachines-co/basic-memory/commit/3e78fcc2c208d83467fe7199be17174d7ffcad1a))


## v0.2.5 (2025-02-14)

### Bug Fixes

- Refix virtual env in installer build
  ([`052f491`](https://github.com/basicmachines-co/basic-memory/commit/052f491fff629e8ead629c9259f8cb46c608d584))


## v0.2.4 (2025-02-14)


## v0.2.3 (2025-02-14)

### Bug Fixes

- Workaround unsigned app
  ([`41d4d81`](https://github.com/basicmachines-co/basic-memory/commit/41d4d81c1ad1dc2923ba0e903a57454a0c8b6b5c))


## v0.2.2 (2025-02-14)

### Bug Fixes

- Fix path to installer app artifact
  ([`53d220d`](https://github.com/basicmachines-co/basic-memory/commit/53d220df585561f9edd0d49a9e88f1d4055059cf))


## v0.2.1 (2025-02-14)

### Bug Fixes

- Activate virtualenv in installer build
  ([`d4c8293`](https://github.com/basicmachines-co/basic-memory/commit/d4c8293687a52eaf3337fe02e2f7b80e4cc9a1bb))

- Trigger installer build on release
  ([`f11bf78`](https://github.com/basicmachines-co/basic-memory/commit/f11bf78f3f600d0e1b01996cf8e1f9c39e3dd218))


## v0.2.0 (2025-02-14)

### Features

- Build installer via github action ([#7](https://github.com/basicmachines-co/basic-memory/pull/7),
  [`7c381a5`](https://github.com/basicmachines-co/basic-memory/commit/7c381a59c962053c78da096172e484f28ab47e96))

* feat(ci): build installer via github action

* enforce conventional commits in PR titles

* feat: add icon to installer

---------

Co-authored-by: phernandez <phernandez@basicmachines.co>


## v0.1.2 (2025-02-14)

### Bug Fixes

- Fix installer for mac
  ([`dde9ff2`](https://github.com/basicmachines-co/basic-memory/commit/dde9ff228b72852b5abc58faa1b5e7c6f8d2c477))

- Remove unused FileChange dataclass
  ([`eb3360c`](https://github.com/basicmachines-co/basic-memory/commit/eb3360cc221f892b12a17137ae740819d48248e8))

- Update uv installer url
  ([`2f9178b`](https://github.com/basicmachines-co/basic-memory/commit/2f9178b0507b3b69207d5c80799f2d2f573c9a04))


## v0.1.1 (2025-02-07)


## v0.1.0 (2025-02-07)

### Bug Fixes

- Create virtual env in test workflow
  ([`8092e6d`](https://github.com/basicmachines-co/basic-memory/commit/8092e6d38d536bfb6f93c3d21ea9baf1814f9b0a))

- Fix permalink uniqueness violations on create/update/sync
  ([`135bec1`](https://github.com/basicmachines-co/basic-memory/commit/135bec181d9b3d53725c8af3a0959ebc1aa6afda))

- Fix recent activity bug
  ([`3d2c0c8`](https://github.com/basicmachines-co/basic-memory/commit/3d2c0c8c32fcfdaf70a1f96a59d8f168f38a1aa9))

- Install fastapi deps after removing basic-foundation
  ([`51a741e`](https://github.com/basicmachines-co/basic-memory/commit/51a741e7593a1ea0e5eb24e14c70ff61670f9663))

- Recreate search index on db reset
  ([`1fee436`](https://github.com/basicmachines-co/basic-memory/commit/1fee436bf903a35c9ebb7d87607fc9cc9f5ff6e7))

- Remove basic-foundation from deps
  ([`b8d0c71`](https://github.com/basicmachines-co/basic-memory/commit/b8d0c7160f29c97cdafe398a7e6a5240473e0c89))

- Run tests via uv
  ([`4eec820`](https://github.com/basicmachines-co/basic-memory/commit/4eec820a32bc059a405e2f4dac4c73b245ca4722))

### Chores

- Rename import tool
  ([`af6b7dc`](https://github.com/basicmachines-co/basic-memory/commit/af6b7dc40a55eaa2aa78d6ea831e613851081d52))

### Features

- Add memory-json importer, tweak observation content
  ([`3484e26`](https://github.com/basicmachines-co/basic-memory/commit/3484e26631187f165ee6eb85517e94717b7cf2cf))


## v0.0.1 (2025-02-04)

### Bug Fixes

- Fix versioning for 0.0.1 release
  ([`ba1e494`](https://github.com/basicmachines-co/basic-memory/commit/ba1e494ed1afbb7af3f97c643126bced425da7e0))


## v0.0.0 (2025-02-04)

### Chores

- Remove basic-foundation src ref in pyproject.toml
  ([`29fce8b`](https://github.com/basicmachines-co/basic-memory/commit/29fce8b0b922d54d7799bf2534107ee6cfb961b8))
