plur
v0.24.0Open, local-first engram memory for AI agents: read, correct, delete; shared over MCP.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
plur_learn
Create an engram — record a reusable learning, preference, or correction. A write is never suppressed by similarity: an exact restatement (same text after normalising case, whitespace and punctuation, same scope) REINFORCEs the existing engram (decision REINFORCE with existing_id; NOOP when learn.reinforce_exact is false), and anything merely SIMILAR is written and reported back in `dedup.near_duplicates` (closest existing engrams, their cosine scores, and a preview of each neighbour's own statement — read them before moving on; that is what they are for) so you can supersede or merge deli…
plur_recall
Search engrams by topic. Default mode is hybrid (BM25 + local embeddings via RRF) — set mode:"keyword" for BM25-only. Local search plus, when a configured enterprise store is part of the current project/work — or when the scope (or the default scope this session registered itself) is a personal user: scope and a remote store is configured with that same scope (exact match, case-insensitive; that rule adds only the matching store, though a store set to dial: always or a trusted project remote can still add others) — one live timeout-bounded recall per remote host merged in (a `remote_stor…
| Parameter | Type | Description |
|---|---|---|
query * | string | Search query to find relevant engrams |
budget | object | Budget constraints for sub-agents. Hybrid mode only — ignored when mode:"keyword". |
caller_session_id | string | Session ID of calling agent for budget enforcement. Hybrid mode only — ignored when mode:"keyword". |
domain | string | Filter by domain prefix |
include_episodes | boolean | If true, include linked episode summaries for each engram (SP2 episodic anchoring). Hybrid mode only — ignored when mode:"keyword". |
limit | number | Max results to return (default 20) |
mode | string | Search mode — hybrid (default): BM25 + embeddings via RRF; keyword: BM25-only (faster, embeddings-independent). budget, caller_session_id and include_episodes apply to hybrid mode only — in keywor… |
scope | string | Filter by scope (also includes global) |
session_id | string | Session this recall belongs to (from plur_session_start). Its default scope (incl. mid-session plur_session_scope changes) sets the remote dialing context when no explicit scope filter is passed. Opti… |
plur_feedback
Rate an engram's usefulness — trains injection relevance over time. Supports single or batch mode.
| Parameter | Type | Description |
|---|---|---|
id | string | Engram ID (single mode) |
scope | string | Store scope to target directly, e.g. "primary" for the local store or a remote scope like "group:plur/plur-ai/engineering". Required when the same engram ID exists in multiple stores. |
signal | string | Feedback signal (single mode) |
signals | array | Batch feedback signals |
plur_forget
Retire an engram by ID or search term — marks it as no longer active without deleting history
| Parameter | Type | Description |
|---|---|---|
id | string | Exact engram ID to retire |
reason | string | Why this is being retired. Recorded in the history log and on the engram. Say what changed, not just that something did. |
scope | string | Which store holds it. Ids are minted per store, so one id can name several unrelated engrams. Pass "primary" to stay on disk — the local primary store and any local secondary stores, never a remote… |
search | string | Search term to find engram to retire |
plur_packs_uninstall
Uninstall an engram pack by name — removes the pack and all its engrams
| Parameter | Type | Description |
|---|---|---|
name * | string | Pack name to uninstall (use plur_packs_list to see names) |
plur_validate_meta
Test a meta-engram template against engrams from a new domain — updates confidence and domain_coverage. A meta-engram that fails validation in a third domain is demoted (top → mop) or, below top level, RETIRED.
| Parameter | Type | Description |
|---|---|---|
llm_api_key * | string | API key for the LLM |
llm_base_url * | string | OpenAI-compatible API base URL |
meta_engram_id * | string | META- engram ID to validate |
test_domain * | string | Domain to test against (e.g. medicine) |
llm_model | string | Model name (default: gpt-4o-mini) |
plur_status
Return system health — running version, engram count, episode count, pack count, storage root. Optionally filter engram counts by domain prefix and/or creation date.
| Parameter | Type | Description |
|---|---|---|
check_updates | boolean | If true, ask npm (through the user's npm registry settings) whether a newer PLUR is published and report it as update_available. When the registry cannot be reached, update_check names it and why, and… |
created_after | string | ISO-8601 date (YYYY-MM-DD). Only count engrams learned on or after this date. |
domain | string | Only count engrams whose domain starts with this prefix (e.g. "meridian") |
plur_receipt
Counted report of what your memory retrieved for you: engrams stored, how many were retrieved and how often, which are most relied on, and how much of the store is dormant. Local and read-only; every figure is directly counted, never estimated. IMPORTANT when relaying to the user: `activation_rate` is COVERAGE over the logging window (≈ how much of the store was surfaced), NOT a quality or effectiveness score — it is naturally low and FALLS as more engrams are added, so never present it as "memory is N% effective". A `summary` line is included; prefer relaying that. NOT plur_provenance: th…
| Parameter | Type | Description |
|---|---|---|
days | number | Restrict to the last N days (integer). Omit for all recorded history. |
plur_doctor
Diagnose the PLUR ENGINE (embedder, hybrid search, remote-store auth) — not hook/MCP wiring. Reports whether the embedding model loaded, whether hybrid search is fully operational, and — for any configured enterprise/remote store — whether its auth is valid (probes /api/v1/me and decodes token expiry), so a dead or soon-to-expire token surfaces instead of hiding behind a "healthy" report. Run this first when recall feels off or team engrams stop syncing. Does NOT check .cursor/mcp.json, .cursor/hooks.json, or the live MCP tool count — for that, run the `plur doctor` CLI command in a te…
| Parameter | Type | Description |
|---|---|---|
rerank_eval | boolean | If true and a reranker is configured (PLUR_RERANKER), run the per-store self-eval gate: probes synthesized from this store's own engrams compare rerank-on vs RRF-only ordering. Verdict is cached in th… |
retry | boolean | If true, reset cached embedder failure state and retry the model load before reporting |
plur_session_start
Start a session — inject relevant engrams for your task. Call at the beginning of every session.
| Parameter | Type | Description |
|---|---|---|
task * | string | What you are working on (triggers engram injection) |
default_scope | string | Default scope for plur_learn calls this session when no explicit scope is provided. Only set this if you want ALL engrams to route to a specific store. Usually, leave unset and pass scope per-engram b… |
tags | array | Tags to filter injected engrams |
plur_session_end
End a session. BEFORE calling this tool, review the conversation and extract learnings: 1. Corrections the user made ("no, use X not Y") → type: behavioral 2. Preferences stated ("always X", "never Y") → type: behavioral 3. Codebase patterns discovered (naming, structure, conventions) → type: architectural 4. Technical facts learned (API quirks, config, gotchas) → type: procedural 5. Terminology defined or clarified → type: terminological Include at least one engram_suggestion if ANYTHING was learned. An empty suggestions array means nothing worth remembering happened — this shou…
| Parameter | Type | Description |
|---|---|---|
engram_suggestions * | array | Learnings from this session. Preferred shape is {statement: "...", type?: "..."}; bare strings are also accepted and treated as the statement. If the whole parameter arrives as one plain string it is… |
summary * | string | What happened in this session (1-3 sentences) |
session_id | string | Session ID from plur_session_start |
plur_tensions
Tension lifecycle. Default: list persisted tension records (unresolved first). scan:true runs an LLM contradiction scan, persists NEW detections as records, and skips already-recorded pairs. Lifecycle actions: action:"confirm" (real conflict), action:"dismiss" (false positive — pair suppressed from future scans), action:"resolve" + winner:<engram_id> (loser engram retired). Scan requires OPENAI_API_KEY or OPENROUTER_API_KEY env var, or explicit llm_base_url + llm_api_key args.
| Parameter | Type | Description |
|---|---|---|
action | string | Lifecycle action on a persisted tension record (requires id). confirm: mark real. dismiss: false positive, suppress the pair. resolve: pick winner (requires winner), the losing engram is retired. |
batch_size | number | Pairs judged per LLM call in scan mode (default: 5). Set to 1 for sequential single-pair judging. |
domain | string | Filter by domain prefix |
id | string | Tension record id (T-YYYY-MMDD-NNN) for action mode |
llm_api_key | string | API key for the LLM (scan mode) |
llm_base_url | string | OpenAI-compatible API base URL for scan mode (e.g. https://api.openai.com/v1) |
llm_model | string | Model name for scan mode (default: gpt-4o-mini) |
max_pairs | number | Maximum candidate pairs to evaluate in scan mode (default: 50) |
min_confidence | number | Minimum confidence threshold for scan mode (0–1, default: 0.7) |
persist | boolean | Persist scan detections as tension records (default true). Set false for a dry-run scan that also ignores the recorded-pair suppress list. |
scan | boolean | Run an active contradiction scan using an LLM judge. New detections are persisted as tension records; recorded pairs (any status) are skipped. Requires OPENAI_API_KEY or OPENROUTER_API_KEY env var, or… |
scope | string | Filter by scope |
status | string | List-mode status filter. Default: unresolved records (detected + confirmed). |
temporal_discount | boolean | Multiply judge confidence by a days-apart ladder (same day x1.0 ... 15+ days x0.3) in scan mode. Overrides the config default (tensions.temporal_discount, off by default). The judge prompt already car… |
winner | string | Engram id that wins the tension (action:"resolve" only). The other engram is retired. |
plur_tensions_purge
Purge all conflict relations from local engrams — removes accumulated false positives from the legacy tension-detection system
plur_report_failure
Report a failure for a procedural engram — triggers procedure evolution via LLM if configured. Only works on procedural engrams. Max 3 revisions per procedure per 24h.
| Parameter | Type | Description |
|---|---|---|
engram_id * | string | ID of the procedural engram that failed |
failure_context * | string | Description of what went wrong when following this procedure |
llm_api_key | string | API key for the LLM |
llm_base_url | string | OpenAI-compatible API base URL for procedure evolution |
llm_model | string | Model name (default: gpt-4o-mini) |
plur_admin
Gateway to the 30 PLUR operations that are not top-level tools under the current profile (collapsed into one dispatch tool so Cursor's ~40-tool-per-workspace limit is not exhausted by PLUR alone). A plur_* name missing from tools/list means it moved HERE — not that the MCP is unavailable. Calling convention: { action: "<tool name>", args: { ...that tool's normal arguments } } — same arguments, same validation, same result as a direct call. Example: { action: "plur_recall_hybrid", args: { query: "deploy checklist" } }. Send { action: "help" } for every action's one-line description and argu…
| Parameter | Type | Description |
|---|---|---|
action * | string | Which underlying plur_* tool to invoke, or "help" to list every action with its description and argument schema |
args | object | Arguments for the chosen action, matching that tool's normal input schema |