| Age | Commit message (Collapse) | Author |
|
pre_llm_call returned the using-superpowers bootstrap whenever
is_first_turn was true. Hermes computes is_first_turn from an empty
conversation history, and a delegate_task child always starts empty, so
every child's first turn got the same 5.7k-char controller bootstrap as
the parent and had to rely on <SUBAGENT-STOP> to ignore it. Live Hermes
delegations on #2536 show children opening with skill_view / read_file on
Superpowers skills instead of their assigned work.
Hermes builds delegate_task children with platform="subagent"
(tools/delegate_tool.py) and forwards that as the hook's platform
argument, so gate injection on it. parent_session_id is not a safe
signal: Hermes also sets it on the continuation session it creates on
context compression.
Verified against a real Hermes install (hermes-agent 484de065) by running
its plugin discovery and agent.turn_context._collect_pre_llm_call_context
for a parent and a subagent first turn: 5757/5757 chars before, 5757/0
after.
Co-authored-by: Twot <twotnguyen@users.noreply.github.com>
Claude-Session: https://claude.ai/code/session_01SHANcr4A71nzuU9et4Fnba
|
|
Hermes lists plugin skills (skills_list) with the description given to
register_skill, which defaults to "". The plugin registered only a
name and path, so all fourteen superpowers skills appeared with blank
descriptions and the model had nothing to choose on. Read each
SKILL.md's description and pass it through.
From #2284 by @pepijn-blom.
Co-authored-by: pepijn-blom <322216308+pepijn-blom@users.noreply.github.com>
|
|
the README section
The 20-test suite still exercised the dead on_session_start/inject_message
mechanism (17 failures against the rewritten plugin). Rewritten for the
real contract: pre_llm_call registration + first-turn-only context return,
register_skill receiving pathlib.Path (the conftest mock now raises on str,
mirroring hermes' AttributeError that silently disables a plugin), both
install layouts resolving skills, loud failure when skills are missing,
tool mapping sourced verbatim from hermes-tools.md, and a bootstrap-size
guard against hermes' 10k-char context spill threshold. 19 tests, passing.
Install docs collapse into the README section per maintainer direction:
docs/README.hermes.md and .hermes-plugin/INSTALL.md are gone; the README
carries the two-line install plus the compaction caveat. plugin.yaml
version aligned to 6.1.1.
|
|
Rebase of PR #1922 onto current dev: the ~14 files of v6.1.0-era
codex/release drift are dropped, the porting-guide edits (stale against
the post-prune rewrite, no Hermes content) are dropped, and the Hermes
surface is kept intact: .hermes-plugin/ (on_session_start bootstrap
injection), tests/hermes/ (20 tests, passing), docs/README.hermes.md,
references/hermes-tools.md, the Platform Adaptation row, README section,
and Python ignores.
Known open items from review, unchanged by this rebase: the injection
mechanism uses ctx.inject_message from on_session_start, which the
official plugin guide does not document (pre_llm_call returning
{"context": ...} is the sanctioned path), skills are not registered via
ctx.register_skill, and the acceptance transcript predates the fix.
Co-authored-by: kumarabd <kumarabd@users.noreply.github.com>
|