From 83f4524b4205e0d04f7fa773a4b0288e7aee83ff Mon Sep 17 00:00:00 2001 From: Teknium <127238744+teknium1@users.noreply.github.com> Date: Sat, 29 Aug 2026 18:52:52 -0700 Subject: [PATCH] feat(discord): expose /plan in the native slash-command picker Text-message /plan already works on Discord via the gateway fall-through; this makes it discoverable in the / picker alongside /steer and /compress. --- plugins/platforms/discord/adapter.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plugins/platforms/discord/adapter.py b/plugins/platforms/discord/adapter.py index fcd846b52e..3fb770a5e3 100644 --- a/plugins/platforms/discord/adapter.py +++ b/plugins/platforms/discord/adapter.py @@ -5915,6 +5915,11 @@ class DiscordAdapter(BasePlatformAdapter): async def slash_steer(interaction: discord.Interaction, prompt: str): await self._run_simple_slash(interaction, f"/steer {prompt}".strip()) + @tree.command(name="plan", description="Write a markdown implementation plan (no execution)") + @discord.app_commands.describe(task="What to plan. Leave empty to infer from the conversation.") + async def slash_plan(interaction: discord.Interaction, task: str = ""): + await self._run_simple_slash(interaction, f"/plan {task}".strip()) + @tree.command(name="compress", description="Compress conversation context") async def slash_compress(interaction: discord.Interaction): await self._run_simple_slash(interaction, "/compress")