Skip to content

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

Open
bryancostanich wants to merge 1 commit intoobra:mainfrom
bryancostanich:feature/context-provider-convention
Open

feat: context provider convention for sub-agent protocols#1129
bryancostanich wants to merge 1 commit intoobra: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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

1 participant