[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-116641":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":8,"htmlUrl":8,"language":9,"languages":8,"totalLinesOfCode":8,"stars":10,"forks":11,"watchers":12,"openIssues":12,"contributorsCount":13,"subscribersCount":13,"size":13,"stars1d":13,"stars7d":14,"stars30d":14,"stars90d":13,"forks30d":13,"starsTrendScore":15,"compositeScore":16,"rankGlobal":8,"rankLanguage":8,"license":17,"archived":18,"fork":18,"defaultBranch":19,"hasWiki":18,"hasPages":18,"topics":20,"createdAt":8,"pushedAt":21,"updatedAt":22,"readmeContent":23,"aiSummary":24,"trendingCount":13,"starSnapshotCount":13,"syncStatus":12,"lastSyncTime":25,"discoverSource":26},116641,"rsc-brain","ericrisco\u002Frsc-brain","ericrisco",null,"TypeScript",60,12,2,0,4,3,42.74,"MIT License",false,"main",[],"2026-11-23 20:50:01","2026-11-23 18:47:25","\u003C!-- markdownlint-disable-next-line MD041 -->\n\u003Ca id=\"top\">\u003C\u002Fa>\n\n\u003Cdiv align=\"center\">\n\n\u003Cimg width=\"100%\" alt=\"rsc-brain: a brain drawn as a graph of linked notes, each region a community in its own colour, ringed by the notes that have no links yet. The memory your AI agents are missing. Kept by your team, on your server.\" src=\"docs\u002Fassets\u002Fbanner.webp\" \u002F>\n\n\u003Ch1>rsc-brain\u003C\u002Fh1>\n\n\u003Cp>\u003Cstrong>A self-hosted memory for AI agents, curated by the people who work with them.\u003C\u002Fstrong>\u003C\u002Fp>\n\n\u003Cp>\n\u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fericrisco\u002Frsc-brain\u002Freleases\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Frelease-v0.7.0-4ADE9A?style=for-the-badge&labelColor=0B0F17\" alt=\"Release\">\u003C\u002Fa>\n\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FMCP-Streamable%20HTTP-4ADE9A?style=for-the-badge&labelColor=0B0F17\" alt=\"MCP over Streamable HTTP\">\n\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Fself--hosted-PostgreSQL-8AB4F8?style=for-the-badge&labelColor=0B0F17\" alt=\"Self-hosted on PostgreSQL\">\n\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FmacOS%20%C2%B7%20Linux-8AB4F8?style=for-the-badge&labelColor=0B0F17\" alt=\"macOS and Linux\">\n\u003Ca href=\"LICENSE\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FMIT-8AB4F8?style=for-the-badge&labelColor=0B0F17\" alt=\"License: MIT\">\u003C\u002Fa>\n\u003C\u002Fp>\n\n\u003Cp>\n\u003Ca href=\"docs\u002Findex.html\">\u003Cstrong>Website\u003C\u002Fstrong>\u003C\u002Fa> &bull;\n\u003Ca href=\"#get-started\">\u003Cstrong>Quickstart\u003C\u002Fstrong>\u003C\u002Fa> &bull;\n\u003Ca href=\"#connect-your-agent\">\u003Cstrong>Connect your agent\u003C\u002Fstrong>\u003C\u002Fa> &bull;\n\u003Ca href=\"DOCS.md\">\u003Cstrong>Full reference\u003C\u002Fstrong>\u003C\u002Fa> &bull;\n\u003Ca href=\"CHANGELOG.md\">\u003Cstrong>Changelog\u003C\u002Fstrong>\u003C\u002Fa>\n\u003C\u002Fp>\n\n\u003Cbr\u002F>\n\n\u003Cp>\nEvery AI agent you use starts from zero.\u003Cbr\u002F>\nIt does not remember the decision you made last Tuesday, the bug it already fixed twice,\u003Cbr\u002F>\nor why the billing service is built the way it is. You explain it again. And again.\n\u003C\u002Fp>\n\n\u003Cp>\u003Cstrong>rsc-brain is where that knowledge stays.\u003C\u002Fstrong>\u003C\u002Fp>\n\n\u003Cp>\u003Csub>Agents write down what they learn. People decide what becomes the record. Every agent reads it before it works.\u003C\u002Fsub>\u003C\u002Fp>\n\n\u003Cbr\u002F>\n\n\u003Csub>\u003Cstrong>WORKS WITH THE AGENT YOU ALREADY HAVE\u003C\u002Fstrong>\u003C\u002Fsub>\n\n\u003Cstrong>Claude Code\u003C\u002Fstrong> · \u003Cstrong>Codex\u003C\u002Fstrong> · \u003Cstrong>Cursor\u003C\u002Fstrong> · \u003Cstrong>OpenCode\u003C\u002Fstrong> · \u003Cstrong>any MCP client\u003C\u002Fstrong> · \u003Cstrong>any program over HTTP\u003C\u002Fstrong>\n\n\u003Csub>Standard MCP sign-in or a personal token · a local bridge for agents that only start local programs · \u003Ca href=\"#connect-your-agent\">per-agent setup →\u003C\u002Fa>\u003C\u002Fsub>\n\n\u003C\u002Fdiv>\n\n\u003Cdiv align=\"center\">\u003Cimg src=\"docs\u002Fassets\u002Fmark.svg\" width=\"28\" alt=\"\" \u002F>\u003C\u002Fdiv>\n\n## Why it matters\n\nYour team already pays for what its agents learn: every hour spent explaining the codebase, the client, the\nincident, the convention. Today that knowledge evaporates when the session ends. rsc-brain turns it into an\nasset you keep.\n\n| Without a brain | With rsc-brain |\n| :--- | :--- |\n| Each session starts from zero; context is pasted in by hand | The agent reads what the team knows before it touches anything |\n| What one agent learned is invisible to the next tool or colleague | Claude Code, Codex, Cursor and your own programs share one memory |\n| Knowledge lives in chat histories nobody will ever search | Decisions, lessons and facts end up in one wiki, with sources |\n| When a person leaves or a vendor changes, the know-how leaves too | The record stays on your server, in plain pages anyone can read |\n| An agent's mistake quietly becomes \"how we do things\" | Agents propose; a curator, or a key a curator trusts, decides |\n| Your context sits in someone else's cloud | Self-hosted, MIT licensed, no model on the server, nothing sent out unless you turn it on |\n\n\u003Cdiv align=\"center\">\u003Cimg src=\"docs\u002Fassets\u002Fmark.svg\" width=\"28\" alt=\"\" \u002F>\u003C\u002Fdiv>\n\n## How it works\n\n\u003Cp align=\"center\">\u003Cimg width=\"100%\" alt=\"Notes stream in from several agents' terminals and settle into one orderly stack that becomes a linked graph.\" src=\"docs\u002Fassets\u002Fagents.webp\" \u002F>\u003C\u002Fp>\n\n```\n agents ──save──▶  JOURNAL  ──compile──▶  PROPOSALS  ──decide──▶  WIKI  ◀──search──  every agent\n                   what they               what should             what the\n                   did and learned         become knowledge        team knows\n```\n\n**1 · The journal — free to write.** While they work, agents save decisions, lessons, attempts, facts and\npreferences. Every save has a receipt, a retry never duplicates, a topic is revised instead of repeated, and\nsecrets are removed before anything is stored.\n\n**2 · Proposals — an agent compiles, a person decides.** An agent turns the journal into typed pages with typed\nlinks (*depends on, part of, supersedes, contradicts…*), each citing the entries it came from. A curator approves\nall of it, approves part and returns the rest, corrects a change, or returns it with a comment the agent reads next\ntime. Only what was seen can be approved: the review carries a fingerprint.\n\n**3 · The wiki — what the team knows.** Revisions, history, an undo for every change, and a log that says who did\nwhat. A key a curator trusts can write and decide directly, over MCP or the API.\n\n**4 · Search before deciding.** Pages and journal together, accent-insensitive, in Spanish and English; ranked by\nBM25 when the `pg_search` extension is there; optional search by meaning, mixed by rank fusion. What was\nsuperseded never outranks what replaced it.\n\n\u003Cdiv align=\"center\">\u003Cimg src=\"docs\u002Fassets\u002Fmark.svg\" width=\"28\" alt=\"\" \u002F>\u003C\u002Fdiv>\n\n## Features\n\n---\n\n### The graph — see what your agents know\n\n\u003Cp align=\"center\">\u003Cimg width=\"100%\" alt=\"The wiki as a full-screen graph: pages as dots coloured by community, a ring of pages with no links yet around it, and the communities panel with a checkbox and count per community.\" src=\"docs\u002Fassets\u002Fui-graph.webp\" \u002F>\u003C\u002Fp>\n\nA living picture of the wiki: pages pull toward what they link to and settle; drag one and its neighbours follow.\nColours are communities found in the links themselves, each named after its most linked page. Pages with no links\nyet circle the whole brain, so what is disconnected is obvious at a glance. Hover for the title; click to read.\n\n**[Docs →](DOCS.md#the-web)**\n\n---\n\n### Proposals — nothing becomes knowledge by accident\n\n\u003Cp align=\"center\">\u003Cimg width=\"100%\" alt=\"A proposal under review: each change shown before and after, a warning that one change was written on an older revision, and the curator's controls to approve all, approve part, or return it with a comment.\" src=\"docs\u002Fassets\u002Fui-proposal-review.webp\" \u002F>\u003C\u002Fp>\n\nEvery change shown before and after, with its reason, its sources and what it depends on. Changes written on an\nolder revision are flagged. Approve all, approve part, correct, or return with a comment that becomes a correction\nin the agent's journal. All or nothing when it applies.\n\n**[Docs →](DOCS.md#writing-to-the-wiki-directly)**\n\n---\n\n### A wiki that checks itself\n\n\u003Ctable>\n\u003Ctr>\n\u003Ctd width=\"50%\">\u003Cimg alt=\"A brain's overview: pages, entries, what is not in the wiki yet, conflicts and proposals waiting, today's sessions, and five health items.\" src=\"docs\u002Fassets\u002Fui-overview.webp\" \u002F>\u003C\u002Ftd>\n\u003Ctd width=\"50%\">\u003Cimg alt=\"The journal: sessions of agents and people, each with its entries and summary.\" src=\"docs\u002Fassets\u002Fui-journal.webp\" \u002F>\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003C\u002Ftable>\n\nOrphan pages, broken links, open contradictions, stale pages the journal keeps mentioning, sources no longer\navailable, pages grown too long, near-duplicate titles. Whoever proposes or writes is warned before sending and\ngets the neighbouring pages to check for contradictions in meaning; and when nobody has cleaned up for a day, the\nnext agent to start a session is asked to.\n\n**[Docs →](DOCS.md#warnings-before-and-after-a-change)**\n\n---\n\n### Also in the box\n\n| Component | What it does |\n| :--- | :--- |\n| **[MCP server](#for-agents)** | 27 tools: resolve the brain, read context, save, search, read pages, propose, review, decide |\n| **[HTTP API](DOCS.md#the-api-for-programs)** | The same routes for programs, with OpenAPI; each MCP tool runs the same route with the same key |\n| **[Many brains](DOCS.md#people-keys-and-mail)** | One installation, a brain per product, client or channel; people invited by role |\n| **[Live feed](DOCS.md#following-a-brain-live)** | Follow what agents save, search and propose as it happens |\n| **[Audit](DOCS.md#audit)** | Who did what, filterable, exportable as CSV |\n| **[Import & export](DOCS.md#install)** | Import a documentation folder or a vault; export a brain as readable markdown or a faithful copy |\n| **[Copies](DOCS.md#copies)** | Encrypted daily copies with your installation key; restore and update with a rollback point |\n| **[Search by meaning](DOCS.md#search-by-meaning-optional)** | Optional, off by default; you choose the provider and what is sent |\n| **[Better ranking](DOCS.md#better-ranking-with-optional-extensions)** | `pg_search` (BM25) and `pgvector` when your PostgreSQL has them |\n\n> **Every command, setting, route and operation: [Full reference →](DOCS.md)**\n\n\u003Cdiv align=\"right\">\u003Ca href=\"#top\">Back to top\u003C\u002Fa>\u003C\u002Fdiv>\n\n\u003Cdiv align=\"center\">\u003Cimg src=\"docs\u002Fassets\u002Fmark.svg\" width=\"28\" alt=\"\" \u002F>\u003C\u002Fdiv>\n\n## Get started\n\n### Install\n\nrsc-brain runs in containers on macOS or Linux; you need Docker with Compose v2 and git. Download the launcher\nfrom a [release](https:\u002F\u002Fgithub.com\u002Fericrisco\u002Frsc-brain\u002Freleases), check it against the SHA-256 in the release\nnotes, and install:\n\n```sh\ncurl -fsSLO https:\u002F\u002Fgithub.com\u002Fericrisco\u002Frsc-brain\u002Freleases\u002Fdownload\u002FvX.Y.Z\u002Frsc-brain.sh\nshasum -a 256 rsc-brain.sh            # must match the release notes\nsh rsc-brain.sh install --local       # PostgreSQL included; the web opens on http:\u002F\u002Flocalhost:8090\n```\n\nOpen the address, make the administration account, and keep the installation key it shows you. On a server with a\ndomain, `install --domain brain.example.com` puts Caddy and HTTPS in front. While the repository is private,\ninstalling needs access to it (`--repo` with an address git can read, or `--image`).\n\n> **Every install option — an existing PostgreSQL, sharing it with rsc-factory, updates, copies, uninstall: [Install →](DOCS.md#install)**\n\n### Connect your agent\n\nEach agent connects with the standard MCP sign-in (the browser opens once) or with a personal token. The web's\n**Connect your agent** page gives the exact block for each one.\n\n| Agent | Connect |\n| --- | --- |\n| Claude Code | `claude mcp add --transport http rsc-brain \u003Caddress>\u002Fmcp --scope user` then `claude mcp login rsc-brain` |\n| Codex | `codex mcp add rsc-brain --url \u003Caddress>\u002Fmcp` then `codex mcp login rsc-brain` |\n| Cursor | `{\"url\": \"\u003Caddress>\u002Fmcp\"}` in `.cursor\u002Fmcp.json` |\n| OpenCode | a `remote` server in `opencode.json` |\n| Agents that only start local programs | the bridge: `rsc-brain bridge --url \u003Caddress>\u002Fmcp` |\n| Your own program | the HTTP API with a token |\n\nThen ask your agent: *\"What does this brain know about X?\"* At the end of the session: *\"Save what we learned.\"*\n\n> **Tokens kept out of shared files, the bridge, and the Claude Code reminder hooks: [Connect your agent →](DOCS.md#connect-your-agent)**\n\n\u003Cdiv align=\"right\">\u003Ca href=\"#top\">Back to top\u003C\u002Fa>\u003C\u002Fdiv>\n\n\u003Cdiv align=\"center\">\u003Cimg src=\"docs\u002Fassets\u002Fmark.svg\" width=\"28\" alt=\"\" \u002F>\u003C\u002Fdiv>\n\n## For agents\n\nOn connecting, an agent receives a short protocol: **resolve its brain, read the context, search before deciding,\nsave as it works, never save secrets, close with a summary.** A key sees only the tools it may use.\n\n| Intent | Tools |\n| --- | --- |\n| Find the brain and start | `brain_list` · `brain_resolve` · `mem_context` · `mem_session_start` |\n| Save what was learned | `mem_save` · `mem_update` · `mem_suggest_topic` · `mem_relate` · `mem_forget` |\n| Close the session | `mem_session_summary` · `mem_session_end` |\n| Search and read | `mem_search` · `mem_get` · `mem_timeline` · `brain_page` · `brain_neighbors` · `brain_map` |\n| Keep the wiki healthy | `brain_health` · `brain_compile_pack` · `brain_check` |\n| Change the wiki | `brain_propose` · `brain_proposals` · `brain_withdraw` · `brain_write` (with the permission) |\n| Decide proposals | `brain_review` · `brain_decide` (with the permission) |\n| Make a new brain | `brain_create` |\n\n**A useful entry is specific.** What was decided and why, what was tried and failed, the fact and where it came\nfrom, with a topic (`billing\u002Fstripe`) so the next save on the same subject revises it instead of repeating it.\n\n\u003Cdiv align=\"right\">\u003Ca href=\"#top\">Back to top\u003C\u002Fa>\u003C\u002Fdiv>\n\n\u003Cdiv align=\"center\">\u003Cimg src=\"docs\u002Fassets\u002Fmark.svg\" width=\"28\" alt=\"\" \u002F>\u003C\u002Fdiv>\n\n## Documentation\n\n| Topic | Where |\n| --- | --- |\n| Install, update, copies, uninstall | [DOCS.md › Install](DOCS.md#install) |\n| The web and its screens | [DOCS.md › The web](DOCS.md#the-web) |\n| People, keys, mail | [DOCS.md › People, keys and mail](DOCS.md#people-keys-and-mail) |\n| Writing to the wiki, deciding with a key, warnings, cleanup | [DOCS.md › Writing to the wiki directly](DOCS.md#writing-to-the-wiki-directly) |\n| MCP, standard sign-in, connecting agents | [DOCS.md › Agents over MCP](DOCS.md#agents-over-mcp) |\n| The HTTP API, live feed, audit | [DOCS.md › The API for programs](DOCS.md#the-api-for-programs) |\n| Behind a proxy, in a container | [DOCS.md › Behind a reverse proxy](DOCS.md#behind-a-reverse-proxy) |\n| Development | [DOCS.md › Development](DOCS.md#development) |\n| What changed in each version | [CHANGELOG.md](CHANGELOG.md) |\n\n> Status: early development.\n\n\u003Cdiv align=\"center\">\u003Cimg src=\"docs\u002Fassets\u002Fmark.svg\" width=\"28\" alt=\"\" \u002F>\u003C\u002Fdiv>\n\n## License\n\nMIT. See [LICENSE](LICENSE).\n\n\u003Cdiv align=\"center\">\n\u003Cimg src=\"docs\u002Fassets\u002Fmark.svg\" width=\"56\" alt=\"\" \u002F>\n\u003Cbr\u002F>\n\u003Csub>\u003Cstrong>rsc-brain\u003C\u002Fstrong> — what your agents learn, kept.\u003C\u002Fsub>\n\u003Cbr\u002F>\u003Cbr\u002F>\n\u003Ca href=\"#top\">Back to top\u003C\u002Fa>\n\u003C\u002Fdiv>\n","rsc-brain 是一个面向 AI 代理的自托管长期记忆系统，由团队人工审核并维护知识沉淀。核心功能包括：基于图结构组织的可搜索笔记（支持社区分组与无链接节点标识）、通过 MCP（Model Context Protocol）标准协议（Streamable HTTP）与各类 AI 工具集成、本地化部署于 PostgreSQL，支持 macOS\u002FLinux 环境。它不替代 AI 模型本身，而是作为统一、可信的知识缓存层，在代理每次执行前自动注入上下文。适用于软件开发团队、运维小组或产品团队在使用 Claude Code、Cursor、Codex 等编程辅助工具时，持续积累代码规范、架构决策、故障复盘等组织级隐性知识。","2026-11-24 04:54:08","CREATED_QUERY"]