Skip to content
ThirdLayer

Docs > Getting started

Core concepts

Understand 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.

PrimitiveWhat it ownsWhat 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 policiesSchedules/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 instructionsMember 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 taskAgent identity, harness, model, or approval policy (inherited from AGENT.md)
Skill (SKILL.md)Reusable, progressive-disclosure procedures, checklists, scripts, and referencesTool 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 mappingsRuntime record values or OAuth permissions
Knowledge graphLive 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 typeUnderlying record permissions (each reader sees only records they can read)
FactoryGit-backed workspace repository that versions all definition files above and applies them atomically to runtime stateOAuth tokens, Access Scopes, run histories, or pending action cards
Access ScopePer-user allowlist of connected integrations an agent run is allowed to useRecord-level ownership in the knowledge graph (that is a Data Scope)
Data ScopeRecord ownership boundary in the knowledge graph (personal, space, or workspace)Which external tools an agent can call

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.
  • 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 and queryable via dex zeta and read-only Agent SQL.

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.

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.