anthropics / anthropics/claude-agent-sdk-python

Give subagents access to more tools than the main agent

Aperta
#255 1 commento 6 reazioni 0 assegnatari Vedi su GitHub
enhancement
Lingua principale
Python
Stelle
8.1k
Fork
1.3k
Merge medio
2g 31m
PR unite (30g)
1

Descrizione

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.

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.