About Lore
Lore is an MCP server published by makenotion in the Productivity category: persistent, shared AI memory backed by Notion for MCP-compatible assistants. Conduid read 9 tools from its source: lore-context, lore-decision, lore-fact, lore-memory, lore-pinned, lore-procedure and 3 more. No package is published for it, so it installs from a source checkout.
The repository has 201 stars and 18 forks, is licensed MIT, and its last commit was on 8 Sep 2026. The latest release is v1.0.0 (4 Aug 2026): Lore is now publicly available on npm as @notionhq/lore. It follows v0.19.1 (19 Jun 2026), and the 5 most recent releases go back to v0.18.0 (5 Jun 2026). It passes all 5 static checks Conduid ran on the repository. Its topics include productivity.
Install
git clone https://github.com/makenotion/loreTools (9)
lore-contextVault status, session priming, and project digest in one polymorphic tool. Action-dispatched:
- `action: 'status'` — vault page id, topology health when configured, database counts, active project, configured projects, background hook failures, a task summary line (active / overdue / stale / in-progress / blocked, plus a closure-rate line on vaults with the `Done At` column), and a proposed-memory inbox count line when proposed learnings exist (excludes proposed-state decisions, which surface via `lore-decision` instead).
- `action: 'wake-up'` — load digest + ranked memories when `userQuery` is set + recent memories + tasks + active facts + decisions requiring attention. Title-tier rows by default; `expand: true` for bodies. Pass `userQuery` after pivots; it suppresses pinned/upstream context unless `governanceContext: true`. Use `mode: 'task-only'` for one-shot retrieval. Pass `debug: true` for coverage counters.
- `action: 'digest'` — gather raw activity data for synthesis into a digest memory. Save the synthesis via `lore-memory` action='save' with source='digest'.lore-decisionRecord, query, or supersede architectural decisions. Action-dispatched:
- `action: 'create'` — record a decision (rationale, alternatives, consequences, review date). Auto-creates `decided_by` facts for each entry in `affects` and `supersedes_decision` facts when `supersedesIds` is set. Use this instead of `lore-memory action='save'` for decisions.
- `action: 'list'` — index-tier listing (no body fetch). Cursor-paginated.
- `action: 'get'` — load full rationale + metadata + relations for one decision.
- `action: 'context'` — graph walk: every active decision governing an entity, resolved through any supersession chain.
- `action: 'supersede'` — atomically mark `oldDecisionId` superseded by `newDecisionId` and create the `supersedes_decision` fact.
- `action: 'review'` — mark reviewed; set or clear the review-by date (default +90 days).| Parameter | Type | Description |
|---|---|---|
| action * | string | Operation: create, list, get (one), context (governing decisions for entity), supersede, review. |
| affects | array | (action='create') Entity names affected. Each auto-creates a `decided_by` fact. |
| agent | string | (action='create') Name of the AI agent recording this decision. |
| alternatives | string | (action='create') Alternatives considered (≤${RICH_TEXT_PROPERTY_MAX_LEN} chars). |
| author | string | (action='create') Engineer display name. Defaults to LORE_USER_NAME env or `users.me`. |
| consequences | string | (action='create') Consequences accepted (≤${RICH_TEXT_PROPERTY_MAX_LEN} chars). |
| decision | string | (action='create') Required. One-line decision statement (becomes the title). |
| decisionId | string | Required for action='get' and action='review'. The decision's page ID. |
| entity | string | (action='context') Required. Entity to look up. Resolves through canonical entity registry (aliases + case-insensitive name) when available; matches `decided_by` facts whose Subject (preferred, via canonical relation) or Object text contains the input. |
| forceNewTopic | boolean | (action='create') Bypass the normalized-equivalent + trigram-similar topic-name probe and create a fresh row. |
| includeSynopsis | boolean | (action='list') Render each decision's synopsis line (when set) between the title heading and the status/metadata line. Defaults true. Pass false to restore byte-identical pre-DEFERRED-01 output for callers piping the response into another formatter. |
| limit | number | (list | context) Max results. Defaults: list 20, context 10. |
| newDecisionId | string | (action='supersede') Required. ID of the new decision. |
| oldDecisionId | string | (action='supersede') Required. ID of the decision being replaced. |
| projectName | string | (create | list | context) Project name. Defaults to auto-detected for create. |
| projectNames | array | (action='create') Multiple project names for cross-project decisions. |
| rationale | string | (action='create') Required. Prose explaining the reasoning (page body). |
| session | string | (action='create') Session ID to group related records. |
| startCursor | string | (action='list') Opaque pagination cursor. |
| status | string | (action='create') Lifecycle state (default: accepted). (action='list') Filter. |
| supersedesIds | array | (action='create') Decision IDs this decision replaces. |
| synopsis | string | (action='create') 1–2 sentence synopsis of the governing rule — distinct from `decision` (the title) and `rationale` (the body). Surfaces under the title on recall/search/wake-up listings. Up to ${SYNOPSIS_MAX} chars. |
| topicName | string | (action='create') Topic name within the project (auto-created if missing). Variants that differ only by case, plural-`s`, `&` vs `and`, or punctuation collapse onto the existing canonical row. |
lore-factCreate/invalidate facts; set or clear fact review dates. Action-dispatched:
- `action: 'create'` — add a Subject —predicate→ Object triple. Auto-dedupes against existing equivalent triples and merges metadata onto the survivor.
- `action: 'invalidate'` — mark a fact as no longer true (sets `Valid Until` and `Invalidated At` to today). Preserved for history. Pass `sourceMemoryId` to record which memory prompted the invalidation in the `Invalidated By` relation.
- `action: 'extend'` — set or clear a fact's review-by date.
Every created fact MUST link back to a supporting memory via `sourceMemoryId` so `lore-query action='ask'` can retrace the reasoning. Pass a live Memories row ID directly, or pass `agent`+`session` matching an earlier `lore-memory action='save'` / `lore-decision action='create'` call in the same process and `sourceMemoryId` auto-links. If neither path produces a compatible Source memory, the create call is rejected before writing.
Decision predicates (`decided_by`, `supersedes_decision`, `informs`) and the auto-emitted `mentions` predicate are internal-only and not accepted here — `decided_by` / `supersedes_decision` / `informs` are auto-created by the decision tool family; `mentions` is auto-emitted by `lore-memory action='save'`. Use richer relationship predicates (`uses`, `depends_on`, etc.) for agent-curated edges.| Parameter | Type | Description |
|---|---|---|
| action * | string | Operation: create, invalidate, or extend (set/clear review date). |
| agent | string | (action='create') Agent name. Part of the session composite key. |
| confidence | string | (action='create') Confidence (default: certain). |
| factId | string | Required for action='invalidate' and action='extend'. The fact's page ID. |
| object | string | (action='create') The related entity or value. |
| predicate | string | (action='create') The relationship type. |
| projectName | string | (action='create') Scope to a project. |
| projectNames | array | (action='create') Multiple project names for cross-project facts. |
| session | string | (action='create') Session ID. With `agent`, used to auto-link `sourceMemoryId`. |
| sourceMemoryId | string | (action='create') ID of the memory that supports this fact. Required unless agent+session auto-links a compatible source memory. (action='invalidate') Optional ID of the memory that prompted the invalidation; recorded in the fact's `Invalidated By` relation. |
| subject | string | (action='create') The entity this fact is about. |
lore-memoryMemory operations. Action-dispatched:
- `action: 'search'` — search memories by contains, semantic, or hybrid retrieval.
- `action: 'save'` — create a memory; duplicate-probes in parallel. With `topicKey`, upserts by key + project-set and appends a revision. With `subject` + `replace: true`, writes current state under `state/<slug>`: one wake-up row, revision history intact.
- `action: 'update'` — mutate an existing memory's title, body, tags, kind, status, or relations. Any field omitted is left untouched. Rejects with `MemoryReadOnlyError` on read-only pinned blocks; use `lore-pinned action='update'` with `force: true` to override.
- `action: 'archive'` — soft-delete a memory by ID (Notion archive flag).
- `action: 'expand'` — batch-fetch full markdown bodies for up to 20 IDs or recall/search result handles.
- `action: 'history'` — read the full revision-chain body for a subject state memory.
- `action: 'suggest-topic-key'` — pure heuristic over (title, kind) → kebab-case key. Pass the result to `action: 'save'` as `topicKey`. Note/task/state return null.
- `action: 'compare'` — record a verdict on a memory pair (`conflicts_with` | `supersedes` | `scoped` | `related` | `compatible` | `not_conflict`). Asymmetric verdicts require `affectedMemoryId`. Idempotent on `(pair, verdict, affected)`.
- `action: 'approve'` / `'reject'` — inbox-review a `Status: proposed` memory (#281); flips Status and appends a Reviewed audit block.
- `action: 'promote'` — copy to a `promotionTargets` entry with origin audit; review-required targets create `Status: proposed`; reruns reuse `Promotion Source Key`.
Use `lore-pinned` for pinned context blocks.
For architectural decisions prefer `lore-decision` with `action: 'create'` — it captures structured rationale and supersession chains.
`tags` is a closed vocabulary; for free-form labels (PR numbers, file paths, IDs) use `keywords`.| Parameter | Type | Description |
|---|---|---|
| action * | string | Operation: search | save | update | archive | expand | history | suggest-topic-key | compare | approve | reject | promote. |
| affectedMemoryId | string | (action='compare') Required for asymmetric verdicts (`conflicts_with`, `supersedes`); names the loser. Must equal memoryIdA or memoryIdB. |
| affectsIds | array | (action='update') Replace the Affects relation with these memory IDs. |
| agent | string | (action='save') Name of the AI agent saving this memory. |
| alternatives | string | (action='update') Alternatives text, up to ${RICH_TEXT_PROPERTY_MAX_LEN} chars (replaces existing). |
| author | string | (action='save') Engineer display name. Defaults to LORE_USER_NAME env or `users.me` on the active token. |
| consequences | string | (action='update') Consequences text, up to ${RICH_TEXT_PROPERTY_MAX_LEN} chars (replaces existing). |
| content | string | Required for action='save'; new body (markdown) for action='update'. |
| dryRun | boolean | (action='promote') Preview the audit block + resolved status without writing to the target vault. Mirrors `lore promote --dry-run`. Mis-resolved targets / missing identity / same-vault rejection all surface before the source read so a misconfigured call cannot burn target-vault quota. |
| expiresOn | any | (save | update) Event expiry marker like pr-closed:owner/repo#123 or task-closed:<id>; debt scan checks closed events. |
| forceNewTopic | boolean | (save | update) Force a fresh topic row. Use only after reviewing similar-name errors. |
| ids | array | (action='expand') Memory IDs or recall/search result handles (1-${EXPAND_MAX_IDS}). Accepts UUIDs, Notion URL hex ids, or rs_* handles. |
| includeContent | boolean | (action='search') Include bodies. |
| judgeConfidence | number | (action='compare') Optional 0..1 self-reported confidence. Below 0.7 the agent SHOULD ask the user first. |
| kind | string | (save | update | suggest-topic-key) Memory kind. Default note on save; use lore-decision/lore-task for those types. Operational rows should expire. |
| limit | number | (action='search') Max results. |
| memoryId | string | Required for action='update'/'archive'/'approve'/'reject'. The Notion page ID of the memory. |
| memoryIdA | string | (action='compare') First memory ID. A/B are unordered labels; direction comes from `affectedMemoryId`. |
| memoryIdB | string | (action='compare') Second memory ID. |
| mode | string | (action='search') Mode. |
| projectName | string | (save | update | history) Project name. Defaults to auto-detected project from cwd. |
| projectNames | array | (save | update | history) Multiple project names for cross-project memories. |
| promptVersion | string | (action='compare') Optional prompt version (default: current `CONFLICT_JUDGE_PROMPT_VERSION`). |
| query | string | (action='search') Search query. |
| reason | string | (action='compare') ≤200 chars; recorded in Compare Notes. (action='approve'/'reject') Optional rationale ≤500 chars; recorded in the Reviewed audit block. |
| replace | boolean | (save) Required with `subject`; keeps one wake-up row while preserving revisions. |
| reviewer | string | (action='approve'/'reject') Optional reviewer name. Defaults to the engineer identity resolver (LORE_USER_NAME → users.me). |
| session | string | (action='save') Session ID to group related memories. |
| source | string | (action='save') How this memory was captured: conversation, autosave_learning, file, manual, or digest. Default: conversation. |
| status | string | (save | update) Lifecycle state (default: informational on save). |
| strategy | string | (action='search') Strategy. |
| subject | string | (save replace=true | history) Canonical state subject; maps to `state/<slug>` and defaults kind to `state`. |
| supersedesIds | array | (action='update') Replace the Supersedes relation with these decision IDs. |
| synopsis | string | (save | update) 1-2 sentence synopsis surfaced under the title on recall/search/wake-up listings (≤${synopsisMaxChars} chars). On update, omit to keep, pass empty string to clear. |
| targetName | string | (action='promote') Name of the promotion target as configured in `.lore.yaml`'s `promotionTargets`. |
| title | string | Required for action='save' and action='suggest-topic-key'; new title for update. Short. |
| topicKey | string | Kebab-case path like 'decision/jwt-auth'. Save upserts by key + project-set and requires kind decision/runbook/incident/postmortem/policy. State uses `subject` + `replace:true`. Update re-keys and cannot combine with `kind`. |
| topicName | string | (save | update) Topic name. Auto-created on save; normalized variants collapse onto the canonical row. |
| verdict | string | (action='compare') Verdict on the pair. See docs/memory-workflows.md#conflict-verdicts. |
lore-pinnedManage pinned context blocks (issue #282) — always-visible memory rendered in wake-up before relevance-ranked sections. Audience-targeted via comma-separated tokens matched against the reader's agent/role/userId; `all` matches every reader. Read-only blocks reject `lore-memory action='update'` unless overridden via `force: true` here. `force: true` is a stop-sign visible in the audit trail, NOT an access-control gate — Lore uses one operator bearer token, so any MCP caller can flip it; every forced write lands a `> Forced read-only update` audit line on the memory body. Action-dispatched:
- `action: 'pin'` — flip an existing memory into a pinned block; sets priority / audience / mutability.
- `action: 'unpin'` — flip a pinned block back to a regular memory.
- `action: 'update'` — change priority / audience / mutability. Pass `force: true` to override `Mutability: read-only`.
- `action: 'list'` — list active blocks for current project + audience (or vault-wide). Use `includeAllAudiences: true` to skip the audience filter — every block in scope surfaces regardless of audience tokens. Not an authorization boundary; the field is rendered metadata for human triage.| Parameter | Type | Description |
|---|---|---|
| action * | string | Operation: pin | unpin | update | list. |
| audience | string | (pin | update | list) Comma-separated audience tokens; `all` matches every reader. On list, filters to blocks whose audience matches this token (otherwise applies the reader's scope context). Capped at ${RICH_TEXT_PROPERTY_MAX_LEN} chars to match the underlying rich_text column. |
| force | boolean | (update) Bypass `Mutability: read-only`. Records a `> Forced read-only update` audit line on the memory body. NOT an access-control gate — any MCP caller can flip this flag; the audit line is the contract. |
| includeAllAudiences | boolean | (list) Skip the audience filter — show every block in scope regardless of audience tokens. Not an authorization boundary (audience is render metadata for human triage); use this when auditing across audiences. |
| limit | number | (list) Max blocks returned (default ${DEFAULT_PINNED_BLOCK_LIMIT}, cap 100). |
| memoryId | string | Required for pin/unpin/update. The Notion page ID of the memory to operate on. |
| mutability | string | (pin | update) `mutable` (default) or `read-only`. Read-only pins reject `lore-memory action='update'`; override on this tool via `force: true`. |
| priority | number | (pin | update) Sort priority for wake-up's Pinned Context section. Higher first; default 0. Range [${PINNED_PRIORITY_MIN}, ${PINNED_PRIORITY_MAX}]. Pass null on update to clear. |
| projectName | string | (list) Project to filter pinned blocks by. Defaults to auto-detected project. Vault-wide pins surface in every project. |
| reason | string | (pin | unpin | update) Optional rationale ≤${PIN_AUDIT_REASON_MAX} chars. Recorded as an audit line on the memory body. ASCII control characters and embedded newlines are scrubbed before interpolation so the rationale cannot forge an adjacent audit line. |
lore-procedurePromote resolved episodes into reusable, reviewed procedural memories. Action-dispatched:
- `action: 'scan-candidates'` — read-only mining over resolved incidents / postmortems / runbooks plus closed tasks. Returns ranked candidate clusters of repeated solved work.
- `action: 'propose'` — create a `Kind: procedure, Status: proposed` memory with structured activation conditions and steps. Validates every `sourceMemoryIds` entry resolves to a live source memory in scope; idempotent on `(topicKey, project-set)`. Supporting source ids render under the procedure body's `## Sources` section; `supersedesIds` (predecessor procedures / runbooks) write the `Supersedes` self-relation. Approval lives on the existing inbox surface (`lore-memory action='approve'`).
- `action: 'deprecate'` — flip an accepted procedure to `Status: deprecated` (history preserved). Rejects `proposed` rows (those leave via `lore-memory action='reject'`). Supersession workflow: pass `supersedesIds` at propose time, then run `lore-procedure action='deprecate'` on each predecessor after the replacement is approved.
Procedures are reviewed governance memory. The propose path never auto-promotes — raw session summaries do not become fleet-wide procedures.| Parameter | Type | Description |
|---|---|---|
| action * | string | Operation: scan-candidates | propose | deprecate. |
| activationConditions | array | (action='propose') When this procedure applies. Rendered as bullets under `## Activation Conditions`. Tokens are also replicated to `Keywords` for hybrid-search retrieval. |
| entity | string | (action='propose') Activation entity (PR id, file path, system name). Used to derive default topic key and seed activation tokens. Empty string allowed. |
| failureModes | array | (action='propose') Known paths that did not work. Rendered as bullets under `## Known Failure Modes`. Optional. |
| limit | number | (action='scan-candidates') Maximum candidates to return. Default ${DEFAULT_PROCEDURE_CANDIDATE_LIMIT}, capped at ${MAX_PROCEDURE_CANDIDATE_LIMIT}. |
| memoryId | string | (action='deprecate') Notion page id (32-char hex or dashed UUID) of the procedure to deprecate. |
| minScore | number | (action='scan-candidates') Minimum candidate score to surface (default 0). |
| notes | string | (action='propose') Free-form additional context. Rendered verbatim under `## Notes`. Optional. |
| projectName | string | (action='scan-candidates'/'propose') Optional explicit project. Defaults to the cwd-resolved project. |
| reason | string | (action='deprecate') Optional rationale; appended as a `## Deprecated` block to the procedure body. |
| sourceMemoryIds | array | (action='propose') Required. Notion page ids (32-char hex or dashed UUID) of supporting memories (closed tasks, postmortems, incidents, runbooks, notes) the procedure distills. Must include at least ${PROCEDURE_MIN_SOURCES} entries — same threshold as the scan, so the propose path cannot bypass the auditable evidence trail. Each id is validated to resolve to a live memory in scope before any write. Rendered under `## Sources`. |
| steps | array | (action='propose') Required. Ordered resolution steps; each step must be non-blank after trim. Rendered as numbered list under `## Steps`. Empty / whitespace-only steps are rejected — a stepless procedure is structurally a note. |
| supersedesIds | array | (action='propose') Notion page ids (32-char hex or dashed UUID) of memories this procedure supersedes (e.g. an older runbook). Recorded on the `Supersedes` self-relation. After approval, run `lore-procedure action='deprecate'` on each predecessor — Notion does not auto-deprecate. |
| title | string | (action='propose') Required. Short title for the procedure (1-line summary). |
| topicKey | string | (action='propose') Override default topic key. Default: `procedure/<normalized-entity>`. |
lore-projectList projects or get details for one project. Action-dispatched:
- `action: 'list'` — list active projects by default (optionally filtered by `status`; use `archived` for archived-only or `any` to include archived with active).
- `action: 'get'` — get details for a project by `name`, including topics and recent activity.| Parameter | Type | Description |
|---|---|---|
| action * | string | Operation to perform. 'list' enumerates projects; 'get' loads details for one. |
| name | string | (action='get') Project name. Required when action='get'. |
| status | string | (action='list') Filter by status. Default: active; use 'archived' for archived-only or 'any' to include both active and archived. |
lore-queryVault retrieval — list memories, search memories, query the fact graph, or audit overdue items. **Call this BEFORE answering factual questions about stored conversation or recorded knowledge** — the vault is authoritative; abstain only after `action: 'search'` (and `action: 'ask'` when the question names an entity) return nothing. Action-dispatched:
- `action: 'recall'` — list recent memories with optional filters (server-side via `dataSources.query`). Title-tier rows return expand handles; `includeContent: true` fetches every body. Cursor-paginated.
- `action: 'search'` — memory search; `mode: contains | semantic | hybrid` (default `semantic`), `strategy: planned | direct` (default `planned`). `planned` splits semantic search into extracted query variants and rank-fuses candidates; `contains` remains a DS-scoped substring lookup. Title-tier rows return expand handles.
- `action: 'ask'` — query facts and tasks about an entity. Returns Governance / Structure / Tasks buckets capped at 5 each (raise via `limit`). Prepends a project framing block by default (`includeContext: false` to suppress). Pass `asOf: 'YYYY-MM-DD'` for a transaction-time as-of recall (what Lore knew at that date) or `includeHistory: true` to surface invalidated facts inline.
- `action: 'audit'` — list facts, decisions, and tasks past their review-by date.
For tracked work (open / blocked / done), use `lore-task action='list'` rather than `lore-query`.| Parameter | Type | Description |
|---|---|---|
| action * | string | Operation: recall (list recent), search (semantic), ask (entity facts), audit. |
| entity | string | (action='ask') Required: entity to query (subject or object). |
| explain | boolean | (action='search') Append a `## Score trace` footer with per-row branch, contains/semantic ranks, and RRF score. Useful for diagnosing why a row sorted where it did. |
| includeContent | boolean | (recall | search) Include each memory's markdown body (default false). One extra Notion round-trip per row. |
| includeContext | boolean | (action='ask') Prepend a project framing block (name, description, siblings, catch-all warning) above the grouped-display sections (default true). Pass `false` when the agent's system prompt already supplies framing, to save output tokens. |
| includeHistory | boolean | (action='ask') Include invalidated facts in the result (default false — only live facts surface). Useful for tracing how knowledge about an entity changed over time. The invalidation date renders inline on each historical row. |
| includeSynopsis | boolean | (recall | search) Render the memory's 1–2 sentence synopsis (when present) under the title (default true). Pass false to restore the byte-identical pre-synopsis title-only output for narrow terminals or callers that already plan to fetch bodies. |
| intent | string | (action='search') Optional disambiguator threaded into the semantic branch's relevance query as context, NEVER into the contains branch's substring match. Use when `query` is short and ambiguous and the caller knows which sense they mean (e.g. `query: 'auth'`, `intent: 'WeChat session cookie'`). Under `mode: 'hybrid'` setting intent disables the saturation cutoff so the merge always runs and up-weights the contains lane to keep precision dominant. Ignored under `mode: 'contains'`. Whitespace-only intent is treated as unset. |
| kind | string | (action='recall') Filter by memory kind. (action='search') Server-side filter in `contains`/`hybrid`; post-filter in `semantic`. |
| limit | number | Max results. Defaults: recall 10, search 10, ask 5/bucket. |
| mode | string | (action='search') Search mode (default `semantic`). `contains` for DS-scoped substring matching with server-side property filters; `semantic` for Notion relevance over titles AND bodies; `hybrid` fires both in parallel and uses contains alone when it saturates (≥ 3 hits) or RRF-fuses both branches when it doesn't. |
| projectName | string | Scope to a project (recall, search, ask, audit). |
| query | string | (action='search') Required. Natural language search query. |
| source | string | (action='recall') Filter by source type. (action='search') Server-side filter in `contains`/`hybrid`; post-filter in `semantic`. |
| startCursor | string | (action='recall') Opaque pagination cursor. |
| status | string | (action='recall') Filter by lifecycle status. (action='search') Server-side filter in `contains`/`hybrid`; post-filter in `semantic`. |
| strategy | string | (action='search') Search strategy (default `planned` for agent-facing search). `planned` extracts concise query variants, runs them through the semantic lane, and rank-fuses the union before rendering candidates. `direct` sends the query as-is. Contains mode ignores this field. |
| tags | array | (action='search') Filter by tag strings (matches any). Server-side filter in `contains`/`hybrid`; post-filter in `semantic`. Read filters accept legacy and out-of-profile tags; for free-form keyword filtering, use `query`. |
| topicName | string | (action='recall') Filter by topic name. (action='search') Scope to a topic. Server-side filter in `contains`/`hybrid`; post-filter in `semantic`. |
lore-taskCreate, update, close, bulk-close, or list tasks. Tasks are the canonical surface for tracked work; the description lives in the page body (no 2000-char rich_text limit) and the subject is structurally indexed.
CRITICAL CLOSURE RULE: close tasks (action='close') as soon as work completes. Closed tasks are the source of truth for "done"; unclosed tasks keep surfacing in wake-up.
CRITICAL SCOPE RULE: only file tasks for **tangential or out-of-scope** work — side-effect discoveries, deferred follow-ups, blocked items the session noticed but did not pick up. Never file your current in-flight objective: the conversation and plan already track it, so a Lore task adds noise and an immediate close burden, not signal.
Action-dispatched:
- `action: 'create'` — open a new task for tangential or out-of-scope work; do NOT file your current objective. Idempotent on exact `(subject, entity, projectIds)` match. Use `entity` when the task is about a specific subject other facts/decisions also reference; `lore-query` action='ask' surfaces it in the Tasks bucket.
- `action: 'update'` — change state, blocker, due date, subject, description, or scoping. Any field omitted is left untouched. Pass `dueDate: null` or `dueDate: ""` to clear the due date.
- `action: 'close'` — mark done (or cancelled — distinguished for metrics).
- `action: 'close-many'` — close an explicit ID list with the same semantics as `close`; partial failures are reported per ID.
- `action: 'list'` — list task memories with Overdue and Active sections. Labels totals as exact or lower-bound; small limits fetch ${TASK_LIST_FETCH_MULTIPLIER}×limit, whilelimit >= ${TASK_LIST_DEEP_WALK_MIN_LIMIT} uses a deeper bounded walkcapped at ${TASK_LIST_PAGE_SIZE * MAX_TASK_LIST_PAGES} fetched rows.- `action: 'reconcile'` — scan active tasks for resolution-shaped memory matches and return ranked closure candidates with close incantations. Read-only; never auto-closes.| Parameter | Type | Description |
|---|---|---|
| action * | string | Operation: create (open a task), update (mutate fields), close (mark one done/cancelled), close-many (close an explicit ID list), list (triage view), or reconcile (scan active tasks for resolution-shaped memory matches and surface candidate closures). |
| affectsIds | array | (action='create') Memory IDs this task is sourced from / affects. Migrated tasks carry their original fact's `sourceMemoryId` here so provenance survives. |
| agent | string | (action='create') Name of the AI agent creating this task. |
| allowPointerSubject | boolean | (action='create') Bypass the pointer-only subject guard for false positives. |
| author | string | (action='create') Engineer display name. Defaults to LORE_USER_NAME env or `users.me`. |
| blockedBy | string | (action='create' | 'update') Free-form blocker label (PR number, person, external service). Required when state is `blocked`; pass an empty string on update to clear. |
| description | string | (action='create' | 'update') Description / context. Becomes the page body (markdown supported). |
| entity | string | (action='create') Normalized entity name the task is about; defaults to subject. (action='update') Rename the entity. (action='list') Substring filter matched server-side against the Entity column. |
| forceNewTopic | boolean | (action='create') Bypass the normalized-equivalent + trigram-similar topic-name probe and create a fresh row. |
| ids | array | (action='close-many') Explicit task IDs to close. Blank IDs are ignored,duplicates are de-duplicated in first-seen order, capped at ${TASK_CLOSE_MANY_MAX_IDS}. |
| includeSynopsis | boolean | (action='list') Render each task's synopsis line (when set) as an indented line between the title row and the `ID:` line. Defaults true. Pass false to restore byte-identical pre-DEFERRED-01 output for callers piping the response into another formatter. |
| limit | number | (action='list') Per-section render cap (default ${DEFAULT_TASKS_LIMIT}).Small caps fetch ${TASK_LIST_FETCH_MULTIPLIER}×limit;limit >= ${TASK_LIST_DEEP_WALK_MIN_LIMIT} requests a deep walk. Capped at 200.(action='reconcile') Maximum candidate closures to surface(default ${DEFAULT_RECONCILE_LIMIT}). Capped at ${MAX_RECONCILE_LIMIT}. |
| minScore | number | (action='reconcile') Minimum candidate score (0–1) to surface.Default ${DEFAULT_RECONCILE_MIN_SCORE}. Candidates without aresolution-shaped cue (`merged`, `shipped`, `resolved`, `fixed`, `closed`, etc.) are filtered out BEFORE scoring — entity-only mentions never reach the threshold. |
| projectName | string | (action='create' | 'list' | 'reconcile') Project name. Defaults to auto-detected project from cwd. |
| projectNames | array | (action='create') Multiple project names for cross-project tasks. |
| session | string | (action='create') Session ID to group related saves. |
| startCursor | string | (action='list') Opaque pagination cursor from a previous response. |
| state | string | (action='create') Initial state (default `open`). Pair `blocked` with `blockedBy`. (action='update') New state. Use action='close' if you only need to mark a task done. (action='close' | 'close-many') Closing state — `done` (default) or `cancelled`. (action='list') Filter to a single state. Omit on list to see all active states (open, in-progress, blocked). |
| subject | string | (action='create') One-line task subject. Becomes the page title. (action='update') New subject. |
| synopsis | string | (action='create' | 'update') 1–2 sentence synopsis of what the task is about and what 'done' looks like — distinct from `subject` (short title) and `description` (the body). Up to ${SYNOPSIS_MAX} chars.On update, omit to leave untouched; pass empty string to clear. |
| topicName | string | (action='create') Topic name within the project. Created automatically if it doesn't exist. Variants that differ only by case, plural-`s`, `&` vs `and`, or punctuation collapse onto the existing canonical row. |
Security checks
Static checks derived from the repository 10 days ago. Heuristics on the source, not an audit.
- ✓README presentThe repository's README runs to about 3.4K words.
- ✓License declaredThe repository declares the MIT license.
- ✓Tests presentA test suite exists in the repository.
- ✓Dependencies pinnedDependency versions are pinned by package-lock.json.
- ✓No dynamic code executionScanned 326 source files and found no eval, dynamic Function or shell execution.
1 check has not been run yet.
What the source scan found
- Transport
- stdiosrc/mcp/server.ts:18
- Starts other programs
- 28 callssrc/auth/ntn.ts:311, src/auth/ntn.ts:563, src/auth/ntn.ts:712
- Outbound network calls
- 6 callssrc/core/topic.ts:239, src/eval/bench-fetch.ts:72, src/eval/bench-judge.ts:127
- Writes or deletes files
- No file writes or deletes
- Lockfile
- package-lock.json
Pattern matches on the source text of 326 files: places to read, not proof of what the code does at run time.
Releases
README
The repository's README runs to about 3.4K words, fetched a month ago. The original in the repository is authoritative.
Read full README