Skip to content
ThirdLayer

Docs > Agents

Tools, scopes, and approvals

Control which tools Dex agents can call with Access Scopes, review external writes through Pending Actions and drift checks, or configure Auto Mode.

Dex separates what an agent wants to do from what it is authorized to execute. Every tool call passes through tool resolution, Access Scope checks, per-user tool permissions, and—for external writes—either human approval or an explicit Auto Mode policy.

At runtime, Dex assembles a toolset for the acting user from four sources:

  1. Built-in Dex tools — Tool search (toolSearch), subagent delegation, memory search, Factory file tools, pending-action inspection/editing, workflow execution, web search, and sandbox execution (Bash, Read, Edit, Write, Glob, Grep).
  2. Connected integrations — Custom REST-proxy tools over your authorized accounts (Gmail, Slack, Google Calendar, Docs, Sheets, Telegram, WhatsApp, and more), supporting multiple accounts per provider.
  3. MCP servers — Official MCP integrations (such as Notion, Linear, Attio, and Granola) plus user-added custom MCP servers over Streamable HTTP or SSE. Only connected servers contribute tools.
  4. Browser and desktop tools — Chrome extension tab/page tools and macOS Desktop companion tools (local files, Reminders, iMessage). These are available only in interactive sessions and are stripped from headless automation runs.

To keep prompts fast, Dex loads core tools upfront and defers long-tail integration tools until the agent discovers them via toolSearch.

An Access Scope (managed at /nexus/scopes or via dex scopes) is a per-user named allowlist of connected integrations that bounds what an agent run may touch.

  • Default (null Scope) — Runs with every integration you have connected.
  • Named Access Scope — Restricts a personal agent, a shared agent membership, or a coordinator runner to only the integrations listed in that Scope’s policy.
  • Independent of Data Scopes — Access Scopes control external tool access. Data Scopes control knowledge graph record ownership.
Terminal window
dex scopes list
dex scopes catalog
dex scopes get <scope-id>

In live conversations (Nexus, Chrome extension, Slack, or iMessage), each tool obeys your per-tool permission setting (always_allow, needs_approval, or blocked). When an action requires approval, execution pauses inline so you can inspect the arguments and approve or reject before the tool runs.

2. Durable Pending Actions (for automations and proposals)

Section titled “2. Durable Pending Actions (for automations and proposals)”

When requireWriteApproval: true (the default on AGENT.md), external integration writes from background runs become durable Pending Action cards instead of executing immediately.

stateDiagram-v2
  [*] --> pending: Agent proposes write
  pending --> approved: Person approves
  pending --> rejected: Person rejects (optional feedback)
  pending --> cancelled: Withdrawn / superseded
  approved --> executing: Drift check passes
  executing --> applied: Tool succeeds
  executing --> failed: Tool errors
  failed --> approved: Retry

Key Pending Action capabilities:

  • Multi-channel delivery — Cards sync automatically across the Nexus Inbox (/nexus/inbox), Slack (personal DMs or a shared agent’s configured approval channel), and Webhooks.
  • Edit before approving — Reviewers can modify proposed parameters (such as an email body, Slack message, or CRM field value) directly on the card before approving.
  • Drift detection — Before executing an approved write, Dex checks whether the underlying external record changed since the proposal was drafted. If the record drifted, execution pauses and highlights the diff until a reviewer explicitly confirms the override.
  • Deduplication and chaining — Active cards deduplicate by key/payload hash so repeated runs do not spam duplicate proposals. Cards can also declare dependencies (depends_on with output bindings) so step two waits for step one to apply.
  • Follow-up on rejection — Rejecting an automation card with a feedback note can automatically trigger a follow-up run so the agent revises or replaces the proposal.

Cross-owner approval boundary (shared agents)

Section titled “Cross-owner approval boundary (shared agents)”

On a shared agent, Admins can view and decide member cards when pendingActionVisibility is admins (the default), or restrict cards to each member by setting pendingActionVisibility: self.

When an Admin approves a teammate’s card, Dex executes the tool using the card owner’s credentials and Access Scope—never the approving Admin’s accounts.

If you want low-risk writes from an automation to execute without waiting for a human click, configure autoMode in AGENT.md while keeping requireWriteApproval: true:

  • autoMode: true — Uses Dex’s default automated reviewer, which evaluates each proposed write against the task and transcript, auto-executing clear low- and medium-risk writes (confidence >= 0.75) and turning anything uncertain, risky, or timed out into a human approval card.
  • Plain-language policy — Write explicit allow/deny boundaries in your own words, naming exact targets (channel IDs, email domains, or objects):
agents/inbox-triage/AGENT.md
---
schemaVersion: 1
title: Support inbox triage
requireWriteApproval: true
autoMode: >-
Replies inside existing Gmail threads to the original sender may be sent
automatically when they only acknowledge receipt or request missing details.
Never send new threads, never email external domains outside the thread, and
always card any refund or account-access change.
---

With a plain-language policy, the reviewer auto-executes only writes that the policy explicitly permits; every other write falls back to a human Pending Action card.