Nested directory support for subagents

Feature request for product/service

Cursor IDE

Describe the request

We need support for subagents being nested in directories within .cursor/agents so they are consistent with skills.

Currently, our subagents are only picked up by the IDE when they are located directly within .cursor/agents. This leads to a maintainability challenge as all agent definitions are in a single directory which can get messy.

Ideally we would have nested directories to better organise the definitions, eg.

.cursor/agents/example/my-agent.md
.cursor/agents/another-example/other-agent.md

Here, both my-agent and other-agent would be detected and usable by cursor, despite being in nested directories.

6 Likes