From 5c6e5e7ea3a8de511f64b17271fe9b1e1c96b1bb Mon Sep 17 00:00:00 2001 From: webtecnica <75556242+webtecnica@users.noreply.github.com> Date: Sun, 19 Jul 2026 00:29:26 -0300 Subject: [PATCH] feat(cli): add /plan command (#67264) Generate a structured execution plan without executing tools. Uses _pending_agent_seed injection (same pattern as /moa). --- cli.py | 2 ++ hermes_cli/commands.py | 2 ++ 2 files changed, 4 insertions(+) diff --git a/cli.py b/cli.py index f2502538e4..bcf71903eb 100644 --- a/cli.py +++ b/cli.py @@ -12862,6 +12862,8 @@ class HermesCLI(CLIAgentSetupMixin, CLICommandsMixin, CLIBillingMixin): self._handle_review_command(cmd_original) elif canonical == "loop": self._handle_loop_command(cmd_original) + elif canonical == "plan": + self._handle_plan_command(cmd_original) elif canonical == "moa": # /moa is one-shot sugar only: run a single prompt through the # default MoA preset, then restore the prior model. To *switch* to a diff --git a/hermes_cli/commands.py b/hermes_cli/commands.py index b8e388c3fc..0957dbcd98 100644 --- a/hermes_cli/commands.py +++ b/hermes_cli/commands.py @@ -227,6 +227,8 @@ COMMAND_REGISTRY: list[CommandDef] = [ aliases=("proactive",), args_hint="[interval] [--times N] [--until ] | status | pause | resume | stop", argument_mode="mixed", busy_policy="dispatch", busy_handler="loop"), + CommandDef("plan", "Write a markdown implementation plan to .hermes/plans/ without executing anything", "Session", + args_hint="[task]"), CommandDef("moa", "Run one prompt through the default Mixture of Agents preset, then restore your model", "Session", args_hint="", busy_policy="reject", busy_handler="moa"), CommandDef("subgoal", "Add or manage extra criteria on the active goal", "Session",