Skip to content
ThirdLayer

Docs > Agents

Knowledge and memory

Choose 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”
StoreWhat belongs hereWhere it livesSharing model
Knowledge filesHuman-written reference documents: product positioning, playbooks, glossaries, compliance checklists, team normsFactory: workspace/knowledge/ or users/<you>/knowledge/Path-prefix ACLs in Factory (workspace/ shared; users/<you>/ private)
Personal memoryEvolving preferences, working style, recurring collaborators, and facts learned from your chatsFactory users/<you>/memory/ plus per-user structured memory tablesStrictly private to you
Knowledge graphLive, structured entities (person, company, custom Objects), typed relationships, synced activity timelines, and provenance-linked notesZeta / NexusRow-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.

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.md
  • 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.
  • 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/.

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

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.