Docs > Agents
Knowledge and memory
# Knowledge and memory Dex gives agents three distinct places to store and read context. Putting information in the right place keeps prompts lean, prevents stale duplicates, and enforces the right sharing boundaries. ## Knowledge files vs. memory vs. knowledge graph | Store | What belongs here | Where it lives | Sharing model | | --- | --- | --- | --- | | **Knowledge files** | Human-written reference documents: product positioning, playbooks, glossaries, compliance checklists, team norms | Factory: `workspace/knowledge/` or `users/<you>/knowledge/` | Path-prefix ACLs in Factory (`workspace/` shared; `users/<you>/` private) | | **Personal memory** | Evolving preferences, working style, recurring collaborators, and facts learned from your chats | Factory `users/<you>/memory/` plus per-user structured memory tables | Strictly private to you | | **Knowledge graph** | Live, structured entities (`person`, `company`, custom Objects), typed relationships, synced activity timelines, and provenance-linked notes | [Zeta / Nexus](/context/knowledge-graph/) | Row-level Data Scopes (`personal`, `space`, `workspace`) + Slack/Notion permission inheritance | Use **knowledge files** for prose that people maintain directly. Use the **knowledge graph** for records that have fields, relationships, or live updates from Slack, Gmail, Calendar, GitHub, Drive, Notion, or Attio. Use [skills](/agents/skills/) for step-by-step operating procedures. ## Organizing Factory knowledge files Knowledge files are plain Markdown (or text) reference files stored in [Factory](/factory/) without a descriptor schema. Browse them in the web app at `/nexus/knowledge` or edit them locally via `dex factory`. ```text workspace/knowledge/ company/ positioning.md pricing-tiers.md playbooks/ escalation-policy.md security-questionnaire-faq.md glossary.md users/<you>/knowledge/ accounts/ acme-notes.md weekly-priorities.md ``` ### Guidelines for maintainable knowledge - **Keep one topic per file** with clear headings so agents can grep and read only the relevant file. - **Avoid reserved descriptor filenames** (`AGENT.md`, `SKILL.md`, `TEAM.md`, `SOURCE.md`, `factory.yaml`) inside `knowledge/`. - **Do not duplicate synced CRM or directory data** into Markdown files. Put a short policy or rubric in `knowledge/` and let agents query live people, companies, and deals from the [knowledge graph](/context/knowledge-graph/). - **Share selectively.** Put team-wide references under `workspace/knowledge/` and manage access with `dex factory share` or Spaces; keep personal drafts under `users/<you>/knowledge/`. ## Personal memory Dex maintains per-user memory across two complementary mechanisms: - **Memory files (`users/<you>/memory/`)** — Editable Markdown files (such as `MEMORY.md`) in your private Factory directory that summarize standing personal context. - **Structured memory tables** — Per-user core, episodic, resource, procedural, semantic, and integration memories updated automatically in the background from your conversations and retrieved via full-text search. Personal memory is always isolated per user—shared agent runs never leak one teammate's memory into another teammate's run. ## When to update knowledge vs. write a knowledge graph note - **Update a knowledge file** when a company policy, messaging guideline, or team process changes. - **Add a manual note (observation)** on a record in the [knowledge graph](/context/records-and-timeline/#manual-notes) when you capture a dated fact tied to a specific person, company, or deal (for example, *"Met CFO at conference; renewal decision moves to Q2"*). Notes carry timestamps, author attribution, and optional source citations. ## Related pages - [Skills](/agents/skills/) - Turn repeatable steps into progressive-disclosure `SKILL.md` bundles - [Knowledge graph](/context/knowledge-graph/) - Structured entities, relationships, and Agent SQL - [Records, observations, and timeline](/context/records-and-timeline/) - Attaching timestamped notes to records - [Factory definition as code](/factory/workspace-structure/) - Full Factory directory structureChoose between Factory knowledge files, personal memory, and the structured knowledge graph so agents find durable context without noise.
Dex gives agents three distinct places to store and read context. Putting information in the right place keeps prompts lean, prevents stale duplicates, and enforces the right sharing boundaries.
Knowledge files vs. memory vs. knowledge graph
Section titled “Knowledge files vs. memory vs. knowledge graph”| Store | What belongs here | Where it lives | Sharing model |
|---|---|---|---|
| Knowledge files | Human-written reference documents: product positioning, playbooks, glossaries, compliance checklists, team norms | Factory: workspace/knowledge/ or users/<you>/knowledge/ | Path-prefix ACLs in Factory (workspace/ shared; users/<you>/ private) |
| Personal memory | Evolving preferences, working style, recurring collaborators, and facts learned from your chats | Factory users/<you>/memory/ plus per-user structured memory tables | Strictly private to you |
| Knowledge graph | Live, structured entities (person, company, custom Objects), typed relationships, synced activity timelines, and provenance-linked notes | Zeta / Nexus | Row-level Data Scopes (personal, space, workspace) + Slack/Notion permission inheritance |
Use knowledge files for prose that people maintain directly. Use the knowledge graph for records that have fields, relationships, or live updates from Slack, Gmail, Calendar, GitHub, Drive, Notion, or Attio. Use skills for step-by-step operating procedures.
Organizing Factory knowledge files
Section titled “Organizing Factory knowledge files”Knowledge files are plain Markdown (or text) reference files stored in Factory without a descriptor schema. Browse them in the web app at /nexus/knowledge or edit them locally via dex factory.
workspace/knowledge/ company/ positioning.md pricing-tiers.md playbooks/ escalation-policy.md security-questionnaire-faq.md glossary.md
users/<you>/knowledge/ accounts/ acme-notes.md weekly-priorities.mdGuidelines for maintainable knowledge
Section titled “Guidelines for maintainable knowledge”- Keep one topic per file with clear headings so agents can grep and read only the relevant file.
- Avoid reserved descriptor filenames (
AGENT.md,SKILL.md,TEAM.md,SOURCE.md,factory.yaml) insideknowledge/. - Do not duplicate synced CRM or directory data into Markdown files. Put a short policy or rubric in
knowledge/and let agents query live people, companies, and deals from the knowledge graph. - Share selectively. Put team-wide references under
workspace/knowledge/and manage access withdex factory shareor Spaces; keep personal drafts underusers/<you>/knowledge/.
Personal memory
Section titled “Personal memory”Dex maintains per-user memory across two complementary mechanisms:
- Memory files (
users/<you>/memory/) — Editable Markdown files (such asMEMORY.md) in your private Factory directory that summarize standing personal context. - Structured memory tables — Per-user core, episodic, resource, procedural, semantic, and integration memories updated automatically in the background from your conversations and retrieved via full-text search.
Personal memory is always isolated per user—shared agent runs never leak one teammate’s memory into another teammate’s run.
When to update knowledge vs. write a knowledge graph note
Section titled “When to update knowledge vs. write a knowledge graph note”- Update a knowledge file when a company policy, messaging guideline, or team process changes.
- Add a manual note (observation) on a record in the knowledge graph when you capture a dated fact tied to a specific person, company, or deal (for example, “Met CFO at conference; renewal decision moves to Q2”). Notes carry timestamps, author attribution, and optional source citations.
Related pages
Section titled “Related pages”- Skills - Turn repeatable steps into progressive-disclosure
SKILL.mdbundles - Knowledge graph - Structured entities, relationships, and Agent SQL
- Records, observations, and timeline - Attaching timestamped notes to records
- Factory definition as code - Full Factory directory structure