OpenSEO
Keyword research, site audits, rank tracking and AI visibility for your AI agent.
Self-hosted memory for LLMs in TriliumNext, structured by the server and editable by you.
选择你使用的 AI 应用,然后复制设置。
通过 3/3 项检查 · 在你的电脑上运行 · ✓ 命令已检查 2026年11月14日
第一步:你用哪个 AI?
选择你用的应用,步骤会显示在下方。
可连接 Claude,但需要先准备
需要 Brainllm 的密钥(在开发者网站创建) · 需要填写 1 项设置(TRILIUM_BASE_URL) · 需要先在电脑上安装 Node.js(只需一次) · 仅限电脑上的 Claude 应用(Windows 或 Mac),网页和手机不可用
把这段话复制到 Claude 的对话里。AI 会先检查电脑,告诉你要改哪个文件,并且每次都等你同意。
请在这台电脑上为 Claude 安装 MCP server Brainllm,按顺序:1) 用 node -v 检查是否有 Node.js。没有的话,请让我从 https://nodejs.org/en/download 安装,不要自己安装。2) 只使用这份配置(已通过 PopNx MCP 检查):{ "mcpServers": { "brainllm": { "command": "npx", "args": [ "-y", "brainllm" ], "env": { "TRILIUM_BASE_URL": "your-value", "TRILIUM_ETAPI_TOKEN": "your-value", "TRILIUM_PASSWORD": "your-value", "BRAINLLM_OWNER_PASSWORD": "your-value" } } } } 3) 告诉我要修改的文件完整路径或要运行的命令,等我同意。4) TRILIUM_ETAPI_TOKEN, TRILIUM_PASSWORD, BRAINLLM_OWNER_PASSWORD, TRILIUM_BASE_URL 先保留 "your-value",请我自己把真实值粘贴到文件或应用的输入框里。不要让我在对话里输入密钥。5) 按约定执行,然后确认 Brainllm 的工具真的出现了。这段话不包含你的密钥。如果需要密钥,AI 会请你自己粘贴到文件或应用的输入框里。
已经装好了吗?先检查 · 打开终端,输入这条命令后按 Enter
node -vMac:按 ⌘ + Space,输入 Terminal 后按 Enter
Windows:打开“开始”菜单,输入 Windows PowerShell,然后选“打开”
还没安装: 打开官方下载页,选择 LTS 版本和点选式安装程序:Mac 用 .pkg · Windows 用 .msi。双击后一路下一步即可,不需要 curl 命令
装好后关掉终端再打开,重新运行同一条命令,应显示版本号: node -v
安装一次,所有需要 Node.js 的工具都能用
这些是程序设置,不是密钥,无需注册。按开发者的说明填写。
TRILIUM_BASE_URL Base URL of the TriliumNext instance, e.g. http://localhost:8080说明仍为英文原文。
SettingsDeveloperEdit Config
{
"mcpServers": {
"brainllm": {
"command": "npx",
"args": [
"-y",
"brainllm"
],
"env": {
"TRILIUM_BASE_URL": "your-value",
"TRILIUM_ETAPI_TOKEN": "your-value",
"TRILIUM_PASSWORD": "your-value",
"BRAINLLM_OWNER_PASSWORD": "your-value"
}
}
}
}只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人
用 Brainllm 告诉我你能帮我做什么,然后做一件给我看✓ 如果 Claude 说正在使用 Brainllm,或回答中出现 Brainllm 的工具名称,就表示连接成功
上面的命令不填这些也能用。想调整时再按开发者的说明添加。
BRAINLLM_MODE core (default) exposes the 45 brain-aware tools; full additionally exposes the 33 raw ETAPI tools. · 默认值 coreBRAINLLM_TZ IANA timezone used to stamp dated notes, e.g. Africa/Johannesburg. Defaults to the host timezone.BRAINLLM_OAUTH_SECRET Optional 32+ character deployment secret for signing OAuth tokens; rotate it to invalidate old tokens.BRAINLLM_PUBLIC_URL Override for the public origin when a proxy rewrites Host. Must exactly match the URL entered in the client.BRAINLLM_ALLOW_UNAUTHENTICATED_HTTP Explicit trusted-network-only escape hatch for HTTP mode. Never enable on a public interface.BRAINLLM_TRUST_PROXY Trust forwarded host/protocol headers for OAuth discovery only when a trusted reverse proxy sets them.说明仍为英文原文。
菜单名称已于 2026年11月11日 对照 Anthropic 帮助页面核实 · 你的界面可能因版本略有不同
ChatGPT 暂时无法连接 Brainllm
Brainllm 需要安装在你的电脑上,而 ChatGPT 只能连接在网上运行的服务器
A · 使用能连接 Brainllm 的应用
可连接 Claude Code,但需要先准备
需要 Brainllm 的密钥(在开发者网站创建) · 需要填写 1 项设置(TRILIUM_BASE_URL) · 需要先在电脑上安装 Node.js(只需一次)
把这段话复制到 Claude Code 的对话里。AI 会先检查电脑,告诉你要改哪个文件,并且每次都等你同意。
请在这台电脑上为 Claude Code 安装 MCP server Brainllm,按顺序:1) 用 node -v 检查是否有 Node.js。没有的话,请让我从 https://nodejs.org/en/download 安装,不要自己安装。2) 只使用这份配置(已通过 PopNx MCP 检查):claude mcp add --scope user brainllm --env TRILIUM_BASE_URL=your-value --env TRILIUM_ETAPI_TOKEN=your-value --env TRILIUM_PASSWORD=your-value --env BRAINLLM_OWNER_PASSWORD=your-value -- npx -y brainllm 3) 告诉我要修改的文件完整路径或要运行的命令,等我同意。4) TRILIUM_ETAPI_TOKEN, TRILIUM_PASSWORD, BRAINLLM_OWNER_PASSWORD, TRILIUM_BASE_URL 先保留 "your-value",请我自己把真实值粘贴到文件或应用的输入框里。不要让我在对话里输入密钥。5) 按约定执行,然后确认 Brainllm 的工具真的出现了。这段话不包含你的密钥。如果需要密钥,AI 会请你自己粘贴到文件或应用的输入框里。
已经装好了吗?先检查 · 打开终端,输入这条命令后按 Enter
node -vMac:按 ⌘ + Space,输入 Terminal 后按 Enter
Windows:打开“开始”菜单,输入 Windows PowerShell,然后选“打开”
还没安装: 打开官方下载页,选择 LTS 版本和点选式安装程序:Mac 用 .pkg · Windows 用 .msi。双击后一路下一步即可,不需要 curl 命令
装好后关掉终端再打开,重新运行同一条命令,应显示版本号: node -v
安装一次,所有需要 Node.js 的工具都能用
这些是程序设置,不是密钥,无需注册。按开发者的说明填写。
TRILIUM_BASE_URL Base URL of the TriliumNext instance, e.g. http://localhost:8080说明仍为英文原文。
Mac:按 Command+空格,输入 Terminal · Windows:打开 PowerShell
claude mcp add --scope user brainllm --env TRILIUM_BASE_URL=your-value --env TRILIUM_ETAPI_TOKEN=your-value --env TRILIUM_PASSWORD=your-value --env BRAINLLM_OWNER_PASSWORD=your-value -- npx -y brainllm按 Enter 前,把“your-value”改成你的密钥
只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人
应能看到 Brainllm 在列表中并显示已连接
用 Brainllm 告诉我你能帮我做什么,然后做一件给我看✓ 如果 Claude Code 说正在使用 Brainllm,或回答中出现 Brainllm 的工具名称,就表示连接成功
上面的命令不填这些也能用。想调整时再按开发者的说明添加。
BRAINLLM_MODE core (default) exposes the 45 brain-aware tools; full additionally exposes the 33 raw ETAPI tools. · 默认值 coreBRAINLLM_TZ IANA timezone used to stamp dated notes, e.g. Africa/Johannesburg. Defaults to the host timezone.BRAINLLM_OAUTH_SECRET Optional 32+ character deployment secret for signing OAuth tokens; rotate it to invalidate old tokens.BRAINLLM_PUBLIC_URL Override for the public origin when a proxy rewrites Host. Must exactly match the URL entered in the client.BRAINLLM_ALLOW_UNAUTHENTICATED_HTTP Explicit trusted-network-only escape hatch for HTTP mode. Never enable on a public interface.BRAINLLM_TRUST_PROXY Trust forwarded host/protocol headers for OAuth discovery only when a trusted reverse proxy sets them.说明仍为英文原文。
菜单名称已于 2026年11月11日 对照 Anthropic 帮助页面核实 · 你的界面可能因版本略有不同
可连接 Cursor,但需要先准备
需要 Brainllm 的密钥(在开发者网站创建) · 需要填写 1 项设置(TRILIUM_BASE_URL) · 需要先在电脑上安装 Node.js(只需一次)
把这段话复制到 Cursor 的对话里。AI 会先检查电脑,告诉你要改哪个文件,并且每次都等你同意。
请在这台电脑上为 Cursor 安装 MCP server Brainllm,按顺序:1) 用 node -v 检查是否有 Node.js。没有的话,请让我从 https://nodejs.org/en/download 安装,不要自己安装。2) 只使用这份配置(已通过 PopNx MCP 检查):{ "mcpServers": { "brainllm": { "command": "npx", "args": [ "-y", "brainllm" ], "env": { "TRILIUM_BASE_URL": "your-value", "TRILIUM_ETAPI_TOKEN": "your-value", "TRILIUM_PASSWORD": "your-value", "BRAINLLM_OWNER_PASSWORD": "your-value" } } } } 3) 告诉我要修改的文件完整路径或要运行的命令,等我同意。4) TRILIUM_ETAPI_TOKEN, TRILIUM_PASSWORD, BRAINLLM_OWNER_PASSWORD, TRILIUM_BASE_URL 先保留 "your-value",请我自己把真实值粘贴到文件或应用的输入框里。不要让我在对话里输入密钥。5) 按约定执行,然后确认 Brainllm 的工具真的出现了。这段话不包含你的密钥。如果需要密钥,AI 会请你自己粘贴到文件或应用的输入框里。
已经装好了吗?先检查 · 打开终端,输入这条命令后按 Enter
node -vMac:按 ⌘ + Space,输入 Terminal 后按 Enter
Windows:打开“开始”菜单,输入 Windows PowerShell,然后选“打开”
还没安装: 打开官方下载页,选择 LTS 版本和点选式安装程序:Mac 用 .pkg · Windows 用 .msi。双击后一路下一步即可,不需要 curl 命令
装好后关掉终端再打开,重新运行同一条命令,应显示版本号: node -v
安装一次,所有需要 Node.js 的工具都能用
这些是程序设置,不是密钥,无需注册。按开发者的说明填写。
TRILIUM_BASE_URL Base URL of the TriliumNext instance, e.g. http://localhost:8080说明仍为英文原文。
在 Brainllm 的设置中,TRILIUM_ETAPI_TOKEN, TRILIUM_PASSWORD, BRAINLLM_OWNER_PASSWORD, TRILIUM_BASE_URL 还是空的,填入你的密钥并保存
只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人
用 Brainllm 告诉我你能帮我做什么,然后做一件给我看✓ 如果 Cursor 说正在使用 Brainllm,或回答中出现 Brainllm 的工具名称,就表示连接成功
上面的命令不填这些也能用。想调整时再按开发者的说明添加。
BRAINLLM_MODE core (default) exposes the 45 brain-aware tools; full additionally exposes the 33 raw ETAPI tools. · 默认值 coreBRAINLLM_TZ IANA timezone used to stamp dated notes, e.g. Africa/Johannesburg. Defaults to the host timezone.BRAINLLM_OAUTH_SECRET Optional 32+ character deployment secret for signing OAuth tokens; rotate it to invalidate old tokens.BRAINLLM_PUBLIC_URL Override for the public origin when a proxy rewrites Host. Must exactly match the URL entered in the client.BRAINLLM_ALLOW_UNAUTHENTICATED_HTTP Explicit trusted-network-only escape hatch for HTTP mode. Never enable on a public interface.BRAINLLM_TRUST_PROXY Trust forwarded host/protocol headers for OAuth discovery only when a trusted reverse proxy sets them.说明仍为英文原文。
菜单名称已于 2026年11月11日 对照 Cursor 帮助页面核实 · 你的界面可能因版本略有不同
可连接 VS Code,但需要先准备
需要 Brainllm 的密钥(在开发者网站创建) · 需要填写 1 项设置(TRILIUM_BASE_URL) · 需要先在电脑上安装 Node.js(只需一次)
把这段话复制到 VS Code 的对话里。AI 会先检查电脑,告诉你要改哪个文件,并且每次都等你同意。
请在这台电脑上为 VS Code 安装 MCP server Brainllm,按顺序:1) 用 node -v 检查是否有 Node.js。没有的话,请让我从 https://nodejs.org/en/download 安装,不要自己安装。2) 只使用这份配置(已通过 PopNx MCP 检查):{ "servers": { "brainllm": { "type": "stdio", "command": "npx", "args": [ "-y", "brainllm" ], "env": { "TRILIUM_BASE_URL": "your-value", "TRILIUM_ETAPI_TOKEN": "your-value", "TRILIUM_PASSWORD": "your-value", "BRAINLLM_OWNER_PASSWORD": "your-value" } } } } 3) 告诉我要修改的文件完整路径或要运行的命令,等我同意。4) TRILIUM_ETAPI_TOKEN, TRILIUM_PASSWORD, BRAINLLM_OWNER_PASSWORD, TRILIUM_BASE_URL 先保留 "your-value",请我自己把真实值粘贴到文件或应用的输入框里。不要让我在对话里输入密钥。5) 按约定执行,然后确认 Brainllm 的工具真的出现了。这段话不包含你的密钥。如果需要密钥,AI 会请你自己粘贴到文件或应用的输入框里。
已经装好了吗?先检查 · 打开终端,输入这条命令后按 Enter
node -vMac:按 ⌘ + Space,输入 Terminal 后按 Enter
Windows:打开“开始”菜单,输入 Windows PowerShell,然后选“打开”
还没安装: 打开官方下载页,选择 LTS 版本和点选式安装程序:Mac 用 .pkg · Windows 用 .msi。双击后一路下一步即可,不需要 curl 命令
装好后关掉终端再打开,重新运行同一条命令,应显示版本号: node -v
安装一次,所有需要 Node.js 的工具都能用
这些是程序设置,不是密钥,无需注册。按开发者的说明填写。
TRILIUM_BASE_URL Base URL of the TriliumNext instance, e.g. http://localhost:8080说明仍为英文原文。
在 Brainllm 的设置中,TRILIUM_ETAPI_TOKEN, TRILIUM_PASSWORD, BRAINLLM_OWNER_PASSWORD, TRILIUM_BASE_URL 还是空的,填入你的密钥并保存
只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人
用 Brainllm 告诉我你能帮我做什么,然后做一件给我看✓ 如果 VS Code 说正在使用 Brainllm,或回答中出现 Brainllm 的工具名称,就表示连接成功
上面的命令不填这些也能用。想调整时再按开发者的说明添加。
BRAINLLM_MODE core (default) exposes the 45 brain-aware tools; full additionally exposes the 33 raw ETAPI tools. · 默认值 coreBRAINLLM_TZ IANA timezone used to stamp dated notes, e.g. Africa/Johannesburg. Defaults to the host timezone.BRAINLLM_OAUTH_SECRET Optional 32+ character deployment secret for signing OAuth tokens; rotate it to invalidate old tokens.BRAINLLM_PUBLIC_URL Override for the public origin when a proxy rewrites Host. Must exactly match the URL entered in the client.BRAINLLM_ALLOW_UNAUTHENTICATED_HTTP Explicit trusted-network-only escape hatch for HTTP mode. Never enable on a public interface.BRAINLLM_TRUST_PROXY Trust forwarded host/protocol headers for OAuth discovery only when a trusted reverse proxy sets them.说明仍为英文原文。
菜单名称已于 2026年11月11日 对照 VS Code 帮助页面核实 · 你的界面可能因版本略有不同
Claude Code
claude mcp add --scope user brainllm --env TRILIUM_BASE_URL=your-value --env TRILIUM_ETAPI_TOKEN=your-value --env TRILIUM_PASSWORD=your-value --env BRAINLLM_OWNER_PASSWORD=your-value -- npx -y brainllmClaude Desktop (claude_desktop_config.json)
{
"mcpServers": {
"brainllm": {
"command": "npx",
"args": [
"-y",
"brainllm"
],
"env": {
"TRILIUM_BASE_URL": "your-value",
"TRILIUM_ETAPI_TOKEN": "your-value",
"TRILIUM_PASSWORD": "your-value",
"BRAINLLM_OWNER_PASSWORD": "your-value"
}
}
}
}Cursor (~/.cursor/mcp.json)
{
"mcpServers": {
"brainllm": {
"command": "npx",
"args": [
"-y",
"brainllm"
],
"env": {
"TRILIUM_BASE_URL": "your-value",
"TRILIUM_ETAPI_TOKEN": "your-value",
"TRILIUM_PASSWORD": "your-value",
"BRAINLLM_OWNER_PASSWORD": "your-value"
}
}
}
}VS Code (mcp.json)
{
"servers": {
"brainllm": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"brainllm"
],
"env": {
"TRILIUM_BASE_URL": "your-value",
"TRILIUM_ETAPI_TOKEN": "your-value",
"TRILIUM_PASSWORD": "your-value",
"BRAINLLM_OWNER_PASSWORD": "your-value"
}
}
}
}TRILIUM_BASE_URL 必填 envTRILIUM_ETAPI_TOKEN 机密 必填 envTRILIUM_PASSWORD 机密 必填 envBRAINLLM_MODE envBRAINLLM_TZ envBRAINLLM_OWNER_PASSWORD 机密 必填 envBRAINLLM_OAUTH_SECRET 机密 envBRAINLLM_PUBLIC_URL envBRAINLLM_ALLOW_UNAUTHENTICATED_HTTP envBRAINLLM_TRUST_PROXY env说明仍为英文原文。
这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
依据这个服务器的连接方式和各应用自己的文档,检查于 2026年11月10日。
在你的电脑上运行,适用于
ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月15日
注册名称已通过 GitHub 账户 miisodev 验证,该账户拥有此仓库
代码最后更新于前天
使用 MIT
它在你的电脑上运行,没有互联网端点
在你的电脑上运行,改用本地设置
它在你的电脑上运行;我们只能读取互联网端点的工具列表
OSV.dev 中没有 brainllm@13.3.2 的记录
只检查这个版本的包本身,不包括所有依赖 · 检查于 2026年11月15日
提问、分享技巧或报告无法使用。按“有帮助”数量排序。
还没有评价
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
它在 3 项适用的基础检查中通过了 3 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
你需要填写:TRILIUM_ETAPI_TOKEN, TRILIUM_PASSWORD, BRAINLLM_OWNER_PASSWORD
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
GitHub 仓库最后更新于前天,最新版本(13.3.2)于5天前进入注册中心。
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Node.js。
同一分类中有:OpenSEO, Exa, Mockserver, Microsoft Learn MCP, Docs
同一分类、其他作者、命令已通过检查。官方的排在前面,再按星标排序。
如何看卡片:↓ 每周下载量i★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
Keyword research, site audits, rank tracking and AI visibility for your AI agent.
Connect AI agents to Exa for web search, content fetching, and multi-step research.
Mock, record/replay, verify and chaos-test any HTTP, REST, gRPC or LLM dependency over MCP.
Official Microsoft Learn MCP Server – real-time, trusted docs & code samples for AI and LLMs.
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
Give Claude a memory that survives the session.
Self-hosted memory for LLMs in TriliumNext Notes, structured by the server and editable by you, served over the Model Context Protocol.
Site · Connect to Claude · How it works · Quick start · Privacy
LLMs forget. Every session starts from zero: who you are, what you're working on, what was decided yesterday, what went wrong last week. BrainLLM fixes that.
BrainLLM is an MCP server that gives an LLM a real, persistent memory — stored in TriliumNext Notes, a mature open-source knowledge base you self-host and own. The model opens each session by loading who you are and what's live, writes durable facts the moment they surface, wires knowledge together as a typed graph, and closes each session with a log, a diary entry, and a database backup. The next session picks up exactly where the last one ended.
It's a single Bun/TypeScript service with two dependencies (the MCP SDK and Zod), speaking to Trilium exclusively through its public ETAPI. Your memory lives in *your* Trilium instance — inspectable, editable, and portable, never locked inside a vendor's black box.
Anyone running an LLM as a long-running collaborator, not a one-shot Q&A tool — across coding, research, personal knowledge management, or day-to-day operational tracking — who wants that collaborator to actually remember: who you are, what's in flight, what was decided, without you re-explaining it every session. If you're comfortable self-hosting one small service and a Trilium instance, BrainLLM turns "the model forgot everything again" into a solved problem. It works with any MCP-capable client (Claude Desktop, Claude Code, or anything else speaking MCP), not just one product.
BrainLLM began in February 2026 as a personal experiment: could an LLM operate a real, self-hosted memory reliably enough to be trusted as its own memory — orienting, writing, connecting, and closing sessions without a human doing the filing? Through sustained daily, production use the answer held. The design has settled, the failure modes have been found and fixed, and the project has graduated from experiment to something efficient and stable enough to share — so it's now open source. It still runs the author's own sessions every day; what you're reading is the same code, not a demo. It also still carries the shape of one person's daily use — see Adapting to your environment for exactly what that means and what to change.
The model supplies content. The server owns form.
Placement, naming, labels, deduplication, relation bookkeeping, lifecycle aging, archival, date stamping, HTML sanitization, backups — and structure itself — are all deterministic server policy, never delegated to the LLM. The model never chooses a parent note, never sets a label, never checks for duplicates, never stamps a date. That division is what makes the memory *reliable*: every guarantee is enforced at the tool layer, not requested via prompt.
template() and held on write: a new thread requires its goal, thread/diary/session entries open with an identification line (which LLM, which environment, which session type), threads carry exactly one Resolution (owned by resolve()), duplicate section headings are detected, and Last updated stamps are server-maintained.graph() renders the whole relation graph (or any note's neighborhood) as a Mermaid flowchart, maintained as a native Trilium note.day() serves the previous session, its change log and everything touched since in a single call.shape= at creation.maintain(deep=true) flags dated prose that creeps in. Every note except a log carries an icon, set by kind and backfilled by the sweep.deletionCatchupDays in the lifecycle policy), defaulting to Trilium's 7-day retention.consistency(subject="…") finds every note asserting about a fact however it is phrased, no regex guessing; consistency(pattern, staleAfterDays=N) surfaces figures held in exactly one untouched note, the ones that rot silently because nothing disagrees with them, and skips sessions and diaries, which are history rather than claims; diff(since="today") reviews every note a session changed in one call; revise(find="Phase 2", within="tr") edits, inserts or removes a table row named by a few words inside it; read(ids=[…]) batches a multi-note orientation into one round trip — each note's size up front, or a single section= across them; and split(noteId, sections=[…], into="…") is the write half of the oversized-note problem — it lifts whole sections into a new note and leaves a pointer back. Information notes can carry a #mandate marker so a scoped session finds the one note it must obey without reading every note's prose.revise(noteId, edits=[…], dryRun=true) shows sequential match counts and sanitized before/after content with no revision, labels or gate writes. Revision failures stop content overwrites. consistency() reports read failures and scan coverage; case-insensitive comparisons retain spelling variants without false conflicts. Incomplete scans cannot establish absence or unanimity.revise(find, within="tr", mode="remove", closure={thread, body}) removes a register row and records its closure in that thread's entry for the day, closure={note, table?, row?} moves a row into an explicitly selected register table; destination cells must match the table's shape. Destination-first ordering preserves recoverability, and moves=[{find, row?}] batches closures with preflight and per-row progress, and append={table, row} adds a row with no anchor to find; within= also accepts a row as a reader sees it ("Phase 2 | Claude | Open"), and a table row whose cells disagree with its header is flagged at write time and by maintain(deep).revise(find, within="tr", mode="remove", all=true) removes every row an anchor sits in, in one write and previewable with dryRun=true; remember(kind="sources", revision=[{source, from}]) renames a Sources key when a source moves instead of adding a second row; a dated-thread append returns previousRun, its author's previous block and run number; read(ids, sizes=true) plans a bulk read from sizes and section sizes alone; and diff(since="today", summaryOnly=true) lists what changed without the lines.close() seals its day's records into a digest chained to the previous day's, and maintain(deep) reports any sealed record that was rewritten afterwards. Appends stay legal; edits to history do not go unnoticed.At bootstrap, BrainLLM builds a five-area tree in Trilium. Every note the tools create is typed, labeled, dated, and placed by server policy:
BrainLLM (#brainLlmRoot)
├── 👤 Master Biography · Goals · Preferences (the user — maintained singletons) ├── 🤖 LLM Responsibilities · Protocols · Self-correction · Diary/ (the assistant's self-model + daily diary) ├── 🗂️ Memory Sessions/ · Threads/ (daily session logs + multi-session work) ├── 📚 Knowledge Master/ · Domains/ /{ Sources, info } (learned facts beyond/contra training) └── 💡 Insights Logs/ · Graph · Claims (the brain's record of itself)
| Note class | Kinds | Behavior |
|---|---|---|
| Singletons | biography, goals, preferences, responsibilities, protocols, selfcorrection (+ each domain's Sources note) | Exactly one maintained note; edited in place; hold *current-state truth* |
| Authored records | diary, session, dated threadEntry | One per calendar day and parent; every write lands as a timestamped addendum block — chronology is the point |
| Generated logs | log | One per calendar day; regenerated in place from the change feed |
| Collections | thread, user, information, domain | Titled notes, deduplicated by normalized title within their scope |
A session follows an enforced protocol: start() orients (who you are, live threads, what changed since last time) → the model works, writing durable facts *as they surface* → session() → addendum() → maintain() → remarks() → diary() → close() commits the log, regenerates the daily change log, and triggers a DB backup. The pre-close gate is enforced in code: close() refuses unti