跳到正文
Skillpedia
通用编程260k · #440

blackbox

它能做什么

它让你的智能体把编程任务发送给 Blackbox CLI,这是一个运行多个 AI 模型并选择最佳答案的工具。它适合希望由该工具为自己构建或修改代码的开发者。

适用场景

  • ✓你希望由 Blackbox 而不是你自己的智能体来构建功能或重构代码的时候。
  • ✓你希望多个 AI 模型共同处理同一个编程任务的时候。
  • ✓你需要根据一句提示快速搭建一个临时项目的时候。

技能链接

https://github.com/NousResearch/hermes-agent/blob/main/optional-skills/autonomous-ai-agents/blackbox/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/NousResearch/hermes-agent/blob/main/optional-skills/autonomous-ai-agents/blackbox/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请使用 Blackbox CLI,为我的 Express API 添加带刷新令牌的 JWT 登录。”

每周 5 个新技能,1 分钟读完。

工作原理

智能体在你的项目文件夹中运行 blackbox 命令,并把你的任务作为提示。对于耗时较长的任务,它可以在后台运行,方便你查看进度。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Blackbox CLI

Delegate coding tasks to Blackbox AI via the Hermes terminal. Blackbox is a multi-model coding agent CLI that dispatches tasks to multiple LLMs (Claude, Codex, Gemini, Blackbox Pro) and uses a judge to select the best implementation.

The CLI (npm @blackbox_ai/blackbox-cli, binary blackbox) is a TypeScript coding agent (forked from Gemini CLI) and supports interactive sessions, non-interactive one-shots, checkpointing, MCP, and vision model switching.

Prerequisites

  • Node.js 20+ installed
  • Blackbox CLI installed: npm install -g @blackbox_ai/blackbox-cli (binary: blackbox)
  • API key from app.blackbox.ai/dashboard
  • Configured: run blackbox configure and enter your API key
  • Use pty=true in terminal calls — Blackbox CLI is an interactive terminal app

One-Shot Tasks

terminal(command="blackbox --prompt 'Add JWT authentication with refresh tokens to the Express API'", workdir="/path/to/project", pty=true)

For quick scratch work:

terminal(command="cd $(mktemp -d) && git init && blackbox --prompt 'Build a REST API for todos with SQLite'", pty=true)

Background Mode (Long Tasks)

For tasks that take minutes, use background mode so you can monitor progress:

# 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>")

Checkpoints & Resume

Blackbox CLI has built-in checkpoint support for pausing and resuming tasks:

# 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)

Session Commands

During an interactive session, use these commands:

Command Effect
/compress Shrink conversation history to save tokens
/clear Wipe history and start fresh
/stats View current token usage
Ctrl+C Cancel current operation

PR Reviews

Clone to a temp directory to avoid modifying the working tree:

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)

Parallel Work

Spawn multiple Blackbox instances for independent tasks:

terminal(command="blackbox --prompt 'Fix the login bug'", workdir="~/.hermes/cache/scratch/issue-1", background=true, pty=true)
terminal(command="blackbox --prompt 'Add unit tests for auth'", workdir="~/.hermes/cache/scratch/issue-2", background=true, pty=true)

# Monitor all
process(action="list")

Multi-Model Mode

Blackbox's unique feature is running the same task through multiple models and judging the results. Configure which models to use via blackbox configure — select multiple providers to enable the Chairman/judge workflow where the CLI evaluates outputs from different models and picks the best one.

Key Flags

Flag Effect
--prompt "task" (-p) Non-interactive one-shot execution
--resume-checkpoint "tag" Resume from a saved checkpoint
--yolo (-y) Auto-approve all actions and model switches
--vlm-switch-mode <mode> Image-handling: once, session, or persist
-c, --checkpointing Enable checkpointing of file edits
blackbox configure Change settings, providers, models
blackbox update Update the CLI to the latest version
blackbox mcp Manage MCP servers
blackbox extensions Manage CLI extensions
blackbox voice <action> / blackbox shortcut Configure voice input / the b shortcut

Vision Support

Blackbox automatically detects images in input and can switch to multimodal analysis. VLM modes:

  • "once" — Switch model for current query only
  • "session" — Switch for entire session
  • "persist" — Stay on current model (no switch)

Token Limits

Control token usage via .blackboxcli/settings.json:

{
  "sessionTokenLimit": 
常见问题

我需要账号吗?

需要。技能需要从控制台获取 Blackbox API 密钥,并在运行配置命令时输入。

我需要安装什么?

需要 Node.js 20 或更高版本,以及通过 npm 安装的 Blackbox CLI。

它能处理耗时较长的任务吗?

可以。技能说明了一种适用于耗时数分钟任务的后台模式。

详情

作者的原始描述

Delegate coding tasks to the Blackbox AI multi-model CLI.

repo: NousResearch/hermes-agent

热度

GitHub 星标
260k
排名
#440
许可证
MIT
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能