Docs > Getting started
Core concepts
# Core concepts Dex is built from composable primitives with strict ownership boundaries. Knowing what belongs in each layer prevents duplicated prompts, stale copies, and accidental permission leaks. ## Ownership at a glance | Primitive | What it owns | What it does **not** own | | --- | --- | --- | | **Agent** (`AGENT.md`) | **Who runs**: standing system instructions, harness (`dex`, `claude`, `codex`), model, `requires` apps/tools, write-approval and Auto Mode policies | Schedules/triggers (those live in automations) or OAuth credentials | | **Shared agent** (`mode: shared`, optional `TEAM.md`) | One canonical team agent that members join via links, optional onboarding `setup`, shared `team/` notes, and optional coordinator instructions | Member OAuth tokens, member Access Scopes, or private member notes | | **Automation** (`automations/*.md`) | **When it runs** (`cron`, `datetime`, `event`, `manual`), optional pre-run `condition`, and the per-run task | Agent identity, harness, model, or approval policy (inherited from `AGENT.md`) | | **Skill** (`SKILL.md`) | Reusable, progressive-disclosure procedures, checklists, scripts, and references | Tool access, credentials, or workflow schedules | | **Knowledge file** (`knowledge/`) | Durable human-written Markdown reference docs (playbooks, product briefs, policies) | Live synced entities or structured queryable tables | | **Ontology** (`ontology/objects/*.yaml`) | Workspace data schema: Object types, typed fields, relationships, and Dataset-to-Object mappings | Runtime record values or OAuth permissions | | **Knowledge graph** | Live materialized Object records, typed links, and provenance-tracked observations (activities + manual notes) | Static file-based instructions or raw unmapped credentials | | **View** (`views/*.md`) | Saved table or board definition (columns, paths, inverse lookups, formulas, filters, sorts) over one Object type | Underlying record permissions (each reader sees only records they can read) | | **Factory** | Git-backed workspace repository that versions all definition files above and applies them atomically to runtime state | OAuth tokens, Access Scopes, run histories, or pending action cards | | **Access Scope** | Per-user allowlist of connected integrations an agent run is allowed to use | Record-level ownership in the knowledge graph (that is a **Data Scope**) | | **Data Scope** | Record ownership boundary in the knowledge graph (`personal`, `space`, or `workspace`) | Which external tools an agent can call | ## How the concepts fit together ### Agents vs. automations In Dex, an **agent** is the actor and an **automation** is its trigger. Separating them lets you configure harness, model, standing rules, and write-approval policy once in `AGENT.md`, while attaching scheduled, event-driven, or manual tasks in `automations/*.md`. On a [shared agent](/agents/shared-agents/), editors update `AGENT.md` or `TEAM.md` in one place and every linked member runs the new version on their next run. ### Skills vs. agent instructions vs. knowledge - Put **standing role rules and write boundaries** in `AGENT.md`. - Put **step-by-step reusable procedures** (how to write a release note, how to audit CRM stages, how to run a script) in a [skill](/agents/skills/). Skills only load their full body when invoked, keeping prompts lean. - Put **stable prose context** (company messaging, team norms, architecture memos) in [knowledge files](/agents/knowledge/). - Put **living structured records and interaction history** (people, companies, deals, commitments, synced emails and Slack threads) in the [knowledge graph](/context/knowledge-graph/). ### Ontology vs. knowledge graph vs. datasets - **Datasets** are read-only synced streams from external sources (for example, synced Gmail messages or Slack messages). - The **ontology** declares your structured Object types (such as `person` or `company`), their fields and relationships, and the mapping rules that cluster and refine Dataset rows into Objects. - The **knowledge graph** is the live graph of those Object records, typed links, and linked observations—explorable in [Nexus](/context/nexus/) and queryable via `dex zeta` and read-only Agent SQL. ### Access Scopes vs. Data Scopes Dex uses the word *scope* in two distinct places: - **Access Scopes** (managed at `/nexus/scopes` and `dex scopes`) govern **tool access**: which of a user's connected integrations an agent or coordinator run may call. - **Data Scopes** (`dex:user:<id>`, `dex:space:<id>`, `dex:org:<id>`) govern **knowledge graph ownership**: whether a record lives in your personal space, a team Space, or the shared workspace. ### Sharing vs. linking In [Factory](/factory/), **sharing** a workspace resource grants a person, Space, or the workspace `read`, `write`, or `admin` access to that path. **Linking** (joining a shared agent or enabling a shared skill) creates a lightweight descriptor in your personal directory pointing at the canonical workspace resource—never a fork. You stay current automatically when editors publish updates. ## Related pages - [How Dex works](/getting-started/how-dex-works/) - End-to-end data and execution flow - [Agents overview](/agents/) - Personal, workspace, and shared agents - [Ontology](/context/ontology/) - Defining Object types, relationships, and mappings - [Factory definition as code](/factory/workspace-structure/) - Full v3 file layout and schemasUnderstand the boundaries between agents, shared agents, skills, knowledge, ontology, knowledge graph, Factory, automations, and scopes in Dex.
Dex is built from composable primitives with strict ownership boundaries. Knowing what belongs in each layer prevents duplicated prompts, stale copies, and accidental permission leaks.
Ownership at a glance
Section titled “Ownership at a glance”| Primitive | What it owns | What it does not own |
|---|---|---|
Agent (AGENT.md) | Who runs: standing system instructions, harness (dex, claude, codex), model, requires apps/tools, write-approval and Auto Mode policies | Schedules/triggers (those live in automations) or OAuth credentials |
Shared agent (mode: shared, optional TEAM.md) | One canonical team agent that members join via links, optional onboarding setup, shared team/ notes, and optional coordinator instructions | Member OAuth tokens, member Access Scopes, or private member notes |
Automation (automations/*.md) | When it runs (cron, datetime, event, manual), optional pre-run condition, and the per-run task | Agent identity, harness, model, or approval policy (inherited from AGENT.md) |
Skill (SKILL.md) | Reusable, progressive-disclosure procedures, checklists, scripts, and references | Tool access, credentials, or workflow schedules |
Knowledge file (knowledge/) | Durable human-written Markdown reference docs (playbooks, product briefs, policies) | Live synced entities or structured queryable tables |
Ontology (ontology/objects/*.yaml) | Workspace data schema: Object types, typed fields, relationships, and Dataset-to-Object mappings | Runtime record values or OAuth permissions |
| Knowledge graph | Live materialized Object records, typed links, and provenance-tracked observations (activities + manual notes) | Static file-based instructions or raw unmapped credentials |
View (views/*.md) | Saved table or board definition (columns, paths, inverse lookups, formulas, filters, sorts) over one Object type | Underlying record permissions (each reader sees only records they can read) |
| Factory | Git-backed workspace repository that versions all definition files above and applies them atomically to runtime state | OAuth tokens, Access Scopes, run histories, or pending action cards |
| Access Scope | Per-user allowlist of connected integrations an agent run is allowed to use | Record-level ownership in the knowledge graph (that is a Data Scope) |
| Data Scope | Record ownership boundary in the knowledge graph (personal, space, or workspace) | Which external tools an agent can call |
How the concepts fit together
Section titled “How the concepts fit together”Agents vs. automations
Section titled “Agents vs. automations”In Dex, an agent is the actor and an automation is its trigger. Separating them lets you configure harness, model, standing rules, and write-approval policy once in AGENT.md, while attaching scheduled, event-driven, or manual tasks in automations/*.md. On a shared agent, editors update AGENT.md or TEAM.md in one place and every linked member runs the new version on their next run.
Skills vs. agent instructions vs. knowledge
Section titled “Skills vs. agent instructions vs. knowledge”- Put standing role rules and write boundaries in
AGENT.md. - Put step-by-step reusable procedures (how to write a release note, how to audit CRM stages, how to run a script) in a skill. Skills only load their full body when invoked, keeping prompts lean.
- Put stable prose context (company messaging, team norms, architecture memos) in knowledge files.
- Put living structured records and interaction history (people, companies, deals, commitments, synced emails and Slack threads) in the knowledge graph.
Ontology vs. knowledge graph vs. datasets
Section titled “Ontology vs. knowledge graph vs. datasets”- Datasets are read-only synced streams from external sources (for example, synced Gmail messages or Slack messages).
- The ontology declares your structured Object types (such as
personorcompany), their fields and relationships, and the mapping rules that cluster and refine Dataset rows into Objects. - The knowledge graph is the live graph of those Object records, typed links, and linked observations—explorable in Nexus and queryable via
dex zetaand read-only Agent SQL.
Access Scopes vs. Data Scopes
Section titled “Access Scopes vs. Data Scopes”Dex uses the word scope in two distinct places:
- Access Scopes (managed at
/nexus/scopesanddex scopes) govern tool access: which of a user’s connected integrations an agent or coordinator run may call. - Data Scopes (
dex:user:<id>,dex:space:<id>,dex:org:<id>) govern knowledge graph ownership: whether a record lives in your personal space, a team Space, or the shared workspace.
Sharing vs. linking
Section titled “Sharing vs. linking”In Factory, sharing a workspace resource grants a person, Space, or the workspace read, write, or admin access to that path. Linking (joining a shared agent or enabling a shared skill) creates a lightweight descriptor in your personal directory pointing at the canonical workspace resource—never a fork. You stay current automatically when editors publish updates.
Related pages
Section titled “Related pages”- How Dex works - End-to-end data and execution flow
- Agents overview - Personal, workspace, and shared agents
- Ontology - Defining Object types, relationships, and mappings
- Factory definition as code - Full v3 file layout and schemas