Skip to content

Commit 4843894

Browse files
committed
remove legacy command format
1 parent 43418aa commit 4843894

2 files changed

Lines changed: 2 additions & 20 deletions

File tree

examples/simple_tui.py

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ async def setup(self):
4747
# Much simpler setup - no manual tool configuration needed
4848
self.agent = await MinionCodeAgent.create(
4949
name="Simple Code Assistant",
50-
llm="gpt-4o-mini"
50+
llm="gpt-4o",
5151
)
5252

5353
progress.update(task, completed=True)
@@ -83,24 +83,6 @@ async def process_input(self, user_input: str):
8383
await self.process_command(user_input)
8484
return
8585

86-
# Handle legacy commands for backward compatibility
87-
command = user_input.lower()
88-
if command in ["quit", "exit"]:
89-
await self.process_command("/quit")
90-
return
91-
elif command == "help":
92-
await self.process_command("/help")
93-
return
94-
elif command == "tools":
95-
await self.process_command("/tools")
96-
return
97-
elif command == "history":
98-
await self.process_command("/history")
99-
return
100-
elif command == "clear":
101-
await self.process_command("/clear")
102-
return
103-
10486
# Process with agent
10587
try:
10688
with Progress(

minion_code/commands/help_command.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ async def _show_general_help(self) -> None:
8181

8282
# Show usage info
8383
usage_panel = Panel(
84-
"💡 [italic]Commands start with '/' (e.g., /help, /tools)[/italic]\n"
84+
"💡 [italic]Commands must start with '/' (e.g., /help, /tools)[/italic]\n"
8585
"💬 [italic]Regular messages are sent to the AI agent[/italic]\n"
8686
"🔍 [italic]Use '/help <command>' for detailed help on a specific command[/italic]",
8787
title="[bold green]Usage Tips[/bold green]",

0 commit comments

Comments
 (0)