anthropics / anthropics/claude-agent-sdk-python

Give subagents access to more tools than the main agent

Open
#255 1 comment 6 reactions 0 assignees View on GitHub
enhancement
Dominant language
Python
Stars
8.1k
Forks
1.3k
Avg merge
2d 31m
Merged PRs (30d)
1

Description

When using the SDK, I want to specialize a given subagent by giving it access to tools that I don't want to give the main agent.

Example:
I don't want the main agent to get its context dirty with grepping code and searching logs. I have subagents for that, but since (for example) the main agent have access to the code (on disk) and the logs (via MCP), it sometimes tries to investigate directly.

What I want:
main agent tools: [X, Y]
subagent tools: [X, Z]

However, the main agent doesn't have access to Z -- so te subagent won't get it either.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.