Skip to content

[FEATURE]: Plugin discovery should support subdirectories like agents and commands #6866

Closed as not planned

Description

@jgordijn

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

Description

The plugin discovery glob pattern uses {plugin,plugins}/*.{ts,js} which only finds plugins at the top level of the plugin directory. This is inconsistent with agents and commands which use ** for recursive discovery.

Current behavior:
// config.ts line 299
const PLUGIN_GLOB = new Bun.Glob("{plugin,plugins}/*.{ts,js}") // Non-recursive

Agents/Commands behavior:
const COMMAND_GLOB = new Bun.Glob("{command,commands}//*.md") // Recursive
const AGENT_GLOB = new Bun.Glob("{agent,agents}/
/*.md") // Recursive

Activity

  1. added
    discussionUsed for feature requests, proposals, ideas, etc. Open discussion
    on Jan 4, 2026
  2. thdxr commented on Mar 25, 2026

    @thdxr
    Member

    To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.

  3. removed
    discussionUsed for feature requests, proposals, ideas, etc. Open discussion
    on May 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions