What goes into it
Roomote fills the Brain from what it can already see:- completed Roomote tasks, including a short memory the agent writes about its own work: what it decided, why, and what is still open
- pull requests from your connected source-control provider
- public Slack channels the Roomote bot has been added to
- GitHub issues in connected repositories
- Notion pages explicitly shared with the deployment’s Notion integration
- meeting notes from Granola, when that integration is connected
- employee directory and reporting structure from Rippling, when that integration is connected; HRIS reporting and membership fields remain explicitly authoritative rather than being mixed with inferred collaboration signals
- people identities, projected from Roomote accounts, linked provider handles, and the human members in connected Slack workspace directories; Slack display names, real names, and job titles help agents connect people across sources even when they do not have Roomote accounts
Turning it on
The Brain runs as its own service alongside Roomote, reachable only on your deployment’s internal network. On the hosted templates (Railway, Render, Coolify) that service is already there after a deploy, sitting idle. Setting a Brain provider key,R_BRAIN_OPENROUTER_API_KEY or
R_BRAIN_OPENAI_API_KEY, is what turns it on. Set either one as an
environment variable or a Settings environment value; the value can be the
same key you already use for tasks, or a separate one to bill the Brain
independently. The explicit R_BRAIN_* name is the opt-in: the general
provider keys your deployment uses for tasks never activate the Brain on
their own, so configuring task models leaves the Brain off.
The Brain service holds no provider key of its own. It asks Roomote for
embeddings and synthesis, and Roomote forwards them under the Brain key.
Changing that key later takes effect on the Brain’s next request, with no
redeploy.
OpenRouter and OpenAI both support the Brain’s embedding and synthesis calls,
but search reranking requires OpenRouter.
Without a Brain key, the Brain stays inert. Agents are not told it exists,
and nothing is ingested.
Roomote schedules one maintenance pass each night. It retrieves a bounded,
source-balanced evidence set from gbrain, produces a cited digest of material
effective-dated since the previous successful pass, then stores it under
daily/digests/ in both the searchable index and the persistent Markdown
corpus. The digest
focuses on concrete decisions, shipped work, blockers, commitments, and
cross-source connections rather than generating a reflection for every raw
page. Each page records how many Slack, task, GitHub, and Notion or meeting
pages were considered and cited, so missing source coverage is visible.
Beginning Tuesday, the same pass also updates
weekly/summaries/<year>-W<week>. That bounded synthesis connects durable
decisions, unresolved blockers, commitments, and recurring or superseded
information across the week’s available daily digests. Roomote reads those
digest pages by their exact slugs and supplies their content as the complete
evidence set, so raw or historical Brain pages cannot enter the weekly pass.
The daily cutoff trails active ingestion and overlaps the previous pass so
collector writes around the nightly boundary are reconsidered. gbrain’s
durable worker still owns structural maintenance such as link extraction,
fact consolidation, embedding catch-up, orphan checks, and purging. Roomote
does not run gbrain’s prediction-proposal and calibration queue unattended;
that upstream feature requires an operator review workflow before proposals
become canonical memory.
Self-hosted Compose deployments start the Brain from the
brain
profile, so set a Brain key in your environment file to bring the container
up. Everything after that is the same.How agents use it
Agents get the Brain as an MCP server with read-only tools. They can search it, recall relevant pages, browse what exists, and ask for a synthesized answer with sources. They cannot write to it directly. For a substantive topic, agents query the Brain before consulting overlapping Slack, GitHub, task-history, meeting, or pull-request sources. They check those live sources when Brain coverage is insufficient, freshness could change the answer, or you explicitly ask for live verification. Writes go through Roomote instead. When an agent finishes substantial work it records a short memory of what it did, and the platform places that text under a slug it controls, after scrubbing credential-shaped strings. An agent can therefore contribute what only it knows without being able to touch any other page. Memories carry the environment they came from, so a page written while working in staging is distinguishable from one written against production.Choosing models
Three settings pick the Brain’s models:
Leave the first two unset and the Brain uses OpenAI’s
gpt-5.6-luna and
text-embedding-3-small through whichever provider you configured.
The reranker defaults to OpenRouter’s voyageai/rerank-2.5-lite. Set
R_BRAIN_RERANKER_MODEL to choose another model from
OpenRouter’s reranker catalog. Reranking requires an OpenRouter key; with only
OpenAI configured, gbrain keeps the unreranked results instead of failing the
search.
The synthesis model is applied by Roomote when it forwards the call and passed
to the provider as written, so use that provider’s naming
(openai/gpt-5.6-mini on OpenRouter, gpt-5.6-mini on OpenAI). Changing
it takes effect on the next request with nothing to restart.
If you turned the Brain on later
A Brain that first boots without a provider key is created with semantic recall switched off, because the embedding model sizes its vector storage at creation time. Adding a key later is still fine: the Brain notices on its next start, enables semantic recall, and embeds whatever it already holds. It logssemantic recall enabled when it does.
That repair runs once and is safe, since a Brain in this state has no
embeddings to lose and its pages are preserved. If it cannot complete, the
service logs the commands to run by hand and keeps serving in the meantime,
matching on keywords alone.
Operating it
- Back up the Brain volume. The Railway template schedules daily and
weekly backups for it. On other platforms, include
/data/brainin the deployment’s normal volume backups. That directory is the Markdown corpus, including pages produced by nightly synthesis. Postgres holds the searchable index, extracted facts, and durable maintenance jobs; keeping it in the normal database backup makes restores faster, but it is not the only copy of the source pages. - Losing the Brain is recoverable but not free. If the volume or isolated
gbraindatabase is recreated, Roomote re-registers its clients, resets its ingestion checkpoints, and backfills task history and integration sources. The deployment starts cold until that finishes, and regenerated synthesis may not be byte-for-byte identical. - The filesystem cutover rebuilds older Brains once. The first start of a filesystem-backed image replaces a Postgres-only Brain instead of trying to merge the old index into an empty checkout. Roomote then repopulates it from its connected sources.
- The Brain has no public route. It is never exposed to the internet, and task sandboxes reach it only through Roomote’s API with their run token, which grants read access only.
- To run with no memory at all, leave both provider keys unset. Deployments that want to reclaim the resources entirely can delete the Brain service from their compose file or template.