plur

v0.24.0
io.github.plur-ai/plur Checked 3 hours ago Published 19 hours ago

Open, 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…

ParameterTypeDescription
query *stringSearch query to find relevant engrams
budgetobjectBudget constraints for sub-agents. Hybrid mode only — ignored when mode:"keyword".
caller_session_idstringSession ID of calling agent for budget enforcement. Hybrid mode only — ignored when mode:"keyword".
domainstringFilter by domain prefix
include_episodesbooleanIf true, include linked episode summaries for each engram (SP2 episodic anchoring). Hybrid mode only — ignored when mode:"keyword".
limitnumberMax results to return (default 20)
modestringSearch 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…
scopestringFilter by scope (also includes global)
session_idstringSession 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.

ParameterTypeDescription
idstringEngram ID (single mode)
scopestringStore 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.
signalstringFeedback signal (single mode)
signalsarrayBatch feedback signals

plur_forget

Retire an engram by ID or search term — marks it as no longer active without deleting history

ParameterTypeDescription
idstringExact engram ID to retire
reasonstringWhy this is being retired. Recorded in the history log and on the engram. Say what changed, not just that something did.
scopestringWhich 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…
searchstringSearch term to find engram to retire

plur_packs_uninstall

Uninstall an engram pack by name — removes the pack and all its engrams

ParameterTypeDescription
name *stringPack 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.

ParameterTypeDescription
llm_api_key *stringAPI key for the LLM
llm_base_url *stringOpenAI-compatible API base URL
meta_engram_id *stringMETA- engram ID to validate
test_domain *stringDomain to test against (e.g. medicine)
llm_modelstringModel 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.

ParameterTypeDescription
check_updatesbooleanIf 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_afterstringISO-8601 date (YYYY-MM-DD). Only count engrams learned on or after this date.
domainstringOnly 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…

ParameterTypeDescription
daysnumberRestrict 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…

ParameterTypeDescription
rerank_evalbooleanIf 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…
retrybooleanIf 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.

ParameterTypeDescription
task *stringWhat you are working on (triggers engram injection)
default_scopestringDefault 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…
tagsarrayTags 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…

ParameterTypeDescription
engram_suggestions *arrayLearnings 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 *stringWhat happened in this session (1-3 sentences)
session_idstringSession 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.

ParameterTypeDescription
actionstringLifecycle 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_sizenumberPairs judged per LLM call in scan mode (default: 5). Set to 1 for sequential single-pair judging.
domainstringFilter by domain prefix
idstringTension record id (T-YYYY-MMDD-NNN) for action mode
llm_api_keystringAPI key for the LLM (scan mode)
llm_base_urlstringOpenAI-compatible API base URL for scan mode (e.g. https://api.openai.com/v1)
llm_modelstringModel name for scan mode (default: gpt-4o-mini)
max_pairsnumberMaximum candidate pairs to evaluate in scan mode (default: 50)
min_confidencenumberMinimum confidence threshold for scan mode (0–1, default: 0.7)
persistbooleanPersist scan detections as tension records (default true). Set false for a dry-run scan that also ignores the recorded-pair suppress list.
scanbooleanRun 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…
scopestringFilter by scope
statusstringList-mode status filter. Default: unresolved records (detected + confirmed).
temporal_discountbooleanMultiply 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…
winnerstringEngram 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.

ParameterTypeDescription
engram_id *stringID of the procedural engram that failed
failure_context *stringDescription of what went wrong when following this procedure
llm_api_keystringAPI key for the LLM
llm_base_urlstringOpenAI-compatible API base URL for procedure evolution
llm_modelstringModel 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…

ParameterTypeDescription
action *stringWhich underlying plur_* tool to invoke, or "help" to list every action with its description and argument schema
argsobjectArguments for the chosen action, matching that tool's normal input schema