MCPcopy Create free account
hub / github.com/MiniMax-AI/Mini-Agent / print_help

Function print_help

mini_agent/cli.py:191–220  ·  view source on GitHub ↗

Print help information

()

Source from the content-addressed store, hash-verified

189
190
191def print_help():
192 """Print help information"""
193 help_text = f"""
194{Colors.BOLD}{Colors.BRIGHT_YELLOW}Available Commands:{Colors.RESET}
195 {Colors.BRIGHT_GREEN}/help{Colors.RESET} - Show this help message
196 {Colors.BRIGHT_GREEN}/clear{Colors.RESET} - Clear session history (keep system prompt)
197 {Colors.BRIGHT_GREEN}/history{Colors.RESET} - Show current session message count
198 {Colors.BRIGHT_GREEN}/stats{Colors.RESET} - Show session statistics
199 {Colors.BRIGHT_GREEN}/log{Colors.RESET} - Show log directory and recent files
200 {Colors.BRIGHT_GREEN}/log <file>{Colors.RESET} - Read a specific log file
201 {Colors.BRIGHT_GREEN}/exit{Colors.RESET} - Exit program (also: exit, quit, q)
202
203{Colors.BOLD}{Colors.BRIGHT_YELLOW}Keyboard Shortcuts:{Colors.RESET}
204 {Colors.BRIGHT_CYAN}Esc{Colors.RESET} - Cancel current agent execution
205 {Colors.BRIGHT_CYAN}Ctrl+C{Colors.RESET} - Exit program
206 {Colors.BRIGHT_CYAN}Ctrl+U{Colors.RESET} - Clear current input line
207 {Colors.BRIGHT_CYAN}Ctrl+L{Colors.RESET} - Clear screen
208 {Colors.BRIGHT_CYAN}Ctrl+J{Colors.RESET} - Insert newline (also Ctrl+Enter)
209 {Colors.BRIGHT_CYAN}Tab{Colors.RESET} - Auto-complete commands
210 {Colors.BRIGHT_CYAN}↑/↓{Colors.RESET} - Browse command history
211 {Colors.BRIGHT_CYAN}→{Colors.RESET} - Accept auto-suggestion
212
213{Colors.BOLD}{Colors.BRIGHT_YELLOW}Usage:{Colors.RESET}
214 - Enter your task directly, Agent will help you complete it
215 - Agent remembers all conversation content in this session
216 - Use {Colors.BRIGHT_GREEN}/clear{Colors.RESET} to start a new session
217 - Press {Colors.BRIGHT_CYAN}Enter{Colors.RESET} to submit your message
218 - Use {Colors.BRIGHT_CYAN}Ctrl+J{Colors.RESET} to insert line breaks within your message
219"""
220 print(help_text)
221
222
223def print_session_info(agent: Agent, workspace_dir: Path, model: str):

Callers 1

run_agentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected