Concepts

Knowledge & memory

Two different kinds of recall. Knowledge is a curated corpus an agent retrieves from with citations. Memory is a small set of durable facts about a person or an agent, carried between conversations. They are governed differently because they carry different risk.

KnowledgeMemory
HoldsDocuments β€” handbooks, policies, specs, ticketsFacts β€” "prefers metric units", "owns the billing service"
Written byUpload or a synced sourceThe agent, mid-conversation
Read viasearch_knowledge, with citationsrecall, plus automatic injection
Scoped toA ring β€” personal, team, or orgA user, an agent, or both
Enabled byknowledge: in the agentmemory: in the agent

Knowledge collections

A collection is a ring-scoped bundle of documents. Attach one to an agent and search_knowledge switches on, along with the citation contract in the system prompt.

---
name: policy-answerer
model: default
knowledge:
  - hr-handbook
  - security-policies
---

Getting documents in

Upload

Drop files into a collection. PDF, DOCX, Markdown, HTML, and plain text are extracted natively.

Sync a source

Connect Confluence or Google Drive and the collection keeps itself current on a schedule.

Attach in chat

Drag a document onto a conversation to give one run its context, without adding it to a collection.

Ingestion

  1. Store

    The file lands in object storage, and the document row records its content hash.
  2. Extract

    Text is pulled out per format. Ingestion is idempotent on the content hash, so re-uploading the same bytes does no work twice.
  3. Chunk

    The text is split into overlapping passages of roughly 800 tokens, so a retrieved chunk carries enough context to stand on its own.
  4. Embed

    Each chunk is embedded and indexed for vector search. The collection shows its status while this runs.

Retrieval and citations

search_knowledge returns chunks tagged with citation ids, and the agent is instructed to cite them. Two properties matter:

Synced sources and permissions

A synced collection stays current on a schedule, and the sync is careful in three ways that matter operationally:

BehaviourWhy it matters
Delta detectionUnchanged documents are not re-embedded. A large space re-syncs cheaply.
Permission-only changes are cheapIf only access changed, chunks are restamped without re-embedding.
Deletes tombstoneA document removed at the source is marked removed and its chunks are deleted, so it stops being retrievable.
Source permissions are mirrored, not flattened Each document's principal list is captured at sync time (groups expanded to members) and denormalized onto its chunks. Retrieval then filters by the run initiator's identity, on top of the usual ring visibility. A document someone cannot open in Confluence cannot be surfaced to them by an agent either β€” including through an agent they share with a colleague who can open it. If permissions cannot be read, the sync fails closed to the connecting user rather than guessing.

Memory

Memory is deliberately small. The agent decides what is worth keeping via remember, retrieves with recall, and the most relevant memories are injected into later turns automatically β€” so the user doesn't have to repeat themselves and the agent doesn't have to search every turn.

memory:Scope
userFacts about the person, shared across their agents.
agentFacts this agent learned, not visible to other agents.
user+agentBoth.
omittedNo memory tools at all.

Writes are deduplicated: a fact restated in different words or a different order updates the existing entry in place rather than accumulating near-duplicates.

Memory is personal data and is treated as such. It is user-scoped by construction β€” one person's memories are never visible to another, and administrators do not read them at the default privacy tier. Users manage their own under Settings β†’ Memory, including deletion.

Choosing between them

If the information…Use
Lives in documents someone else maintainsA synced knowledge source
Is a fixed corpus you controlAn uploaded knowledge collection
Matters only to this one questionA chat attachment
Is a durable fact about the personMemory, scope user
Is something the agent learned about its own jobMemory, scope agent
Is a procedure to followA skill, not knowledge