Task Tool Missing for Custom Agents in .cursor/agents/ + Documentation Pages Return Errors

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

The Task tool for subagent delegation does not recognize custom agents defined in .cursor/agents/*.md files.

When custom agents are defined in the .cursor/agents/ directory, the system injects a <subagent_delegation_context> into the prompt suggesting delegation should work via Task(subagent_type="agent-name", prompt="..."). However, the Task tool is NOT available in the agent’s toolset.

Additionally, the documentation pages for this feature return errors:

This bug is also documented in Claude Code: Task tool cannot find custom agents (filesystem or programmatic) · Issue #9865 · anthropics/claude-code · GitHub

Steps to Reproduce

  1. Create .cursor/agents/ directory in your project

  2. Add agent definition files (e.g., my-agent.md) with frontmatter:

    name: my-agent

    description: Agent description

    (agent instructions)

  3. Open Cursor Agent Mode

  4. Try to invoke /my-agent or ask agent to delegate using Task tool

  5. Agent reports Task tool is not available in its toolset

  6. Try accessing https://cursor.com/docs/context/subagents - returns client-side error

Expected Behavior

  1. Custom agents in .cursor/agents/*.md should be discoverable by the Task tool
  2. Task tool should be available when subagent delegation context is injected
  3. Invoking /agent-name should delegate to that specialized agent
  4. Documentation pages should be accessible without errors

Operating System

MacOS

Version Information

Version: 2.4.21
VSCode Version: 1.105.1
Commit: dc8361355d709f306d5159635a677a571b277bc0
Date: 2026-01-22T16:57:59.675Z
Build Type: Stable
Release Track: Early Access
Electron: 39.2.7
Chromium: 142.0.7444.235
Node.js: 22.21.1
V8: 14.2.231.21-electron.0
OS: Darwin arm64 25.2.0

For AI issues: which model did you use?

Claude Opus 4.5 (Agent Mode)

Additional Information

Confirmed on usage-based plan, which according to official documentation at
Subagents | Cursor Docs should have subagents enabled by default:

“Usage-based plans have subagents enabled by default.”

Despite this:

  • Custom agent files are correctly placed in .cursor/agents/
  • Files are indexed by Cursor (verified in retrieval storage)
  • The <subagent_delegation_context> IS injected into the system prompt
  • But the Task tool is NOT available in the agent’s toolset

The documentation states: “Agent includes all custom subagents in its available tools”
This is NOT happening - the Task tool is missing entirely.

Does this stop you from using Cursor

No - Cursor works, but with this issue

Hey, thanks for the report.

This is a known issue. Other users have already reported similar symptoms here: `Task` tool not found

The team is aware and is looking into it. There’s no timeline for a fix yet, but your report helps raise the priority.

Could you share the Request ID from the chat where the Task tool doesn’t show up? This will help the team diagnose it (please turn off Privacy Mode):

  • Open the affected chat
  • Click the three dots in the top right
  • Select “Copy Request ID”
  • Paste it here

About the errors on the docs pages: that’s a separate issue. Have you tried opening them in different browsers? Can you share a screenshot of the error from the browser console (F12 > Console)?

Let me know once you’ve collected this info.

1 Like

Thanks Dean!

Request ID: 4804f70d-373d-4dc5-9595-0501bb8f43f1

Docs pages: All working now - the error I saw earlier on
docs.cursor.com/en/agent/tools was temporary (it now redirects to
cursor.com/docs).

Issue details:

  • Usage-based plan (subagents should be enabled by default per docs)
  • Custom agents correctly placed in .cursor/agents/ with valid YAML frontmatter
  • The <subagent_delegation_context> IS being injected into the system prompt
  • But the Task tool is NOT available in agent’s toolset
  • Model: Claude Opus 4.5

Agent’s exact response:

The agent confirmed it received the delegation context but Task tool is missing:

“According to the context, I should use the Task tool with the subagent_type parameter.
However, looking at my available tools, I don’t see a Task tool in my list…”

It then listed all 19 available tools - Task is not among them:
Shell, Glob, Grep, LS, Read, Delete, StrReplace, Write, EditNotebook, TodoWrite,
ReadLints, SemanticSearch, WebSearch, WebFetch, AskQuestion, CallMcpTool,
ListMcpResources, FetchMcpResource, SwitchMode

The docs say “Agent includes all custom subagents in its available tools” - but the
Task tool binding is missing entirely.

Related: Task tool cannot find custom agents (filesystem or programmatic) · Issue #9865 · anthropics/claude-code · GitHub

Thanks for the detailed report and the Request ID, it really helps.

This is a known issue the team is looking into. We’ve already seen similar reports in this related thread: `Task` tool not found. It’s the same situation on Nightly and Early Access.

The problem is that even when subagent_delegation_context is injected into the prompt, the Task tool itself isn’t getting bound to the agent. The team is aware.

I’ll pass the Request ID to the team, it should add more context to the investigation.

Re docs, it’s good that you’ve already found them. That redirect from docs.cursor.com/en/agent/tools to cursor.com/docs is expected behavior.

I’ll post updates in this thread if there’s any news.

1 Like

Confirmed, I’m facing the exact issue about Subagent cannot be invoked due to no Task tool available.

Request ID: bd009e75-8bd5-4388-aeec-2823e98e6e03

same f06a74ee-375a-4f0f-bc2a-6e0cd539853e

Same here: 9b20b69a-6bfa-4738-a598-9b93567924f9
Unfortunately can’t turn off Privacy Mode

@deanrie Just updated to 2.4.22 (Early Access, Stable) - issue persists.

Version: 2.4.22 | Date: 2026-01-26 | Track: Early Access

This should be urgent priority.

Subagents are the #1 headline feature of the 2.4 release (Jan 22, 2026):

The changelog is literally titled “Subagents, Skills, and Image Generation”
and prominently advertises custom subagents:

“Optionally, you can define custom subagents. Learn more in our docs.”

Users updating to 2.4 expecting to use this flagship feature are finding it
completely broken. The Task tool isn’t being bound, making custom subagents
unusable.

This is the main selling point of the release not working.

Thanks for the info.

The team is aware. Unfortunately, we don’t know the fix timeline yet, but your report and similar ones help us prioritize it.

Right now the only workaround is rolling back to 2.4.21 (if you have access to it). In 2.4.21 the Task tool worked, and in 2.4.22 it’s broken again. Other users here are confirming the same issue: Sub-agent task broken in 2.4.22

I’ll update the thread if there’s any news.

Why 2.5.0-pre.31.patch.0 stiil cannot use Task?