編集部セレクト
自分用のエージェントが増えて、どの定義が呼ばれているのか分からなくなっていませんか。
Claude Code の公式ドキュメントに、同じ名前があるときの優先順が示されています。
管理設定、起動時の指定、プロジェクト、個人、プラグインの順で、先にあるものだけが使われます。
説明文の合計が15,000トークンを超えると、起動時に警告が出ます。
今日は ~/.claude/agents/ を開いて、使っていない定義を消してください。
出典の原文(引用)
When multiple subagents share the same name, Claude Code uses the one from the higher-priority location... Managed settings, --agents CLI flag, .claude/agents/, ~/.claude/agents/, Plugin's agents/ directory... When the combined descriptions of your subagents, except the built-in ones, exceed 15,000 tokens, Claude Code shows a warning at startup— code.claude.com
この話題のきっかけ
https://news.ycombinator.com/item?id=50326764
題材を見つけた場所です。記事の根拠は上の出典です。
