Files
hermes-agent/hermes_cli/subcommands/memory.py
Teknium 05eecbcd97 chore(memory): remove the bundled openviking provider
OpenViking now ships from Volcengine's own repo through the plugin catalog
(plugin-catalog/openviking.yaml, pinned in #131267). Delete the in-tree copy
and its tests; memory_provider_migration already lists openviking in
_LEFT_CORE, so homes configured for it get the catalog plugin installed on
hermes update / first agent start.

The catalog pin starts openviking-server with the full Hermes environment
(the bundled copy filtered it). The docs now say so and point at
volcengine/OpenViking#5553; start openviking-server yourself to avoid it.
2026-10-06 23:13:01 -07:00

35 lines
1.7 KiB
Python

"""``hermes memory`` subcommand parser."""
from __future__ import annotations
from typing import Callable
from hermes_cli.subcommands._shared import add_yes_flag
def build_memory_parser(subparsers, *, cmd_memory: Callable) -> None:
"""Attach the ``memory`` subcommand to ``subparsers``."""
memory_parser = subparsers.add_parser(
"memory", help="Configure external memory provider",
description="Set up and manage external memory provider plugins.\n\n"
"Bundled providers: holographic, retaindb, byterover.\n"
"Catalog providers (e.g. honcho, hindsight, supermemory,\n"
"mem0, openviking): hermes plugins install <name>.\n\n"
"Only one external provider can be active at a time.\n"
"Built-in memory (MEMORY.md/USER.md) is always active.")
memory_sub = memory_parser.add_subparsers(dest="memory_command")
_setup_parser = memory_sub.add_parser(
"setup", help="Interactive provider selection and configuration")
_setup_parser.add_argument(
"provider", nargs="?", default=None,
help="Provider to configure directly (e.g. honcho), skipping the picker")
memory_sub.add_parser("status", help="Show current memory provider config")
memory_sub.add_parser("off", help="Disable external provider (built-in only)")
_reset_parser = memory_sub.add_parser(
"reset", help="Erase all built-in memory (MEMORY.md and USER.md)")
add_yes_flag(_reset_parser)
_reset_parser.add_argument(
"--target", choices=["all", "memory", "user"], default="all",
help="Which store to reset: 'all' (default), 'memory', or 'user'")
memory_parser.set_defaults(func=cmd_memory)