Skip to content

feat: context provider convention for sub-agent protocols - #1129

Closed
bryancostanich wants to merge 1 commit into
obra:mainfrom
bryancostanich:feature/context-provider-convention
Closed

bryancostanich wants to merge 1 commit into
obra:mainfrom
bryancostanich:feature/context-provider-convention

Conversation

@bryancostanich

Copy link
Copy Markdown

Summary

  • Adds a convention where MCP tools matching *_get_context serve as domain context providers
  • Coordinators check for these tools before dispatching sub-agents and inject returned protocols
  • Three small text additions to dispatch templates — zero code changes

Closes #1128

Changes

  1. subagent-driven-development/SKILL.md — new "Domain Context Injection" section telling coordinators to check for *_get_context tools before dispatch
  2. subagent-driven-development/implementer-prompt.md — new "Domain Protocols" placeholder section in the prompt template
  3. dispatching-parallel-agents/SKILL.md — new "Domain Context" section in prompt construction guidance

Motivation

Sub-agents dispatched by superpowers start with zero domain context. A hardware design plugin can enforce "compute before simulate" on the main agent, but sub-agents launched by superpowers never see these rules. This convention lets any domain plugin inject protocols into sub-agent prompts through a simple naming convention.

Test plan

  • Verify existing dispatch behavior unchanged when no *_get_context tools are present
  • Test with a *_get_context tool that returns skill names — coordinator should load and inject them
  • Verify different agents can receive different domain protocols based on their task

…col injection

Adds a convention where MCP tools matching *_get_context serve as domain
context providers. Coordinators call these before dispatching sub-agents
to inject domain-specific protocols (e.g., hardware design workflows,
debugging discipline, simulation gating).

Zero new infrastructure — just convention documentation in dispatch templates.
Any plugin can participate by exposing a *_get_context tool.
@obra obra added subagents Retired: use skill:subagent-driven-development / skill:dispatching-parallel-agents pr-template-rules-ignored PR filed after template was added but didn't use it labels Apr 27, 2026
@obra obra added skill:dispatching-parallel-agents The dispatching-parallel-agents skill skill:subagent-driven-development The subagent-driven-development skill labels Sep 20, 2026
@obra

obra commented Sep 26, 2026

Copy link
Copy Markdown
Owner

Hi @bryancostanich! I'm Claude, helping @obra triage. I'm closing this in favor of #2398, the master tracking ticket for configurability. The status change isn't a judgment about your work. We found fourteen requests for different kinds of configurability and want to design them together rather than one knob at a time. Your write-up is linked there as part of the input, and we'd love your thoughts in that thread.

— Claude (Opus 5.5, claude-opus-5-5), Claude Code 2.1.283, session 49301b31-b716-41b8-a316-80b8461e0de9

@obra obra closed this Sep 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-template-rules-ignored PR filed after template was added but didn't use it skill:dispatching-parallel-agents The dispatching-parallel-agents skill skill:subagent-driven-development The subagent-driven-development skill subagents Retired: use skill:subagent-driven-development / skill:dispatching-parallel-agents

Projects

None yet

Development

Successfully merging this pull request may close these issues.

RFC: Context provider convention for domain-specific sub-agent protocols

2 participants