About vectorize-io/hindsight
vectorize-io/hindsight is an MCP server published by hindsightai in the Automation category: term memory for AI agents modeled on human memory. Conduid read 58 tools from its source: cancel_operation, clear_memories, clear_mental_model, create_bank, create_directive, create_knowledge_bank and 52 more. No package is published for it, so it installs from a source checkout.
The repository has 65K stars and 7.4K forks, is licensed MIT, and its last commit was on 2 Dec 2026. The latest release is v1.3.0 (24 Nov 2026). It follows v1.2.3 (19 Nov 2026), and the 5 most recent releases go back to v1.2.0 (3 Nov 2026). It passes 4 of the 5 static checks Conduid ran on the repository; it does not pass Scoped permissions. Its topics include iot.
Install
git clone https://github.com/hindsightai/hindsightTools (58)
cancel_operationCancel a pending or running async operation.| Parameter | Type | Description |
|---|---|---|
| bank_id | string | Optional bank (defaults to session bank). Use for cross-bank operations. |
| operation_id * | string | The ID of the operation to cancel |
clear_memoriesClear all memories from a bank without deleting the bank itself.| Parameter | Type | Description |
|---|---|---|
| bank_id | string | Optional bank (defaults to session bank). Use for cross-bank operations. |
| type | string | Optional fact type filter: 'world', 'experience', or 'observation'. If not specified, clears all. |
clear_mental_modelClear a mental model's content so the next refresh performs a full re-synthesis.| Parameter | Type | Description |
|---|---|---|
| bank_id | string | Optional bank (defaults to session bank). Use for cross-bank operations. |
| mental_model_id * | string | The ID of the mental model to clear |
create_bankCreate a new memory bank or get an existing one.| Parameter | Type | Description |
|---|---|---|
| bank_id * | string | Unique identifier for the bank (e.g., 'user-123', 'agent-alpha') |
| mission | string | Optional mission describing who the agent is and what they're trying to accomplish |
| name | string | Optional human-friendly name for the bank |
create_directiveCreate a new directive for a memory bank.| Parameter | Type | Description |
|---|---|---|
| bank_id | string | Optional bank (defaults to session bank). Use for cross-bank operations. |
| content * | string | The directive content/instructions |
| is_active | boolean | Whether the directive is active (default: True) |
| name * | string | Human-readable name for the directive |
| priority | integer | Priority level (higher = more important, default: 0) |
| tags | array | Optional tags for filtering |
create_knowledge_bankCreate a knowledge bank, or get it if it already exists.| Parameter | Type | Description |
|---|---|---|
| bank_id * | string | Id of the knowledge bank (e.g. 'product-docs'). |
create_mental_modelCreate a new mental model (pinned reflection).| Parameter | Type | Description |
|---|---|---|
| bank_id | string | Optional bank (defaults to session bank). Use for cross-bank operations. |
| max_tokens | integer | Maximum tokens for generated content (256-8192, default: 2048) |
| mental_model_id | string | Optional custom ID (same rules as a bank id: at most 192 bytes of UTF-8, no '/' and no control characters). Auto-generated if not provided. |
| name * | string | Human-readable name for the mental model |
| source_query * | string | The query to run through reflect to generate content |
| tags | array | Optional tags for scoped visibility filtering |
| tags_match | string | How this model's tags are matched against memories when the content is (re)generated. One of 'any' (match any tag, like recall/reflect), 'all' (match all tags), 'any_strict', 'all_strict', or 'exact'. If omitted, a tagged model defaults to 'all_strict' — a memory must carry EVERY one of the model's tags to be included, which silently filters out memories that only carry a subset. Pass 'any' when your memories use narrow single-topic tags. |
| trigger | any | Refresh policy for this model — when it rebuilds itself (mode, refresh_after_consolidation, refresh_cron) and what it rebuilds from (fact_types, tags_match, tag_groups, exclude_mental_models, recall_max_tokens, ...). Omitted fields use engine defaults. Prefer this over the flat tags_match/trigger_refresh_after_consolidation shorthands, which are kept only for existing integrations. |
| trigger_refresh_after_consolidation | boolean | If True, automatically refresh this model after memory consolidation. Default: False |
create_pageCreate a page — a living document answering a question.| Parameter | Type | Description |
|---|---|---|
| bank_id | string | Optional bank (defaults to session bank). Use for cross-bank operations. |
| max_tokens | integer | Maximum tokens for the generated content (default: 4096) |
| name * | string | Page name (must be unique within its folder) |
| parent_id | string | Optional parent folder id (a `kf-...` node id). Omit to create at the top level. |
| refresh_after_consolidation | boolean | Legacy shorthand for trigger.refresh_after_consolidation. |
| source_query * | string | The question this page answers and rebuilds itself from |
| tags | array | Optional tags scoping which memories the page is built from |
| trigger | any | Refresh policy for this page — when it rebuilds itself (mode, refresh_after_consolidation, refresh_cron) and what it rebuilds from (fact_types, tags_match, tag_groups, exclude_mental_models, recall_max_tokens, ...). Omitted fields keep the page defaults: incremental (delta) rebuilds from consolidated observations after each consolidation, ignoring sibling pages. Set refresh_cron instead to move the page onto a fixed UTC schedule. |
create_page_folderCreate a folder in the pages.| Parameter | Type | Description |
|---|---|---|
| bank_id | string | Optional bank (defaults to session bank). Use for cross-bank operations. |
| name * | string | Folder name |
| parent_id | string | Optional parent folder id (a `kf-...` node id). Omit to create at the top level. |
delete_bankDelete a memory bank and all its data.| Parameter | Type | Description |
|---|---|---|
| bank_id | string | Optional bank (defaults to session bank). Use for cross-bank operations. |
delete_directiveDelete a directive.| Parameter | Type | Description |
|---|---|---|
| bank_id | string | Optional bank (defaults to session bank). Use for cross-bank operations. |
| directive_id * | string | The ID of the directive to delete |
delete_documentDelete a document and its associated memories.| Parameter | Type | Description |
|---|---|---|
| bank_id | string | Optional bank (defaults to session bank). Use for cross-bank operations. |
| document_id * | string | The ID of the document to delete |
delete_knowledge_bankDelete a knowledge bank and every document in it. This cannot be undone.| Parameter | Type | Description |
|---|---|---|
| bank_id | string | Optional knowledge bank (defaults to the session bank). |
delete_knowledge_documentDelete a document from a knowledge bank, with its passages and stored file.| Parameter | Type | Description |
|---|---|---|
| bank_id | string | Optional knowledge bank (defaults to the session bank). |
| document_id * | string | The document's id. |
delete_mental_modelDelete a mental model.| Parameter | Type | Description |
|---|---|---|
| bank_id | string | Optional bank (defaults to session bank). Use for cross-bank operations. |
| mental_model_id * | string | The ID of the mental model to delete |
delete_page_nodeDelete a folder or page and everything under it.| Parameter | Type | Description |
|---|---|---|
| bank_id | string | Optional bank (defaults to session bank). Use for cross-bank operations. |
| node_id * | string | The ID of the folder (`kf-...`) or page (`kp-...`) to delete |
get_bankGet the profile of a memory bank.| Parameter | Type | Description |
|---|---|---|
| bank_id | string | Optional bank (defaults to session bank). Use for cross-bank operations. |
get_bank_statsGet statistics for a memory bank.| Parameter | Type | Description |
|---|---|---|
| bank_id | string | Optional bank (defaults to session bank). Use for cross-bank operations. |
get_documentGet a specific document by ID.| Parameter | Type | Description |
|---|---|---|
| bank_id | string | Optional bank (defaults to session bank). Use for cross-bank operations. |
| document_id * | string | The ID of the document to retrieve |
get_knowledge_bankGet a knowledge bank: how many documents and passages it holds, by status and media type.| Parameter | Type | Description |
|---|---|---|
| bank_id | string | Optional knowledge bank (defaults to the session bank). |
get_knowledge_documentGet a knowledge-bank document with all its passages, in order.| Parameter | Type | Description |
|---|---|---|
| bank_id | string | Optional knowledge bank (defaults to the session bank). |
| document_id * | string | The document's id. |
get_memoryGet a specific memory by ID.| Parameter | Type | Description |
|---|---|---|
| bank_id | string | Optional bank (defaults to session bank). Use for cross-bank operations. |
| memory_id * | string | The ID of the memory to retrieve |
get_mental_modelGet a specific mental model by ID.| Parameter | Type | Description |
|---|---|---|
| bank_id | string | Optional bank (defaults to session bank). Use for cross-bank operations. |
| detail | string | Detail level - 'metadata' (names/tags only), 'content' (adds content/config), 'full' (includes reflect_response). Default: 'full' |
| mental_model_id * | string | The ID of the mental model to retrieve |
get_operationGet the status of an async operation.| Parameter | Type | Description |
|---|---|---|
| bank_id | string | Optional bank (defaults to session bank). Use for cross-bank operations. |
| operation_id * | string | The ID of the operation to check |
get_pageRead a page as a markdown document.| Parameter | Type | Description |
|---|---|---|
| bank_id | string | Optional bank (defaults to session bank). Use for cross-bank operations. |
| page_id * | string | The ID of the page to read (a `kp-...` node id) |
get_page_treeBrowse the pages as a nested tree of folders and pages.| Parameter | Type | Description |
|---|---|---|
| bank_id | string | Optional bank (defaults to session bank). Use for cross-bank operations. |
hindsight_capture_initiativeRecord a new feature or initiative as a tracked page, so future sessions know it exists and can build on it — and keep that page tracking the plan as it moves.
WHEN TO CALL:
- Starting one: right after the user approves a plan or finishes brainstorming a new feature/capability and you are about to start implementing — BEFORE you write any code. Leave page_id empty.
- Plan changed: call it AGAIN — mid-implementation is fine and expected — whenever the goal, scope, or rationale of an initiative you already captured materially changes (an approach is dropped, scope grows or shrinks, the why is rewritten). Pass page_id = that initiative's page id so the change lands on the existing page. Never mint a second page for the same initiative.
WHEN TO SKIP: bug fixes, small tweaks, refactors, chores, and trivial course-corrections that leave the goal intact are not initiatives — skip them.
- title: short, specific name (e.g. 'Newsletter refinement chat'). On a recapture, reuse the initiative's existing title: a capture without page_id whose title matches an existing initiative page is recorded as an update to that page.
- summary: 2-3 sentences on what you're building and why — the CURRENT intent, not the originally approved plan (on a recapture, say what changed and why).
- page_id: leave empty for a new initiative. Set it to an existing initiative's page id — from hindsight_list_pages, or the id this tool returned earlier — to record a plan change or an enhancement to it.
Returns the page id and action: "created" (a new page) or "updated" (an existing one). The page is generated for you — you never format one yourself.| Parameter | Type | Description |
|---|---|---|
| page_id | string | |
| relates_to_page_id | string | Deprecated: use page_id. |
| summary * | string | |
| title * | string |
hindsight_diagnoseReport safe Hindsight runtime diagnostics for this coding-agent session: resolved bank, workspace, harness, config location, API endpoint, and non-secret environment overrides. Use this when memory, hooks, MCP tools, or configuration appear not to work. Tokens and other secret values are never returned.hindsight_ingest_documentSave an external document or a block of durable notes/findings into this project's memory so it informs future recall and pages. Use for design notes, research, or reference material you want remembered — not for the conversation you're already in (that's captured automatically at session end). This is ALSO the correction mechanism: when you verify that a retrieved memory is wrong or outdated, ingest a document titled 'Correction: <topic>' stating what memory claimed, what is actually true, and the evidence — the newer fact supersedes the stale one in future retrieval.| Parameter | Type | Description |
|---|---|---|
| content * | string | |
| title * | string |
hindsight_list_pagesList this project's Hindsight pages — curated, continuously-updated summaries of the project's durable knowledge (architecture, components, conventions, key decisions, and in-flight initiatives). Returns each page's id, title, and a one-line description of what it covers. Call this at the start of any non-trivial task, and again periodically in long sessions, to see what the project already knows before you read code or ask the user. The list changes as work is captured, so re-check it occasionally.hindsight_read_pageRead the full content of one page by its id (from hindsight_list_pages). Call this whenever a listed page is relevant to what you're about to do — e.g. read Conventions before writing new code, Component map before changing a subsystem, or an initiative's page before continuing that feature. A page may contain [[page:<id>]] links to related pages; follow one by calling this tool again with that id. Prefer reading a page over re-deriving the same understanding from source.| Parameter | Type | Description |
|---|---|---|
| page_id * | string |
hindsight_reflectDeep memory reasoning: an agentic synthesis over this project's FULL memory (git decisions, past sessions, ingested knowledge) that answers WHY questions — the past decision and exact rule/values that explain a behavior, bug, or convention. Slower than hindsight_search_pages (several seconds): reach for it when pages are too shallow and you need the root cause or the decided literals. When the answer informs your reply, credit it visibly with a blockquote header: "> 🧠 **From Hindsight memory** — <summary>".| Parameter | Type | Description |
|---|---|---|
| query * | string | the question to reason over memory about |
hindsight_search_pagesSearch this project's Hindsight pages for content relevant to a query — hybrid full-text + semantic search, server-side. Call this when the user's question may be answered by the project's accumulated knowledge (architecture, conventions, decisions, initiatives) rather than by reading code. Returns ranked pages, each with its opening text (not the passage that matched, and not filtered by relevance);| Parameter | Type | Description |
|---|---|---|
| query * | string | what to look for |
hindsight_sync_statusReport whether this repo's memory bank is in sync: gitlog seed present, how much recent history has been deepened with full diffs, conversations ingested, pages created, and extractions still running. `synced: true` means the seeded memory is fully queryable. Ingestion is automatic and background — if not synced, it is in progress; nothing to run.ingest_knowledge_textAdd a text or markdown document to a knowledge bank. Returns once it is searchable.| Parameter | Type | Description |
|---|---|---|
| bank_id | string | Optional knowledge bank (defaults to the session bank). |
| document_id | string | Stable id; ingesting the same id again replaces the document. |
| filename | string | Name shown for the document (defaults to <document_id>.md). |
| strategy | string | Ingestion strategy, one the server offers. Omit for the server's default. |
| tags | array | Tags to filter searches by later. |
| text * | string | The document's content (markdown is fine). |
invalidate_memorySoft-retire a memory unit (or restore a previously retired one). Invalidating moves the fact out of the active set: it's excluded from recall, consolidation, and the knowledge graph, its links are pruned, and its derived observations are recomputed without it — but it's kept for audit and is fully reversible. Pass restore=True to bring it back. Only raw world/experience facts can be invalidated; observations are derived.| Parameter | Type | Description |
|---|---|---|
| bank_id | string | Optional bank (defaults to session bank). Use for cross-bank operations. |
| memory_id * | string | The ID of the memory unit to retire (or restore). |
| reason | string | Optional free-text reason recorded when invalidating. |
| restore | boolean | Set True to restore a previously invalidated fact. |
list_banksList available memory banks, most recently written first.| Parameter | Type | Description |
|---|---|---|
| limit | any | Maximum number of banks to return (default 100). |
| offset | any | Number of banks to skip, for paging through `total`. |
| query | string | Optional case-insensitive substring to match against bank ID and name. |
list_directivesList directives for a memory bank.| Parameter | Type | Description |
|---|---|---|
| active_only | boolean | If True, only return active directives (default: True) |
| bank_id | string | Optional bank (defaults to session bank). Use for cross-bank operations. |
| limit | any | Maximum number of results, 1-1000 (default: 100) |
| offset | any | Pagination offset (default: 0). Page until the returned items add up to 'total'. |
| tags | array | Optional tags to filter by |
list_documentsList documents in a memory bank.| Parameter | Type | Description |
|---|---|---|
| bank_id | string | Optional bank (defaults to session bank). Use for cross-bank operations. |
| limit | any | Maximum number of results (default: 100) |
| offset | any | Pagination offset (default: 0). Page until the returned items add up to 'total'. A 'q' search is capped: when 'total_is_estimate' is true there are more matches than 'total' — narrow 'q' to reach them. |
| q | string | Optional search query to filter documents |
list_knowledge_banksList knowledge banks, newest first.| Parameter | Type | Description |
|---|---|---|
| limit | any | Maximum number of banks to return (default 100). |
| offset | any | Number of banks to skip, for paging through `total`. |
| query | string | Optional case-insensitive part of the bank id. |
list_knowledge_documentsList the documents in a knowledge bank, newest first.| Parameter | Type | Description |
|---|---|---|
| bank_id | string | Optional knowledge bank (defaults to the session bank). |
| limit | integer | Maximum number of documents (default 50, at most 500). |
| media_type | any | Only documents of this media type: document, image, audio, video or text. |
| offset | any | Pagination offset (default 0). Page until you have 'total'. |
| q | string | Optional part of the document id or filename. |
| status | string | Only documents in this state: pending, processing, ready or failed. |
| tags | array | Only documents with these tags. |
list_knowledge_tagsList the tags on a knowledge bank's documents, most used first, with how many documents carry each.| Parameter | Type | Description |
|---|---|---|
| bank_id | string | Optional knowledge bank (defaults to the session bank). |
| limit | any | Maximum number of tags (default 100). |
| offset | any | Pagination offset (default 0). Page until you have 'total'. |
| q | string | Optional pattern to filter tags (e.g. 'team:*'). |
list_memoriesBrowse stored memories with optional filtering.| Parameter | Type | Description |
|---|---|---|
| bank_id | string | Optional bank (defaults to session bank). Use for cross-bank operations. |
| limit | any | Maximum number of results (default: 100) |
| offset | any | Pagination offset (default: 0) |
| q | string | Optional text search query to filter memories |
| tags | array | Optional list of tag names to filter by. |
| tags_match | any | How to combine tags: 'any' (OR, default) or 'all' (AND) both also include untagged memories; 'any_strict'/'all_strict' exclude untagged; 'exact' matches the tag set exactly. |
| type | string | Filter by fact type: 'world', 'experience', or 'observation' |
list_mental_modelsList mental models (pinned reflections) for a memory bank.| Parameter | Type | Description |
|---|---|---|
| bank_id | string | Optional bank to list from (defaults to session bank). Use for cross-bank operations. |
| limit | any | Maximum number of results, 1-1000 (default: 100) |
| offset | any | Pagination offset (default: 0). Page until the returned items add up to 'total'. |
| tags | array | Optional tags to filter by (returns models matching any tag) |
list_operationsList async operations for a memory bank.| Parameter | Type | Description |
|---|---|---|
| bank_id | string | Optional bank (defaults to session bank). Use for cross-bank operations. |
| exclude_parents | boolean | Exclude parent batch operations (default: False) |
| limit | any | Maximum number of results, 1-100 (default: 20) |
| offset | any | Number of operations to skip (default: 0). Page until you reach 'total'. |
| status | string | Filter by status: 'pending', 'running', 'completed', 'failed', 'cancelled' |
| type | string | Filter by operation type: 'retain', 'consolidation', 'refresh_mental_model', 'file_convert_retain', 'webhook_delivery' |
list_tagsList tags used in a memory bank.| Parameter | Type | Description |
|---|---|---|
| bank_id | string | Optional bank (defaults to session bank). Use for cross-bank operations. |
| limit | any | Maximum number of results (default: 100) |
| offset | any | Pagination offset (default: 0). Page until the returned items add up to 'total'. |
| q | string | Optional pattern to filter tags (e.g., 'project:*') |
my_custom_toolRegister additional MCP tools.| Parameter | Type | Description |
|---|---|---|
| query * | string |
recallArgs:| Parameter | Type | Description |
|---|---|---|
| bank_id | string | Optional bank to search in (defaults to session bank). Use for cross-bank operations. |
| budget | string | Search budget - 'low', 'mid', or 'high' (default: 'high'). Higher budgets search more thoroughly. |
| include_chunks | boolean | Also return the source text chunks the matched facts were extracted from. Use it when you need exact strings (paths, IDs, commands) that extraction may have paraphrased. Default: False. |
| include_entities | boolean | Also return observations about the entities mentioned in the results. Default: False. |
| include_source_facts | boolean | For observation results, also return the facts they were built from. Default: False. |
| max_chunk_tokens | integer | Max tokens of source chunks returned when include_chunks is set (default: 8192). |
| max_entity_tokens | integer | Max tokens of entity observations when include_entities is set (default: 500). |
| max_source_facts_tokens | integer | Max tokens of source facts when include_source_facts is set (default: 4096). |
| max_tokens | integer | Token budget for the facts' text (default: 4096). Only each result's 'text' counts; the id, tags, scores and dates sent with every result do not, so the response is several times larger than this. |
| min_scores | object | Optional per-stage score floors as an object with any of: "semantic", "keyword" (retrieval-level cutoffs), "reranker", "final" (post-ranking). E.g. {"reranker": 0.5}. Each floor is inclusive; omit for no score filtering. "semantic" and "keyword" prune only the retrieval arm they name — recall fuses four arms (semantic, keyword, graph, temporal) and returns what any of them surfaced, so a result may report null or a lower score for an arm that did not surface it, and setting both does not restrict results to those clearing both. Use "reranker"/"final" — applied to every scored result — to make recall abstain. The reranker's absolute scores are not calibrated across queries, so only threshold against scores you've calibrated for your own data. |
| prefer_observations | boolean | When recalling raw facts together with 'observation', drop any raw fact that a returned observation was consolidated from, so the observation supersedes it (no duplicate content). No effect unless 'observation' and a raw type are both in types. Default: the bank's recall_prefer_observations config (false unless configured). |
| query * | string | Natural language search query (e.g., "user's food preferences", "what projects is user working on") |
| query_timestamp | string | Temporal context for the query (ISO format, e.g., '2024-01-15T10:30:00Z'). Anchors relative temporal expressions and recency scoring. |
| rerank | object | What the decision-model reranker does beyond ordering, as an object with any of "prune" (drop results judged no help to the query) and "dedup" (drop a result that repeats a better-ranked one; costs one more decision-model request). E.g. {"prune": true, "dedup": true}. A key left out uses the bank's recall_decision_model_prune / recall_decision_model_dedup config. No effect unless a decision model is set up for recall. |
| tag_groups | array | Compound tag filter using boolean groups (AND-ed together). Each group is a leaf {"tags": [...], "match": "any_strict"} or compound {"and": [...]}, {"or": [...]}, {"not": {...}}. Example: [{"not": {"tags": ["closeout"], "match": "any_strict"}}] excludes memories tagged closeout. Mutually exclusive with tags. A leaf may add "resolve": "fuzzy" to match its tags against the bank's tags by trigram similarity instead of literally, so filtering on "typsecript" still reaches memories tagged "typescript". |
| tags | array | Optional tags to filter results by (e.g., ['project:alpha']). Mutually exclusive with tag_groups. |
| tags_match | any | How to match tags - 'any' (any tag, untagged included), 'all' (all tags, untagged included), 'any_strict' / 'all_strict' (same, untagged excluded) or 'exact' (exactly these tags). Default: 'any' |
| temporal_window | object | Window for the temporal arm as {"start": ISO, "end": ISO}, used instead of extracting dates from the query text — pass it when you already know the range you mean. It ranks memories dated inside the window higher; it does NOT drop memories dated outside it, so do not use it to restrict results to a period. |
| types | array | Fact types to include (e.g., ['world', 'experience']). Default: all types. |
reflectGenerate thoughtful analysis by synthesizing stored memories with the bank's personality.| Parameter | Type | Description |
|---|---|---|
| apply_all_directives | boolean | Apply every active directive regardless of tags. By default directives are scoped like memories (untagged always apply; tagged apply only when tags match). Set true to apply all directives, ignoring tag scope. |
| bank_id | string | Optional bank to reflect in (defaults to session bank). Use for cross-bank operations. |
| budget | string | Search budget - 'low', 'mid', or 'high' (default: 'low') |
| include_based_on | boolean | Include source facts used for synthesis. Defaults to false because broad reflections can exceed MCP client result limits. |
| include_trace | boolean | Include the reflection's internal trace fields (tool_trace/llm_trace and directives_applied). Defaults to false because the trace can be tens of KB and overflow MCP client context; enable only for debugging. |
| max_tokens | integer | Maximum tokens for the response (default: 4096) |
| query * | string | The question or topic to reflect on |
| response_schema | object | Optional JSON schema for structured output. When provided, the response includes a 'structured_output' field. |
| tags | array | Optional tags to filter memories by (e.g., ['project:alpha']) |
| tags_match | any | How to match tags - 'any' (any tag, untagged included), 'all' (all tags, untagged included), 'any_strict' / 'all_strict' (same, untagged excluded) or 'exact' (exactly these tags). Default: 'any' |
refresh_mental_modelRefresh a mental model by re-running its source query.| Parameter | Type | Description |
|---|---|---|
| bank_id | string | Optional bank (defaults to session bank). Use for cross-bank operations. |
| mental_model_id * | string | The ID of the mental model to refresh |
retainArgs:| Parameter | Type | Description |
|---|---|---|
| bank_id | string | Optional bank to store in (defaults to session bank). Use for cross-bank operations. |
| content * | string | The fact/memory to store (be specific and include relevant details) |
| document_id | string | Optional document ID to associate this memory with |
| metadata | object | Optional key-value metadata to attach (e.g., {'source': 'slack', 'channel': 'general'}) |
| strategy | string | Optional named retain strategy (e.g., 'exact' for verbatim storage). Strategies are defined in the bank config. |
| tags | array | Optional tags for scoped visibility filtering (e.g., ['project:alpha', 'user:123']) |
| timestamp | string | When this event/fact occurred (ISO format, e.g., '2024-01-15T10:30:00Z'). Useful for timeline tracking. |
| update_mode | string | How to handle existing documents with the same document_id. 'replace' (default) or 'append' (concatenates new content to existing). |
search_knowledge_bankSearch a knowledge bank's documents by meaning. Returns the best passages first, each| Parameter | Type | Description |
|---|---|---|
| bank_id | string | Optional knowledge bank (defaults to the session bank). |
| budget | any | How deep to search: 'low' is fastest, 'high' reaches the most passages (default 'mid'). |
| document_ids | array | Only these documents. |
| enable_reranking | boolean | true reranks the best hits when the server has a knowledge reranker; false keeps the search's own order. Unset follows the server's default. |
| max_tokens | integer | What all the results may weigh together, in tokens (default 4096). |
| media_types | array | Only passages of these media types: document, image, audio, video, text. |
| query * | string | What to look for, in natural language. |
| tag_groups | array | Compound tag filter, AND-ed together. Each group is a leaf {"tags": [...], "match": ...} or {"and": [...]}, {"or": [...]}, {"not": {...}}. |
| tags | array | Only documents with these tags. |
| tags_match | any | How tags match: 'any', 'all', 'any_strict', 'all_strict' or 'exact' (default 'any'). |
search_pagesFind pages by relevance (hybrid keyword + semantic search).| Parameter | Type | Description |
|---|---|---|
| bank_id | string | Optional bank (defaults to session bank). Use for cross-bank operations. |
| limit | integer | Maximum pages to return (1-50, default: 10) |
| query * | string | What to search for |
sync_retainStore information to long-term memory and wait for completion.| Parameter | Type | Description |
|---|---|---|
| bank_id | string | Optional bank to store in (defaults to session bank). Use for cross-bank operations. |
| content * | string | The fact/memory to store (be specific and include relevant details) |
| document_id | string | Optional document ID to associate this memory with |
| metadata | object | Optional key-value metadata to attach (e.g., {'source': 'slack', 'channel': 'general'}) |
| strategy | string | Optional named retain strategy (e.g., 'exact' for verbatim storage). Strategies are defined in the bank config. |
| tags | array | Optional tags for scoped visibility filtering (e.g., ['project:alpha', 'user:123']) |
| timestamp | string | When this event/fact occurred (ISO format, e.g., '2024-01-15T10:30:00Z'). Useful for timeline tracking. |
update_bankUpdate a memory bank's configuration.| Parameter | Type | Description |
|---|---|---|
| bank_id | string | Optional bank (defaults to session bank). Use for cross-bank operations. |
| config_updates | object | Dictionary of configuration fields to update. Supports all bank-configurable fields including: - reflect_mission: Mission/context for Reflect operations. - retain_mission: Steers what gets extracted during retain(). - retain_extraction_mode: 'concise' (default), 'verbose', or 'custom'. - retain_custom_instructions: Custom extraction prompt (active when mode is 'custom'). - retain_chunk_size: Target maximum characters for each content chunk. - retain_structured_chunk_size: Maximum characters for a single JSONL line or conversation turn to keep whole. - retain_chunk_batch_size: Number of chunks to process in parallel. - enable_observations: Toggle observation consolidation after retain(). - observations_mission: Controls observation synthesis rules. - disposition_skepticism: Critical evaluation level (1-5). - disposition_literalism: Literal vs. abstract interpretation (1-5). - disposition_empathy: Emotional context consideration (1-5). - entity_labels: Controlled vocabulary for entity classification. - entities_allow_free_form: Allow labels outside entity_labels. - recall_include_chunks: Include raw chunks in recall results. - recall_prefer_observations: Default prefer_observations for recall requests that omit it. - recall_max_tokens: Max tokens for recall results. - mcp_enabled_tools: Tool allowlist for this bank. Any configurable field name is accepted (use Python field names). |
| mission | string | Deprecated alias for config_updates.reflect_mission. |
| name | string | Human-friendly display name for the bank. |
update_memoryEdit a memory unit to correct what was extracted. Pass any of text / context / occurred_start / occurred_end / mentioned_at / fact_type / entities. For context and the dates, "" clears the field and omitting it leaves it unchanged; entities replaces the fact's entity set ([] detaches all). The memory is re-embedded and its derived observations, links, and graph are recomputed automatically. resolve_entities controls how the names in entities are matched. The default True behaves like retain and may resolve a name onto a similar entity that already exists, which silently discards a correction when the bank holds a near-duplicate name. Pass False whenever you are correcting a fact deliberately: an existing entity is then reused only on a case-insensitive name match, and any other name becomes its own entity. Only raw world/experience facts can be edited; observations are derived. To retire or restore a fact, use invalidate_memory instead.| Parameter | Type | Description |
|---|---|---|
| bank_id | string | Optional bank (defaults to session bank). Use for cross-bank operations. |
| entities | array | |
| fact_type | string | |
| memory_id * | string | The ID of the memory unit to edit. |
| mentioned_at | string | |
| occurred_end | string | |
| occurred_start | string | |
| resolve_entities | boolean | |
| text | string |
update_mental_modelUpdate a mental model's metadata.| Parameter | Type | Description |
|---|---|---|
| bank_id | string | Optional bank (defaults to session bank). Use for cross-bank operations. |
| max_tokens | integer | New max tokens for content generation (256-8192, leave None to keep current) |
| mental_model_id * | string | The ID of the mental model to update |
| name | string | New name (leave None to keep current) |
| source_query | string | New source query (leave None to keep current) |
| tags | array | New tags (leave None to keep current) |
| tags_match | string | Legacy shorthand for trigger.tags_match |
| trigger | any | Refresh policy fields to change — mode, refresh_after_consolidation, refresh_cron, fact_types, tags_match, tag_groups, exclude_mental_models, recall_max_tokens, and so on. This is a PATCH: fields you omit keep their current values, so setting a cron schedule does not reset the model's fact_types. Pass an explicit null to clear a setting. |
| trigger_refresh_after_consolidation | boolean | If set, update whether this model auto-refreshes after consolidation |
update_page_nodeRename or move a folder/page, and/or update a page's options.| Parameter | Type | Description |
|---|---|---|
| bank_id | string | Optional bank (defaults to session bank). Use for cross-bank operations. |
| max_tokens | integer | Pages only — new maximum tokens for the generated content |
| name | string | New name for the node |
| node_id * | string | The ID of the folder (`kf-...`) or page (`kp-...`) to update |
| parent_id | string | Folder id to move the node into, or "root" to move it to the top level |
| refresh_after_consolidation | boolean | Pages only — legacy shorthand for trigger.refresh_after_consolidation |
| source_query | string | Pages only — the new question the page answers |
| tags | array | Pages only — replacement tag list (pass [] to clear) |
| trigger | any | Pages only — refresh policy fields to change: mode, refresh_after_consolidation, refresh_cron, fact_types, tags_match, tag_groups, exclude_mental_models, recall_max_tokens, and so on. This is a PATCH: fields you omit keep their current values, so putting a page on a cron schedule does not reset its delta mode or its observation-only scope. |
Security checks
Static checks derived from the repository 23 hours ago. Heuristics on the source, not an audit.
- ✓README presentThe repository's README runs to about 2.7K words.
- ✓License declaredThe repository declares the MIT license.
- ✓Tests presentA test suite exists in the repository.
- ✓Dependencies pinnedDependency versions are pinned by deno.lock and 5 more.
- !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.
1 check has not been run yet.
Releases
README
The repository's README runs to about 2.7K words, fetched 23 hours ago. The original in the repository is authoritative.
Read full README