{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/tale-dev/json-schema/tale-dev-project-agent-schema.json",
  "title": "ProjectAgent",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/tale-dev-agents-api-openapi.yml#/components/schemas/ProjectAgent",
  "type": "object",
  "required": [
    "id",
    "organizationId",
    "projectId",
    "name",
    "handle",
    "harness",
    "model",
    "modelProvider",
    "skills",
    "connectors",
    "tools",
    "secrets",
    "instructions",
    "managed",
    "createdBy",
    "createdAt",
    "updatedAt"
  ],
  "properties": {
    "id": {
      "type": "string"
    },
    "organizationId": {
      "type": "string"
    },
    "projectId": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "handle": {
      "type": "string",
      "pattern": "^[a-z0-9]+(-[a-z0-9]+)*$",
      "maxLength": 52,
      "description": "The agent’s mention handle: lowercase letters, digits and single hyphens, made from its current name (\"My Opus Agent #3\" → `my-opus-agent-3`) and unique in the project (a second agent whose name gives the same handle gets `-02`, then `-03` …). It changes when the agent is renamed, and when a member or an automation of the organization comes to answer to it (an email name or a store name is the stronger claim). Address an agent by `id`; type `@handle` in a comment or a task description to mention it."
    },
    "harness": {
      "type": "string"
    },
    "model": {
      "type": "string"
    },
    "modelProvider": {
      "type": [
        "string",
        "null"
      ]
    },
    "skills": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "connectors": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "tools": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "secrets": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Granted organization secret names. Secret values are never returned."
    },
    "instructions": {
      "type": [
        "string",
        "null"
      ]
    },
    "managed": {
      "type": "boolean",
      "description": "The organization’s standard agent: Tale created it in a project that had no agents of its own, and keeps its runtime, model and instructions in line with the organization’s `standard_agent` governance policy, so it cannot be saved here (`PROJECT_AGENT_MANAGED`). It can be deleted."
    },
    "createdBy": {
      "type": "string"
    },
    "createdAt": {
      "type": "integer",
      "minimum": 0,
      "description": "Epoch milliseconds"
    },
    "updatedAt": {
      "type": "integer",
      "minimum": 0,
      "description": "Epoch milliseconds"
    }
  }
}