claude-code - 💡(How to fix) Fix Claude provides incorrect guidance about its own /agents feature, causing ~2M token waste

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

When asked about migrating custom agent definitions to the Claude Code subagent system, Claude confidently stated that placing .md files with YAML frontmatter in ~/.claude/agents/ would make them appear in the /agents Library tab. It then:

  1. Created ~/.claude/agents/ and copied 22 agent .md files there (~170K tokens)
  2. When only 2 appeared, assumed file size was the cause (no verification)
  3. Launched a 22-agent parallel workflow to condense all files (~1M tokens)
  4. 4 agents failed, retried them in background and foreground (~450K tokens)
  5. After all files were condensed and verified, agents still did not appear
  6. Research into the actual discovery mechanism was inconclusive

Total wasted tokens: ~1.7-2M across the session.

Root Cause

Claude does not accurately know how its own /agents feature discovers and loads custom agent definitions in the desktop app. Rather than acknowledging uncertainty and testing with a single file first, it proceeded confidently through multiple expensive operations.

RAW_BUFFERClick to expand / collapse

Environment

  • Claude Code Desktop v2.1.156
  • Windows (entrypoint: claude-desktop)
  • Max plan subscriber
  • Session ID: 71b8d81b-1505-46d8-afe3-d84b74baad64
  • Date: 2026-05-29

Description

When asked about migrating custom agent definitions to the Claude Code subagent system, Claude confidently stated that placing .md files with YAML frontmatter in ~/.claude/agents/ would make them appear in the /agents Library tab. It then:

  1. Created ~/.claude/agents/ and copied 22 agent .md files there (~170K tokens)
  2. When only 2 appeared, assumed file size was the cause (no verification)
  3. Launched a 22-agent parallel workflow to condense all files (~1M tokens)
  4. 4 agents failed, retried them in background and foreground (~450K tokens)
  5. After all files were condensed and verified, agents still did not appear
  6. Research into the actual discovery mechanism was inconclusive

Total wasted tokens: ~1.7-2M across the session.

Root Cause

Claude does not accurately know how its own /agents feature discovers and loads custom agent definitions in the desktop app. Rather than acknowledging uncertainty and testing with a single file first, it proceeded confidently through multiple expensive operations.

Expected Behavior

  1. Claude should accurately describe its own product features, or explicitly state uncertainty
  2. Expensive operations (multi-agent workflows) should not be launched based on unverified assumptions about product behavior
  3. Max plan users should have a mechanism to flag sessions like this for token credit consideration

Reproduction

  1. Open Claude Code Desktop
  2. Ask Claude to help migrate agent definitions to /agents
  3. Observe that Claude will confidently describe a file-based mechanism and execute on it without verifying it works

Impact

~2M tokens of Max plan allocation consumed with zero functional result. Anthropic has full telemetry for session 71b8d81b-1505-46d8-afe3-d84b74baad64 to verify.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix Claude provides incorrect guidance about its own /agents feature, causing ~2M token waste