Skip to content

The agent that grows with you

feat(curator)!: prune_builtins defaults to off

teknium11b8e4c513d6a
diff --git a/hermes_cli/config_defaults.py b/hermes_cli/config_defaults.py
index f99e23e5573..b50618ce1d4 100644
--- a/hermes_cli/config_defaults.py
+++ b/hermes_cli/config_defaults.py
@@ -1423,9 +1423,10 @@ DEFAULT_CONFIG = {
# aux-model cost. `hermes curator run --consolidate` overrides once.
"consolidate": False,
# Also prune bundled built-ins (a suppression list stops `hermes update` restoring them);
- # hub-installed skills are NEVER pruned. A built-in's clock starts when the curator first
- # sees it, so never a mass-prune on the first run. false = keep all.
- "prune_builtins": True,
+ # hub-installed skills are NEVER pruned. OFF by default: shipped skills vanishing from
+ # `skills_list` because nobody loaded them for 30 days surprised people (57 gone in one
+ # startup tick). true = built-ins age out like agent-created skills.
+ "prune_builtins": False,
# TTL purge of skills/.archive/: 0 = never; > 0 lets the explicit `hermes curator purge`
# delete older archived skills (never automatic; logged in the ledger).
"archive_ttl_days": 0,
diff --git a/tests/agent/test_curator.py b/tests/agent/test_curator.py
index 58a6c057663..cc9e7744e0e 100644
--- a/tests/agent/test_curator.py
+++ b/tests/agent/test_curator.py
@@ -79,6 +79,19 @@ def test_curator_defaults(curator_env):
assert c.get_stale_after_days() == 14
assert c.get_archive_after_days() == 30
+def test_bundled_skills_are_off_limits_unless_opted_in(curator_env, monkeypatch):
+ """Shipped skills vanishing after 30 idle days is opt-in: with no config the reader says off, and
+ the same reader flips with the key. Both loaders see the same answer (DEFAULT_CONFIG agrees)."""
+ import importlib
+ import tools.skill_usage as usage
+ from hermes_cli.config_defaults import DEFAULT_CONFIG
+ importlib.reload(usage) # the fixture pins _prune_builtins_enabled; reload restores the real reader
+ monkeypatch.setattr("hermes_cli.config.load_config", lambda: {"curator": {}})
+ assert usage._prune_builtins_enabled() is False
+ assert DEFAULT_CONFIG["curator"]["prune_builtins"] is False
+ monkeypatch.setattr("hermes_cli.config.load_config", lambda: {"curator": {"prune_builtins": True}})
+ assert usage._prune_builtins_enabled() is True
+
diff --git a/tests/tools/test_skill_usage.py b/tests/tools/test_skill_usage.py
index 4439a4d575f..fcae7c1533f 100644
--- a/tests/tools/test_skill_usage.py
+++ b/tests/tools/test_skill_usage.py
@@ -537,7 +537,7 @@ def test_adopt_refuses_skills_the_user_does_not_own(skills_home, monkeypatch, ki
"""Adoption writes a provenance claim, so it must refuse anything with an
external owner rather than stamping a lie onto the record.
- ``prune_builtins`` is forced ON here — the shipped default — because that
+ ``prune_builtins`` is forced ON here (opt-in; the shipped default is off) because that
is the configuration in which a bundled skill is otherwise curation-
eligible. With it off, ``mark_agent_created``'s own eligibility gate would
block the write and this test would pass without exercising adopt's guard
diff --git a/tools/skill_usage.py b/tools/skill_usage.py
index 4097107d149..5a9bcc2e7b0 100644
--- a/tools/skill_usage.py
+++ b/tools/skill_usage.py
@@ -181,14 +181,14 @@ def _read_hub_installed_names() -> Set[str]:
def _prune_builtins_enabled() -> bool:
- """``curator.prune_builtins`` (default True); lazy config import keeps this module importable during update/sync."""
+ """``curator.prune_builtins`` (default False); lazy config import keeps this module importable during update/sync."""
try:
from hermes_cli.config import load_config
cur = load_config().get("curator")
- return bool(cur.get("prune_builtins", True)) if isinstance(cur, dict) else True
+ return bool(cur.get("prune_builtins", False)) if isinstance(cur, dict) else False
except Exception as e: # pragma: no cover — best-effort config read
logger.debug("Failed to read curator.prune_builtins: %s", e)
- return True
+ return False
def read_suppressed_names() -> Set[str]:
diff --git a/website/docs/user-guide/features/curator.md b/website/docs/user-guide/features/curator.md
index 2509ea10c27..ad668cf2b8e 100644
--- a/website/docs/user-guide/features/curator.md
+++ b/website/docs/user-guide/features/curator.md
@@ -10,7 +10,7 @@ The curator is a background maintenance pass for **agent-created skills**. It tr
It exists so that skills created via the [self-improvement loop](./skills.md#agent-managed-skills-skill_manage-tool) don't pile up forever. Every time the agent solves a novel problem and saves a skill, that skill lands in `~/.hermes/skills/`. Without maintenance, you end up with dozens of narrow near-duplicates that pollute the catalog and waste tokens.
-By default (`prune_builtins: true`) the curator can archive **unused bundled built-in skills** (shipped with the repo) after `archive_after_days` of non-use, alongside the agent-created skills it primarily manages. Hub-installed skills (from [agentskills.io](https://agentskills.io)) are always off-limits. Set `curator.prune_builtins: false` to restore the old agent-created-only behavior, where bundled skills are never touched. The curator also **never auto-deletes** — the worst outcome is archival into `~/.hermes/skills/.archive/`, which is recoverable.
+By default the curator manages only agent-created skills. With `curator.prune_builtins: true` it can also archive **unused bundled built-in skills** (shipped with the repo) after `archive_after_days` of non-use; this is opt-in because shipped skills silently disappearing from `skills_list` is easy to mistake for a broken install. Hub-installed skills (from [agentskills.io](https://agentskills.io)) are always off-limits. The curator also **never auto-deletes** — the worst outcome is archival into `~/.hermes/skills/.archive/`, which is recoverable.
Tracks [issue #7816](https://github.com/NousResearch/hermes-agent/issues/7816).
@@ -58,7 +58,7 @@ curator:
stale_after_days: 14
archive_after_days: 30
consolidate: false # LLM umbrella-building pass — opt-in (prune-only by default)
- prune_builtins: true # archive unused bundled built-in skills too (hub skills always exempt)
+ prune_builtins: false # opt in to archiving unused bundled built-in skills too (hub skills always exempt)
```
To disable entirely, set `curator.enabled: false`. To keep the always-on pruning but opt into LLM consolidation, set `curator.consolidate: true`.
@@ -321,7 +321,7 @@ The flag is stored as `"pinned": true` on the skill's entry in `~/.hermes/skills
Skills named in any cron job's `skills:` list are protected the same way for **auto-transitions** (the curator never stales/archives them while the reference remains), even when the job is paused or disabled. Prefer an explicit pin when you also want `skill_manage delete` blocked.
-Only **agent-created** skills can be pinned — `hermes curator pin` refuses on bundled and hub-installed skills with an explanatory message if you try. Hub-installed skills are never subject to curator mutation. Bundled built-in skills are only touched when `curator.prune_builtins: true` (the default), and even then only archived after `archive_after_days` of non-use — never patched, consolidated, or deleted. Set `curator.prune_builtins: false` to exempt bundled skills entirely.
+Only **agent-created** skills can be pinned — `hermes curator pin` refuses on bundled and hub-installed skills with an explanatory message if you try. Hub-installed skills are never subject to curator mutation. Bundled built-in skills are only touched when you opt in with `curator.prune_builtins: true`, and even then only archived after `archive_after_days` of non-use — never patched, consolidated, or deleted.
A small set of **protected built-ins** can be hardcoded as never-archivable and never-consolidatable, regardless of `curator.prune_builtins`, pin state, or LLM judgment. These back load-bearing UX, so silently archiving one would turn its slash command into an "Unknown command" error with no signal to you. (The set is currently empty — `plan`, its original member, graduated to a built-in `/plan` command with no skill on disk.) Protected built-ins are filtered out of the curator's candidate list entirely, so the consolidation pass never sees them.