[BUG] Task Tool fo Agents doesnt show .claude/agents in Schema, unlike Skill Tool

Resolved 💬 3 comments Opened Jan 16, 2026 by riptscripts Closed Jan 20, 2026

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

When I ask Claude Code to read out the full tool schema for the Skill Tool, it does this (i cut off my actual skills)
<img width="911" height="447" alt="Image" src="https://github.com/user-attachments/assets/02234a8a-8802-45c0-b1b3-17e85964237e" />

But doing the same for the Task tool does this:

<img width="1166" height="941" alt="Image" src="https://github.com/user-attachments/assets/649e7590-69c7-4331-8dcf-f82363230a11" />

Funny enough this actually makes a lot of sense as to why custom subagents are never invoked proactively by Claude.

What Should Happen?

Task Tool shouldn't ignore .claude/agents in its schema

Error Messages/Logs

Steps to Reproduce

  1. Add a custom subagent to .claude/agents
  2. Add a custom skill to .claude/skills
  3. Open a Claude Code chat and ask it to list out the full tool schemas for Task tool and Skill tool
  4. >Task Tool will ignore custom subagents, but Skill

Claude Model

Opus

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

2.1.9

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Other

Additional Information

_No response_

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗