Allow slash commands implemented in a hermes-agent plugin to be used …#1940
Allow slash commands implemented in a hermes-agent plugin to be used …#1940plerohellec wants to merge 1 commit into
Conversation
0ae3602 to
29d9192
Compare
SummaryRead the full diff against The plugin-command intent is right and matches what the agent exposes. Unfortunately the diff also removes a lot of recently-merged unrelated functionality, which I think is a base-mismatch artifact of the codegen rather than something you wanted to do. What the PR gets right
# api/commands.py:60-72 (PR HEAD)
from hermes_cli.plugins import get_plugin_commands
plugin_cmds = get_plugin_commands() or {}
existing_names = {c['name'] for c in out}
for cmd_name, cmd_info in plugin_cmds.items():
if cmd_name in existing_names or cmd_name in _NEVER_EXPOSE:
continue
out.append({
'name': cmd_name,
'description': str(cmd_info.get('description', 'Plugin command')),
'category': 'Plugin',
...
})That matches This kernel of the PR — Why I can't recommend merging as-isThe diff removes several already-merged features unrelated to plugin slash commands. I think the model that wrote this had an older snapshot of the codebase, so when you applied the diff on top of current master it deleted the newer code. Concretely:
The line-count bias confirms it: 207 insertions vs 661 deletions over 5 files. The authentic plugin-command kernel is roughly 64 + ~30 + ~40 = ~135 lines added across (The empty RecommendationRebase the branch onto current
That should land at ~150 net additions, 0 deletions, against Happy to look again once the diff is rebased. |
|
I really don't think it should be merged as is, it's a pure AI PR and I'm unable to say if it's any good. I only created the PR because somebody asked to see it in the issue. The issue #1935 is really the most important thing here, the PR is only here for illustration purposes of a working fix. |
|
Understood — appreciate the transparency that this is illustrative for #1935 rather than a merge candidate. That actually shifts what would be useful next. The diff against master is large — For #1935 specifically — the actual contract gap is much narrower than this diff suggests. The current
The narrow fix is a reasonable contributor PR if someone wants to take it. The wide rewrite is a maintainer-led refactor. If the broader rewrite shape here is something maintainers actively want, I'd defer to them — but in its current form I don't think it's reviewable as-is, and the inability to certify "this is correct" is a fair reason not to merge. |
…in hermes-webui.
These is the PR I got from GPT 5.4 for issue #1935. I'm not familiar with the code base so I can't really comment on it. All that I can say is that it fixes the problem in my environment.