Memory at a glance
What each space holds
| Namespace | Description | Memories |
|---|---|---|
| Loading… | ||
Calls, health & latency per tool
| Tool | Calls | Errors | p50 | p95 |
|---|---|---|---|---|
| Loading… | ||||
Memories per type
| Type | Memories | Share |
|---|---|---|
| Loading… | ||
Most active users
| User | Search | Add | Delete | Other | Total | Last seen |
|---|---|---|---|---|---|---|
| Loading… | ||||||
How Cortex works
How a memory is stored
A memory is the unit of storage — one verbatim item with its provenance. Every memory is filed on three independent axes: a namespace (where it lives), a type (what shape it is), and its topics (what it’s about). The axes are orthogonal — a memory carries exactly one namespace, exactly one type, and any number of topics.
Namespace × Type × Topics
Where it lives — and who can read it. The security boundary: recall is scoped to the namespaces you can access, enforced at the database (row-level security).
- Cardinality: exactly one, required on every memory_add.
- Kinds: user: (private) · org: (company-wide) · team: (a team).
- Closed by config — an admin provisions namespaces and grants access.
What shape the memory is. A closed, admin-configurable vocabulary the caller picks from — Cortex never classifies. Exposed on every search result and usable as a filter (matched by name only).
- Cardinality: exactly one, required on every memory_add.
- The set: the live vocabulary below, each with a description (an admin edits it on the Prompt tab).
- Stored as metadata.type; a filter, never an access or ranking decision.
What the memory is about. An open, agent-coined organisation axis — free-form slugs, reused across memories. Topics organise and filter; they never grant access.
- Cardinality: zero or many — a memory can carry several at once.
- Open — reuse an existing slug (memory_list_topics) before coining one.
- Powers “list every X” via a facet-fetch over a topic.
Fields of a memory
| Field | Axis / role | Notes |
|---|---|---|
| namespace | access | Where it lives; the security boundary. Required. |
| type | shape | One of the closed vocabulary (in metadata.type). Required. |
| topics[] | subject | Open, multi-valued organisation axis. |
| content | payload | The verbatim text (Layer 1). |
| author · source | provenance | Who wrote it (bound to the caller) and where it came from. |
| created_at · valid_at | bitemporal | When recorded vs. when true — drives currency & supersession. |
| superseded_by | lifecycle | Set when the memory is hidden (soft-delete): by the hourly sweep, an editor's Hide now, or memory_delete. It names the newer memory, or the memory's own id after a plain memory_delete. Restore on the Superseded page clears a hide that names a newer memory; a plain delete can't be restored there. |
| memory_links | supersession | Links from this memory to newer ones that replace it, partly update it, or duplicate it, with the judge's confidence and reason (written by cognify). Search flags and demotes a linked memory and shows the newer one. The sweep hides it on a confident duplicate at the next run (one written by the backfill waits the grace), or on a confident replaces after the grace; with the grace set to never, only live duplicates are hidden; partly_updates never hides it. See Memory → Superseded. |
| metadata | provenance | JSON: type, plus who approved or edited a reviewed memory and which collector wrote it. |
| content_hash | dedup | Exact-duplicate signal on write. |
| embedding | vector | 768-d, backfilled asynchronously for semantic recall. |
| memory_ids | ID index | Source-system IDs the text mentions (Linear keys, PRs, Notion pages…), extracted at write time; follow_entity walks them. |
| pending | lifecycle | Memories from a Manual source wait in a separate approval queue and are not searchable until approved. See the Approval Flow tab. |
Two layers. The memory above is Layer 1 — stored verbatim and recallable immediately. A background cognify worker distils it into Layer 2: facts (extracted statements) and a knowledge graph (entities + relations), which inherit the memory’s namespace and power multi-hop recall via follow_entity. The same worker then compares the memory with the earlier ones closest to it and writes supersession links when it replaces, updates or duplicates them. See the Architecture tab for the write and search paths.
From sources to AI agents
Scheduled collectors turn new activity in each source into memories. Every source has an approval mode: Auto stores memories as the collector writes them; Manual holds them in the approval queue, unsearchable, until a person with the Editor or admin role reviews, edits and approves them on the Approvals tab. An admin sets the mode per source on the Sources tab; Cortex checks it on every write, so a change applies to the next memory a collector writes.
When a newer memory outdates an older one
After a memory is cognified, an external model compares it with the closest earlier memories in its namespace and records a link from each one it outdates. Search acts on a link at once: the older memory is flagged, ranked lower and shown next to the newer one. The hourly sweep then hides some of them, by rule. Editors and admins review every link on the Superseded page.
Query the memory
Run memory_search exactly as a calling agent would — scoped to the namespaces you can access. Recall-first: leave namespaces blank to search everything you can read.
Approval queue
Memories from collector sources set to manual approval wait here. They are not searchable until approved. Open one to read and edit it, then Approve to store it as a memory, or Delete to drop it. A deleted item is remembered, so the collector does not queue it again. You see items for the namespaces you can read.
| Queued | Collector | Namespace | Type | Memory |
|---|---|---|---|---|
| Loading… | ||||
Superseded memories
When a new memory is written, Cortex checks whether it replaces older ones. A linked memory is still searchable but marked outdated and ranked below its replacement. The hourly sweep then hides confident duplicates at once and confident replacements after 14 days. A partly-updated, low-confidence or reversed link never hides a memory by itself; a later link (say, a newer memory that fully replaces it) still can. Unlink a wrong link, Hide now a correct one, or Restore a hidden memory; every action is recorded under History. You see the namespaces you can read. See the rules as a diagram →
| Loading… |
People
A user is one email. They sign in with SSO, a bearer token (the admin-console fallback when SSO is broken or disabled), or both; their role and teams apply to every sign-in method. They reach their own user: space, the company-wide org: space (shared with everyone by config), plus any team they're added to. Manage team membership on the Access matrix tab.
| User | Sign-in | Role | |
|---|---|---|---|
| Loading… | |||
Service accounts
A service account is a bot or automation, such as a Slack bot, that calls Cortex with its own token instead of a person's sign-in. It reaches only the namespaces you list: no personal space, and the company-wide space only if you list it. Read-only hides the write tools. Tokens expire (90 days by default); regenerate to rotate. It can never use this console. People sign in with SSO on the People tab instead.
| Service account | Access | Mode | Token expires | Last used | |
|---|---|---|---|---|---|
| Loading… | |||||
Teams
A team is a shared team: namespace; membership is a grant pointing at it. Add or remove members on the Access matrix tab.
Guidance by namespace kind
Calling agents get this text for every namespace of the kind (connect instructions, memory_list_namespaces, the namespace-required error), followed by that namespace's own description. {name} and {owner} become the part after the colon, e.g. eng or the user's email.
| Kind | Guidance | |
|---|---|---|
| Loading… | ||
Access matrix
Rows are principals, columns are shared namespaces. Click a cell to grant or revoke — the change applies immediately.
Authentication
How MCP clients authenticate to Cortex. Changes apply immediately, with no restart — an OAuth config is verified against the provider before it goes live, so a bad setting is rejected and the current mode stays up. Your /admin login is separate, so a change here can never lock you out of this console.
No authentication. Every request is treated as the local admin identity. For single-user or air-gapped dev only — never expose this on a shared network.
Long-lived bearer tokens, one per person. Issue and revoke them on the People tab — each token maps to a subject and reaches that subject's namespaces via the Access matrix.
Validate JWTs from a standard OIDC provider (Microsoft Entra, Okta, Auth0, Keycloak). Cortex is a resource server — it verifies tokens; the login/redirect flow lives in your provider and the MCP client.
⚠ Google / GCP OAuth is not supported (opaque access tokens, no dynamic client registration, no groups claim). Use Entra, Okta, Auth0, or Keycloak.
SSO login
Browser "Sign in with Microsoft" for this console (authorization-code + PKCE). Separate from MCP auth above — it needs a confidential OIDC client with a secret. The username/password admin from docker .env always stays as a break-glass fallback.
Base system prompt
The guidance Cortex sends every MCP client on connect — how calling agents should use the store. The server appends one line telling the agent to call memory_list_namespaces, which returns the caller's namespaces, their descriptions and the Rules; leave those out here. Claude Code shows at most 4,096 characters of these instructions and cuts the rest. Changes take effect on a client's next connect (/mcp reconnect).
Type vocabulary
The shapes a memory can have — the valid values for the type field and the memory_search type filter. Each type has a lowercase-slug name and a one-line description; the description is surfaced to the calling agent (via memory_list_types and the connect instructions) so it picks the right shape without guessing from the name. type is REQUIRED on every memory_add and chosen by the calling agent — Cortex does not classify. Adding a type here makes it available immediately (a caller can use it with no code change). Removing one leaves existing memories with that label untouched (unfiltered search is unaffected); a filter on a removed value fails loudly.
Prompt-injection rules
Guidance returned to every caller who holds a matching namespace, in memory_list_namespaces (agents call it before their first write) and in the error for a write without a namespace. For what a namespace is for, use team descriptions and the guidance by namespace kind on the Teams tab. Scope * applies everywhere; an exact namespace (org:rd) matches only it; a kind:* scope (user:*, team:*, org:*) matches every namespace of that kind.
| Priority | Scope | Text | |
|---|---|---|---|
| Loading… | |||
ID Extraction
Most memories name a record in another system: a Linear issue, a GitHub PR, a SOC 2 control, a Notion page, a Slack thread, a meeting recording or an email thread. The rules on this page find those identifiers and store each one as a canonical key, such as linear:CLD-205 or gh:rationaldynamics/rd-cortex#147. Memories that share a key are linked by exact match, with no LLM involved.
How a rule works
- Pattern
- A Go regular expression (RE2 syntax, so no lookahead or backreferences). {linear_keys} stands for the known Linear team keys, which are learned from linear.app URLs. That is why CLD-205 matches and SHA-256 does not.
- Key template
- The text after kind: in the key. $0 is the whole match, $1 is group 1 and ${name} is a named group. A group made only of digits loses its leading zeros, so AUD-033 and AUD-33 become one key.
- Near / Not near
- Optional regexes checked in the Window characters before the match. Near must occur there. Not near must not occur between the last Near match and the id, or anywhere in the window if Near is empty. For example, a 24-character hex string counts as a Vanta id only after the word "Vanta".
- Scan source
- Also scans the memory's source field, usually the URL it came from. Without it, only the content is scanned.
- Case
- lower, upper, hex (lower case with dashes removed, for UUID-style ids), or dec (each group is a hex number, written in decimal: Gmail API thread id 1a16a6f70170c907 becomes thread-f:1879873474285062407, the form in Gmail links). Leave it empty to keep the matched text as it is.
- Boundaries
- A match directly preceded by '-', or followed by '-' or by '.' and a digit, is ignored, so X-CLD-5 and CLD-5.2 are not keys.
- Built-in
- The GitHub rule is written in code because it must work out each repo's owner, and resolves a bare "PR #N" only when exactly one repo is in context. You can switch it on or off and test it, but you can't edit its pattern.
| Kind | Regex | Test string | Extraction results | |
|---|---|---|---|---|
| Loading… | ||||
Collector schedule
One daily start time for the whole collector. When enabled, every enabled source below runs once a day at this time (evaluated in the console display timezone), one after another. Disable to pause all scheduled collection.
Collector sources
The data sources the collector runner ingests — a name, a target namespace, the
MCP tools it may use, and a plain-language scope instruction. Edit them here; the runner
reads them over HTTP with its token (no DB access). SINCE in the scope is replaced
with the window start. Seed from the shipped file manifests with collect.py --seed.
MCP connections
Register an outbound MCP server a collector can reach — the client's own data sources, held in this Cortex instance instead of a Claude account. Test connects to it (Cortex as a pure Go MCP client, no Claude) and lists its tools. POC: API-token (bearer) only, stored unencrypted; OAuth is a later phase.
How the team uses Cortex
Write path
how memories become searchableRead path
how a search is answeredSearch quality vs. corpus size
iLabel-free quality signals from every search — no query text is stored. One point per day; dot size = that day's search count, so a tiny dot is a low-sample day whose average is noisy — don't read a trend from it. The dashed amber line (right axis) is corpus size, so a rising abstention/miss rate alongside it would flag recall drift as the store grows.
Which retrievers find the results
iFor each ranked result, every retriever that found it. Only it is the share of top-3 results no other retriever found, so it shows what would be lost without that retriever.
| Retriever | Top-1 | Top-3 | Top-3, only it |
|---|---|---|---|
| Loading… | |||
KG growth over time
iCumulative Layer-2 entities (nodes) and relations (edges) the worker has extracted. Flat stretches while memories keep growing can signal the extractor stalling or falling behind.
Graph expansion funnel
ifollow_entity outcomes
iWhat fires stale hints
iCognify queue & latency
iHow fast Layer-2 extraction keeps up with writes, one point per minute: enqueued (memories written) vs cognified (facts + KG extracted), with the pending backlog on the right axis. A rising backlog or latency means the local extractor is falling behind.