Skip to content

fix(managed-agents): download skills for all agents in a multiagent roster - #1873

Open
SparshM8 wants to merge 2 commits into
anthropics:mainfrom
SparshM8:fix/multiagent-skills-download
Open

fix(managed-agents): download skills for all agents in a multiagent roster#1873
SparshM8 wants to merge 2 commits into
anthropics:mainfrom
SparshM8:fix/multiagent-skills-download

Conversation

@SparshM8

Copy link
Copy Markdown

Summary: download_session_skills (src/anthropic/lib/tools/_skills.py) only iterates session.agent.skills. In a multiagent session, the roster members' skills live at session.agent.multiagent.agents[*].skills and were previously skipped.

This fix ensures that:

  1. Skills from all agents in the multiagent roster are collected.
  2. Skills are deduplicated by skill_id to avoid redundant downloads.
  3. Subagent threads in self-hosted environments have access to their required skills.

Verified with a reproduction script mocking the multiagent session structure and confirming that roster skills are now correctly identified for download.

@SparshM8
SparshM8 requested a review from a team as a code owner August 22, 2026 12:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant