Skip to content

[3P] Tier-1: declarative agent schema + open tool catalog + shared runtime #51

Description

@serge-ivo

Part of the open-to-third-party program (epic to follow).

Goal: a third party defines an agent as pure declarative config — no platform PR.

  • Formalize the declarative agent definition (extend `agents.config`): identity, prompt, guardrails, model, `tools[]`, `surfaces[]`, `runtime`, `settingsSchema`. Versioned.
  • Open the capability vocabulary. Today `AgentSurface`/`workflow` in `lib/agent-capabilities.ts` are hardcoded closed unions → any new agent shape needs a monorepo PR. Replace with a platform tool/surface catalog the creator picks from (allowlist), so new agents are data.
  • Untrusted agents get only declarative surface types — the existing `CustomSurface` "loads code into the console origin" and must NOT be exposed to third parties (or must be sandboxed) — see the Tier-2 issue.
  • Generalize the `AgentDO` chat loop into the shared multi-tenant runtime (~80% there per docs/agent-platform-strategy.md) so any declarative agent runs on it.
  • Migrate `repo-chat` (already config/data) onto the formal schema as the first dogfood.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3: laterDesign, strategy, or deferred pending a decision or demanddeferred: no demandBlocked on the #68 focus bet — not before external users existenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions