| feat: add Codex plugin support with hooks, commands, and documentation | 7 months ago |
| fix(antigravity): sync recall skill protocol with canonical shared source Steps 2-6, unhappy paths, and anti-patterns now match integrations/shared/recall-protocol.md verbatim. Step 1 remains Antigravity-specific (PreInvocation injectSteps injection). Flagged by gemini-code-assist on PR #1771. Co-authored-by: Cursor <cursoragent@cursor.com> | 5 months ago |
| fix(hooks): portable mtime in macOS hook throttles; doc cleanup Address review feedback surfaced on the 3.4.1 release promotion (#1810). Bug fix — date -r FILE is GNU-only. On BSD/macOS date -r expects epoch seconds, not a path, so the staleness/throttle checks in the new Cursor and Antigravity hooks silently failed on macOS: the state GC swept on every fire and the pending-save guard was skipped. Replace with a portable os.path.getmtime one-liner via the already-resolved $MEMPAL_PYTHON_BIN (cursor/lib, antigravity/lib, antigravity save hook). This restores the "bash 3.2.57 / macOS default" compatibility the Antigravity changelog claims. Docs: - Correct the MCP tool count to 33 (was 19/29/31 in 21 places across plugin manifests, READMEs, and website docs — all drifted from the TOOLS dict / mcp-tools.md reference, which both have 33). - Fix broken CHANGELOG link to the Cursor skill (skills/, not .cursor-plugin/skills/). - Fix one-too-many ../ in skills/mempalace/SKILL.md's cursor-hooks link (resolved above the repo root). - Add the required mcpServers wrapper to the mcp.json example in .cursor-plugin/README.md so copy-paste yields a valid Cursor config. Left intentionally unchanged: the os.dup2 fd-1 redirect in mcp_server.py is deliberate (#225 keeps JSON-RPC off fd 1). | 4 months ago |
| fix(hooks): portable mtime in macOS hook throttles; doc cleanup Address review feedback surfaced on the 3.4.1 release promotion (#1810). Bug fix — date -r FILE is GNU-only. On BSD/macOS date -r expects epoch seconds, not a path, so the staleness/throttle checks in the new Cursor and Antigravity hooks silently failed on macOS: the state GC swept on every fire and the pending-save guard was skipped. Replace with a portable os.path.getmtime one-liner via the already-resolved $MEMPAL_PYTHON_BIN (cursor/lib, antigravity/lib, antigravity save hook). This restores the "bash 3.2.57 / macOS default" compatibility the Antigravity changelog claims. Docs: - Correct the MCP tool count to 33 (was 19/29/31 in 21 places across plugin manifests, READMEs, and website docs — all drifted from the TOOLS dict / mcp-tools.md reference, which both have 33). - Fix broken CHANGELOG link to the Cursor skill (skills/, not .cursor-plugin/skills/). - Fix one-too-many ../ in skills/mempalace/SKILL.md's cursor-hooks link (resolved above the repo root). - Add the required mcpServers wrapper to the mcp.json example in .cursor-plugin/README.md so copy-paste yields a valid Cursor config. Left intentionally unchanged: the os.dup2 fd-1 redirect in mcp_server.py is deliberate (#225 keeps JSON-RPC off fd 1). | 4 months ago |
| fix(hooks): portable mtime in macOS hook throttles; doc cleanup Address review feedback surfaced on the 3.4.1 release promotion (#1810). Bug fix — date -r FILE is GNU-only. On BSD/macOS date -r expects epoch seconds, not a path, so the staleness/throttle checks in the new Cursor and Antigravity hooks silently failed on macOS: the state GC swept on every fire and the pending-save guard was skipped. Replace with a portable os.path.getmtime one-liner via the already-resolved $MEMPAL_PYTHON_BIN (cursor/lib, antigravity/lib, antigravity save hook). This restores the "bash 3.2.57 / macOS default" compatibility the Antigravity changelog claims. Docs: - Correct the MCP tool count to 33 (was 19/29/31 in 21 places across plugin manifests, READMEs, and website docs — all drifted from the TOOLS dict / mcp-tools.md reference, which both have 33). - Fix broken CHANGELOG link to the Cursor skill (skills/, not .cursor-plugin/skills/). - Fix one-too-many ../ in skills/mempalace/SKILL.md's cursor-hooks link (resolved above the repo root). - Add the required mcpServers wrapper to the mcp.json example in .cursor-plugin/README.md so copy-paste yields a valid Cursor config. Left intentionally unchanged: the os.dup2 fd-1 redirect in mcp_server.py is deliberate (#225 keeps JSON-RPC off fd 1). | 4 months ago |
| feat: add VSCode devcontainer matching CI environment Contributors now get a one-click dev environment that mirrors CI exactly: Python 3.11 (middle of the 3.9/3.11/3.13 matrix), ruff pinned to the same >=0.4.0,<0.5 range CI enforces, and pre-commit hooks auto-installed from the existing .pre-commit-config.yaml. Pinning ruff in post-create.sh is the load-bearing piece: pyproject only sets a floor, so without the pin the ruff extension would install 0.15.x and phantom-fail lint against CI's 0.4.x. | 6 months ago |
| ci(publish): build + publish in one job to avoid cross-job artifact handoff The two-job split passed the wheel from the build job to the publish job via upload/download-artifact, which failed repeatedly with BlobNotFound on the same-run download (GitHub artifact-service flake) — the PyPI upload step never ran. Collapse into a single publish job that builds and publishes in the same workspace, removing the handoff entirely. The job keeps the pypi environment gate, OIDC (id-token: write), refs/tags checkout, and the on-main + version-manifest checks. | 5 months ago |
| MemPalace: palace architecture, AAAK compression, knowledge graph The memory system: - Palace structure: Wings (people/projects) → Rooms (topics) → Closets (AAAK compressed) → Drawers (verbatim transcripts) - Halls connect related rooms within a wing - Tunnels cross-reference rooms across wings - AAAK: 30x lossless compression dialect for AI agents - Knowledge graph: temporal entity-relationship triples (SQLite) - Palace graph: room-based navigation with tunnel detection - MCP server: 19 tools — search, graph traversal, agent diary, AAAK auto-teach - Onboarding: guided setup generates wing config + AAAK entity registry - Contradiction detection: catches wrong pronouns, names, ages - Auto-save hooks for Claude Code 96.6% Recall@5 on LongMemEval — highest zero-API score published. 100% with optional Haiku rerank (500/500). Local. Free. No API key required. | 7 months ago |
| Merge origin/develop into feat/benchmark-multilingual Resolves conflicts in CHANGELOG.md and pyproject.toml by combining the multilingual-embedder additions (huggingface_hub/tokenizers/numpy core deps, [multilingual] alias, Features section) with develop's additions (python-dateutil core dep, [extract] extra, tunnel Bug Fixes and Internal sections). Prepares PR #1483 for merge into v3.3.6. | 5 months ago |
| feat: add Cursor IDE support (hooks, plugin, skill, docs, tests) Adds first-class Cursor IDE integration alongside the existing Claude Code and Codex hook flows, so Cursor users get the same automatic diary saves, pre-compaction transcript capture, and session-start memory recall — without changing any default behaviour for existing users. What's included --------------- Cursor hook scripts (hooks/cursor/): - mempal_save_hook_cursor.sh — Stop event, counter + loop_count guard, pending-save marker consumption, background mempalace mine, followup_message emission. - mempal_precompact_hook_cursor.sh — synchronous mine before compaction, drops a pending_save marker, returns user_message. - mempal_wake_hook_cursor.sh — sessionStart event, wing-scoped recall guidance via additional_context. - lib/common.sh — shared parsing + state helpers (bash 3.2 safe, no heredoc-in-subshell traps). - install.sh — idempotent installer with --scope, --variant, --dry-run, --uninstall. Recognises existing entries by basename so re-installs across paths work. - STDIN_SHAPE.md, README.md — payload schemas + quick reference. Cursor plugin (.cursor-plugin/ + repo-root components): - plugin.json, marketplace.json, README.md. - skills/mempalace/SKILL.md — model-invocable skill mirroring the Claude plugin's skill surface. - commands/mempalace-{help,init,mine,search,status}.md — slash commands for marketplace-published installs (filename = slug). - mcp.json — auto-registers the mempalace MCP server, wrapped under the documented mcpServers key. Examples + docs: - examples/cursor/hooks.json, hooks.minimal.json + README. - website/guide/cursor-hooks.md + sidebar entry. - README.md and CHANGELOG.md updates. Tests (129 new, all green): - tests/test_cursor_hooks_shell.py — 75 behavioural tests for the three hook scripts: kill switches, input parsing, counter logic, loop prevention, pending markers, wing inference, logging. - tests/test_cursor_hooks_install.py — 19 contract tests for the installer: dry-run, idempotent merge, basename-matched uninstall, refusal to overwrite malformed JSON. - tests/test_cursor_plugin_manifest.py — 35 contract tests for the plugin: manifest validity, version sync with mempalace.version, mcp.json shape, skill/command frontmatter, default-discovery layout invariants. Design notes ------------ - Local-first and zero-API by default; hooks never call external services. Same privacy model as the existing Claude Code hooks. - Fail-open: hook scripts deliberately do not use set -e so a broken hook can never block the user's conversation. - Cursor preCompact cannot block + return a followup, so we synchronously mine the transcript and drop a pending_save marker that the next stop hook consumes — guarantees verbatim capture before context window compression. - Cursor's default plugin discovery requires real commands/, skills/, and mcp.json at the plugin root (verified against the cached cloudflare plugin); .cursor-plugin/{commands,skills} are convenience symlinks back to those canonical locations. - bash 3.2 compatibility throughout: avoids heredoc-in-command- substitution parser bugs; uses python -c for JSON parsing; basename-matched entry recognition in install.sh. - All changes are additive. No existing files are removed, no existing hooks change behaviour, and no new runtime dependencies are introduced. Co-authored-by: Cursor <cursoragent@cursor.com> | 5 months ago |
| docs(recovery): add wing-name migration guide for migrate-wings | 5 months ago |
| merge: resolve CHANGELOG conflict with develop | 5 months ago |
| style(hooks): single-quote the static python -c mtime snippet The snippet has no shell interpolation — the path arrives via argv, not string interpolation — so single quotes are correct and make it unambiguous that nothing is shell-expanded. Behavior is identical: sys.argv[1] contains no $, so it was never expanded (verified empirically). Matches the single-quoted python -c blocks already in hooks/cursor/lib/common.sh. No functional change. | 4 months ago |
| merge: resolve recall-protocol conflict with develop | 5 months ago |
| new landing page | 6 months ago |
| fix(daemon): skip reverse-DNS in server_bind so startup can't block ~30s HTTPServer.server_bind() resolves server_name via socket.getfqdn(host). For the daemon's 127.0.0.1 bind that lookup is pointless, and on a host with slow or absent reverse DNS it blocks startup until the resolver times out (~30s) — which looks exactly like the daemon never coming up. This is why the first daemon HTTP-lifecycle test timed out on the macOS CI runner (httpd_bound=False after 30s) while every later one bound in seconds once the OS had cached the negative lookup. Bind via TCPServer directly and set server_name from the literal host. | 4 months ago |
| feat: add mempalace-recall skill and optional Cursor recall rule Ports the OpenClaw "search before answering" protocol to the Cursor and Claude plugin surfaces so the agent reads the palace before answering about past work, people, projects, or prior decisions instead of guessing from model memory. - integrations/shared/recall-protocol.md: single source of truth for the recall protocol, referenced by the skill and the rule so they cannot drift. - skills/mempalace-recall/SKILL.md: recall-only skill (the mempalace skill keeps setup/mine/status); cross-linked from the ops skill. - rules/mempalace-recall.mdc: plugin recall rule, alwaysApply: false so it only fires on recall-relevant turns and never adds MCP latency to greenfield work. - examples/cursor/rules/: opt-in copies for non-plugin users, including an aggressive alwaysApply: true variant documented with its latency tradeoff. - .claude-plugin/skills/mempalace-recall/SKILL.md: Claude plugin parity. - tests: assert the recall skill and rules/ discovery layout; the shipped rule must be alwaysApply: false. - docs: .cursor-plugin/README.md and the cursor-hooks guide now describe the three layers of recall (hook + skill + rule). The Antigravity plugin mirror lands as a follow-up on the antigravity branch, where .antigravity-plugin/ exists. Co-authored-by: Cursor <cursoragent@cursor.com> | 5 months ago |
| fix(hooks): portable mtime in macOS hook throttles; doc cleanup Address review feedback surfaced on the 3.4.1 release promotion (#1810). Bug fix — date -r FILE is GNU-only. On BSD/macOS date -r expects epoch seconds, not a path, so the staleness/throttle checks in the new Cursor and Antigravity hooks silently failed on macOS: the state GC swept on every fire and the pending-save guard was skipped. Replace with a portable os.path.getmtime one-liner via the already-resolved $MEMPAL_PYTHON_BIN (cursor/lib, antigravity/lib, antigravity save hook). This restores the "bash 3.2.57 / macOS default" compatibility the Antigravity changelog claims. Docs: - Correct the MCP tool count to 33 (was 19/29/31 in 21 places across plugin manifests, READMEs, and website docs — all drifted from the TOOLS dict / mcp-tools.md reference, which both have 33). - Fix broken CHANGELOG link to the Cursor skill (skills/, not .cursor-plugin/skills/). - Fix one-too-many ../ in skills/mempalace/SKILL.md's cursor-hooks link (resolved above the repo root). - Add the required mcpServers wrapper to the mcp.json example in .cursor-plugin/README.md so copy-paste yields a valid Cursor config. Left intentionally unchanged: the os.dup2 fd-1 redirect in mcp_server.py is deliberate (#225 keeps JSON-RPC off fd 1). | 4 months ago |
| fix(daemon): Windows-safe pid liveness probe; finalize cross-platform daemon tests _pid_alive used os.kill(pid, 0) as an existence check. On Windows signal 0 is signal.CTRL_C_EVENT, so Python routes it to GenerateConsoleCtrlEvent and sends a console Ctrl-C to the target's process group rather than probing the pid. DaemonClient polls a same-process endpoint during startup, so on a CI runner with an attached console that Ctrl-C was delivered back to the interpreter as a spurious KeyboardInterrupt — the Windows CI hang that interrupted the suite at the first daemon HTTP-lifecycle test (socket.py recv). Probe via the Win32 OpenProcess/WaitForSingleObject handle API instead, which has no signalling side effects. This is also a real Windows production bug, not just a test artifact. Tests: - Skip the two owner-only (0600) permission tests on Windows: os.chmod cannot represent POSIX mode bits there (files report 0o666); the daemon relies on user-profile ACLs on Windows. - _start_server now captures and re-surfaces a run_server thread crash instead of spinning for 30s and failing with a bare assert (diagnoses the macOS startup flake). - Add a regression test asserting _pid_alive is correct and emits no console control event when hammered like the poll loop. - Remove the temporary win32 exit-hang diagnostic fixture from conftest now that the root cause is fixed. | 4 months ago |
| Merge branch 'develop' into docs/claude-code-retention-setup Bring docs PR up to date with develop so CI re-runs against the current pin set. Co-Authored-By: Igor Lins e Silva <4753812+igorls@users.noreply.github.com> Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> | 5 months ago |
| fix(hooks): portable mtime in macOS hook throttles; doc cleanup Address review feedback surfaced on the 3.4.1 release promotion (#1810). Bug fix — date -r FILE is GNU-only. On BSD/macOS date -r expects epoch seconds, not a path, so the staleness/throttle checks in the new Cursor and Antigravity hooks silently failed on macOS: the state GC swept on every fire and the pending-save guard was skipped. Replace with a portable os.path.getmtime one-liner via the already-resolved $MEMPAL_PYTHON_BIN (cursor/lib, antigravity/lib, antigravity save hook). This restores the "bash 3.2.57 / macOS default" compatibility the Antigravity changelog claims. Docs: - Correct the MCP tool count to 33 (was 19/29/31 in 21 places across plugin manifests, READMEs, and website docs — all drifted from the TOOLS dict / mcp-tools.md reference, which both have 33). - Fix broken CHANGELOG link to the Cursor skill (skills/, not .cursor-plugin/skills/). - Fix one-too-many ../ in skills/mempalace/SKILL.md's cursor-hooks link (resolved above the repo root). - Add the required mcpServers wrapper to the mcp.json example in .cursor-plugin/README.md so copy-paste yields a valid Cursor config. Left intentionally unchanged: the os.dup2 fd-1 redirect in mcp_server.py is deliberate (#225 keeps JSON-RPC off fd 1). | 4 months ago |
| feat(docker): add container image for MCP server and CLI Add a multi-stage, uv-based Dockerfile producing a CPU image (with the extract + spellcheck extras), plus a CUDA variant (Dockerfile.gpu) for onnxruntime-gpu accelerated embeddings. A single flexible entrypoint dispatches to the MCP stdio server (default) or the mempalace CLI. All state -- palace, config, and the lazily downloaded embedding model -- persists under /data via HOME, runs as a non-root user, and is exposed as a volume. Also add a docker-compose.yml for convenience, a GHCR publish workflow, and a Docker section in the README. | 5 months ago |
| fix(audit): chunk and batch content before embedding upsert (#1539) Four sites passed content to collection.upsert(documents=[...]) or collection.add(documents=[...]) without per-drawer size cap, hitting the same RuntimeError: Invalid buffer size crash class from the embedding model's attention buffer: - general_extractor.extract_memories: post-classification slicer that propagates memory_type to every slice. New chunk_size parameter defaulting to DEFAULT_CHUNK_SIZE and resolved from MempalaceConfig.chunk_size by the caller. - diary_ingest.ingest_diaries: per-entry drawers via existing _split_entries, with character-chunk fallback for any single entry larger than chunk_size. New _diary_drawer_id_entry helper carries (entry_idx, entry_chunk_idx). chunk_index in metadata is a global counter across the file so searcher._expand_with_neighbors stitches sibling chunks regardless of entry boundary. Upsert is batched atomic per file (one call carrying every entry/chunk) so a mid-pass embedding failure cannot half-write the day. Auto-purge on full rebuild deletes prior-pass drawers via where={"source_file": ...}, which also migrates pre-#1539 legacy drawer_diary_ IDs as a side effect of normal use. - mcp_server.tool_diary_write: split oversized entries into bounded per-chunk drawers via a single batched col.add (atomic, no half-write on embedding failure). col.add is intentional: entry_id is timestamp-based with microsecond precision, so a duplicate is a same-microsecond clash that should surface rather than silently overwrite. - mcp_server.tool_add_drawer: same crash class on the more common add-drawer surface (100 KB sanitize cap, 125x CHUNK_SIZE). Chunked path mirrors Site 3 with batched atomic col.upsert, per-chunk parent_drawer_id + chunk_index metadata, and a dual-id idempotency probe (last chunk for atomicity, legacy drawer_id for pre-#1539 single-row backwards-compat). Return shape additive: chunks always present, chunk_ids on the chunked path. tool_get_drawer / tool_delete_drawer against the logical handle report "not found" on the chunked path; callers iterate chunk_ids or query parent_drawer_id. Chunk id width is :06d so even a single-digit chunk_size config cannot lex-sort chunks out of order. | 5 months ago |
| chore(pre-commit): bump ruff pin v0.15.9 → v0.15.14 Lock-step with pyproject.toml [project.optional-dependencies].dev (ruff bumped from 0.15.9 → 0.15.14 via PR #1583). The .pre-commit-config.yaml header explicitly requires this rev to match the pyproject pin — without this bump, contributors who run pre-commit install will hit the same version-mismatch debacle this PR was opened to prevent. | 5 months ago |
| docs(install): recommend uv as the package manager End-user installs now lead with uv tool install mempalace, with pip install mempalace kept as a fallback. Dev/contributor docs lead with uv sync --extra dev and uv run for tests/benchmarks/lint, with the equivalent pip recipe kept inline. The shipped /mempalace:init skill instructions (mempalace/instructions/init.md) try uv tool install first when uv is on PATH, then fall back through the pip variants. Adds a .python-version pin at 3.12 because the lockfile's onnxruntime==1.24.3 only ships wheels for Python >=3.11; without the pin, uv sync on a host where uv prefers 3.10 fails with no source distribution available, which would make the documented command a footgun. pyproject's requires-python = ">=3.9" is unchanged — pip users on 3.9/3.10 are unaffected. Files updated: README.md, CONTRIBUTING.md, CLAUDE.md, the gemini-cli guide and example, the .claude-plugin / .codex-plugin READMEs, the mempalace SKILL, the openclaw SKILL, tools/save.md, the three benchmarks docs, and the corresponding website mirrors. | 6 months ago |
| docs: add CLAUDE.md + mission/principles to AGENTS.md (#720) * docs: add CLAUDE.md + mission/principles to AGENTS.md Add project mission, design principles, and contribution guidelines to CLAUDE.md (new file) and prepend them to AGENTS.md. Six non-negotiable principles: verbatim always, incremental only, entity-first, local-first zero API, performance budgets, privacy by architecture. * docs: update CLAUDE.md with Milla's edits, add MISSION.md, symlink AGENTS.md CLAUDE.md: - Add Zettelkasten + AAAK explanation to mission (Milla's edit) - Add 7th principle: background everything - Update project structure to match current develop (all modules) - Fix hooks listing to match actual public repo - Add backends/ to structure and key files MISSION.md: - Milla's personal narrative on why MemPalace exists - Origin story, AAAK inside joke, v4 goals AGENTS.md: - Now symlinks to CLAUDE.md (single source of truth) * docs: trim MISSION.md — remove v4 notes and workflow (moved to private) | 6 months ago |
| fix(hooks): portable mtime in macOS hook throttles; doc cleanup Address review feedback surfaced on the 3.4.1 release promotion (#1810). Bug fix — date -r FILE is GNU-only. On BSD/macOS date -r expects epoch seconds, not a path, so the staleness/throttle checks in the new Cursor and Antigravity hooks silently failed on macOS: the state GC swept on every fire and the pending-save guard was skipped. Replace with a portable os.path.getmtime one-liner via the already-resolved $MEMPAL_PYTHON_BIN (cursor/lib, antigravity/lib, antigravity save hook). This restores the "bash 3.2.57 / macOS default" compatibility the Antigravity changelog claims. Docs: - Correct the MCP tool count to 33 (was 19/29/31 in 21 places across plugin manifests, READMEs, and website docs — all drifted from the TOOLS dict / mcp-tools.md reference, which both have 33). - Fix broken CHANGELOG link to the Cursor skill (skills/, not .cursor-plugin/skills/). - Fix one-too-many ../ in skills/mempalace/SKILL.md's cursor-hooks link (resolved above the repo root). - Add the required mcpServers wrapper to the mcp.json example in .cursor-plugin/README.md so copy-paste yields a valid Cursor config. Left intentionally unchanged: the os.dup2 fd-1 redirect in mcp_server.py is deliberate (#225 keeps JSON-RPC off fd 1). | 4 months ago |
| docs(install): recommend uv as the package manager End-user installs now lead with uv tool install mempalace, with pip install mempalace kept as a fallback. Dev/contributor docs lead with uv sync --extra dev and uv run for tests/benchmarks/lint, with the equivalent pip recipe kept inline. The shipped /mempalace:init skill instructions (mempalace/instructions/init.md) try uv tool install first when uv is on PATH, then fall back through the pip variants. Adds a .python-version pin at 3.12 because the lockfile's onnxruntime==1.24.3 only ships wheels for Python >=3.11; without the pin, uv sync on a host where uv prefers 3.10 fails with no source distribution available, which would make the documented command a footgun. pyproject's requires-python = ">=3.9" is unchanged — pip users on 3.9/3.10 are unaffected. Files updated: README.md, CONTRIBUTING.md, CLAUDE.md, the gemini-cli guide and example, the .claude-plugin / .codex-plugin READMEs, the mempalace SKILL, the openclaw SKILL, tools/save.md, the three benchmarks docs, and the corresponding website mirrors. | 6 months ago |
| chore(deps): add hypothesis + pre-commit to dev deps + document local hook activation Adds two test-discipline tools to the dev extras and closes a real contributor-onboarding gap in CONTRIBUTING.md that allowed PR #1579's 2026-05-22 4 AM ruff-version-mismatch lint failure. Adds to [project.optional-dependencies].dev (and matching [dependency-groups].dev for uv users): - **hypothesis>=6.0** — property-based testing framework. Generates hundreds of random inputs per test and shrinks failing cases to a minimal counterexample. Used opt-in (sprinkle @given(...) on a test); zero runtime cost on tests that don't use it. Would have caught the Tier 6a dateutil-fuzzy hallucination on PR #1584 with one property test. - **pre-commit>=3.0** — the pre-commit framework itself. .pre-commit-config.yaml already lives in the repo (committed by @igorls on 2026-05-18, pinned to ruff 0.15.9 in lockstep with CI). What was missing was making the framework a declared dev dependency so pip install -e .[dev] / uv sync --extra dev actually pulls it in. Adds a pre-commit install line to the Getting Started bash block plus a short paragraph explaining why this step is required (the hook file at .git/hooks/pre-commit is per-machine and NOT tracked by git, so the repo's .pre-commit-config.yaml only takes effect after each developer runs pre-commit install once locally). Adds an optional "Property-based tests" subsection under Running Tests showing the minimal @given(...) pattern, so contributors who want to reach for the new tool know it's available. On 2026-05-22 at 4:30 AM, PR #1579 (Tier 6a) hit a CI lint failure caused by a ruff version mismatch: my local machine had ruff 0.4.10, CI runs ruff 0.15.9 (pinned in pyproject.toml). The two versions produce different ruff format output for the same code. The repo HAD .pre-commit-config.yaml pinning ruff 0.15.9 — but the local git hook had never been wired on my machine because nothing in CONTRIBUTING.md said to run pre-commit install. The protection existed at the project layer; the activation gap was at the contributor-onboarding layer. This commit closes that gap structurally. Anyone cloning the repo from now on sees pre-commit install as part of the Getting Started flow and is protected from the same failure. - **No mutmut in dev deps.** Mutation testing is heavier (runs the whole test suite per mutation) and useful periodically rather than every commit. Contributors who want to run it can install manually. Adding it to dev deps would bloat the install footprint for every contributor when most will never use it. - **No new property tests.** This PR ships the TOOL, not new test coverage. Property tests should land alongside the specific functions they cover, in their own PRs. - **No changes to .pre-commit-config.yaml.** That file is correct as Igor wrote it. The fix here is purely making the framework installable + documenting the activation step. ruff check . → All checks passed. pre-commit run --all-files (locally) → ruff (legacy alias): Passed → ruff format: Passed OrbStack triple-Linux verify (Py 3.9 / 3.11 / 3.13) → pip install -e .[dev] resolves cleanly; hypothesis + pre_commit import successfully; existing test suite unaffected. | 5 months ago |
| ci(docker): fix latest/main publishing, add arm64 + GPU build check Review fixes for the Docker packaging PR: - docker-publish: tie the latest tag to pushes on main (the release branch). Previously it was gated on is_default_branch, but the default branch is develop and the workflow never ran there, so latest was never produced. main + v* tags publish; develop is validated via the pull_request trigger but does not publish. - docker-publish: publish multi-arch amd64+arm64 (Apple Silicon / ARM) on real pushes via setup-qemu-action; PRs stay amd64-only for speed. - docker-publish: only export the GHA cache on in-repo events (fork PRs get a read-only cache, which just emits 403 noise). - docker-publish: add a build-only job that validates Dockerfile.gpu compiles so the CUDA variant can't silently rot. - Dockerfile: correct the persistence comment — the default minilm model caches under ~/.cache/chroma (ChromaDB S3), not ~/.cache/huggingface (that's the optional embeddinggemma model). - docker-compose: drop the redundant MEMPALACE_PALACE_PATH override (it duplicated the HOME=/data default); document overrides as examples. | 5 months ago |
| fix(docker): address gemini review on MR #1696 | 5 months ago |
| MemPalace: palace architecture, AAAK compression, knowledge graph The memory system: - Palace structure: Wings (people/projects) → Rooms (topics) → Closets (AAAK compressed) → Drawers (verbatim transcripts) - Halls connect related rooms within a wing - Tunnels cross-reference rooms across wings - AAAK: 30x lossless compression dialect for AI agents - Knowledge graph: temporal entity-relationship triples (SQLite) - Palace graph: room-based navigation with tunnel detection - MCP server: 19 tools — search, graph traversal, agent diary, AAAK auto-teach - Onboarding: guided setup generates wing config + AAAK entity registry - Contradiction detection: catches wrong pronouns, names, ages - Auto-save hooks for Claude Code 96.6% Recall@5 on LongMemEval — highest zero-API score published. 100% with optional Haiku rerank (500/500). Local. Free. No API key required. | 7 months ago |
| docs: add CLAUDE.md + mission/principles to AGENTS.md (#720) * docs: add CLAUDE.md + mission/principles to AGENTS.md Add project mission, design principles, and contribution guidelines to CLAUDE.md (new file) and prepend them to AGENTS.md. Six non-negotiable principles: verbatim always, incremental only, entity-first, local-first zero API, performance budgets, privacy by architecture. * docs: update CLAUDE.md with Milla's edits, add MISSION.md, symlink AGENTS.md CLAUDE.md: - Add Zettelkasten + AAAK explanation to mission (Milla's edit) - Add 7th principle: background everything - Update project structure to match current develop (all modules) - Fix hooks listing to match actual public repo - Add backends/ to structure and key files MISSION.md: - Milla's personal narrative on why MemPalace exists - Origin story, AAAK inside joke, v4 goals AGENTS.md: - Now symlinks to CLAUDE.md (single source of truth) * docs: trim MISSION.md — remove v4 notes and workflow (moved to private) | 6 months ago |
| fix(hooks): portable mtime in macOS hook throttles; doc cleanup Address review feedback surfaced on the 3.4.1 release promotion (#1810). Bug fix — date -r FILE is GNU-only. On BSD/macOS date -r expects epoch seconds, not a path, so the staleness/throttle checks in the new Cursor and Antigravity hooks silently failed on macOS: the state GC swept on every fire and the pending-save guard was skipped. Replace with a portable os.path.getmtime one-liner via the already-resolved $MEMPAL_PYTHON_BIN (cursor/lib, antigravity/lib, antigravity save hook). This restores the "bash 3.2.57 / macOS default" compatibility the Antigravity changelog claims. Docs: - Correct the MCP tool count to 33 (was 19/29/31 in 21 places across plugin manifests, READMEs, and website docs — all drifted from the TOOLS dict / mcp-tools.md reference, which both have 33). - Fix broken CHANGELOG link to the Cursor skill (skills/, not .cursor-plugin/skills/). - Fix one-too-many ../ in skills/mempalace/SKILL.md's cursor-hooks link (resolved above the repo root). - Add the required mcpServers wrapper to the mcp.json example in .cursor-plugin/README.md so copy-paste yields a valid Cursor config. Left intentionally unchanged: the os.dup2 fd-1 redirect in mcp_server.py is deliberate (#225 keeps JSON-RPC off fd 1). | 4 months ago |
| docs: add ROADMAP.md — v3.1.1 stability patch and v4.0.0-alpha plan Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> | 6 months ago |
| docs: tighten SECURITY.md with real version policy and GHPVR-only channel Builds on @Yorji-Porji's draft by fixing three issues before it lands: - Replace the < 1.0.0 placeholder table with MemPalace's actual support policy: current major (3.x) receives fixes, 2.x and earlier do not. - Remove the [Insert Maintainer Email Here] placeholder and the email fallback. GitHub Private Vulnerability Reporting is enabled on this repo; the policy points there exclusively so there is no risk of a researcher emailing a dead address. - Drop the meta-note ("Adjust the table above…") that was an instruction to the maintainer, not policy text. Structure, triage timelines, and credit language are kept as drafted. | 6 months ago |
| ci(docker): fix latest/main publishing, add arm64 + GPU build check Review fixes for the Docker packaging PR: - docker-publish: tie the latest tag to pushes on main (the release branch). Previously it was gated on is_default_branch, but the default branch is develop and the workflow never ran there, so latest was never produced. main + v* tags publish; develop is validated via the pull_request trigger but does not publish. - docker-publish: publish multi-arch amd64+arm64 (Apple Silicon / ARM) on real pushes via setup-qemu-action; PRs stay amd64-only for speed. - docker-publish: only export the GHA cache on in-repo events (fork PRs get a read-only cache, which just emits 403 noise). - docker-publish: add a build-only job that validates Dockerfile.gpu compiles so the CUDA variant can't silently rot. - Dockerfile: correct the persistence comment — the default minilm model caches under ~/.cache/chroma (ChromaDB S3), not ~/.cache/huggingface (that's the optional embeddinggemma model). - docker-compose: drop the redundant MEMPALACE_PALACE_PATH override (it duplicated the HOME=/data default); document overrides as examples. | 5 months ago |
| fix(docker): address gemini review on MR #1696 | 5 months ago |
| feat: add Cursor IDE support (hooks, plugin, skill, docs, tests) Adds first-class Cursor IDE integration alongside the existing Claude Code and Codex hook flows, so Cursor users get the same automatic diary saves, pre-compaction transcript capture, and session-start memory recall — without changing any default behaviour for existing users. What's included --------------- Cursor hook scripts (hooks/cursor/): - mempal_save_hook_cursor.sh — Stop event, counter + loop_count guard, pending-save marker consumption, background mempalace mine, followup_message emission. - mempal_precompact_hook_cursor.sh — synchronous mine before compaction, drops a pending_save marker, returns user_message. - mempal_wake_hook_cursor.sh — sessionStart event, wing-scoped recall guidance via additional_context. - lib/common.sh — shared parsing + state helpers (bash 3.2 safe, no heredoc-in-subshell traps). - install.sh — idempotent installer with --scope, --variant, --dry-run, --uninstall. Recognises existing entries by basename so re-installs across paths work. - STDIN_SHAPE.md, README.md — payload schemas + quick reference. Cursor plugin (.cursor-plugin/ + repo-root components): - plugin.json, marketplace.json, README.md. - skills/mempalace/SKILL.md — model-invocable skill mirroring the Claude plugin's skill surface. - commands/mempalace-{help,init,mine,search,status}.md — slash commands for marketplace-published installs (filename = slug). - mcp.json — auto-registers the mempalace MCP server, wrapped under the documented mcpServers key. Examples + docs: - examples/cursor/hooks.json, hooks.minimal.json + README. - website/guide/cursor-hooks.md + sidebar entry. - README.md and CHANGELOG.md updates. Tests (129 new, all green): - tests/test_cursor_hooks_shell.py — 75 behavioural tests for the three hook scripts: kill switches, input parsing, counter logic, loop prevention, pending markers, wing inference, logging. - tests/test_cursor_hooks_install.py — 19 contract tests for the installer: dry-run, idempotent merge, basename-matched uninstall, refusal to overwrite malformed JSON. - tests/test_cursor_plugin_manifest.py — 35 contract tests for the plugin: manifest validity, version sync with mempalace.version, mcp.json shape, skill/command frontmatter, default-discovery layout invariants. Design notes ------------ - Local-first and zero-API by default; hooks never call external services. Same privacy model as the existing Claude Code hooks. - Fail-open: hook scripts deliberately do not use set -e so a broken hook can never block the user's conversation. - Cursor preCompact cannot block + return a followup, so we synchronously mine the transcript and drop a pending_save marker that the next stop hook consumes — guarantees verbatim capture before context window compression. - Cursor's default plugin discovery requires real commands/, skills/, and mcp.json at the plugin root (verified against the cached cloudflare plugin); .cursor-plugin/{commands,skills} are convenience symlinks back to those canonical locations. - bash 3.2 compatibility throughout: avoids heredoc-in-command- substitution parser bugs; uses python -c for JSON parsing; basename-matched entry recognition in install.sh. - All changes are additive. No existing files are removed, no existing hooks change behaviour, and no new runtime dependencies are introduced. Co-authored-by: Cursor <cursoragent@cursor.com> | 5 months ago |
| chore: add OpenArena owner claim verification file | 6 months ago |
| chore(release): 3.4.1 Bump version across all sources (version.py, pyproject.toml, both Claude plugin manifests, Codex plugin manifest, README badge, uv.lock) and promote the Unreleased changelog to 3.4.1. Shipping: Cursor IDE plugin + hooks, first-class Antigravity IDE support (with zero-config interpreter resolution), embeddinggemma bulk re-embed OOM fix, and backup-retention pruning. Also rebuilds the CHANGELOG compare-link block, which had been left at v3.2.0: adds the full 3.3.0-3.4.1 chain plus the previously undocumented 3.4.0, and points Unreleased at v3.4.1...HEAD. Every version header now resolves to a compare link. | 4 months ago |
| chore(release): 3.4.1 Bump version across all sources (version.py, pyproject.toml, both Claude plugin manifests, Codex plugin manifest, README badge, uv.lock) and promote the Unreleased changelog to 3.4.1. Shipping: Cursor IDE plugin + hooks, first-class Antigravity IDE support (with zero-config interpreter resolution), embeddinggemma bulk re-embed OOM fix, and backup-retention pruning. Also rebuilds the CHANGELOG compare-link block, which had been left at v3.2.0: adds the full 3.3.0-3.4.1 chain plus the previously undocumented 3.4.0, and points Unreleased at v3.4.1...HEAD. Every version header now resolves to a compare link. | 4 months ago |