Repository navigation
docs(skills): Hermes does serve companion files, by convention not by argument - #37
Merged
Merged
Conversation
… argument The kit told plugin authors that plugin-skill companion files were "forward-compatible groundwork, not yet an effective capability" and that "no released Hermes Agent host reads or serves" them. Both are wrong, and have been for as long as the pinned revision. Hermes serves them today. _plugin_skill_linked_files scans the SKILL.md directory for four fixed categories -- references, templates, assets, scripts -- and returns everything under them as linked_files beside the skill body, at any depth and any file type. It derives the location from SKILL.md itself, which is why register_skill has no references_dir parameter: it does not need one. So the accurate statement is narrower than either the old claim or its opposite. The capability works; the argument is inert. Placement and naming are what make a directory visible, not the declaration -- and the kit accepting any directory name is a trap, because a name outside those four is never surfaced no matter what is declared. 7c65594 already corrected the runtime log this same misreading produced, but changed no prose, so the README, the plugin_skill and plugin_reference_tool docstrings, and the authoring skill reference all kept teaching the retracted claim. That is the whole of this change. plugin_reference_tool is reframed as complementing linked_files -- giving the model an explicit read tool rather than substituting for absent host support. Pinned to the host by a contract test rather than to my reading of it: it builds a real skill tree, calls the host's own routine, and asserts the category set, the exclusion of a non-category directory, and that nested non-markdown files come back. A claim about the host belongs in the contract lane, since silent staleness is exactly what happened here. Mutation-tested: widening the expected category set fails it. Pinned lane 17 tests OK against f80f453; full suite 266 OK.
offendingcommit
marked this pull request as ready for review
September 21, 2026 21:57
offendingcommit
added a commit
that referenced
this pull request
Sep 21, 2026
The contract test added in #37 imported _plugin_skill_linked_files from tools.skills_tool, which is where the pinned revision keeps it. Upstream has since moved it to tools.skills_tool_plugin, so the test raised ImportError on the upstream lane and the drift classifier correctly reported one new drift -- on a green merge. The hardcoded path was the defect. The kit already encodes that this routine has two homes: _HOST_COMPANION_FILE_PROBES lists both, skills_tool_plugin first. The test now resolves through that same constant rather than repeating one spelling of it, so a future move that the kit's probe already tolerates cannot fail the suite. Worth being precise about what did and did not drift. The category set is what the docs promise, and it is identical on both revisions: ("references", "templates", "assets", "scripts"), inline on the pin and behind a _SUPPORT_DIRS constant upstream. Only the module moved. So #37's documentation is accurate on upstream main too, and adding a drift-baseline entry would have recorded a host break that did not happen. Verified on both lanes: pinned 17 tests OK against f80f453; upstream 17 ran with one failure, the #99220 media contract already in the known-drift baseline. Full suite 266 OK.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The wrong claim
The kit told plugin authors that plugin-skill companion files were "forward-compatible groundwork, not yet an effective capability" and that "no released Hermes Agent host reads or serves" them. Both are wrong, and have been for as long as the pinned revision.
What's actually true
Hermes serves them today.
tools/skills_tool.py::_plugin_skill_linked_filesscans theSKILL.mddirectory for four fixed categories —references,templates,assets,scripts— and returns everything under them aslinked_filesbeside the skill body, at any depth and any file type. It derives the location fromSKILL.mditself, which is whyregister_skillhas noreferences_dirparameter: it doesn't need one.So the accurate statement is narrower than either the old claim or its opposite:
references_diras a host argumentSKILL.md+ one of the four namesreferences_diris still worth declaring: it drives kit-side validation andplugin_reference_tool. It just isn't what makes the files visible.Why it went stale
7c65594corrected the runtime log this same misreading produced, but changed no prose. The README, both docstrings (plugin_skill,plugin_reference_tool), and the authoring skill reference all kept teaching the retracted claim. Fixing that is the whole of this change — no behavior change.plugin_reference_toolis also reframed: it complementslinked_filesby giving the model an explicit read tool, rather than substituting for absent host support.Pinned to the host, not to my reading
A claim about the host belongs in the contract lane — silent staleness is precisely what happened here. The new contract test builds a real skill tree, calls the host's own routine, and asserts the category set, the exclusion of a non-category directory, and that nested non-markdown files come back.
f80f453