Agent Definition

Reusable agent instructions and restrictions captured by tasks and graph nodes.

An Agent Definition is a reusable description of an agent: an ID, a name, a description, instructions, and an optional read-only restriction. It supplies behavior, not identity or access; names and prompt text never grant permissions.

Connections🔗

flowchart LR
  B[Bundled definitions] -->|defaults| C[Agent catalog]
  RP[Repository definitions] -->|override by ID| C
  C -->|snapshot captured by| T[Role-aware Task]
  C -->|snapshot captured by| N[Execution Graph node]
  T -->|instructions and restriction| W[Run Worker]
  N -->|instructions and restriction| W

Sources🔗

Agentty bundles planner and implementer definitions. A repository adds or overrides definitions under .agents/agents/<id>/agent.md; both sources use the same format and parser, and global definitions are not loaded. A definition inherits the selected provider and model; tool lists and model overrides are unsupported. See the workflow guide for the file format.

Capture and Enforcement🔗

Definitions are Markdown sources, not database records. A role-aware task or execution graph node saves a snapshot of the definition it resolved, so later edits do not change admitted work.

The runtime receives a definition's instructions through the same provider instruction contract as ordinary session agents. A read-only definition restricts execution further; its restriction intersects with session and workflow permissions and can never widen them. Host workflow roles, such as Planner and Implementer, stay separate from definition identity.