Skip to content

The agent that grows with you

feat(discord): expose /plan in the native slash-command picker

Teknium83f4524b4205
diff --git a/plugins/platforms/discord/adapter.py b/plugins/platforms/discord/adapter.py
index fcd846b52e0..3fb770a5e36 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")