curator.py 958 B

12345678910111213141516171819202122
  1. """``hermes curator`` subcommand parser."""
  2. from __future__ import annotations
  3. import logging
  4. def build_curator_parser(subparsers) -> None:
  5. """Attach the ``curator`` subcommand to ``subparsers``."""
  6. curator_parser = subparsers.add_parser(
  7. "curator", help="Background skill maintenance (curator) — status, run, pause, pin",
  8. description="The curator is an auxiliary-model background task that "
  9. "periodically reviews agent-created skills, prunes stale ones, "
  10. "consolidates overlaps, and archives obsolete skills. "
  11. "Bundled and hub-installed skills are never touched. "
  12. "Archives are recoverable; auto-deletion never happens.")
  13. try:
  14. from hermes_cli.curator import register_cli as _register_curator_cli
  15. _register_curator_cli(curator_parser)
  16. except Exception as _exc:
  17. logging.getLogger("hermes_cli.main").debug("curator CLI wiring failed: %s", _exc)