File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -226,6 +226,32 @@ oho message command -s <session> /help # Execute command
226226oho message shell -s < session> --agent default " ls -la" # Run shell
227227```
228228
229+ ### Quick Start (Session + Message)
230+
231+ ``` bash
232+ oho add " 帮我分析这个项目" # Create session and send message
233+ oho add " 修复登录 bug" --title " Bug 修复" # Create session with custom title
234+ oho add " 测试功能" --no-reply --agent default # Don't wait for AI response
235+ oho add " 分析日志" --file /var/log/app.log # Attach file to message
236+ oho add " 任务描述" --directory /path/to/project # Specify working directory
237+ oho add " 消息内容" --json # Output in JSON format
238+ ```
239+
240+ ** ` oho add ` Flags** :
241+
242+ | Flag | Type | Description | Default |
243+ | ------| ------| -------------| ---------|
244+ | ` --title ` | string | Session title (auto-generated if not provided) | auto-generated |
245+ | ` --parent ` | string | Parent session ID (for creating sub-session) | - |
246+ | ` --directory ` | string | Working directory for the session | current directory |
247+ | ` --agent ` | string | Agent ID for message | - |
248+ | ` --model ` | string | Model ID for message (e.g., ` provider:model ` ) | default model |
249+ | ` --no-reply ` | bool | Don't wait for AI response | false |
250+ | ` --system ` | string | System prompt | - |
251+ | ` --tools ` | string[ ] | Tools list (can be specified multiple times) | - |
252+ | ` --file ` | string[ ] | File attachments (can be specified multiple times) | - |
253+ | ` -j, --json ` | bool | Output in JSON format | false |
254+
229255### Configuration Management
230256
231257``` bash
You can’t perform that action at this time.
0 commit comments