Docs > Automations
Automations
# Automations An **automation** defines **when an agent runs** and **the task for each run**. Automations live under their parent agent's folder in [Factory](/factory/) (`agents/<slug>/automations/<name>.md` or `workspace/agents/<id>/automations/<id>.md`) and inherit the agent's identity, harness, model, `requires`, and write-approval policy from `AGENT.md`. Keep standing agent behavior in `AGENT.md` and repeatable step-by-step procedures in [skills](/agents/skills/). Keep only the trigger, optional `condition`, and per-run task in the automation file. ## How automations run across agent scopes | Scope | File path | What happens on trigger | | --- | --- | --- | | **Personal agent automation** | `users/<you>/agents/<slug>/automations/<name>.md` | Runs once for you under your connected accounts and optional Access Scope | | **Shared agent automation (fan-out)** | `workspace/agents/<id>/automations/<id>.md` (no `TEAM.md` body) | Creates one parent run and dispatches one isolated child run per active, enabled member under each member's own credentials | | **Shared agent automation (coordinated)** | `workspace/agents/<id>/automations/<id>.md` (with `TEAM.md` body) | Starts one coordinator run as the assigned Admin runner, which calls members via `agent(prompt, { agent, user })` | | **Member personal automation on a shared agent** | `users/<you>/shared-agents/<id>/automations/<name>.md` | Runs only for you on your own schedule using the shared agent's `AGENT.md` | ## Headless execution boundaries Every automation run executes headlessly on durable background infrastructure with strict safety boundaries: - **Fresh context on every run** — Background runs do not inherit prior chat history. Reference any required Views, skills, or knowledge files explicitly. - **No browser/desktop tools** — Client-side Chrome extension and Desktop companion tools are automatically stripped from automation runs. - **Config immutability during runs** — An executing automation cannot modify its own `AGENT.md`, automation schedule, or sharing grants. - **Per-user concurrency & leases** — Runs execute under durable leases with per-user concurrency gating so overlapping runs do not race on the same account. - **Approval safety** — External writes follow `requireWriteApproval` and `autoMode` from `AGENT.md`, landing as Pending Action cards in Nexus Inbox, Slack, or Webhooks when review is required. ## Related pages - [Creating automations](/automations/creating-automations/) - Author `automations/*.md`, preview, and verify Apply - [Triggers](/automations/triggers/) - `cron`, `datetime`, `event`, and `manual` triggers plus `condition` gates - [Runs and troubleshooting](/automations/runs-and-troubleshooting/) - Run states, skip reasons, and fixing failed runs - [Shared agents](/agents/shared-agents/) - Fan-out vs. coordinator dispatches - [Tools, scopes, and approvals](/agents/tools-and-approvals/) - Pending Actions, drift checks, and Auto ModeRun personal and shared Dex agents on schedules, one-shot datetimes, integration events, or manual dispatches with admission checks and approvals.
An automation defines when an agent runs and the task for each run. Automations live under their parent agent’s folder in Factory (agents/<slug>/automations/<name>.md or workspace/agents/<id>/automations/<id>.md) and inherit the agent’s identity, harness, model, requires, and write-approval policy from AGENT.md.
Keep standing agent behavior in AGENT.md and repeatable step-by-step procedures in skills. Keep only the trigger, optional condition, and per-run task in the automation file.
How automations run across agent scopes
Section titled “How automations run across agent scopes”| Scope | File path | What happens on trigger |
|---|---|---|
| Personal agent automation | users/<you>/agents/<slug>/automations/<name>.md | Runs once for you under your connected accounts and optional Access Scope |
| Shared agent automation (fan-out) | workspace/agents/<id>/automations/<id>.md (no TEAM.md body) | Creates one parent run and dispatches one isolated child run per active, enabled member under each member’s own credentials |
| Shared agent automation (coordinated) | workspace/agents/<id>/automations/<id>.md (with TEAM.md body) | Starts one coordinator run as the assigned Admin runner, which calls members via agent(prompt, { agent, user }) |
| Member personal automation on a shared agent | users/<you>/shared-agents/<id>/automations/<name>.md | Runs only for you on your own schedule using the shared agent’s AGENT.md |
Headless execution boundaries
Section titled “Headless execution boundaries”Every automation run executes headlessly on durable background infrastructure with strict safety boundaries:
- Fresh context on every run — Background runs do not inherit prior chat history. Reference any required Views, skills, or knowledge files explicitly.
- No browser/desktop tools — Client-side Chrome extension and Desktop companion tools are automatically stripped from automation runs.
- Config immutability during runs — An executing automation cannot modify its own
AGENT.md, automation schedule, or sharing grants. - Per-user concurrency & leases — Runs execute under durable leases with per-user concurrency gating so overlapping runs do not race on the same account.
- Approval safety — External writes follow
requireWriteApprovalandautoModefromAGENT.md, landing as Pending Action cards in Nexus Inbox, Slack, or Webhooks when review is required.
Related pages
Section titled “Related pages”- Creating automations - Author
automations/*.md, preview, and verify Apply - Triggers -
cron,datetime,event, andmanualtriggers plusconditiongates - Runs and troubleshooting - Run states, skip reasons, and fixing failed runs
- Shared agents - Fan-out vs. coordinator dispatches
- Tools, scopes, and approvals - Pending Actions, drift checks, and Auto Mode