diff options
Diffstat (limited to '.hermes-plugin')
| -rw-r--r-- | .hermes-plugin/__init__.py | 6 | ||||
| -rw-r--r-- | .hermes-plugin/plugin.yaml | 2 |
2 files changed, 5 insertions, 3 deletions
diff --git a/.hermes-plugin/__init__.py b/.hermes-plugin/__init__.py index 7d4e1f5..3c5a207 100644 --- a/.hermes-plugin/__init__.py +++ b/.hermes-plugin/__init__.py @@ -108,7 +108,9 @@ def register(ctx): # pre_llm_call returning {"context": ...} is the documented injection path # (on_session_start return values are ignored, and ctx.inject_message # refuses from that hook — verified empirically 2026-07-23). The context is - # appended to the first turn's user message. + # appended to the first turn's user message. delegate_task children run + # with platform="subagent" and an empty history, so every child's first + # turn would otherwise get the controller bootstrap too. def pre_llm_call( session_id=None, user_message=None, @@ -118,7 +120,7 @@ def register(ctx): platform=None, **kwargs, ): - if is_first_turn: + if is_first_turn and platform != "subagent": return {"context": bootstrap} return None diff --git a/.hermes-plugin/plugin.yaml b/.hermes-plugin/plugin.yaml index cb8ae9a..1439624 100644 --- a/.hermes-plugin/plugin.yaml +++ b/.hermes-plugin/plugin.yaml @@ -1,5 +1,5 @@ name: superpowers -version: 7.0.1 +version: 7.0.2 description: Superpowers skills and workflow bootstrap for Hermes Agent author: obra provides_hooks: |
