Repository navigation
Conversation
Two fixes for the Hermes platform integration: 1. `graphify hermes install` (and other per-platform shortcuts like `graphify codex install`, `graphify claw install`, etc.) only wrote the AGENTS.md section but skipped `_copy_skill_file()`, leaving no SKILL.md or references/ sidecar installed. The generic `graphify install --platform hermes` worked correctly because it called `install()` which includes the skill copy. Fix: add `_copy_skill_file(cmd)` before `_agents_install()` and `_remove_skill_file(cmd)` before `_agents_uninstall()` in the per-platform CLI handler. 2. The skill-claw.md (used by Hermes, claw, and other platforms) falls back to `python3` when uv/pipx/shebang detection fails. On Windows, `python3` does not exist — the executable is `python`. Fix: replace bare `python3` fallbacks with a two-probe chain that tries `python3` first (Unix), then `python` (Windows), using `command -v` to check availability before assignment. Both fixes are backwards-compatible: Unix users see no change (python3 probe succeeds first), and the skill install now works identically to the generic `graphify install --platform` path.
safishamsi
left a comment
There was a problem hiding this comment.
Thanks for catching this — the diagnosis is right: the AGENTS.md-family user-scope dispatch (hermes/claw/droid/trae/…) never called _copy_skill_file, so SKILL.md was never written (#1403). Two blockers before merge:
- Edits a generated file → fails CI.
graphify/skill-claw.mdis generated bytools/skillgenfrom fragments, and theskillgen-checkCI job byte-diffs the render against the committed files +expected/, so a hand-edit fails. The python3 fallback needs to go in the fragment (tools/skillgen/fragments/shell/posix.md, which also feedscore/aider.md/core/devin.md), thenpython -m tools.skillgento regenerate all skill files and--blesstheexpected/snapshots. As-is the fallback only landed in 1 of the 13 generated skills. - No test. This is exactly what
tests/test_install*.pycovers — please add a regression test assertingSKILL.mdexists after a user-scopehermes install(ideally claw/droid/trae too, since they share the dispatch).
The __main__.py fix itself (adding _copy_skill_file/_remove_skill_file to the dispatch, matching the _amp_install pattern) is correct — it just needs to go through skillgen + a test.
|
Still reproduces on the current release, ~3 months and many releases after this was first filed. Version: $ cd /tmp && graphify hermes install
graphify section written to /tmp/AGENTS.md
Hermes will now check the knowledge graph before answering
codebase questions and rebuild it after code changes.
$ ls ~/.hermes/skills/graphify
ls: cannot access '/home/<user>/.hermes/skills/graphify': No such file or directoryExit code is Root cause is unchanged at 0.9.64The non-project branch ( elif cmd in ("aider", "codex", "opencode", "claw", "droid", "trae", "trae-cn", "hermes"):
subcmd = sys.argv[2] if len(sys.argv) > 2 else ""
if subcmd == "install":
if "--project" in sys.argv[3:]:
_project_install(cmd, Path("."))
else:
_agents_install(Path("."), cmd) # <-- _copy_skill_file never calledso on this path the following stay unreachable for
The uninstall side is symmetric — Workaround verified on 0.9.64The copy machinery itself is fine; only the dispatch branch is broken. Calling it directly installs the intended bundle (SKILL.md from ~/.local/share/uv/tools/graphifyy/bin/python3 -c \
"from graphify.install import _copy_skill_file; _copy_skill_file('hermes')"
# references -> ~/.hermes/skills/graphify/references
# skill installed -> ~/.hermes/skills/graphify/SKILL.mdConfirmed loadable by Hermes afterwards ( Also confirmed on 0.9.64, agreeing with the note above: Scope note: this comment is only about the missing skill. The cwd- |
Two fixes for Hermes (and other per-platform shortcut) installations
Bug 1:
graphify hermes installskips SKILL.md installationgraphify hermes install(andgraphify codex install,graphify claw install, etc.) only calls_agents_install()which writes the AGENTS.md section, but never calls_copy_skill_file(). This leaves the user with no SKILL.md and noreferences/sidecar — the skill is invisible to the host agent.The generic
graphify install --platform hermesworks correctly because it goes throughinstall()→_copy_skill_file(). The per-platform shortcuts bypass this.Fix: Add
_copy_skill_file(cmd)before_agents_install()and_remove_skill_file(cmd)before_agents_uninstall()in the per-platform CLI handler (__main__.pyL2508-2514).This affects all platforms in the group: aider, codex, opencode, claw, droid, trae, trae-cn, hermes.
Bug 2:
python3fallback fails on WindowsThe skill-claw.md (used by Hermes, claw, aider, and others) falls back to
python3when uv/pipx/shebang detection fails. On Windows,python3does not exist — the executable ispython.Fix: Replace bare
python3fallbacks with a two-probe chain:Applied in two locations in skill-claw.md:
.graphify_pythonis missingBackwards compatibility
Both fixes are fully backwards-compatible:
graphify install --platformTested on
graphify hermes installnow installs SKILL.md + references/ + AGENTS.mdcommand -vchecks