Docs > Agents
Agents
# Agents An agent in Dex defines **who runs**—its standing instructions (`AGENT.md`), execution harness, model, required apps, and write-approval policy. Agents can work interactively with you in chat or run in the background through attached [automations](/automations/). Keep standing role instructions and safety boundaries in the agent (`AGENT.md`). Put repeatable step-by-step procedures in [skills](/agents/skills/), stable domain notes in [knowledge](/agents/knowledge/), and schedules or triggers in [automations](/automations/). ## Types of agents Dex supports three agent scopes inside [Factory](/factory/): | Agent type | Where it lives | Who runs it | Supported triggers | | --- | --- | --- | --- | | **Personal agent** | `users/<you>/agents/<slug>/AGENT.md` | Only you, using your connected apps and optional Access Scope | `cron`, `datetime`, `event`, `manual` | | **Shared agent (fan-out)** | `workspace/agents/<id>/AGENT.md` | Every joined, active teammate—each running independently as themselves with their own credentials and Access Scope | `cron`, `datetime`, `manual` | | **Coordinated shared agent** | `workspace/agents/<id>/AGENT.md` + `TEAM.md` (with body) | One Admin coordinator run that delegates to members via `agent(prompt, { agent, user })` and combines results | `cron`, `datetime`, `manual` | A workspace agent without `mode: shared` is an unpublished workspace definition; it does not run shared fan-out or coordinator dispatches until configured as a shared agent. ## Anatomy of an agent An agent directory in Factory groups everything that actor needs: ```text agents/renewal-monitor/ AGENT.md # Standing prompt, harness, model, approval & autoMode policy, requires automations/ weekly-check.md # Trigger, optional condition, and per-run task skills/ renewal-rubric/ SKILL.md # Agent-scoped skill (visible only to this agent's runs) rubric-examples.md # Supporting reference files available inside the agent's folder ``` Shared agents add two optional team artifacts beside `AGENT.md`: - **`TEAM.md`** — Onboarding `setup` questions in frontmatter, plus optional coordinator instructions in the Markdown body. - **`team/`** — Live shared notes (such as account ownership rosters or handoff logs) that every active member can read and write at HEAD. ## Interactive chat vs. saved agents - **Interactive chat** (in Nexus, the Chrome extension, Slack, or iMessage) uses your workspace context, personal and linked skills, and connected tools immediately—ideal for ad-hoc research, drafting, and exploration. - **Saved agents** give recurring work a durable home in Factory with versioned instructions, explicit `requires` checks, isolated agent-scoped skills, optional Access Scopes, and repeatable schedules or team rollouts. ## When to use an agent vs. a skill - Create a **skill** when you want to reuse a procedure across many conversations or across several agents (for example, *how to write a customer brief*). - Create an **agent** when the work needs a distinct standing identity, approval/Auto Mode policy, required app set, agent-only skills, or scheduled execution—or when teammates need to join and run it together as a [shared agent](/agents/shared-agents/). ## Related pages - [Working with agents](/agents/working-with-agents/) - Configure instructions, harnesses, models, and `requires` - [Shared agents](/agents/shared-agents/) - Roll out one agent across a team with fan-out or coordinator mode - [Skills](/agents/skills/) - Package reusable procedures with progressive disclosure - [Knowledge and memory](/agents/knowledge/) - Choose between knowledge files, memory, and the knowledge graph - [Tools, scopes, and approvals](/agents/tools-and-approvals/) - Control tool access, pending actions, and Auto ModeConfigure personal and shared Dex agents with standing instructions, harnesses, models, required apps, and write-approval policies.
An agent in Dex defines who runs—its standing instructions (AGENT.md), execution harness, model, required apps, and write-approval policy. Agents can work interactively with you in chat or run in the background through attached automations.
Keep standing role instructions and safety boundaries in the agent (AGENT.md). Put repeatable step-by-step procedures in skills, stable domain notes in knowledge, and schedules or triggers in automations.
Types of agents
Section titled “Types of agents”Dex supports three agent scopes inside Factory:
| Agent type | Where it lives | Who runs it | Supported triggers |
|---|---|---|---|
| Personal agent | users/<you>/agents/<slug>/AGENT.md | Only you, using your connected apps and optional Access Scope | cron, datetime, event, manual |
| Shared agent (fan-out) | workspace/agents/<id>/AGENT.md | Every joined, active teammate—each running independently as themselves with their own credentials and Access Scope | cron, datetime, manual |
| Coordinated shared agent | workspace/agents/<id>/AGENT.md + TEAM.md (with body) | One Admin coordinator run that delegates to members via agent(prompt, { agent, user }) and combines results | cron, datetime, manual |
A workspace agent without mode: shared is an unpublished workspace definition; it does not run shared fan-out or coordinator dispatches until configured as a shared agent.
Anatomy of an agent
Section titled “Anatomy of an agent”An agent directory in Factory groups everything that actor needs:
agents/renewal-monitor/ AGENT.md # Standing prompt, harness, model, approval & autoMode policy, requires automations/ weekly-check.md # Trigger, optional condition, and per-run task skills/ renewal-rubric/ SKILL.md # Agent-scoped skill (visible only to this agent's runs) rubric-examples.md # Supporting reference files available inside the agent's folderShared agents add two optional team artifacts beside AGENT.md:
TEAM.md— Onboardingsetupquestions in frontmatter, plus optional coordinator instructions in the Markdown body.team/— Live shared notes (such as account ownership rosters or handoff logs) that every active member can read and write at HEAD.
Interactive chat vs. saved agents
Section titled “Interactive chat vs. saved agents”- Interactive chat (in Nexus, the Chrome extension, Slack, or iMessage) uses your workspace context, personal and linked skills, and connected tools immediately—ideal for ad-hoc research, drafting, and exploration.
- Saved agents give recurring work a durable home in Factory with versioned instructions, explicit
requireschecks, isolated agent-scoped skills, optional Access Scopes, and repeatable schedules or team rollouts.
When to use an agent vs. a skill
Section titled “When to use an agent vs. a skill”- Create a skill when you want to reuse a procedure across many conversations or across several agents (for example, how to write a customer brief).
- Create an agent when the work needs a distinct standing identity, approval/Auto Mode policy, required app set, agent-only skills, or scheduled execution—or when teammates need to join and run it together as a shared agent.
Related pages
Section titled “Related pages”- Working with agents - Configure instructions, harnesses, models, and
requires - Shared agents - Roll out one agent across a team with fan-out or coordinator mode
- Skills - Package reusable procedures with progressive disclosure
- Knowledge and memory - Choose between knowledge files, memory, and the knowledge graph
- Tools, scopes, and approvals - Control tool access, pending actions, and Auto Mode