Skip to content

fix(skills): exclude .archive from skill index walk (salvage #17639) - #17931

Merged
teknium1 merged 2 commits into
mainfrom
hermes/hermes-e2c9c7c8
Apr 30, 2026
Merged

fix(skills): exclude .archive from skill index walk (salvage #17639)#17931
teknium1 merged 2 commits into
mainfrom
hermes/hermes-e2c9c7c8

Conversation

@teknium1

Copy link
Copy Markdown
Contributor

Salvage of #17639 by @leoneparise.

What

EXCLUDED_SKILL_DIRS (and three inline-duplicate tuples) didn't include .archive, so curator-archived skills were still indexed into the <available_skills> system prompt and could still resolve as slash commands.

Changes

  • agent/skill_utils.py — add .archive to EXCLUDED_SKILL_DIRS
  • agent/skill_commands.py — add .archive to inline exclusion tuple
  • gateway/run.py — add .archive to inline exclusion tuple
  • tools/skills_tool.py — add .archive to _EXCLUDED_SKILL_DIRS (sibling site the original PR didn't touch)
  • scripts/release.py — register leoneparise in AUTHOR_MAP

Validation

scripts/run_tests.sh tests/agent/test_curator.py tests/tools/test_skill_usage.py tests/tools/test_skills_tool.py tests/agent/test_prompt_builder.py → 269 passed.

Closes #17639.

leoneparise and others added 2 commits April 30, 2026 04:58
Archived skills (moved to ~/.hermes/skills/.archive/ by the curator)
were still surfaced in the <available_skills> system prompt under a
fake '.archive' category, causing the agent to load and try to use
deprecated skills. The os.walk in iter_skill_index_files() only
excluded .git/.github/.hub.

Add '.archive' to EXCLUDED_SKILL_DIRS, and to the two other places
that hardcode the same exclusion tuple (gateway/run.py and
agent/skill_commands.py).
Widen #17639 to the fourth sibling site (tools/skills_tool.py _EXCLUDED_SKILL_DIRS)
and register leoneparise in scripts/release.py AUTHOR_MAP so CI release script
resolves the contributor.
@teknium1
teknium1 merged commit a845177 into main Apr 30, 2026
11 checks passed
@teknium1
teknium1 deleted the hermes/hermes-e2c9c7c8 branch April 30, 2026 11:59
@alt-glitch alt-glitch added type/bug Something isn't working P2 Medium — degraded but workaround exists comp/agent Core agent runtime: loop, agent_init, prompt builder, context-compression, responses endpoint tool/skills Skills system (list, view, manage) labels Apr 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp/agent Core agent runtime: loop, agent_init, prompt builder, context-compression, responses endpoint P2 Medium — degraded but workaround exists tool/skills Skills system (list, view, manage) type/bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants