Where does the bug appear (feature/product)?
Cursor IDE
Describe the Bug
Cursor Desktop / Agent / Custom Subagents / Task tool
Cursor does not register five newly created, committed project custom subagents in the Task tool’s subagent_type enum.
Three previously committed project agents continue to appear:
- arch-01
- sec-01
- qa-01
Five newly committed agents do not appear:
- aie-01
- be-01
- fe-01
- ops-01
- cse-01
All five files are present under .cursor/agents/, readable from committed HEAD, and contain valid YAML frontmatter.
Example:
---
name: aie-01
description: AI and agent engineering specialist. Use for model integration, agent workflows, prompts, tools, MCP boundaries, evaluations, retrieval, and governed AI behavior.
model: inherit
readonly: false
---
The other four use the same documented schema with unique lowercase, hyphenated names and descriptions.
Actual behavior
The Task tool rejects the identifier:
subagent_type: Invalid enum value. Expected '... | arch-01 | qa-01 | sec-01 | ...'. Received 'aie-01'
The captured Task enum includes:
generalPurpose
explore
shell
cursor-guide
ci-investigator
bugbot
security-review
best-of-n-runner
arch-01
qa-01
sec-01
ai-architect
deployment-expert
performance-optimizer
ci-watcher
thermo-nuclear-code-quality-review
codebase-navigator
enterprise-searcher
people-finder
plan-prep-researcher
gitlab-assistant
It omits all five new committed project agents.
Steps to Reproduce
- Add valid Markdown custom-agent definitions under
.cursor/agents/. - Commit the files.
- Confirm the repository worktree is clean.
- Fully exit all Cursor processes.
- Reopen the repository folder in a new Cursor window.
- Start a new Agent conversation.
- Explicitly invoke
/aie-01. - Observe the Task tool rejection.
Expected Behavior
Cursor documentation states that project custom agents in .cursor/agents/ are included in Agent’s available tools and may be explicitly invoked using /name.
The five agents should therefore appear in the Task enum and accept native invocation.
Operating System
Windows 10/11
Version Information
IDE:
Version: 3.12.17
OS: Windows 11
Cursor Agent CLI: 2026.07.16-899851b
Agent files: project-scoped .cursor/agents/*.md
Repository state: committed and clean
Full Cursor process restart performed
New Cursor window and new Agent conversation used
For AI issues: which model did you use?
Agent / Task tool (custom project subagents)
For AI issues: add Request ID with privacy disabled
7ad7a2c6-1b1b-422a-bb5e-3ded13011c6e
Additional Information
Verification already performed
- Correct repository root confirmed
- Correct branch and committed HEAD confirmed
- Worktree clean
- Agent files present in committed HEAD
- YAML frontmatter parsed successfully
- Names match filenames
readonly: falseis a documented boolean value and default- Full Cursor process restart performed
- New window and new Agent conversation used
- Failure reproduced in both uncommitted and committed states
- Existing project agents remain discoverable
- No fallback roleplay used
Impact
This blocks qualification and use of newly created native project subagents. Existing custom agents work, but Cursor will not add new valid definitions to the Task catalog.
Privacy
No proprietary agent bodies, source code, secrets, or repository contents are included in this report.
Does this stop you from using Cursor
No - Cursor works, but with this issue
