Overview
The CLI interface provides direct command-line access to RepoMaster’s multi-agent system. It’s ideal for automation, scripting, and users who prefer terminal-based workflows.Available Commands
Basic Help
Command Structure
All RepoMaster commands follow this pattern:Primary Modes
Fromlauncher.py:6-12, RepoMaster supports two primary modes:
| Mode | Description | Use Case |
|---|---|---|
frontend | Interactive Multi-Agent Dashboard | Web-based visual interface |
backend | Multi-Agent Service Interface | CLI-based agent interaction |
Global Options
Configuration Flags
Fromlauncher.py:478-483 and the argument parser:
| Flag | Type | Default | Description |
|---|---|---|---|
--mode | string | required | Execution mode (frontend/backend) |
--api-type | string | basic | API provider (openai, claude, deepseek, etc.) |
--temperature | float | 0.1 | Model temperature (0.0-2.0) |
--work-dir | path | auto | Working directory for code execution |
--log-level | string | INFO | Logging level (DEBUG, INFO, WARNING, ERROR) |
--skip-config-check | flag | false | Skip API configuration validation |
Frontend-Specific Options
| Flag | Type | Default | Description |
|---|---|---|---|
--streamlit-port | int | 8501 | Web server port |
--streamlit-host | string | localhost | Server host address |
--max-upload-size | int | 200 | Upload limit in MB (1-2000) |
--file-watcher-type | string | auto | File watching mechanism |
Backend-Specific Options
| Flag | Type | Default | Description |
|---|---|---|---|
--backend-mode | string | required | Agent mode (unified, deepsearch, etc.) |
--timeout | int | 120 | Request timeout in seconds |
--max-tokens | int | 4000 | Maximum token count |
Usage Examples
Frontend Mode
Backend Mode
Advanced Configuration
Interactive Commands
When running in backend mode, the CLI provides interactive commands:Conversation Control
Fromlauncher.py:189-215 and similar sections:
| Command | Aliases | Description |
|---|---|---|
quit | exit, q | Exit the program |
history | h | View conversation history |
clear | c | Clear conversation context |
Example Session
Environment Setup
Prerequisites Check
Fromlauncher.py:50-113, the launcher automatically checks:
- Environment file (
configs/.env) - Required API keys (SERPER_API_KEY, JINA_API_KEY)
- PYTHONPATH configuration
Configuration File Setup
If the.env file is missing, you’ll see:
Missing API Keys
If required keys are missing:Logging and Debugging
Log Levels
Fromlauncher.py:38-48, available log levels:
| Level | Usage | Output |
|---|---|---|
DEBUG | Development, troubleshooting | All messages including library internals |
INFO | Normal operation | Status updates and important events |
WARNING | Production (default) | Warnings and errors only |
ERROR | Minimal output | Errors only |
Enable Debug Logging
Startup Sequence
Fromlauncher.py:490-580, the launcher follows this sequence:
- Display CLI logo (optional)
- Setup environment
- Configure PYTHONPATH
- Load
.envfile - Validate API keys
- Parse command-line arguments
- Configure logging
- Validate API configuration (unless skipped)
- Create configuration manager
- Print startup panel with status
- Launch selected mode
Error Handling
Common Errors
Configuration Errors
--mode frontend or --mode backend
Backend Mode Missing
--backend-mode (unified, deepsearch, general_assistant, repository_agent)
Environment Issues
configs/.env with required API keys
Graceful Shutdown
Fromlauncher.py:573-574, the launcher handles keyboard interrupts:
- Deep Search:
👋 Deep Search Agent service stopped(launcher.py:215) - Programming Assistant:
👋 Programming Assistant Agent service stopped(launcher.py:284) - Repository Agent:
👋 Repository Exploration Agent service stopped(launcher.py:370) - Unified Mode:
👋 Multi-Agent system service stopped(launcher.py:435)
Shell Script Shortcuts
RepoMaster includes arun.sh script for convenient access:
Best Practices
Development Workflow
Production Deployment
Automated Scripts
Performance Tuning
Model Temperature
Adjust creativity vs consistency:Request Timeouts
Token Limits
See Also
- Web Interface - Streamlit dashboard
- Backend Modes - Agent details
- Configuration - Configuration reference