Loading...
Loading...
Compare original and translation side by side
b0b0b0 --versionb0 --versionnpm install -g @box0/cli@latestgit clone https://github.com/risingwavelabs/box0.git
cd box0 && cargo build --release
export PATH="$PWD/target/release:$PATH"npm install -g @box0/cli@latestgit clone https://github.com/risingwavelabs/box0.git
cd box0 && cargo build --release
export PATH="$PWD/target/release:$PATH"b0 statusb0 statusb0 server~/.b0/config.tomlb0 login <server-url> --key <api-key>b0 server~/.b0/config.tomlb0 login <server-url> --key <api-key>b0 statuslocalhost127.0.0.1b0 machine lsserver_urlapi_key~/.b0/config.tomlb0 machine join <server-url> --name <hostname> --key <api-key><server-url><hostname><api-key>b0 statuslocalhost127.0.0.1b0 machine ls~/.b0/config.tomlserver_urlapi_keyb0 machine join <server-url> --name <hostname> --key <api-key><server-url><hostname><api-key>npx skills add risingwavelabs/skills --skill b0npx skills add risingwavelabs/skills --skill b0b0 agent lsb0 agent lsb0 agent temp "<task>"b0 agent addb0 agent tempb0 agent addb0 delegate <name>b0 agent lsb0 agent temp "<task>"b0 agent addb0 agent tempb0 agent addb0 delegate <name>b0 agent lsb0 agent ls # list available agents
b0 delegate <agent> "<detailed task prompt>" # send task (non-blocking)
b0 delegate --thread <id> <agent> "<follow-up>" # continue conversation
b0 wait # wait for next completed result
b0 wait --all # wait for all pending results
b0 wait --timeout 0 # non-blocking check for completed results
b0 reply <thread-id> "<answer>" # answer an agent's question
b0 status # check pending tasks
b0 agent temp "<task>" # one-off task, no named agent
b0 agent add <name> --instructions "..." # create a named agent
b0 agent remove <name> # delete an agent
b0 cron add --every <interval> "<task>" # schedule recurring task (auto-creates temp agent)
b0 cron add --agent <name> --every <interval> "<task>" # schedule with existing agent
b0 cron ls # list scheduled tasks
b0 cron remove <id> # remove a scheduled taskb0 agent ls # 列出可用的Agent
b0 delegate <agent> "<detailed task prompt>" # 发送任务(非阻塞)
b0 delegate --thread <id> <agent> "<follow-up>" # 继续对话
b0 wait # 等待下一个完成的结果
b0 wait --all # 等待所有待处理结果完成
b0 wait --timeout 0 # 非阻塞式检查已完成的结果
b0 reply <thread-id> "<answer>" # 回复Agent的问题
b0 status # 检查待处理任务
b0 agent temp "<task>" # 一次性任务,无需命名Agent
b0 agent add <name> --instructions "..." # 创建命名Agent
b0 agent remove <name> # 删除Agent
b0 cron add --every <interval> "<task>" # 调度周期性任务(自动创建临时Agent)
b0 cron add --agent <name> --every <interval> "<task>" # 使用现有Agent调度周期性任务
b0 cron ls # 列出已调度的任务
b0 cron remove <id> # 删除已调度的任务b0 delegate reviewer "review this PR"b0 delegate reviewer "Review the changes on branch feature-timeout in this repo.
The PR adds timeout handling to src/handler.rs.
Focus on correctness, edge cases, and error handling.
Cite line numbers for any issues found."git diffgit diff main..HEAD | b0 delegate reviewer "Review the following diff. Focus on correctness."b0 delegate reviewer "review this PR"b0 delegate reviewer "审查此仓库中feature-timeout分支的变更。
该PR为src/handler.rs添加了超时处理逻辑。
重点检查正确性、边缘情况和错误处理。
若发现问题,请标注对应的行号。"git diffgit diff main..HEAD | b0 delegate reviewer "审查以下代码差异,重点关注正确性。"b0 delegate reviewer "Review the changes on branch feature-timeout..."
b0 delegate security "Check src/handler.rs for OWASP top 10 vulnerabilities..."
b0 delegate doc-writer "Update README to reflect the new timeout config option..."
b0 wait --allb0 wait --allb0 delegate reviewer "审查feature-timeout分支的变更..."
b0 delegate security "检查src/handler.rs是否存在OWASP十大漏洞..."
b0 delegate doc-writer "更新README以反映新的超时配置选项..."
b0 wait --allb0 wait --allb0 waitreviewer asks (thread thread-abc): "Is the timeout change on line 42 intentional?"
-> Use: b0 reply thread-abc "<your answer>"b0 replyb0 waitb0 waitreviewer 提问(线程ID:thread-abc):“第42行的超时变更是有意的吗?”
-> 执行:b0 reply thread-abc "<你的回答>"b0 replyb0 waitb0 statusb0 statusb0 waitb0 waitb0 delegate --thread <thread-id> <agent> "<follow-up>"
b0 waitb0 delegate --thread <thread-id> <agent> "<后续问题>"
b0 wait| Symptom | Fix |
|---|---|
| Run |
| Start the server with |
| Check that the daemon is running (it starts with the server) |
| Agent returns empty result | Check agent instructions with |
| "no local machine" error | Run |
| Timeout errors | Default is 300s. Check if the task needs more time. |
| 症状 | 解决方法 |
|---|---|
| 执行 |
| 执行 |
| 检查守护进程是否在运行(随服务器一同启动) |
| Agent返回空结果 | 执行 |
| 出现“no local machine”错误 | 执行 |
| 超时错误 | 默认超时时间为300秒,检查任务是否需要更长时间 |