SKILL.md--- name: acp-provider description: "Configure or troubleshoot ACP agent discovery, custom models, skills, and compaction in BB." --- # ACP providers Grok Build (`acp-grok`, the `grok` CLI) is always listed. Other known agents are discovered automatically when their CLI is installed on the host: `opencode`, `omp`, `hermes`, `agy`, and `fx` appear as `acp-opencode`, `acp-omp`, `acp-hermes-agent`, `acp-antigravity`, and `acp-fx`. Inspect the target host's catalog with `bb provider list` and `bb provider models <provider-id>` using its environment or machine selector. Agents in the official ACP registry can be added without writing JSON. `bb acp registry [--refresh] [--json]` lists them with a status: `available`, `added`, `update available`, `built in` (bb already ships it), or `manual install` (the agent ships only as a downloadable binary). `bb acp add <agent-id>` adds the agent as provider `acp-<agent-id>`, or moves an added agent to the registry's current version while keeping the fields edited by hand. `bb acp remove <agent-id>` removes it. The plugin's settings page shows the same list. An added agent is an entry in the `Custom agents` setting that runs `npx -y <package>` or `uvx <package>` on the thread's host, so the host needs Node.js or uv. The list is cached for six hours; when the registry cannot be reached the saved copy is shown with the reason. To hide a detected ACP agent, use `bb provider disable acp-opencode`, or Disable on Settings → Providers. Restore it with `bb provider enable acp-opencode`. This leaves other ACP agents and the host CLI intact. Disabled agents skip background capability probing. `bb provider list --all` includes disabled agents. ACP agents report their own models and may reject unlisted model IDs. For `acp-opencode` the list mirrors the OpenCode catalog, so add a model to the OpenCode config rather than bb's `customModels`: ```sh bb provider models acp-opencode --environment "$BB_ENVIRONMENT_ID" bb thread spawn --provider acp-opencode --model <provider/model> ``` OpenCode agents are session modes, not models selectable through BB's model field. OpenCode reports its primary agents as the `mode` session option. BB asks OpenCode for its models and modes in the directory the thread will run in: the project's checkout for a new thread, the environment's directory otherwise. Custom agents from the OpenCode config directory and from the project's `.opencode/` directory therefore appear in the mode menu: ```sh bb provider models acp-opencode --project "$BB_PROJECT_ID" bb thread spawn --provider acp-opencode --option mode=<agent> ``` A new agent file shows up once the stored list is ten minutes old and is read again. The same holds for a custom agent with `dialect: "opencode"`; every other ACP agent is asked once per machine. bb lists only the agents OpenCode itself loads, and OpenCode does not read agent files from othe