Skip to content

chat.agentFilesLocations and chat.agentSkillsLocations should support glob/wildcard patterns #307369

@Jonas-K-S

Description

@Jonas-K-S

Summary

The chat.agentFilesLocations and chat.agentSkillsLocations settings currently only accept explicit relative paths or paths starting with ~/. Glob patterns using wildcards (e.g., ** or *) are not supported, making it difficult to work with multi-repo or workspace setups where agent/skill files are located at varying directory depths.

Problem

In a multi-repo workspace, agent and skill files may be nested inside sub-repositories or sub-folders at different depths. For example:

Currently, each path must be explicitly listed:

This is tedious and requires updating the settings every time a new sub-repo is added.

Expected Behavior

Glob/wildcard patterns should be supported, allowing a single entry to match agent/skill folders at any depth:

{
  "chat.agentFilesLocations": {
    "**/.agents/agents": true
  },
  "chat.agentSkillsLocations": {
    "**/.agents/skills": true
  }
}

This addition would be very helpful when working with Meta Repositories and Mono Repos.

VS Code Version: 1.113.0

Metadata

Metadata

Assignees

Labels

chat-promptsPrompt and Instruction files related issues

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions