Context inheritance for delegated agents
An Amplifier agent can delegate work to a specialized child agent through the delegate tool. But by default that child wakes up blank-slate — it knows nothing about the conversation that spawned it.
So the real question isn't can you delegate — it's how the child learns what just happened.
Merged into microsoft/amplifier-foundation on 2026-01-30 (founding commit b73813b, by Brian Krabach). Its README recommends it over tool-task for new development, for its enhanced context control and bug fixes.
Delegation is real and maintained — which makes the blank-slate handoff a real problem too.
With context_depth='none' the tool returns no parent context — a clean-slate child. To brief it, you'd hand-copy the conversation into the instruction string yourself.
Copy-paste is fragile and manual. Inheritance exists to kill it.
The first orthogonal parameter controls the amount of inherited context — from nothing, to a recent window, to the whole history.
That's the amount. Next: which kind of content travels.
The second orthogonal parameter picks the kind of content. Depth × scope together define exactly the slice to pass, and the two are independent.
Two knobs, though — do you have to think about them every time? No.
Out of the box: recent, 5 turns, conversation. The two knobs vanish behind defaults — a chore becomes a non-decision.
And when you take the default, here's what the child actually wakes up to.
The selected slice is prepended before [YOUR TASK] right in the child's instruction. The manual copy-paste is fully replaced by automatic injection.
Zero copy-paste — the tool carries the context for you.
Pick the slice by intent — how much (depth) and which content (scope) — and let the tool carry the context. The reusable idea outlasts this one tool: describe what the child needs, don't hand-assemble it.
Source: microsoft/amplifier-foundation, modules/tool-delegate (origin verified: git remote -v → origin git@github.com:microsoft/amplifier-foundation.git)
Feature status: Shipped and maintained (founding commit b73813b / PR #44 merged 2026-01-30; continued fixes through 5354fbb, 2026-04-02)
Research performed:
sed -n '575,606p' modules/tool-delegate/amplifier_module_tool_delegate/__init__.pysed -n '275,279p' and sed -n '284,288p' of __init__.pysed -n '714,717p' __init__.pysed -n '607,647p' and sed -n '906,922p' __init__.pysed -n '115,165p' __init__.pygh pr view 44 --repo microsoft/amplifier-foundation; git log --oneline --reverse -- modules/tool-delegatewc -l __init__.py (1,286); ls modules/tool-delegate/tests/ (4 files); git log --oneline -- modules/tool-delegate | wc -l (31)Gaps: Suggested source microsoft/amplifier-module-context-simple was checked and rejected — a source grep for context_depth/context_scope/delegate returned zero matches. The 2000-char truncation is per-message inside the context builder, not the whole block.
Primary contributor: Brian Krabach (bkrabach) — author of founding commit b73813b / PR #44 and composable-agents PR #43.