Repository navigation
v0.15.0
Scopes go live + leaner MCP.
- lean default — 74% fewer tokens
- scope routing + plur scopes CLI
- plur receipt — memory receipt
- scope-aware sync + security fixes
- MCP SDK v2 (split packages)
- Windows path + ID uniqueness fix
- two P0 security fixes: credential redaction + receipt snippet sanitization
Changed
- Lean tool profile is now the default (#625, #694): the MCP server exposes 12 tools — 11 core + the
plur_admindispatch (down from 40) to every consumer — Claude Code, Cursor, Windsurf, OpenClaw, Hermes, and nightshift agents alike. Per-turn tool-schema overhead drops ~74% (~2K vs ~9K tokens). All 40 tools remain reachable viaplur_admin { action: "<tool>", args: {...} }. Restore the full surface withPLUR_TOOL_PROFILE=full. Consumers that depend on all 40 tools being available by default must either call viaplur_adminor setPLUR_TOOL_PROFILE=full. - MCP SDK v2 migration (#638):
@plur-ai/mcpnow uses the MCP SDK v2 split packages (@modelcontextprotocol/server,@modelcontextprotocol/client,@modelcontextprotocol/core@ 2.0.0-beta.4), replacing the monolithic@modelcontextprotocol/sdk@^1.12.0. Prepares for the MCP spec stable release (2026-07-28). The public API of@plur-ai/mcpis unchanged; 226 tests pass.
Added
plur-langchainadapter (#529): new Python package providing a LangChainBaseMemory+BaseChatMessageHistoryadapter. Install withpip install plur-langchain. Chains and LCEL pipelines now get persistent engram memory with zero extra wiring.plur scopesCLI — per-scope opt-out for authorized-but-unregistered scopes (#647, #656):plur scopeslists shared scopes from configured remotes (with each scope's description);plur scopes register <scope>adds one;plur scopes dismiss <scope>opts out permanently (persisted to~/.plur/config.yaml);plur scopes --reofferclears all dismissals. Dismissed scopes are excluded fromplur scopes listand from the MCP session-start hint. The session-start nudge is now a single quiet line pointing atplur scopes(replacing the all-or-nothingregister:truemodel and the verbose agent-facing guide text users never saw).plur receipt+plur_receiptMCP tool — the memory receipt (#660): a counted, local, read-only report of what your memory actually retrieved for you — how many times a memory was put in front of the model, how many distinct engrams it drew on, and which are most relied on (with their statement text). Every figure is directly counted — no estimate, no counterfactual, no dollar or token-savings figure (on a subscription your marginal token cost is zero). Scoped to local memory (primary store + installed packs) so the number is identical from the cold CLI and the warm MCP server; retrievals of team-store engrams are reported separately. Nothing leaves the machine.co_injectionhistory events now recordtokens_usedand the callingsource(#660):session_start/inject/hooksources are tagged at every injection call site. Hook retrievals now also carry the session id, so the receipt's (engram, session) unit is well-defined. Events written before this change remain fully readable.- Missing-domain nudge at capture time (#671, #677): a write without a
domaincannot auto-route (the domain-prefix channel is the only signal that reliably clears the auto-route threshold), soplur_learn,plur_learn_batch, andplur learnnow return an advisorydomain_hintwhen a domain-less, scope-less write lands unrouted while covers-declaring scopes are registered. Silent on personal installs with no covers-bearing scopes; never blocks a write. - Scope-filtered push for shared sync remotes (#640, #678): new
sync.remote_typeconfig (personal|shared).personal(default) keeps the historical mirror-everything behavior;sharedpushes ONLY shared-family-scope, non-private engrams — personal-family (local/global/user:*/agent:*) andvisibility: privateengrams never reach a team remote, by construction. Also fixes a latent leak: the merge-conflict resolution commit previously stagedengrams.yamlverbatim, soscope:localengrams could ride into the remote on that path. Known limit: the filter coversengrams.yaml; the sibling store files (episodes.yaml/candidates.yaml/tensions.yaml) still sync verbatim — sibling-file strip tracked in #686. min_confidencefloor wired into the suggestion surface (#670, #675, #683):suggestScopeaccepts{ minConfidence }, a newscope_routing.min_confidenceconfig key floors the advisory candidate list, andplur_suggest_scopeapplies a display default of 0.15 so lone-keyword noise (≈0.12) no longer surfaces to agents (passmin_confidence: 0for the unfiltered list). The auto-route gate (match_threshold) is unchanged.
Fixed
plur_recall_hybridfails withENOENT: mkdir ''on Windows (#641, #642):saveCacheextracted the directory withcachePath.lastIndexOf('/'), which returns -1 on Windows backslash paths —substring(0, -1)yields'', andmkdirSync('')throws ENOENT. Replaced withpath.dirname()(cross-platform) and added a guard against empty dirname.plur_recall/plur_learn/plur_doctorwere unaffected; only the hybrid path (plur_recall_hybrid) hitsaveCache. Regression tests added (4 cases, offline mock embedder).- Dependency security overrides (#632): tightened transitive dependency overrides addressing 30 Dependabot alerts across
openclaw,undici,linkify-it, andjs-yaml. generateInjectionId/generateEventIdcross-process uniqueness (#596): IDs are now unique across processes started within the same millisecond. ReplacedDate.now() + 4-char random suffixwith a per-process counter — eliminates the ~0.07% birthday-collision chance per 50-call batch and removes the intermittentexpected 49 to be 50flake in co-injection tests.RemoteStore.load()— no cache poisoning on mid-pagination error (#550): a network or server error mid-way through a paginated remote load no longer overwrites the local cache with partial data. The local cache is only updated after a complete, successful load.- PID salt for cross-process ID uniqueness (#600): ID generation now includes the process ID as a salt, preventing collisions between sibling processes (e.g. parallel nightshift agents) that start in the same millisecond.
- Security:
plur status --jsonprinted live enterprise bearer tokens (#660):StatusResultembedded the fullPlurConfig, so--jsonpiped thestores[].tokenvalues (live credentials for configured enterprise servers) to stdout — into CI logs, pasted issues, and agent transcripts. All CLI JSON output is now credential-redacted at the output boundary, so every present and future JSON command inherits the protection. Redaction also masks credentials embedded in string values (URL userinfo, e.g.https://user:pass@host), which a key-based denylist cannot reach. - Security: memory receipt snippet sanitized against hostile engram statements (#660): statement text can come from third-party installed packs; the "most relied on" snippet (printed to the terminal and returned to the calling agent) now strips ANSI/terminal escapes, C0/C1/DEL controls, Unicode line/paragraph separators, and bidi (Trojan-Source) reordering + zero-width spoofing characters before rendering. Truncation is grapheme-safe.
- MCP Registry publish now fires on every release (#695): the publish workflow ran on
release: published, which GitHub suppresses when the release is created by a GITHUB_TOKEN actor — v0.14.0 shipped to npm while registry.modelcontextprotocol.io stayed at 0.13.0 (the registry feeds mcp.so and PulseMCP).release.shnow triggers the workflow deterministically aftergh release create(Step 7b); the workflow isworkflow_dispatch-only so the suppressed/double-run event path is gone. suggestScopesilently inert for remote scopes (#668, #674):discoverRemoteScopes()fetchedscope_metadata(includingcovers[]) fromGET /api/v1/mebut never wrote it to the local config store entries thatlistScopeMetadata()andsuggestScope()read — so scope routing returned[]for every remote scope regardless of query relevance. NewpersistScopeMetadata()call at every/mepull site (session_start, registerDiscoveredScopes, registerScope) fixes this.- Scope metadata trust hardening + registry hygiene (#685): nine fixes from the 2026-07-24 scope audit. HIGH: a hostile/compromised enterprise
/mecould servesensitivity:{allow:['secrets','infra']}and — becausepersistScopeMetadata()persisted it verbatim and the leak guard checksallowbeforeforbid— silently disarm the write-time leak guard at the next session_start. Remote sensitivity now only TIGHTENS: remoteallowis never persisted,forbidis sanitized to the known categories, and a hand-edited localallowremains honored. Also: the metadata change-detector now converges (no more config.yaml rewrite + mtime churn on every session_start);plur_scopes_discover register:truerespects dismissed scopes (per-scoperegisterScopestays the override); session_start guidance describes post-#674 auto-routing honestly; overwriting hand-set local covers/description warns; endpoint URL identity foldshttps://x.com/https://x.com//https://x.com/ssespellings (newnormalizeEndpointUrl); config.yaml persists run underwithLock; scope-family prefixes and dismissed-scope matching are case-insensitive; the unscoped write path reloads a changed config before routing.