Skip to content

Agent Plugins: client extension namespace mapping #4452

Closed

Description

@VascoSch92

Part of #4405.

Map OpenHands' Claude-Code-origin concepts — commands/, agents/, hooks/hooks.json, entry_command — under our own reverse-domain client-extension namespace, per spec §8.

Blocked on open questions

#4405's Open Question #2 (exact namespace: io.openhands vs dev.openhands vs com.openhands) needs deciding first.

Scope

  • Pick and document the namespace.
  • Map entry_command, commands/, agents/, hooks/hooks.json into that namespace for AgentPluginsFormat.
  • Ignore extension namespaces we don't implement, without validating their contents.

Refs

Agent Plugins specification

This specification context was added by an OpenHands AI agent on behalf of @enyst.

Activity

  1. added
    enhancement
    plugins
    on Aug 10, 2026
  2. VascoSch92 commented on Aug 14, 2026

    @VascoSch92
    MemberAuthor

    Follow-up: skills-loader duplication — #4495

    Mapping our components under dev.openhands/ means the Agent Plugins format needs the same directory readers the Claude Code format already had, which surfaced how much of that reading is duplicated from elsewhere in the SDK.

    Two of the three resolved cleanly inside this issue's scope:

    • Agents — the plugin format's private scanner duplicated the exported load_agents_from_dir (skills-adjacent, subagent/load.py:163), which is a strict improvement: it skips directories via is_dir(), matches .md case-insensitively, and skips both README.md/readme.md. Deleted the copy; both formats now call the canonical loader with their own root.
    • Commands and hooks — no existing equivalent. CommandDefinition.load has exactly one call site in the repo, and hooks/hooks.json is a plugin-only convention (hooks/config.py resolves the unrelated .openhands/hooks.json). Both stay in the plugin format.

    Skills is the one that does not fit here. _load_skills_from_skills_dir (plugin/format/base.py:147) structurally duplicates the exported load_skills_from_dir (skills/skill.py:848), but delegating to it today would recurse into skill subdirectories via rglob — violating Agent Plugins §5 — and would tighten strict validation in a way that rejects Claude Code plugin skills that load today. Fixing that means adding parameters to a public openhands.sdk.skills function with several other callers, which does not belong in this issue.

    Filed as #4495 with the full evidence and acceptance criteria.

  3. added
    ready-for-dev
    on Aug 17, 2026
  4. removed
    ready-for-dev
    on Aug 17, 2026
  5. github-actions commented on Aug 17, 2026

    @github-actions
    Contributor

    ⚠️ Not yet ready-for-dev

    This issue does not yet meet the readiness criteria, so the
    ready-for-dev label has not been applied (or has been removed).
    The criteria are type-specific:

    Bug reports (bug label):

    • The ### Actual Behavior section must describe reproducible SDK steps
      and include a command such as python, pytest, uv, or pip.
    • An ### Acceptance Criteria section with at least one checklist item (- [ ] …).

    Enhancements (enhancement label):

    • A ### Desired Behavior section.
    • An ### Acceptance Criteria section with at least one checklist item.

    What is missing:

    • Add a ### Desired Behavior section describing the behavior you want.
    • Add an ### Acceptance Criteria section with testable checklist items.

    Edit the issue to address the gaps and the ready-for-dev label will be
    applied automatically.

    This is an automated check — no AI was used to generate this comment.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs Designenhancementplugins

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions