## PUT /v1/agents/{id}

Replace an API-managed agent definition. Edit git-managed definitions in their repository or unlink them first.

Required permissions: write:configs.
API key: Supported.
CLI user token: Supported.
Session token: Not supported by session tokens, even with permissions.ellipsis enabled.
Higher permission levels include lower levels: read < write < delete.
Grant match patterns can further restrict access to individual resources.

### Request

```text
{
  "agent": { # SlackConfig | GithubConfig | LinearConfig | SentryConfig
    "ellipsis": {
      "description": str,
      "enabled": bool,
      "kind": "agent",
      "metadata": {
        "annotations": {
          "[str]": str
        },
        "labels": [
          str
        ]
      },
      "name": str,
      "version": str
    },
    "input": {
      "json_schema": {
        "[str]": any
      }
    },
    "session": {
      "budget": {
        "day": float,
        "month": float,
        "session": float,
        "week": float
      },
      "claude_code": {
        "effort": str,
        "fallback_model": str,
        "max_turns": int,
        "model": str,
        "prompt": { # str | null
          "builtin": "find_bugs"
        },
        "settings": {
          "path": str,
          "repository": {
            "name": str,
            "owner": str,
            "ref": str
          }
        }
      },
      "codex": {
        "effort": str,
        "model": str,
        "prompt": { # str | null
          "builtin": "find_bugs"
        }
      },
      "conversation": {
        "interactive": bool
      },
      "environment": { # str
        "compute": {
          "cpu": int,
          "idle": str,
          "memory": { # str | null
            "gb": int,
            "mb": int
          },
          "timeout": str
        },
        "hooks": {
          "after_checkout": { # str | null
            "run": str
          },
          "before_start": { # str | null
            "run": str
          },
          "build_base": { # str | null
            "inputs": [
              str
            ],
            "run": str
          },
          "post_clone": str,
          "post_start": str,
          "validate": { # str | null
            "run": str
          }
        },
        "mcp": [ # list[str | McpServerRef | McpRemoteServer | McpCommandServer]
          {
            "args": [
              str
            ],
            "command": str,
            "env": {
              "[str]": str
            },
            "name": str
          }
        ],
        "repositories": [
          {
            "name": str,
            "owner": str,
            "ref": str
          }
        ],
        "variables": [
          {
            "name": str,
            "value": str
          }
        ]
      },
      "gemini": {
        "model": str,
        "prompt": { # str | null
          "builtin": "find_bugs"
        }
      },
      "mcp": [ # list[str | McpServerRef | McpRemoteServer | McpCommandServer]
        {
          "args": [
            str
          ],
          "command": str,
          "env": {
            "[str]": str
          },
          "name": str
        }
      ],
      "metadata": {
        "annotations": {
          "[str]": str
        },
        "labels": [
          str
        ]
      },
      "output": {
        "json_schema": {
          "[str]": any
        }
      },
      "permissions": {
        "ellipsis": [ # str | null | list[str | EllipsisGrant]
          {
            "allow": [ # str
              str
            ]
          }
        ],
        "github": [ # str | null | list[str | GithubGrant]
          {
            "allow": [ # str
              str
            ],
            "base": str,
            "branch": str,
            "issue": [ # int | null
              int
            ],
            "limit": int,
            "pull_request": [ # int | null
              int
            ],
            "repository": [ # str | null
              str
            ]
          }
        ]
      },
      "skills": [
        {
          "path": str,
          "repository": {
            "name": str,
            "owner": str,
            "ref": str
          }
        }
      ]
    },
    "trigger": { # null | ReactTrigger | CronTrigger
      "check_run": {
        "branch": [
          str
        ],
        "for": {
          "bots": { # bool | list[str]
            "exclude": [
              str
            ],
            "include": [ # bool
              str
            ]
          },
          "teams": [
            str
          ],
          "users": { # bool | list[str]
            "exclude": [
              str
            ],
            "include": [ # bool
              str
            ]
          }
        },
        "names": [
          str
        ],
        "on": [
          str
        ],
        "repositories": { # list[str]
          "exclude": [
            str
          ],
          "include": [
            str
          ]
        }
      },
      "check_suite": {
        "apps": [
          str
        ],
        "branch": [
          str
        ],
        "for": {
          "bots": { # bool | list[str]
            "exclude": [
              str
            ],
            "include": [ # bool
              str
            ]
          },
          "teams": [
            str
          ],
          "users": { # bool | list[str]
            "exclude": [
              str
            ],
            "include": [ # bool
              str
            ]
          }
        },
        "on": [
          str
        ],
        "repositories": { # list[str]
          "exclude": [
            str
          ],
          "include": [
            str
          ]
        }
      },
      "enabled": bool,
      "issue": {
        "for": {
          "bots": { # bool | list[str]
            "exclude": [
              str
            ],
            "include": [ # bool
              str
            ]
          },
          "teams": [
            str
          ],
          "users": { # bool | list[str]
            "exclude": [
              str
            ],
            "include": [ # bool
              str
            ]
          }
        },
        "labels": [
          str
        ],
        "on": [
          str
        ],
        "repositories": { # list[str]
          "exclude": [
            str
          ],
          "include": [
            str
          ]
        }
      },
      "linear_issue": {
        "assignee": { # null | list[str] | str
          "exclude": [
            str
          ],
          "include": [
            str
          ]
        },
        "changed": {
          "assignee": {
            "from": { # null | list[str] | str
              "exclude": [
                str
              ],
              "include": [
                str
              ]
            },
            "to": { # null | list[str] | str
              "exclude": [
                str
              ],
              "include": [
                str
              ]
            }
          },
          "labels": {
            "added": { # null | list[str] | str
              "exclude": [
                str
              ],
              "include": [
                str
              ]
            },
            "removed": { # null | list[str] | str
              "exclude": [
                str
              ],
              "include": [
                str
              ]
            }
          },
          "priority": {
            "from": { # null | list[str] | str
              "exclude": [
                str
              ],
              "include": [
                str
              ]
            },
            "to": { # null | list[str] | str
              "exclude": [
                str
              ],
              "include": [
                str
              ]
            }
          },
          "project": {
            "from": { # null | list[str] | str
              "exclude": [
                str
              ],
              "include": [
                str
              ]
            },
            "to": { # null | list[str] | str
              "exclude": [
                str
              ],
              "include": [
                str
              ]
            }
          },
          "state": {
            "from": { # null | list[str] | str
              "exclude": [
                str
              ],
              "include": [
                str
              ]
            },
            "to": { # null | list[str] | str
              "exclude": [
                str
              ],
              "include": [
                str
              ]
            }
          }
        },
        "for": {
          "bots": { # bool | list[str]
            "exclude": [
              str
            ],
            "include": [ # bool
              str
            ]
          },
          "teams": [
            str
          ],
          "users": { # bool | list[str]
            "exclude": [
              str
            ],
            "include": [ # bool
              str
            ]
          }
        },
        "labels": { # null | list[str] | str
          "exclude": [
            str
          ],
          "include": [
            str
          ]
        },
        "on": [
          str
        ],
        "priority": { # null | list[str] | str
          "exclude": [
            str
          ],
          "include": [
            str
          ]
        },
        "project": { # null | list[str] | str
          "exclude": [
            str
          ],
          "include": [
            str
          ]
        },
        "state": { # null | list[str] | str
          "exclude": [
            str
          ],
          "include": [
            str
          ]
        },
        "team": { # null | list[str] | str
          "exclude": [
            str
          ],
          "include": [
            str
          ]
        }
      },
      "pull_request": {
        "base": [
          str
        ],
        "draft": bool,
        "for": {
          "bots": { # bool | list[str]
            "exclude": [
              str
            ],
            "include": [ # bool
              str
            ]
          },
          "teams": [
            str
          ],
          "users": { # bool | list[str]
            "exclude": [
              str
            ],
            "include": [ # bool
              str
            ]
          }
        },
        "head": [
          str
        ],
        "labels": [
          str
        ],
        "on": [
          str
        ],
        "paths": [
          str
        ],
        "repositories": { # list[str]
          "exclude": [
            str
          ],
          "include": [
            str
          ]
        }
      },
      "push": {
        "branch": [
          str
        ],
        "for": {
          "bots": { # bool | list[str]
            "exclude": [
              str
            ],
            "include": [ # bool
              str
            ]
          },
          "teams": [
            str
          ],
          "users": { # bool | list[str]
            "exclude": [
              str
            ],
            "include": [ # bool
              str
            ]
          }
        },
        "paths": [
          str
        ],
        "repositories": { # list[str]
          "exclude": [
            str
          ],
          "include": [
            str
          ]
        }
      },
      "release": {
        "for": {
          "bots": { # bool | list[str]
            "exclude": [
              str
            ],
            "include": [ # bool
              str
            ]
          },
          "teams": [
            str
          ],
          "users": { # bool | list[str]
            "exclude": [
              str
            ],
            "include": [ # bool
              str
            ]
          }
        },
        "on": [
          str
        ],
        "prerelease": bool,
        "repositories": { # list[str]
          "exclude": [
            str
          ],
          "include": [
            str
          ]
        },
        "tag": [
          str
        ]
      },
      "sentry": {
        "on": [
          str
        ],
        "projects": [
          str
        ]
      },
      "slack_channel": {},
      "status": {
        "branch": [
          str
        ],
        "for": {
          "bots": { # bool | list[str]
            "exclude": [
              str
            ],
            "include": [ # bool
              str
            ]
          },
          "teams": [
            str
          ],
          "users": { # bool | list[str]
            "exclude": [
              str
            ],
            "include": [ # bool
              str
            ]
          }
        },
        "names": [
          str
        ],
        "on": [
          str
        ],
        "repositories": { # list[str]
          "exclude": [
            str
          ],
          "include": [
            str
          ]
        }
      },
      "type": "react",
      "workflow_run": {
        "branch": [
          str
        ],
        "for": {
          "bots": { # bool | list[str]
            "exclude": [
              str
            ],
            "include": [ # bool
              str
            ]
          },
          "teams": [
            str
          ],
          "users": { # bool | list[str]
            "exclude": [
              str
            ],
            "include": [ # bool
              str
            ]
          }
        },
        "names": [
          str
        ],
        "on": [
          str
        ],
        "repositories": { # list[str]
          "exclude": [
            str
          ],
          "include": [
            str
          ]
        }
      }
    }
  }
}
```

### Response

```text
{
  "agent": { # StandardAgent | SlackAgent | GithubAgent | LinearAgent |
  # SentryAgent
    "config": {
      "ellipsis": {
        "description": str,
        "enabled": bool,
        "kind": "agent",
        "metadata": {
          "annotations": {
            "[str]": str
          },
          "labels": [
            str
          ]
        },
        "name": str,
        "version": str
      },
      "input": {
        "json_schema": {
          "[str]": any
        }
      },
      "session": {
        "budget": {
          "day": float,
          "month": float,
          "session": float,
          "week": float
        },
        "claude_code": {
          "effort": str,
          "fallback_model": str,
          "max_turns": int,
          "model": str,
          "prompt": { # str | null
            "builtin": "find_bugs"
          },
          "settings": {
            "path": str,
            "repository": {
              "name": str,
              "owner": str,
              "ref": str
            }
          }
        },
        "codex": {
          "effort": str,
          "model": str,
          "prompt": { # str | null
            "builtin": "find_bugs"
          }
        },
        "conversation": {
          "interactive": bool
        },
        "environment": { # str
          "compute": {
            "cpu": int,
            "idle": str,
            "memory": { # str | null
              "gb": int,
              "mb": int
            },
            "timeout": str
          },
          "hooks": {
            "after_checkout": { # str | null
              "run": str
            },
            "before_start": { # str | null
              "run": str
            },
            "build_base": { # str | null
              "inputs": [
                str
              ],
              "run": str
            },
            "post_clone": str,
            "post_start": str,
            "validate": { # str | null
              "run": str
            }
          },
          "mcp": [ # list[str | McpServerRef | McpRemoteServer |
          # McpCommandServer]
            {
              "args": [
                str
              ],
              "command": str,
              "env": {
                "[str]": str
              },
              "name": str
            }
          ],
          "repositories": [
            {
              "name": str,
              "owner": str,
              "ref": str
            }
          ],
          "variables": [
            {
              "name": str,
              "value": str
            }
          ]
        },
        "gemini": {
          "model": str,
          "prompt": { # str | null
            "builtin": "find_bugs"
          }
        },
        "mcp": [ # list[str | McpServerRef | McpRemoteServer | McpCommandServer]
          {
            "args": [
              str
            ],
            "command": str,
            "env": {
              "[str]": str
            },
            "name": str
          }
        ],
        "metadata": {
          "annotations": {
            "[str]": str
          },
          "labels": [
            str
          ]
        },
        "output": {
          "json_schema": {
            "[str]": any
          }
        },
        "permissions": {
          "ellipsis": [ # str | null | list[str | EllipsisGrant]
            {
              "allow": [ # str
                str
              ]
            }
          ],
          "github": [ # str | null | list[str | GithubGrant]
            {
              "allow": [ # str
                str
              ],
              "base": str,
              "branch": str,
              "issue": [ # int | null
                int
              ],
              "limit": int,
              "pull_request": [ # int | null
                int
              ],
              "repository": [ # str | null
                str
              ]
            }
          ]
        },
        "skills": [
          {
            "path": str,
            "repository": {
              "name": str,
              "owner": str,
              "ref": str
            }
          }
        ]
      },
      "trigger": { # null | ReactTrigger | CronTrigger
        "check_run": {
          "branch": [
            str
          ],
          "for": {
            "bots": { # bool | list[str]
              "exclude": [
                str
              ],
              "include": [ # bool
                str
              ]
            },
            "teams": [
              str
            ],
            "users": { # bool | list[str]
              "exclude": [
                str
              ],
              "include": [ # bool
                str
              ]
            }
          },
          "names": [
            str
          ],
          "on": [
            str
          ],
          "repositories": { # list[str]
            "exclude": [
              str
            ],
            "include": [
              str
            ]
          }
        },
        "check_suite": {
          "apps": [
            str
          ],
          "branch": [
            str
          ],
          "for": {
            "bots": { # bool | list[str]
              "exclude": [
                str
              ],
              "include": [ # bool
                str
              ]
            },
            "teams": [
              str
            ],
            "users": { # bool | list[str]
              "exclude": [
                str
              ],
              "include": [ # bool
                str
              ]
            }
          },
          "on": [
            str
          ],
          "repositories": { # list[str]
            "exclude": [
              str
            ],
            "include": [
              str
            ]
          }
        },
        "enabled": bool,
        "issue": {
          "for": {
            "bots": { # bool | list[str]
              "exclude": [
                str
              ],
              "include": [ # bool
                str
              ]
            },
            "teams": [
              str
            ],
            "users": { # bool | list[str]
              "exclude": [
                str
              ],
              "include": [ # bool
                str
              ]
            }
          },
          "labels": [
            str
          ],
          "on": [
            str
          ],
          "repositories": { # list[str]
            "exclude": [
              str
            ],
            "include": [
              str
            ]
          }
        },
        "linear_issue": {
          "assignee": { # null | list[str] | str
            "exclude": [
              str
            ],
            "include": [
              str
            ]
          },
          "changed": {
            "assignee": {
              "from": { # null | list[str] | str
                "exclude": [
                  str
                ],
                "include": [
                  str
                ]
              },
              "to": { # null | list[str] | str
                "exclude": [
                  str
                ],
                "include": [
                  str
                ]
              }
            },
            "labels": {
              "added": { # null | list[str] | str
                "exclude": [
                  str
                ],
                "include": [
                  str
                ]
              },
              "removed": { # null | list[str] | str
                "exclude": [
                  str
                ],
                "include": [
                  str
                ]
              }
            },
            "priority": {
              "from": { # null | list[str] | str
                "exclude": [
                  str
                ],
                "include": [
                  str
                ]
              },
              "to": { # null | list[str] | str
                "exclude": [
                  str
                ],
                "include": [
                  str
                ]
              }
            },
            "project": {
              "from": { # null | list[str] | str
                "exclude": [
                  str
                ],
                "include": [
                  str
                ]
              },
              "to": { # null | list[str] | str
                "exclude": [
                  str
                ],
                "include": [
                  str
                ]
              }
            },
            "state": {
              "from": { # null | list[str] | str
                "exclude": [
                  str
                ],
                "include": [
                  str
                ]
              },
              "to": { # null | list[str] | str
                "exclude": [
                  str
                ],
                "include": [
                  str
                ]
              }
            }
          },
          "for": {
            "bots": { # bool | list[str]
              "exclude": [
                str
              ],
              "include": [ # bool
                str
              ]
            },
            "teams": [
              str
            ],
            "users": { # bool | list[str]
              "exclude": [
                str
              ],
              "include": [ # bool
                str
              ]
            }
          },
          "labels": { # null | list[str] | str
            "exclude": [
              str
            ],
            "include": [
              str
            ]
          },
          "on": [
            str
          ],
          "priority": { # null | list[str] | str
            "exclude": [
              str
            ],
            "include": [
              str
            ]
          },
          "project": { # null | list[str] | str
            "exclude": [
              str
            ],
            "include": [
              str
            ]
          },
          "state": { # null | list[str] | str
            "exclude": [
              str
            ],
            "include": [
              str
            ]
          },
          "team": { # null | list[str] | str
            "exclude": [
              str
            ],
            "include": [
              str
            ]
          }
        },
        "pull_request": {
          "base": [
            str
          ],
          "draft": bool,
          "for": {
            "bots": { # bool | list[str]
              "exclude": [
                str
              ],
              "include": [ # bool
                str
              ]
            },
            "teams": [
              str
            ],
            "users": { # bool | list[str]
              "exclude": [
                str
              ],
              "include": [ # bool
                str
              ]
            }
          },
          "head": [
            str
          ],
          "labels": [
            str
          ],
          "on": [
            str
          ],
          "paths": [
            str
          ],
          "repositories": { # list[str]
            "exclude": [
              str
            ],
            "include": [
              str
            ]
          }
        },
        "push": {
          "branch": [
            str
          ],
          "for": {
            "bots": { # bool | list[str]
              "exclude": [
                str
              ],
              "include": [ # bool
                str
              ]
            },
            "teams": [
              str
            ],
            "users": { # bool | list[str]
              "exclude": [
                str
              ],
              "include": [ # bool
                str
              ]
            }
          },
          "paths": [
            str
          ],
          "repositories": { # list[str]
            "exclude": [
              str
            ],
            "include": [
              str
            ]
          }
        },
        "release": {
          "for": {
            "bots": { # bool | list[str]
              "exclude": [
                str
              ],
              "include": [ # bool
                str
              ]
            },
            "teams": [
              str
            ],
            "users": { # bool | list[str]
              "exclude": [
                str
              ],
              "include": [ # bool
                str
              ]
            }
          },
          "on": [
            str
          ],
          "prerelease": bool,
          "repositories": { # list[str]
            "exclude": [
              str
            ],
            "include": [
              str
            ]
          },
          "tag": [
            str
          ]
        },
        "sentry": {
          "on": [
            str
          ],
          "projects": [
            str
          ]
        },
        "slack_channel": {},
        "status": {
          "branch": [
            str
          ],
          "for": {
            "bots": { # bool | list[str]
              "exclude": [
                str
              ],
              "include": [ # bool
                str
              ]
            },
            "teams": [
              str
            ],
            "users": { # bool | list[str]
              "exclude": [
                str
              ],
              "include": [ # bool
                str
              ]
            }
          },
          "names": [
            str
          ],
          "on": [
            str
          ],
          "repositories": { # list[str]
            "exclude": [
              str
            ],
            "include": [
              str
            ]
          }
        },
        "type": "react",
        "workflow_run": {
          "branch": [
            str
          ],
          "for": {
            "bots": { # bool | list[str]
              "exclude": [
                str
              ],
              "include": [ # bool
                str
              ]
            },
            "teams": [
              str
            ],
            "users": { # bool | list[str]
              "exclude": [
                str
              ],
              "include": [ # bool
                str
              ]
            }
          },
          "names": [
            str
          ],
          "on": [
            str
          ],
          "repositories": { # list[str]
            "exclude": [
              str
            ],
            "include": [
              str
            ]
          }
        }
      }
    },
    "created_at": str,
    "display_name": str,
    "edited_by": {
      "avatar_url": str,
      "id": int,
      "login": str,
      "name": str,
      "type": str
    },
    "id": str,
    "kind": "agent",
    "last_session_created_at": str,
    "last_session_id": str,
    "last_sync_error": str,
    "last_synced_commit_sha": str,
    "managed_by": str,
    "name": str,
    "next_run_at": str,
    "pending_pull_request_url": str,
    "raw_yaml": str,
    "sha": str,
    "source_details": {
      "branch": str,
      "path": str,
      "repo_id": int
    },
    "updated_at": str,
    "url": str
  }
}
```

### Python

```python
import os

from ellipsis import (
    AgentConfig,
    AgentIdentity,
    BudgetConfig,
    ClaudeCodeConfig,
    Ellipsis,
    SessionConfig,
    SessionConversationConfig,
)

client = Ellipsis(api_key=os.environ["ELLIPSIS_API_TOKEN"])

result = client.agents.update(
    "...",
    AgentConfig(
        ellipsis=AgentIdentity(name="check-tests", version="v1", enabled=True),
        session=SessionConfig(
            claude_code=ClaudeCodeConfig(
                model="claude-opus-5-5",
                prompt="Run the tests and report failures.",
            ),
            environment="api-environment",
            budget=BudgetConfig(session=3),
            conversation=SessionConversationConfig(interactive=True),
        ),
    ),
)
print(result)
```

### TypeScript

```typescript
import { AgentKind, Ellipsis } from '@ellipsis-dev/sdk';

const client = new Ellipsis({
  apiKey: process.env.ELLIPSIS_API_TOKEN!,
});

const request: Parameters<typeof client.agents.update>[1] = {
  ellipsis: {
    kind: AgentKind.Agent,
    name: 'check-tests',
    version: 'v1',
    enabled: true,
  },
  session: {
    claude_code: {
      model: 'claude-opus-5-5',
      prompt: 'Run the tests and report failures.',
    },
    environment: 'api-environment',
    budget: { session: 3 },
    conversation: { interactive: true },
  },
};

const result = await client.agents.update('...', request);
console.log(result);
```

### cURL

```bash
curl -X PUT "https://api.ellipsis.dev/v1/agents/{id}" \
  -H "Authorization: Bearer $ELLIPSIS_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "agent": {
    "ellipsis": {
      "kind": "agent",
      "name": "check-tests",
      "version": "v1",
      "enabled": true,
      "metadata": {
        "labels": [],
        "annotations": {}
      }
    },
    "session": {
      "claude_code": {
        "model": "claude-opus-5-5",
        "prompt": "Run the tests and report failures."
      },
      "environment": "api-environment",
      "budget": {
        "session": 3
      },
      "permissions": {
        "github": null,
        "ellipsis": null
      },
      "skills": [],
      "conversation": {
        "interactive": true
      },
      "metadata": {}
    }
  }
}'
```

### Request schema

```json
{
  "properties": {
    "agent": {
      "oneOf": [
        {
          "additionalProperties": false,
          "properties": {
            "ellipsis": {
              "additionalProperties": false,
              "properties": {
                "description": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "enabled": {
                  "type": "boolean"
                },
                "kind": {
                  "const": "agent",
                  "type": "string",
                  "x-ellipsis-enum": "AgentKind"
                },
                "metadata": {
                  "additionalProperties": false,
                  "properties": {
                    "annotations": {
                      "items": {
                        "type": "string"
                      },
                      "type": "object"
                    },
                    "labels": {
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "type": "object"
                },
                "name": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "version": {
                  "type": "string"
                }
              },
              "required": [
                "kind"
              ],
              "type": "object"
            },
            "input": {
              "anyOf": [
                {
                  "additionalProperties": false,
                  "properties": {
                    "json_schema": {
                      "additionalProperties": true,
                      "type": "object"
                    }
                  },
                  "required": [
                    "json_schema"
                  ],
                  "type": "object"
                },
                {
                  "type": "null"
                }
              ]
            },
            "session": {
              "additionalProperties": false,
              "allOf": [
                {
                  "oneOf": [
                    {
                      "properties": {
                        "claude_code": {
                          "type": "object"
                        },
                        "codex": {
                          "type": "null"
                        },
                        "gemini": {
                          "type": "null"
                        }
                      },
                      "required": [
                        "claude_code"
                      ]
                    },
                    {
                      "properties": {
                        "claude_code": {
                          "type": "null"
                        },
                        "codex": {
                          "type": "object"
                        },
                        "gemini": {
                          "type": "null"
                        }
                      },
                      "required": [
                        "codex"
                      ]
                    },
                    {
                      "properties": {
                        "claude_code": {
                          "type": "null"
                        },
                        "codex": {
                          "type": "null"
                        },
                        "gemini": {
                          "type": "object"
                        }
                      },
                      "required": [
                        "gemini"
                      ]
                    }
                  ]
                }
              ],
              "properties": {
                "budget": {
                  "additionalProperties": false,
                  "properties": {
                    "day": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "month": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "session": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "week": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "type": "object"
                },
                "claude_code": {
                  "anyOf": [
                    {
                      "additionalProperties": false,
                      "properties": {
                        "effort": {
                          "type": "object"
                        },
                        "fallback_model": {
                          "type": "object"
                        },
                        "max_turns": {
                          "type": "object"
                        },
                        "model": {
                          "type": "string"
                        },
                        "prompt": {
                          "type": "object"
                        },
                        "settings": {
                          "type": "object"
                        }
                      },
                      "required": [
                        "model"
                      ],
                      "type": "object"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "codex": {
                  "anyOf": [
                    {
                      "additionalProperties": false,
                      "properties": {
                        "effort": {
                          "type": "object"
                        },
                        "model": {
                          "type": "string"
                        },
                        "prompt": {
                          "type": "object"
                        }
                      },
                      "required": [
                        "model"
                      ],
                      "type": "object"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "conversation": {
                  "additionalProperties": false,
                  "properties": {
                    "interactive": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "environment": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "additionalProperties": false,
                      "properties": {
                        "compute": {
                          "type": "object"
                        },
                        "hooks": {
                          "type": "object"
                        },
                        "mcp": {
                          "type": "array"
                        },
                        "repositories": {
                          "type": "array"
                        },
                        "variables": {
                          "type": "array"
                        }
                      },
                      "type": "object"
                    }
                  ]
                },
                "gemini": {
                  "anyOf": [
                    {
                      "additionalProperties": false,
                      "properties": {
                        "model": {
                          "type": "string"
                        },
                        "prompt": {
                          "type": "object"
                        }
                      },
                      "required": [
                        "model"
                      ],
                      "type": "object"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "mcp": {
                  "items": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "object"
                      },
                      {
                        "type": "object"
                      },
                      {
                        "type": "object"
                      }
                    ]
                  },
                  "type": "array"
                },
                "metadata": {
                  "additionalProperties": false,
                  "properties": {
                    "annotations": {
                      "items": {
                        "type": "string"
                      },
                      "type": "object"
                    },
                    "labels": {
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "type": "object"
                },
                "output": {
                  "anyOf": [
                    {
                      "additionalProperties": false,
                      "properties": {
                        "json_schema": {
                          "type": "object"
                        }
                      },
                      "required": [
                        "json_schema"
                      ],
                      "type": "object"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "permissions": {
                  "additionalProperties": false,
                  "properties": {
                    "ellipsis": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "array"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "github": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "array"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "type": "object"
                },
                "skills": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "path": {
                        "type": "string"
                      },
                      "repository": {
                        "type": "object"
                      }
                    },
                    "required": [
                      "path"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                }
              },
              "type": "object"
            },
            "trigger": {
              "anyOf": [
                {
                  "oneOf": [
                    {
                      "additionalProperties": false,
                      "properties": {
                        "enabled": {
                          "type": "boolean"
                        },
                        "schedule": {
                          "type": "string"
                        },
                        "type": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "schedule"
                      ],
                      "type": "object"
                    },
                    {
                      "additionalProperties": false,
                      "properties": {
                        "check_run": {
                          "type": "object"
                        },
                        "check_suite": {
                          "type": "object"
                        },
                        "enabled": {
                          "type": "boolean"
                        },
                        "issue": {
                          "type": "object"
                        },
                        "linear_issue": {
                          "type": "object"
                        },
                        "pull_request": {
                          "type": "object"
                        },
                        "push": {
                          "type": "object"
                        },
                        "release": {
                          "type": "object"
                        },
                        "sentry": {
                          "type": "object"
                        },
                        "slack_channel": {
                          "type": "object"
                        },
                        "status": {
                          "type": "object"
                        },
                        "type": {
                          "type": "string"
                        },
                        "workflow_run": {
                          "type": "object"
                        }
                      },
                      "type": "object"
                    }
                  ]
                },
                {
                  "type": "null"
                }
              ]
            }
          },
          "required": [
            "ellipsis",
            "session"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "ellipsis": {
              "additionalProperties": false,
              "properties": {
                "description": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "enabled": {
                  "type": "boolean"
                },
                "kind": {
                  "const": "slack",
                  "type": "string",
                  "x-ellipsis-enum": "AgentKind"
                },
                "metadata": {
                  "additionalProperties": false,
                  "properties": {
                    "annotations": {
                      "items": {
                        "type": "string"
                      },
                      "type": "object"
                    },
                    "labels": {
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "type": "object"
                },
                "name": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "version": {
                  "type": "string"
                }
              },
              "required": [
                "kind"
              ],
              "type": "object"
            },
            "session": {
              "additionalProperties": false,
              "allOf": [
                {
                  "oneOf": [
                    {
                      "properties": {
                        "claude_code": {
                          "type": "object"
                        },
                        "codex": {
                          "type": "null"
                        },
                        "gemini": {
                          "type": "null"
                        }
                      },
                      "required": [
                        "claude_code"
                      ]
                    },
                    {
                      "properties": {
                        "claude_code": {
                          "type": "null"
                        },
                        "codex": {
                          "type": "object"
                        },
                        "gemini": {
                          "type": "null"
                        }
                      },
                      "required": [
                        "codex"
                      ]
                    },
                    {
                      "properties": {
                        "claude_code": {
                          "type": "null"
                        },
                        "codex": {
                          "type": "null"
                        },
                        "gemini": {
                          "type": "object"
                        }
                      },
                      "required": [
                        "gemini"
                      ]
                    }
                  ]
                }
              ],
              "properties": {
                "budget": {
                  "additionalProperties": false,
                  "properties": {
                    "day": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "month": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "session": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "week": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "type": "object"
                },
                "claude_code": {
                  "anyOf": [
                    {
                      "additionalProperties": false,
                      "properties": {
                        "effort": {
                          "type": "object"
                        },
                        "fallback_model": {
                          "type": "object"
                        },
                        "max_turns": {
                          "type": "object"
                        },
                        "model": {
                          "type": "string"
                        },
                        "prompt": {
                          "type": "object"
                        },
                        "settings": {
                          "type": "object"
                        }
                      },
                      "required": [
                        "model"
                      ],
                      "type": "object"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "codex": {
                  "anyOf": [
                    {
                      "additionalProperties": false,
                      "properties": {
                        "effort": {
                          "type": "object"
                        },
                        "model": {
                          "type": "string"
                        },
                        "prompt": {
                          "type": "object"
                        }
                      },
                      "required": [
                        "model"
                      ],
                      "type": "object"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "environment": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "additionalProperties": false,
                      "properties": {
                        "compute": {
                          "type": "object"
                        },
                        "hooks": {
                          "type": "object"
                        },
                        "mcp": {
                          "type": "array"
                        },
                        "repositories": {
                          "type": "array"
                        },
                        "variables": {
                          "type": "array"
                        }
                      },
                      "type": "object"
                    }
                  ]
                },
                "gemini": {
                  "anyOf": [
                    {
                      "additionalProperties": false,
                      "properties": {
                        "model": {
                          "type": "string"
                        },
                        "prompt": {
                          "type": "object"
                        }
                      },
                      "required": [
                        "model"
                      ],
                      "type": "object"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "mcp": {
                  "items": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "object"
                      },
                      {
                        "type": "object"
                      },
                      {
                        "type": "object"
                      }
                    ]
                  },
                  "type": "array"
                },
                "metadata": {
                  "additionalProperties": false,
                  "properties": {
                    "annotations": {
                      "items": {
                        "type": "string"
                      },
                      "type": "object"
                    },
                    "labels": {
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "type": "object"
                },
                "permissions": {
                  "additionalProperties": false,
                  "properties": {
                    "ellipsis": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "array"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "github": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "array"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "type": "object"
                },
                "skills": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "path": {
                        "type": "string"
                      },
                      "repository": {
                        "type": "object"
                      }
                    },
                    "required": [
                      "path"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                }
              },
              "type": "object"
            },
            "slack": {
              "additionalProperties": false,
              "properties": {
                "channels": {
                  "items": {
                    "type": "string"
                  },
                  "type": "array"
                },
                "direct_messages": {
                  "items": {
                    "type": "string"
                  },
                  "type": "array"
                }
              },
              "type": "object"
            }
          },
          "required": [
            "ellipsis",
            "slack",
            "session"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "ellipsis": {
              "additionalProperties": false,
              "properties": {
                "description": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "enabled": {
                  "type": "boolean"
                },
                "kind": {
                  "const": "github",
                  "type": "string",
                  "x-ellipsis-enum": "AgentKind"
                },
                "metadata": {
                  "additionalProperties": false,
                  "properties": {
                    "annotations": {
                      "items": {
                        "type": "string"
                      },
                      "type": "object"
                    },
                    "labels": {
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "type": "object"
                },
                "name": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "version": {
                  "type": "string"
                }
              },
              "required": [
                "kind"
              ],
              "type": "object"
            },
            "github": {
              "additionalProperties": false,
              "properties": {
                "mentions": {
                  "additionalProperties": false,
                  "properties": {
                    "allow_leading_ellipsis": {
                      "type": "boolean"
                    },
                    "for": {
                      "additionalProperties": false,
                      "properties": {
                        "private": {
                          "type": "object"
                        },
                        "public": {
                          "type": "object"
                        }
                      },
                      "type": "object"
                    },
                    "require_leading_mention": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "repositories": {
                  "items": {
                    "type": "string"
                  },
                  "type": "array"
                }
              },
              "type": "object"
            },
            "session": {
              "additionalProperties": false,
              "allOf": [
                {
                  "oneOf": [
                    {
                      "properties": {
                        "claude_code": {
                          "type": "object"
                        },
                        "codex": {
                          "type": "null"
                        },
                        "gemini": {
                          "type": "null"
                        }
                      },
                      "required": [
                        "claude_code"
                      ]
                    },
                    {
                      "properties": {
                        "claude_code": {
                          "type": "null"
                        },
                        "codex": {
                          "type": "object"
                        },
                        "gemini": {
                          "type": "null"
                        }
                      },
                      "required": [
                        "codex"
                      ]
                    },
                    {
                      "properties": {
                        "claude_code": {
                          "type": "null"
                        },
                        "codex": {
                          "type": "null"
                        },
                        "gemini": {
                          "type": "object"
                        }
                      },
                      "required": [
                        "gemini"
                      ]
                    }
                  ]
                }
              ],
              "properties": {
                "budget": {
                  "additionalProperties": false,
                  "properties": {
                    "day": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "month": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "session": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "week": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "type": "object"
                },
                "claude_code": {
                  "anyOf": [
                    {
                      "additionalProperties": false,
                      "properties": {
                        "effort": {
                          "type": "object"
                        },
                        "fallback_model": {
                          "type": "object"
                        },
                        "max_turns": {
                          "type": "object"
                        },
                        "model": {
                          "type": "string"
                        },
                        "prompt": {
                          "type": "object"
                        },
                        "settings": {
                          "type": "object"
                        }
                      },
                      "required": [
                        "model"
                      ],
                      "type": "object"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "codex": {
                  "anyOf": [
                    {
                      "additionalProperties": false,
                      "properties": {
                        "effort": {
                          "type": "object"
                        },
                        "model": {
                          "type": "string"
                        },
                        "prompt": {
                          "type": "object"
                        }
                      },
                      "required": [
                        "model"
                      ],
                      "type": "object"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "environment": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "additionalProperties": false,
                      "properties": {
                        "compute": {
                          "type": "object"
                        },
                        "hooks": {
                          "type": "object"
                        },
                        "mcp": {
                          "type": "array"
                        },
                        "repositories": {
                          "type": "array"
                        },
                        "variables": {
                          "type": "array"
                        }
                      },
                      "type": "object"
                    }
                  ]
                },
                "gemini": {
                  "anyOf": [
                    {
                      "additionalProperties": false,
                      "properties": {
                        "model": {
                          "type": "string"
                        },
                        "prompt": {
                          "type": "object"
                        }
                      },
                      "required": [
                        "model"
                      ],
                      "type": "object"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "mcp": {
                  "items": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "object"
                      },
                      {
                        "type": "object"
                      },
                      {
                        "type": "object"
                      }
                    ]
                  },
                  "type": "array"
                },
                "metadata": {
                  "additionalProperties": false,
                  "properties": {
                    "annotations": {
                      "items": {
                        "type": "string"
                      },
                      "type": "object"
                    },
                    "labels": {
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "type": "object"
                },
                "permissions": {
                  "additionalProperties": false,
                  "properties": {
                    "ellipsis": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "array"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "github": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "array"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "type": "object"
                },
                "skills": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "path": {
                        "type": "string"
                      },
                      "repository": {
                        "type": "object"
                      }
                    },
                    "required": [
                      "path"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                }
              },
              "type": "object"
            }
          },
          "required": [
            "ellipsis",
            "github",
            "session"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "ellipsis": {
              "additionalProperties": false,
              "properties": {
                "description": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "enabled": {
                  "type": "boolean"
                },
                "kind": {
                  "const": "linear",
                  "type": "string",
                  "x-ellipsis-enum": "AgentKind"
                },
                "metadata": {
                  "additionalProperties": false,
                  "properties": {
                    "annotations": {
                      "items": {
                        "type": "string"
                      },
                      "type": "object"
                    },
                    "labels": {
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "type": "object"
                },
                "name": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "version": {
                  "type": "string"
                }
              },
              "required": [
                "kind"
              ],
              "type": "object"
            },
            "linear": {
              "additionalProperties": false,
              "properties": {
                "projects": {
                  "items": {
                    "type": "string"
                  },
                  "type": "array"
                },
                "teams": {
                  "items": {
                    "type": "string"
                  },
                  "type": "array"
                }
              },
              "type": "object"
            },
            "session": {
              "additionalProperties": false,
              "allOf": [
                {
                  "oneOf": [
                    {
                      "properties": {
                        "claude_code": {
                          "type": "object"
                        },
                        "codex": {
                          "type": "null"
                        },
                        "gemini": {
                          "type": "null"
                        }
                      },
                      "required": [
                        "claude_code"
                      ]
                    },
                    {
                      "properties": {
                        "claude_code": {
                          "type": "null"
                        },
                        "codex": {
                          "type": "object"
                        },
                        "gemini": {
                          "type": "null"
                        }
                      },
                      "required": [
                        "codex"
                      ]
                    },
                    {
                      "properties": {
                        "claude_code": {
                          "type": "null"
                        },
                        "codex": {
                          "type": "null"
                        },
                        "gemini": {
                          "type": "object"
                        }
                      },
                      "required": [
                        "gemini"
                      ]
                    }
                  ]
                }
              ],
              "properties": {
                "budget": {
                  "additionalProperties": false,
                  "properties": {
                    "day": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "month": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "session": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "week": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "type": "object"
                },
                "claude_code": {
                  "anyOf": [
                    {
                      "additionalProperties": false,
                      "properties": {
                        "effort": {
                          "type": "object"
                        },
                        "fallback_model": {
                          "type": "object"
                        },
                        "max_turns": {
                          "type": "object"
                        },
                        "model": {
                          "type": "string"
                        },
                        "prompt": {
                          "type": "object"
                        },
                        "settings": {
                          "type": "object"
                        }
                      },
                      "required": [
                        "model"
                      ],
                      "type": "object"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "codex": {
                  "anyOf": [
                    {
                      "additionalProperties": false,
                      "properties": {
                        "effort": {
                          "type": "object"
                        },
                        "model": {
                          "type": "string"
                        },
                        "prompt": {
                          "type": "object"
                        }
                      },
                      "required": [
                        "model"
                      ],
                      "type": "object"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "environment": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "additionalProperties": false,
                      "properties": {
                        "compute": {
                          "type": "object"
                        },
                        "hooks": {
                          "type": "object"
                        },
                        "mcp": {
                          "type": "array"
                        },
                        "repositories": {
                          "type": "array"
                        },
                        "variables": {
                          "type": "array"
                        }
                      },
                      "type": "object"
                    }
                  ]
                },
                "gemini": {
                  "anyOf": [
                    {
                      "additionalProperties": false,
                      "properties": {
                        "model": {
                          "type": "string"
                        },
                        "prompt": {
                          "type": "object"
                        }
                      },
                      "required": [
                        "model"
                      ],
                      "type": "object"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "mcp": {
                  "items": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "object"
                      },
                      {
                        "type": "object"
                      },
                      {
                        "type": "object"
                      }
                    ]
                  },
                  "type": "array"
                },
                "metadata": {
                  "additionalProperties": false,
                  "properties": {
                    "annotations": {
                      "items": {
                        "type": "string"
                      },
                      "type": "object"
                    },
                    "labels": {
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "type": "object"
                },
                "permissions": {
                  "additionalProperties": false,
                  "properties": {
                    "ellipsis": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "array"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "github": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "array"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "type": "object"
                },
                "skills": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "path": {
                        "type": "string"
                      },
                      "repository": {
                        "type": "object"
                      }
                    },
                    "required": [
                      "path"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                }
              },
              "type": "object"
            }
          },
          "required": [
            "ellipsis",
            "linear",
            "session"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "ellipsis": {
              "additionalProperties": false,
              "properties": {
                "description": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "enabled": {
                  "type": "boolean"
                },
                "kind": {
                  "const": "sentry",
                  "type": "string",
                  "x-ellipsis-enum": "AgentKind"
                },
                "metadata": {
                  "additionalProperties": false,
                  "properties": {
                    "annotations": {
                      "items": {
                        "type": "string"
                      },
                      "type": "object"
                    },
                    "labels": {
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "type": "object"
                },
                "name": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "version": {
                  "type": "string"
                }
              },
              "required": [
                "kind"
              ],
              "type": "object"
            },
            "sentry": {
              "additionalProperties": false,
              "properties": {
                "on": {
                  "items": {
                    "enum": [
                      "issue_alert",
                      "metric_alert"
                    ],
                    "type": "string"
                  },
                  "minItems": 1,
                  "type": "array"
                },
                "organizations": {
                  "items": {
                    "type": "string"
                  },
                  "type": "array"
                },
                "projects": {
                  "items": {
                    "type": "string"
                  },
                  "minItems": 1,
                  "type": "array"
                }
              },
              "required": [
                "projects"
              ],
              "type": "object"
            },
            "session": {
              "additionalProperties": false,
              "allOf": [
                {
                  "oneOf": [
                    {
                      "properties": {
                        "claude_code": {
                          "type": "object"
                        },
                        "codex": {
                          "type": "null"
                        },
                        "gemini": {
                          "type": "null"
                        }
                      },
                      "required": [
                        "claude_code"
                      ]
                    },
                    {
                      "properties": {
                        "claude_code": {
                          "type": "null"
                        },
                        "codex": {
                          "type": "object"
                        },
                        "gemini": {
                          "type": "null"
                        }
                      },
                      "required": [
                        "codex"
                      ]
                    },
                    {
                      "properties": {
                        "claude_code": {
                          "type": "null"
                        },
                        "codex": {
                          "type": "null"
                        },
                        "gemini": {
                          "type": "object"
                        }
                      },
                      "required": [
                        "gemini"
                      ]
                    }
                  ]
                }
              ],
              "properties": {
                "budget": {
                  "additionalProperties": false,
                  "properties": {
                    "day": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "month": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "session": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "week": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "type": "object"
                },
                "claude_code": {
                  "anyOf": [
                    {
                      "additionalProperties": false,
                      "properties": {
                        "effort": {
                          "type": "object"
                        },
                        "fallback_model": {
                          "type": "object"
                        },
                        "max_turns": {
                          "type": "object"
                        },
                        "model": {
                          "type": "string"
                        },
                        "prompt": {
                          "type": "object"
                        },
                        "settings": {
                          "type": "object"
                        }
                      },
                      "required": [
                        "model"
                      ],
                      "type": "object"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "codex": {
                  "anyOf": [
                    {
                      "additionalProperties": false,
                      "properties": {
                        "effort": {
                          "type": "object"
                        },
                        "model": {
                          "type": "string"
                        },
                        "prompt": {
                          "type": "object"
                        }
                      },
                      "required": [
                        "model"
                      ],
                      "type": "object"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "environment": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "additionalProperties": false,
                      "properties": {
                        "compute": {
                          "type": "object"
                        },
                        "hooks": {
                          "type": "object"
                        },
                        "mcp": {
                          "type": "array"
                        },
                        "repositories": {
                          "type": "array"
                        },
                        "variables": {
                          "type": "array"
                        }
                      },
                      "type": "object"
                    }
                  ]
                },
                "gemini": {
                  "anyOf": [
                    {
                      "additionalProperties": false,
                      "properties": {
                        "model": {
                          "type": "string"
                        },
                        "prompt": {
                          "type": "object"
                        }
                      },
                      "required": [
                        "model"
                      ],
                      "type": "object"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "mcp": {
                  "items": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "object"
                      },
                      {
                        "type": "object"
                      },
                      {
                        "type": "object"
                      }
                    ]
                  },
                  "type": "array"
                },
                "metadata": {
                  "additionalProperties": false,
                  "properties": {
                    "annotations": {
                      "items": {
                        "type": "string"
                      },
                      "type": "object"
                    },
                    "labels": {
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "type": "object"
                },
                "permissions": {
                  "additionalProperties": false,
                  "properties": {
                    "ellipsis": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "array"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "github": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "array"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "type": "object"
                },
                "skills": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "path": {
                        "type": "string"
                      },
                      "repository": {
                        "type": "object"
                      }
                    },
                    "required": [
                      "path"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                }
              },
              "type": "object"
            }
          },
          "required": [
            "ellipsis",
            "sentry",
            "session"
          ],
          "type": "object"
        }
      ]
    }
  },
  "required": [
    "agent"
  ],
  "type": "object"
}
```

### Response schema

```json
{
  "properties": {
    "agent": {
      "oneOf": [
        {
          "properties": {
            "config": {
              "additionalProperties": false,
              "properties": {
                "ellipsis": {
                  "additionalProperties": false,
                  "properties": {
                    "description": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "enabled": {
                      "default": true,
                      "type": "boolean"
                    },
                    "kind": {
                      "const": "agent",
                      "type": "string",
                      "x-ellipsis-enum": "AgentKind"
                    },
                    "metadata": {
                      "additionalProperties": false,
                      "properties": {
                        "annotations": {
                          "type": "object"
                        },
                        "labels": {
                          "type": "array"
                        }
                      },
                      "required": [
                        "annotations",
                        "labels"
                      ],
                      "type": "object",
                      "x-ellipsis-returned-form-of": "ConfigMetadata"
                    },
                    "name": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "version": {
                      "default": "v1",
                      "type": "string"
                    }
                  },
                  "required": [
                    "description",
                    "enabled",
                    "kind",
                    "metadata",
                    "name",
                    "version"
                  ],
                  "type": "object",
                  "x-ellipsis-returned-form-of": "AgentIdentity"
                },
                "input": {
                  "anyOf": [
                    {
                      "additionalProperties": false,
                      "properties": {
                        "json_schema": {
                          "type": "object"
                        }
                      },
                      "required": [
                        "json_schema"
                      ],
                      "type": "object"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "session": {
                  "additionalProperties": false,
                  "allOf": [
                    {
                      "oneOf": [
                        {
                          "type": "object"
                        },
                        {
                          "type": "object"
                        },
                        {
                          "type": "object"
                        }
                      ]
                    }
                  ],
                  "properties": {
                    "budget": {
                      "additionalProperties": false,
                      "properties": {
                        "day": {
                          "type": "object"
                        },
                        "month": {
                          "type": "object"
                        },
                        "session": {
                          "type": "object"
                        },
                        "week": {
                          "type": "object"
                        }
                      },
                      "required": [
                        "day",
                        "month",
                        "session",
                        "week"
                      ],
                      "type": "object",
                      "x-ellipsis-returned-form-of": "BudgetConfig"
                    },
                    "claude_code": {
                      "anyOf": [
                        {
                          "type": "object"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "codex": {
                      "anyOf": [
                        {
                          "type": "object"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "conversation": {
                      "additionalProperties": false,
                      "properties": {
                        "interactive": {
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "interactive"
                      ],
                      "type": "object",
                      "x-ellipsis-returned-form-of": "SessionConversationConfig"
                    },
                    "environment": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object"
                        }
                      ],
                      "default": {
                        "compute": {},
                        "hooks": {},
                        "mcp": [],
                        "repositories": [],
                        "variables": []
                      }
                    },
                    "gemini": {
                      "anyOf": [
                        {
                          "type": "object"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "mcp": {
                      "default": [],
                      "items": {
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "metadata": {
                      "additionalProperties": false,
                      "properties": {
                        "annotations": {
                          "type": "object"
                        },
                        "labels": {
                          "type": "array"
                        }
                      },
                      "required": [
                        "annotations",
                        "labels"
                      ],
                      "type": "object",
                      "x-ellipsis-returned-form-of": "ConfigMetadata"
                    },
                    "output": {
                      "anyOf": [
                        {
                          "type": "object"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "permissions": {
                      "additionalProperties": false,
                      "properties": {
                        "ellipsis": {
                          "type": "object"
                        },
                        "github": {
                          "type": "object"
                        }
                      },
                      "required": [
                        "ellipsis",
                        "github"
                      ],
                      "type": "object",
                      "x-ellipsis-returned-form-of": "PermissionsConfig"
                    },
                    "skills": {
                      "default": [],
                      "items": {
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "budget",
                    "claude_code",
                    "codex",
                    "conversation",
                    "environment",
                    "gemini",
                    "mcp",
                    "metadata",
                    "output",
                    "permissions",
                    "skills"
                  ],
                  "type": "object",
                  "x-ellipsis-returned-form-of": "SessionConfig"
                },
                "trigger": {
                  "anyOf": [
                    {
                      "oneOf": [
                        {
                          "type": "object"
                        },
                        {
                          "type": "object"
                        }
                      ]
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "ellipsis",
                "input",
                "session",
                "trigger"
              ],
              "type": "object",
              "x-ellipsis-returned-form-of": "AgentConfig"
            },
            "created_at": {
              "format": "date-time",
              "type": "string"
            },
            "display_name": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "edited_by": {
              "anyOf": [
                {
                  "properties": {
                    "avatar_url": {
                      "type": "string"
                    },
                    "id": {
                      "type": "integer"
                    },
                    "login": {
                      "type": "string"
                    },
                    "name": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "type": {
                      "enum": [
                        "User",
                        "Organization",
                        "Bot",
                        "Mannequin"
                      ],
                      "type": "string"
                    }
                  },
                  "required": [
                    "avatar_url",
                    "id",
                    "login",
                    "name",
                    "type"
                  ],
                  "type": "object"
                },
                {
                  "type": "null"
                }
              ]
            },
            "id": {
              "type": "string"
            },
            "kind": {
              "const": "agent",
              "default": "agent",
              "type": "string",
              "x-ellipsis-enum": "AgentKind"
            },
            "last_session_created_at": {
              "anyOf": [
                {
                  "format": "date-time",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "last_session_id": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "last_sync_error": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "last_synced_commit_sha": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "managed_by": {
              "enum": [
                "github",
                "api",
                "ellipsis"
              ],
              "type": "string"
            },
            "name": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "next_run_at": {
              "anyOf": [
                {
                  "format": "date-time",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "pending_pull_request_url": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "raw_yaml": {
              "type": "string"
            },
            "sha": {
              "type": "string"
            },
            "source_details": {
              "anyOf": [
                {
                  "properties": {
                    "branch": {
                      "type": "string"
                    },
                    "path": {
                      "type": "string"
                    },
                    "repo_id": {
                      "type": "integer"
                    }
                  },
                  "required": [
                    "repo_id",
                    "path",
                    "branch"
                  ],
                  "type": "object"
                },
                {
                  "type": "null"
                }
              ]
            },
            "updated_at": {
              "format": "date-time",
              "type": "string"
            },
            "url": {
              "type": "string"
            }
          },
          "required": [
            "id",
            "sha",
            "config",
            "url",
            "created_at",
            "updated_at",
            "managed_by",
            "raw_yaml"
          ],
          "type": "object"
        },
        {
          "properties": {
            "config": {
              "additionalProperties": false,
              "properties": {
                "ellipsis": {
                  "additionalProperties": false,
                  "properties": {
                    "description": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "enabled": {
                      "default": true,
                      "type": "boolean"
                    },
                    "kind": {
                      "const": "slack",
                      "type": "string",
                      "x-ellipsis-enum": "AgentKind"
                    },
                    "metadata": {
                      "additionalProperties": false,
                      "properties": {
                        "annotations": {
                          "type": "object"
                        },
                        "labels": {
                          "type": "array"
                        }
                      },
                      "required": [
                        "annotations",
                        "labels"
                      ],
                      "type": "object",
                      "x-ellipsis-returned-form-of": "ConfigMetadata"
                    },
                    "name": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "version": {
                      "default": "v1",
                      "type": "string"
                    }
                  },
                  "required": [
                    "description",
                    "enabled",
                    "kind",
                    "metadata",
                    "name",
                    "version"
                  ],
                  "type": "object",
                  "x-ellipsis-returned-form-of": "SlackIdentity"
                },
                "session": {
                  "additionalProperties": false,
                  "allOf": [
                    {
                      "oneOf": [
                        {
                          "type": "object"
                        },
                        {
                          "type": "object"
                        },
                        {
                          "type": "object"
                        }
                      ]
                    }
                  ],
                  "properties": {
                    "budget": {
                      "additionalProperties": false,
                      "properties": {
                        "day": {
                          "type": "object"
                        },
                        "month": {
                          "type": "object"
                        },
                        "session": {
                          "type": "object"
                        },
                        "week": {
                          "type": "object"
                        }
                      },
                      "required": [
                        "day",
                        "month",
                        "session",
                        "week"
                      ],
                      "type": "object",
                      "x-ellipsis-returned-form-of": "BudgetConfig"
                    },
                    "claude_code": {
                      "anyOf": [
                        {
                          "type": "object"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "codex": {
                      "anyOf": [
                        {
                          "type": "object"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "environment": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object"
                        }
                      ]
                    },
                    "gemini": {
                      "anyOf": [
                        {
                          "type": "object"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "mcp": {
                      "items": {
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "metadata": {
                      "additionalProperties": false,
                      "properties": {
                        "annotations": {
                          "type": "object"
                        },
                        "labels": {
                          "type": "array"
                        }
                      },
                      "required": [
                        "annotations",
                        "labels"
                      ],
                      "type": "object",
                      "x-ellipsis-returned-form-of": "ConfigMetadata"
                    },
                    "permissions": {
                      "additionalProperties": false,
                      "properties": {
                        "ellipsis": {
                          "type": "object"
                        },
                        "github": {
                          "type": "object"
                        }
                      },
                      "required": [
                        "ellipsis",
                        "github"
                      ],
                      "type": "object",
                      "x-ellipsis-returned-form-of": "PermissionsConfig"
                    },
                    "skills": {
                      "items": {
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "budget",
                    "claude_code",
                    "codex",
                    "environment",
                    "gemini",
                    "mcp",
                    "metadata",
                    "permissions",
                    "skills"
                  ],
                  "type": "object",
                  "x-ellipsis-returned-form-of": "IntegrationSessionConfig"
                },
                "slack": {
                  "additionalProperties": false,
                  "properties": {
                    "channels": {
                      "default": [],
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    },
                    "direct_messages": {
                      "default": [],
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "channels",
                    "direct_messages"
                  ],
                  "type": "object",
                  "x-ellipsis-returned-form-of": "SlackRoutes"
                }
              },
              "required": [
                "ellipsis",
                "session",
                "slack"
              ],
              "type": "object",
              "x-ellipsis-returned-form-of": "SlackConfig"
            },
            "created_at": {
              "format": "date-time",
              "type": "string"
            },
            "display_name": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "edited_by": {
              "anyOf": [
                {
                  "properties": {
                    "avatar_url": {
                      "type": "string"
                    },
                    "id": {
                      "type": "integer"
                    },
                    "login": {
                      "type": "string"
                    },
                    "name": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "type": {
                      "enum": [
                        "User",
                        "Organization",
                        "Bot",
                        "Mannequin"
                      ],
                      "type": "string"
                    }
                  },
                  "required": [
                    "avatar_url",
                    "id",
                    "login",
                    "name",
                    "type"
                  ],
                  "type": "object"
                },
                {
                  "type": "null"
                }
              ]
            },
            "id": {
              "type": "string"
            },
            "kind": {
              "const": "slack",
              "default": "slack",
              "type": "string",
              "x-ellipsis-enum": "AgentKind"
            },
            "last_session_created_at": {
              "anyOf": [
                {
                  "format": "date-time",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "last_session_id": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "last_sync_error": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "last_synced_commit_sha": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "managed_by": {
              "enum": [
                "github",
                "api",
                "ellipsis"
              ],
              "type": "string"
            },
            "name": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "next_run_at": {
              "anyOf": [
                {
                  "format": "date-time",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "pending_pull_request_url": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "raw_yaml": {
              "type": "string"
            },
            "sha": {
              "type": "string"
            },
            "source_details": {
              "anyOf": [
                {
                  "properties": {
                    "branch": {
                      "type": "string"
                    },
                    "path": {
                      "type": "string"
                    },
                    "repo_id": {
                      "type": "integer"
                    }
                  },
                  "required": [
                    "repo_id",
                    "path",
                    "branch"
                  ],
                  "type": "object"
                },
                {
                  "type": "null"
                }
              ]
            },
            "updated_at": {
              "format": "date-time",
              "type": "string"
            },
            "url": {
              "type": "string"
            }
          },
          "required": [
            "id",
            "sha",
            "config",
            "url",
            "created_at",
            "updated_at",
            "managed_by",
            "raw_yaml"
          ],
          "type": "object"
        },
        {
          "properties": {
            "config": {
              "additionalProperties": false,
              "properties": {
                "ellipsis": {
                  "additionalProperties": false,
                  "properties": {
                    "description": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "enabled": {
                      "default": true,
                      "type": "boolean"
                    },
                    "kind": {
                      "const": "github",
                      "type": "string",
                      "x-ellipsis-enum": "AgentKind"
                    },
                    "metadata": {
                      "additionalProperties": false,
                      "properties": {
                        "annotations": {
                          "type": "object"
                        },
                        "labels": {
                          "type": "array"
                        }
                      },
                      "required": [
                        "annotations",
                        "labels"
                      ],
                      "type": "object",
                      "x-ellipsis-returned-form-of": "ConfigMetadata"
                    },
                    "name": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "version": {
                      "default": "v1",
                      "type": "string"
                    }
                  },
                  "required": [
                    "description",
                    "enabled",
                    "kind",
                    "metadata",
                    "name",
                    "version"
                  ],
                  "type": "object",
                  "x-ellipsis-returned-form-of": "GithubIdentity"
                },
                "github": {
                  "additionalProperties": false,
                  "properties": {
                    "mentions": {
                      "additionalProperties": false,
                      "properties": {
                        "allow_leading_ellipsis": {
                          "type": "boolean"
                        },
                        "for": {
                          "type": "object"
                        },
                        "require_leading_mention": {
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "allow_leading_ellipsis",
                        "for",
                        "require_leading_mention"
                      ],
                      "type": "object",
                      "x-ellipsis-returned-form-of": "GithubMentionPolicy"
                    },
                    "repositories": {
                      "default": [],
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "mentions",
                    "repositories"
                  ],
                  "type": "object",
                  "x-ellipsis-returned-form-of": "GithubRoutes"
                },
                "session": {
                  "additionalProperties": false,
                  "allOf": [
                    {
                      "oneOf": [
                        {
                          "type": "object"
                        },
                        {
                          "type": "object"
                        },
                        {
                          "type": "object"
                        }
                      ]
                    }
                  ],
                  "properties": {
                    "budget": {
                      "additionalProperties": false,
                      "properties": {
                        "day": {
                          "type": "object"
                        },
                        "month": {
                          "type": "object"
                        },
                        "session": {
                          "type": "object"
                        },
                        "week": {
                          "type": "object"
                        }
                      },
                      "required": [
                        "day",
                        "month",
                        "session",
                        "week"
                      ],
                      "type": "object",
                      "x-ellipsis-returned-form-of": "BudgetConfig"
                    },
                    "claude_code": {
                      "anyOf": [
                        {
                          "type": "object"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "codex": {
                      "anyOf": [
                        {
                          "type": "object"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "environment": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object"
                        }
                      ]
                    },
                    "gemini": {
                      "anyOf": [
                        {
                          "type": "object"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "mcp": {
                      "items": {
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "metadata": {
                      "additionalProperties": false,
                      "properties": {
                        "annotations": {
                          "type": "object"
                        },
                        "labels": {
                          "type": "array"
                        }
                      },
                      "required": [
                        "annotations",
                        "labels"
                      ],
                      "type": "object",
                      "x-ellipsis-returned-form-of": "ConfigMetadata"
                    },
                    "permissions": {
                      "additionalProperties": false,
                      "properties": {
                        "ellipsis": {
                          "type": "object"
                        },
                        "github": {
                          "type": "object"
                        }
                      },
                      "required": [
                        "ellipsis",
                        "github"
                      ],
                      "type": "object",
                      "x-ellipsis-returned-form-of": "PermissionsConfig"
                    },
                    "skills": {
                      "items": {
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "budget",
                    "claude_code",
                    "codex",
                    "environment",
                    "gemini",
                    "mcp",
                    "metadata",
                    "permissions",
                    "skills"
                  ],
                  "type": "object",
                  "x-ellipsis-returned-form-of": "IntegrationSessionConfig"
                }
              },
              "required": [
                "ellipsis",
                "github",
                "session"
              ],
              "type": "object",
              "x-ellipsis-returned-form-of": "GithubConfig"
            },
            "created_at": {
              "format": "date-time",
              "type": "string"
            },
            "display_name": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "edited_by": {
              "anyOf": [
                {
                  "properties": {
                    "avatar_url": {
                      "type": "string"
                    },
                    "id": {
                      "type": "integer"
                    },
                    "login": {
                      "type": "string"
                    },
                    "name": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "type": {
                      "enum": [
                        "User",
                        "Organization",
                        "Bot",
                        "Mannequin"
                      ],
                      "type": "string"
                    }
                  },
                  "required": [
                    "avatar_url",
                    "id",
                    "login",
                    "name",
                    "type"
                  ],
                  "type": "object"
                },
                {
                  "type": "null"
                }
              ]
            },
            "id": {
              "type": "string"
            },
            "kind": {
              "const": "github",
              "default": "github",
              "type": "string",
              "x-ellipsis-enum": "AgentKind"
            },
            "last_session_created_at": {
              "anyOf": [
                {
                  "format": "date-time",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "last_session_id": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "last_sync_error": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "last_synced_commit_sha": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "managed_by": {
              "enum": [
                "github",
                "api",
                "ellipsis"
              ],
              "type": "string"
            },
            "name": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "next_run_at": {
              "anyOf": [
                {
                  "format": "date-time",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "pending_pull_request_url": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "raw_yaml": {
              "type": "string"
            },
            "sha": {
              "type": "string"
            },
            "source_details": {
              "anyOf": [
                {
                  "properties": {
                    "branch": {
                      "type": "string"
                    },
                    "path": {
                      "type": "string"
                    },
                    "repo_id": {
                      "type": "integer"
                    }
                  },
                  "required": [
                    "repo_id",
                    "path",
                    "branch"
                  ],
                  "type": "object"
                },
                {
                  "type": "null"
                }
              ]
            },
            "updated_at": {
              "format": "date-time",
              "type": "string"
            },
            "url": {
              "type": "string"
            }
          },
          "required": [
            "id",
            "sha",
            "config",
            "url",
            "created_at",
            "updated_at",
            "managed_by",
            "raw_yaml"
          ],
          "type": "object"
        },
        {
          "properties": {
            "config": {
              "additionalProperties": false,
              "properties": {
                "ellipsis": {
                  "additionalProperties": false,
                  "properties": {
                    "description": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "enabled": {
                      "default": true,
                      "type": "boolean"
                    },
                    "kind": {
                      "const": "linear",
                      "type": "string",
                      "x-ellipsis-enum": "AgentKind"
                    },
                    "metadata": {
                      "additionalProperties": false,
                      "properties": {
                        "annotations": {
                          "type": "object"
                        },
                        "labels": {
                          "type": "array"
                        }
                      },
                      "required": [
                        "annotations",
                        "labels"
                      ],
                      "type": "object",
                      "x-ellipsis-returned-form-of": "ConfigMetadata"
                    },
                    "name": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "version": {
                      "default": "v1",
                      "type": "string"
                    }
                  },
                  "required": [
                    "description",
                    "enabled",
                    "kind",
                    "metadata",
                    "name",
                    "version"
                  ],
                  "type": "object",
                  "x-ellipsis-returned-form-of": "LinearIdentity"
                },
                "linear": {
                  "additionalProperties": false,
                  "properties": {
                    "projects": {
                      "default": [],
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    },
                    "teams": {
                      "default": [],
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "projects",
                    "teams"
                  ],
                  "type": "object",
                  "x-ellipsis-returned-form-of": "LinearRoutes"
                },
                "session": {
                  "additionalProperties": false,
                  "allOf": [
                    {
                      "oneOf": [
                        {
                          "type": "object"
                        },
                        {
                          "type": "object"
                        },
                        {
                          "type": "object"
                        }
                      ]
                    }
                  ],
                  "properties": {
                    "budget": {
                      "additionalProperties": false,
                      "properties": {
                        "day": {
                          "type": "object"
                        },
                        "month": {
                          "type": "object"
                        },
                        "session": {
                          "type": "object"
                        },
                        "week": {
                          "type": "object"
                        }
                      },
                      "required": [
                        "day",
                        "month",
                        "session",
                        "week"
                      ],
                      "type": "object",
                      "x-ellipsis-returned-form-of": "BudgetConfig"
                    },
                    "claude_code": {
                      "anyOf": [
                        {
                          "type": "object"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "codex": {
                      "anyOf": [
                        {
                          "type": "object"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "environment": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object"
                        }
                      ]
                    },
                    "gemini": {
                      "anyOf": [
                        {
                          "type": "object"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "mcp": {
                      "items": {
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "metadata": {
                      "additionalProperties": false,
                      "properties": {
                        "annotations": {
                          "type": "object"
                        },
                        "labels": {
                          "type": "array"
                        }
                      },
                      "required": [
                        "annotations",
                        "labels"
                      ],
                      "type": "object",
                      "x-ellipsis-returned-form-of": "ConfigMetadata"
                    },
                    "permissions": {
                      "additionalProperties": false,
                      "properties": {
                        "ellipsis": {
                          "type": "object"
                        },
                        "github": {
                          "type": "object"
                        }
                      },
                      "required": [
                        "ellipsis",
                        "github"
                      ],
                      "type": "object",
                      "x-ellipsis-returned-form-of": "PermissionsConfig"
                    },
                    "skills": {
                      "items": {
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "budget",
                    "claude_code",
                    "codex",
                    "environment",
                    "gemini",
                    "mcp",
                    "metadata",
                    "permissions",
                    "skills"
                  ],
                  "type": "object",
                  "x-ellipsis-returned-form-of": "IntegrationSessionConfig"
                }
              },
              "required": [
                "ellipsis",
                "linear",
                "session"
              ],
              "type": "object",
              "x-ellipsis-returned-form-of": "LinearConfig"
            },
            "created_at": {
              "format": "date-time",
              "type": "string"
            },
            "display_name": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "edited_by": {
              "anyOf": [
                {
                  "properties": {
                    "avatar_url": {
                      "type": "string"
                    },
                    "id": {
                      "type": "integer"
                    },
                    "login": {
                      "type": "string"
                    },
                    "name": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "type": {
                      "enum": [
                        "User",
                        "Organization",
                        "Bot",
                        "Mannequin"
                      ],
                      "type": "string"
                    }
                  },
                  "required": [
                    "avatar_url",
                    "id",
                    "login",
                    "name",
                    "type"
                  ],
                  "type": "object"
                },
                {
                  "type": "null"
                }
              ]
            },
            "id": {
              "type": "string"
            },
            "kind": {
              "const": "linear",
              "default": "linear",
              "type": "string",
              "x-ellipsis-enum": "AgentKind"
            },
            "last_session_created_at": {
              "anyOf": [
                {
                  "format": "date-time",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "last_session_id": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "last_sync_error": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "last_synced_commit_sha": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "managed_by": {
              "enum": [
                "github",
                "api",
                "ellipsis"
              ],
              "type": "string"
            },
            "name": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "next_run_at": {
              "anyOf": [
                {
                  "format": "date-time",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "pending_pull_request_url": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "raw_yaml": {
              "type": "string"
            },
            "sha": {
              "type": "string"
            },
            "source_details": {
              "anyOf": [
                {
                  "properties": {
                    "branch": {
                      "type": "string"
                    },
                    "path": {
                      "type": "string"
                    },
                    "repo_id": {
                      "type": "integer"
                    }
                  },
                  "required": [
                    "repo_id",
                    "path",
                    "branch"
                  ],
                  "type": "object"
                },
                {
                  "type": "null"
                }
              ]
            },
            "updated_at": {
              "format": "date-time",
              "type": "string"
            },
            "url": {
              "type": "string"
            }
          },
          "required": [
            "id",
            "sha",
            "config",
            "url",
            "created_at",
            "updated_at",
            "managed_by",
            "raw_yaml"
          ],
          "type": "object"
        },
        {
          "properties": {
            "config": {
              "additionalProperties": false,
              "properties": {
                "ellipsis": {
                  "additionalProperties": false,
                  "properties": {
                    "description": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "enabled": {
                      "default": true,
                      "type": "boolean"
                    },
                    "kind": {
                      "const": "sentry",
                      "type": "string",
                      "x-ellipsis-enum": "AgentKind"
                    },
                    "metadata": {
                      "additionalProperties": false,
                      "properties": {
                        "annotations": {
                          "type": "object"
                        },
                        "labels": {
                          "type": "array"
                        }
                      },
                      "required": [
                        "annotations",
                        "labels"
                      ],
                      "type": "object",
                      "x-ellipsis-returned-form-of": "ConfigMetadata"
                    },
                    "name": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "version": {
                      "default": "v1",
                      "type": "string"
                    }
                  },
                  "required": [
                    "description",
                    "enabled",
                    "kind",
                    "metadata",
                    "name",
                    "version"
                  ],
                  "type": "object",
                  "x-ellipsis-returned-form-of": "SentryIdentity"
                },
                "sentry": {
                  "additionalProperties": false,
                  "properties": {
                    "on": {
                      "default": [
                        "issue_alert",
                        "metric_alert"
                      ],
                      "items": {
                        "type": "string"
                      },
                      "minItems": 1,
                      "type": "array"
                    },
                    "organizations": {
                      "default": [
                        "*"
                      ],
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    },
                    "projects": {
                      "items": {
                        "type": "string"
                      },
                      "minItems": 1,
                      "type": "array"
                    }
                  },
                  "required": [
                    "on",
                    "organizations",
                    "projects"
                  ],
                  "type": "object",
                  "x-ellipsis-returned-form-of": "SentryRoutes"
                },
                "session": {
                  "additionalProperties": false,
                  "allOf": [
                    {
                      "oneOf": [
                        {
                          "type": "object"
                        },
                        {
                          "type": "object"
                        },
                        {
                          "type": "object"
                        }
                      ]
                    }
                  ],
                  "properties": {
                    "budget": {
                      "additionalProperties": false,
                      "properties": {
                        "day": {
                          "type": "object"
                        },
                        "month": {
                          "type": "object"
                        },
                        "session": {
                          "type": "object"
                        },
                        "week": {
                          "type": "object"
                        }
                      },
                      "required": [
                        "day",
                        "month",
                        "session",
                        "week"
                      ],
                      "type": "object",
                      "x-ellipsis-returned-form-of": "BudgetConfig"
                    },
                    "claude_code": {
                      "anyOf": [
                        {
                          "type": "object"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "codex": {
                      "anyOf": [
                        {
                          "type": "object"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "environment": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object"
                        }
                      ]
                    },
                    "gemini": {
                      "anyOf": [
                        {
                          "type": "object"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "mcp": {
                      "items": {
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "metadata": {
                      "additionalProperties": false,
                      "properties": {
                        "annotations": {
                          "type": "object"
                        },
                        "labels": {
                          "type": "array"
                        }
                      },
                      "required": [
                        "annotations",
                        "labels"
                      ],
                      "type": "object",
                      "x-ellipsis-returned-form-of": "ConfigMetadata"
                    },
                    "permissions": {
                      "additionalProperties": false,
                      "properties": {
                        "ellipsis": {
                          "type": "object"
                        },
                        "github": {
                          "type": "object"
                        }
                      },
                      "required": [
                        "ellipsis",
                        "github"
                      ],
                      "type": "object",
                      "x-ellipsis-returned-form-of": "PermissionsConfig"
                    },
                    "skills": {
                      "items": {
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "budget",
                    "claude_code",
                    "codex",
                    "environment",
                    "gemini",
                    "mcp",
                    "metadata",
                    "permissions",
                    "skills"
                  ],
                  "type": "object",
                  "x-ellipsis-returned-form-of": "IntegrationSessionConfig"
                }
              },
              "required": [
                "ellipsis",
                "sentry",
                "session"
              ],
              "type": "object",
              "x-ellipsis-returned-form-of": "SentryConfig"
            },
            "created_at": {
              "format": "date-time",
              "type": "string"
            },
            "display_name": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "edited_by": {
              "anyOf": [
                {
                  "properties": {
                    "avatar_url": {
                      "type": "string"
                    },
                    "id": {
                      "type": "integer"
                    },
                    "login": {
                      "type": "string"
                    },
                    "name": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "type": {
                      "enum": [
                        "User",
                        "Organization",
                        "Bot",
                        "Mannequin"
                      ],
                      "type": "string"
                    }
                  },
                  "required": [
                    "avatar_url",
                    "id",
                    "login",
                    "name",
                    "type"
                  ],
                  "type": "object"
                },
                {
                  "type": "null"
                }
              ]
            },
            "id": {
              "type": "string"
            },
            "kind": {
              "const": "sentry",
              "default": "sentry",
              "type": "string",
              "x-ellipsis-enum": "AgentKind"
            },
            "last_session_created_at": {
              "anyOf": [
                {
                  "format": "date-time",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "last_session_id": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "last_sync_error": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "last_synced_commit_sha": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "managed_by": {
              "enum": [
                "github",
                "api",
                "ellipsis"
              ],
              "type": "string"
            },
            "name": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "next_run_at": {
              "anyOf": [
                {
                  "format": "date-time",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "pending_pull_request_url": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "raw_yaml": {
              "type": "string"
            },
            "sha": {
              "type": "string"
            },
            "source_details": {
              "anyOf": [
                {
                  "properties": {
                    "branch": {
                      "type": "string"
                    },
                    "path": {
                      "type": "string"
                    },
                    "repo_id": {
                      "type": "integer"
                    }
                  },
                  "required": [
                    "repo_id",
                    "path",
                    "branch"
                  ],
                  "type": "object"
                },
                {
                  "type": "null"
                }
              ]
            },
            "updated_at": {
              "format": "date-time",
              "type": "string"
            },
            "url": {
              "type": "string"
            }
          },
          "required": [
            "id",
            "sha",
            "config",
            "url",
            "created_at",
            "updated_at",
            "managed_by",
            "raw_yaml"
          ],
          "type": "object"
        }
      ]
    }
  },
  "required": [
    "agent"
  ],
  "type": "object"
}
```
