词元之母TOK.MOM - 平台充值汇率 1:1 即 1 人民币充值到账 1 美元,支持一个 Key 调用近 600+ 海内外模型,限时特价模型低至 1 折,欢迎上岸!
| 来源 | 可选 — 通过 hermes skills install official/autonomous-ai-agents/blackbox 安装 |
| 路径 | optional-skills/autonomous-ai-agents/blackbox |
| 版本 | 1.0.0 |
| 作者 | Hermes Agent (Nous Research) |
| 许可证 | MIT |
| 平台 | linux, macos, windows |
| 标签 | Coding-Agent, Blackbox, Multi-Agent, Judge, Multi-Model |
| 相关 skill | claude-code, codex, hermes-agent |
npm install -g @blackboxai/cligit clone https://github.com/blackboxaicode/cli.git
cd cli && npm install && npm install -g .blackbox configure 并输入 API 密钥pty=true — Blackbox CLI 是交互式终端应用terminal(command="blackbox --prompt 'Add JWT authentication with refresh tokens to the Express API'", workdir="/path/to/project", pty=true)terminal(command="cd $(mktemp -d) && git init && blackbox --prompt 'Build a REST API for todos with SQLite'", pty=true)# Start in background with PTY
terminal(command="blackbox --prompt 'Refactor the auth module to use OAuth 2.0'", workdir="~/project", background=true, pty=true)
# Returns session_id
# Monitor progress
process(action="poll", session_id="<id>")
process(action="log", session_id="<id>")
# Send input if Blackbox asks a question
process(action="submit", session_id="<id>", data="yes")
# Kill if needed
process(action="kill", session_id="<id>")# After a task completes, Blackbox shows a checkpoint tag
# Resume with a follow-up task:
terminal(command="blackbox --resume-checkpoint 'task-abc123-2026-03-06' --prompt 'Now add rate limiting to the endpoints'", workdir="~/project", pty=true)| 命令 | 效果 |
|---|---|
/compress | 压缩对话历史以节省 token |
/clear | 清除历史并重新开始 |
/stats | 查看当前 token 用量 |
Ctrl+C | 取消当前操作 |
terminal(command="REVIEW=$(mktemp -d) && git clone https://github.com/user/repo.git $REVIEW && cd $REVIEW && gh pr checkout 42 && blackbox --prompt 'Review this PR against main. Check for bugs, security issues, and code quality.'", pty=true)terminal(command="blackbox --prompt 'Fix the login bug'", workdir="/tmp/issue-1", background=true, pty=true)
terminal(command="blackbox --prompt 'Add unit tests for auth'", workdir="/tmp/issue-2", background=true, pty=true)
# Monitor all
process(action="list")blackbox configure 配置要使用的模型 — 选择多个提供商以启用 Chairman/judge 工作流,CLI 将评估不同模型的输出并选出最佳结果。| 参数 | 效果 |
|---|---|
--prompt "task" | 非交互式单次执行 |
--resume-checkpoint "tag" | 从已保存的检查点恢复 |
--yolo | 自动批准所有操作和模型切换 |
blackbox session | 启动交互式聊天会话 |
blackbox configure | 更改设置、提供商、模型 |
blackbox info | 显示系统信息 |
"once" — 仅针对当前查询切换模型"session" — 在整个会话期间切换"persist" — 保持当前模型(不切换).blackboxcli/settings.json 控制 token 用量:{
"sessionTokenLimit": 32000
}pty=true — Blackbox CLI 是交互式终端应用,没有 PTY 将会挂起workdir — 确保代理专注于正确的目录background=true 并通过 process 工具监控poll/log 监控,不要因为速度慢就终止会话blackbox CLI 已安装