Skip to content

refactor(api): model plugin format on Plugin instead of Agent harness compatibility #626

Open

Description

@ilackarms

Problem

Agent.spec.compatibleHarnesses is the wrong ownership boundary for plugin compatibility.

Today the Agent declares which harnesses it is compatible with, and Agent validation requires compatibleHarnesses whenever the Agent references Plugins, Skills, or Instructions. That conflates two different concerns:

  • the native format of a cataloged plugin;
  • whether a deployment target can consume (or translate) that format.

Compatibility is not an intrinsic property of the Agent. It is a relationship between a referenced Plugin's format and the selected deployment target. A single plugin format may be consumable by multiple harnesses: for example, both Claude Code and OpenClaw can consume Claude-style plugins. BYO agents will consume plugins following the agent-plugins.org specification.

The current Plugin.spec.harnesses field is also too harness-oriented and informational-only. It does not identify the bundle's native format or provide an enforceable compatibility contract.

Proposed API direction

Move format ownership to Plugin and evaluate compatibility at deployment time.

For example:

apiVersion: agentregistry.dev/v1alpha1
kind: Plugin
metadata:
  name: example
spec:
  pluginType: claude # exact field name/value to finalize
  source:
    type: git        # source location remains orthogonal to bundle format
    git:
      repository:
        url: https://github.com/example/plugin
        commit: <sha>

Initial plugin formats should include:

  • Claude-style plugins;
  • agent-plugins.org-style plugins.

The Agent should continue to compose plugins by ResourceRef, but should no longer declare spec.compatibleHarnesses.

At deployment time, the runtime/harness adapter should compare every resolved Plugin's pluginType with the selected execution target:

Plugin format Initially compatible targets
Claude-style Claude Code, OpenClaw
agent-plugins.org BYO agents that support the agent-plugins.org contract

An adapter may either consume the format natively or use an explicit translation capability. If neither is available, deployment should fail before apply with an actionable incompatibility error naming the Plugin, its type, and the target.

Design constraints

  • Keep Plugin.spec.source.type (git/OCI) separate from pluginType; one describes location/transport, the other describes bundle format.
  • Do not duplicate the compatibility matrix onto every Agent or Plugin instance.
  • Support Agents that reference multiple Plugins, including mixed plugin types; compatibility must be checked for every resolved reference.
  • Use pluginType to select the appropriate manifest parser/validator/inventory behavior. The current canonical PluginManifest is Claude-format-specific.
  • Replace or deprecate Plugin.spec.harnesses so there is one authoritative format signal.
  • Preserve deploy reproducibility: compatibility and any translation operate on the resolved immutable Plugin source.
  • Revisit the current Agent validation rule for Skills and Instructions as part of removing compatibleHarnesses; deploy-target capabilities should own materialization checks rather than a static Agent-level harness declaration.

Implementation scope

  • Add a typed, validated plugin-format discriminator to PluginSpec.
  • Remove AgentSpec.CompatibleHarnesses, HarnessCompatibility, and the validation coupling that requires the field for composition.
  • Update Plugin resolution/scanning so parsing is selected by plugin type.
  • Add a deploy-time compatibility contract owned by runtime/harness adapters, including the initial matrix above.
  • Leave room for explicit format translation without requiring translation in the first implementation.
  • Update OpenAPI, generated clients/UI types, examples, declarative CLI behavior, fingerprints if necessary, and documentation.
  • Define migration/defaulting behavior for existing Agents and Plugins.

Acceptance criteria

  • Users can register both Claude-style and agent-plugins.org-style Plugins in the catalog.
  • A Plugin's native format is explicit and validated independently of whether its source is git or OCI.
  • Agent resources no longer contain or require spec.compatibleHarnesses.
  • Claude-style Plugins deploy successfully to both Claude Code and OpenClaw targets.
  • agent-plugins.org-style Plugins deploy successfully to supported BYO Agent targets.
  • An incompatible Plugin/target pairing fails before runtime apply with a clear error.
  • Tests cover native compatibility, incompatible pairings, multiple/mixed Plugin refs, and migration/defaulting behavior.
  • The API and docs clearly distinguish plugin format, source type, deployment target, and optional translation.

Open design questions

  1. Should the field be named pluginType, format, or another term?
  2. What are the canonical enum values (for example, claude and agent-plugins)?

Activity

  1. bibryam commented on Aug 21, 2026

    @bibryam

    I’d use spec.type with claude-code and agent-plugins.

  2. danielle-mustillo commented on Sep 2, 2026

    @danielle-mustillo
    Collaborator

    Just to close the loop @bibryam , its possible to detect the type via inspecting the contents. If the plugin contents complies with Claude-plugin format its is tagged with Plugin.Status.format=[claude-plugin], if it complies with Agent-plugins format its tagged with Plugin.status.format=[agent-plugins] and if it complies with both then it gets Plugin.status.format=[claude-plugin,agent-plugins]

    Our consumer code (BYO, harnesses) can just check whether the format it needs is in the format list before the deployment happens. eg. Claude-Code harness will check if the plugin contains format claude-plugin, and proceed or fail accordingly.

    I ran through the idea at a high level with Scott already.

    Thoughts?

  3. bibryam commented on Sep 7, 2026

    @bibryam

    LGTM
    The consumer (BYO for example) may not declare a plugin format, in which case the plugin would qualify

  4. github-actions commented on Nov 22, 2026

    @github-actions

    This issue has been marked as stale due to no activity in the last 60 days. It will be closed in 14 days unless it is tagged "no stalebot" or other activity occurs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions