Skip to content

Commit 512e296

Browse files
author
Sisyphus Agent
committed
docs: 添加 oho add 命令完整文档
1 parent bcb63e2 commit 512e296

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

oho/README.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,32 @@ oho message command -s <session> /help # Execute command
226226
oho 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

0 commit comments

Comments
 (0)