Skip to content

The agent that grows with you

feat(cli): add /plan command (#67264)

webtecnica5c6e5e7ea3a8
diff --git a/cli.py b/cli.py
index f2502538e49..bcf71903eb7 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 b8e388c3fc5..0957dbcd989 100644
--- a/hermes_cli/commands.py
+++ b/hermes_cli/commands.py
@@ -227,6 +227,8 @@ COMMAND_REGISTRY: list[CommandDef] = [
aliases=("proactive",),
args_hint="[interval] <prompt> [--times N] [--until <condition>] | 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="<prompt>", busy_policy="reject", busy_handler="moa"),
CommandDef("subgoal", "Add or manage extra criteria on the active goal", "Session",