Tips // Claude in practice

Tips for working better with Claude

One short tip at a time, with an example you can copy. Move through them at random or search for what you need.

OtherIntermediateClaude Agent SDK

A subagent does not inherit your context: pass it in the prompt

What the coordinator knows does not reach the subagent on its own; include the document, prior findings and output format in the instruction.

Subagents work with isolated context: they do not see the coordinator's history or share memory between calls. The coordinator launches them with the Task tool (in recent versions it may appear as Agent) and must have it in allowedTools. For several independent tasks, issue several calls in the same response and they run in parallel.

Example
Bad:  Task: "Analyze the document"

Good: Task: "Analyze the following document.
Document: <full text>
Results from the earlier search: <results>
Output format: <JSON schema>"
#subagents#multi-agent#context