CtrlK
BlogDocsLog inGet started
Tessl Logo

jbaruch/sub-agent-delegation

Meta-skill: how to pass skills/context to Claude sub-agents that start with fresh context, with documented SDK gotchas.

94

1.50x
Quality

94%

Does it follow best practices?

Impact

96%

1.50x

Average score across 3 eval scenarios

SecuritybySnyk

Passed

No known issues

Overview
Quality
Evals
Security
Files

README.md

sub-agent-delegation

A Tessl meta-plugin for orchestrating Claude sub-agents correctly: what inherits, what does not, how to pass skills explicitly, and how to validate the handoff.

What this plugin provides

KindNamePurpose
Skilldelegate-to-sub-agentTwo delegation channels (Agent SDK and Task tool), inline examples, echo-validation protocol.
Rulesub-agent-delegation-rulesConcise in-context reminder card.
Scriptscripts/echo_skills.pySkills-echo preamble builder and validator.
Docdocs/SUB_AGENT_ISSUES.mdExtended list of documented sub-agent gotchas with GitHub issue links.

Why it exists

Claude sub-agents start with a fresh context. They inherit:

  • CLAUDE.md
  • Tool definitions (all, unless restricted)
  • MCP servers (all — no per-sub-agent scoping yet)

They do not inherit:

  • Parent conversation history
  • Parent system prompt
  • Accumulated state
  • Skills (unless listed explicitly)

That last one bites orchestrators who assume a sub-agent will see the same skills the parent can see. It won't. This plugin encodes the explicit-passing pattern and a validation handshake that fails loudly if the handoff is wrong.

Install

tessl install jbaruch/sub-agent-delegation

Or from this repo:

tessl install github:jbaruch/sub-agent-delegation

Usage (quick)

from scripts.echo_skills import build_echo_preamble, assert_echo_matches

expected = ["govee-h6056", "face-recognition-calibration"]
preamble = build_echo_preamble(expected)
prompt   = preamble + "\n\n" + actual_task_prompt

# launch sub-agent with `prompt` ...
assert_echo_matches(first_message_from_sub_agent, expected)

See skills/delegate-to-sub-agent/SKILL.md for the full playbook, rules/sub-agent-delegation-rules.md for the short version, and docs/SUB_AGENT_ISSUES.md for the extended gotcha list.

License

MIT — see LICENSE.

README.md

tile.json