/acp-provider
Configure or troubleshoot ACP agent discovery, custom models, skills, and compaction in BB.
Claude Code
$ npx -y skills add get-bb/bb --skill acp-provider --agent claude-code
Codex
$ npx skills add get-bb/bb --skill acp-provider -a codex -y
Cursor
$ npx skills add get-bb/bb --skill acp-provider -a cursor -y
Gemini CLI
$ npx skills add get-bb/bb --skill acp-provider -a gemini-cli -y
GitHub Copilot
$ npx skills add get-bb/bb --skill acp-provider -a github-copilot -y
OpenCode
$ npx skills add get-bb/bb --skill acp-provider -a opencode -y
Windsurf
$ npx skills add get-bb/bb --skill acp-provider -a windsurf -y
SKILL.md
acp-provider.SKILL.mdname: acp-provider
description: "Configure or troubleshoot ACP agent discovery, custom models, skills, and compaction in BB."
ACP providers
Known agents can be discovered automatically when their CLI is installed on the host: `opencode`, `omp`, `grok`, and `hermes` appear as `acp-opencode`, `acp-omp`, `acp-grok`, and `acp-hermes-agent`. 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.
Cursor project skills come from `.cursor/skills`, which can link to `.agents/skills`. BB lists these linked skills as read-only under `cursor-project`.
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`:
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:
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 other folders such as `.agents/agents/`. To use such a folder, set `OPENCODE_CONFIG_DIR` as a machine variable or in a custom agent's `env`; a relative value is resolved in each workspace, so `.agents` lists every project's own `.agents/agents/*.md`:
printf '.agents' | bb machine env set OPENCODE_CONFIG_DIR
Every file in that folder must be a valid OpenCode agent file; OpenCode refuses to start on one it cannot parse, such as `tools` written as a comma-separated list.
Grok Build advertises models and `thought_level` options over ACP, so the picker follows the connected agent (including `xhigh` on grok-4.6).
BB launches OpenCode sessions with `OPENCODE_CLIENT=acp` and `OPENCODE_ENABLE_QUESTION_TOOL=false`, overriding inherited and custom launch values. Native questions have no ACP interaction handler in BB; agents use the ask-user-question plugin’s `AskUserQuestion` tool instead. This also applies to custom agents with `dialect: "opencode"` and does not change OpenCode config files.
BB applies the thread's permission mode to OpenCode. OpenCode 1.x reads it from `OPENCODE_PERMISSION`, which BB sets and OpenCode merges over the `permission` keys of its own config. OpenCode 2.x ignores that variable, so BB writes the same rules (`edit`, `shell`, `webfetch` and `external_directory`, each on `*`) to the session itself with `opencode api PATCH /api/session/<id>` before the first prompt, ahead of the session's other rules such as allowed additional directories. In `accept-edits` OpenCode edits files without asking and asks before shell commands, web fetches and paths outside the workspace; BB shows those requests as approvals. In `full` all four are allowed. Changing a thread's permission mode restarts the OpenCode session with the new policy; the conversation is restored. In `accept-edits`, if the launch command does not end in `acp` or OpenCode 2.x rejects the rules, the session fails to start instead of running without them. In `full` there is nothing to enforce, so a launch command that does not end in `acp` only logs a warning once.
Approving a request "for session" is remembered by BB for that thread's ACP session: the agent is answered with its allow-once option, and later requests with the same subject (the same command, write scope, or tool) are approved without asking. BB sends an agent's allow-always option only when the agent offers no allow-once option, so agents such as Cursor do not write the grant to their global config, and a new thread asks again.
OpenCode and Grok ACP support the core `bb thread compact` command; Cursor ACP does not expose compatible compaction. Check the actual agent's capabilities before attempting provider-specific recovery.
OpenCode 2.x also reports compaction through its `opencode/compaction` session metadata. bb maps those notifications to the same compaction row.
bb sends `clientCapabilities.session.compaction: {}` at `initialize`. An agent that reports its own compaction with the ACP `compaction_update` session upda
Read more
name: acp-provider description: "Configure or troubleshoot ACP agent discovery, custom models, skills, and compaction in BB."
ACP providers
Known agents can be discovered automatically when their CLI is installed on the host: `opencode`, `omp`, `grok`, and `hermes` appear as `acp-opencode`, `acp-omp`, `acp-grok`, and `acp-hermes-agent`. 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.
Cursor project skills come from `.cursor/skills`, which can link to `.agents/skills`. BB lists these linked skills as read-only under `cursor-project`.
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`:
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:
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 other folders such as `.agents/agents/`. To use such a folder, set `OPENCODE_CONFIG_DIR` as a machine variable or in a custom agent's `env`; a relative value is resolved in each workspace, so `.agents` lists every project's own `.agents/agents/*.md`:
printf '.agents' | bb machine env set OPENCODE_CONFIG_DIR
Every file in that folder must be a valid OpenCode agent file; OpenCode refuses to start on one it cannot parse, such as `tools` written as a comma-separated list.
Grok Build advertises models and `thought_level` options over ACP, so the picker follows the connected agent (including `xhigh` on grok-4.6).
BB launches OpenCode sessions with `OPENCODE_CLIENT=acp` and `OPENCODE_ENABLE_QUESTION_TOOL=false`, overriding inherited and custom launch values. Native questions have no ACP interaction handler in BB; agents use the ask-user-question plugin’s `AskUserQuestion` tool instead. This also applies to custom agents with `dialect: "opencode"` and does not change OpenCode config files.
BB applies the thread's permission mode to OpenCode. OpenCode 1.x reads it from `OPENCODE_PERMISSION`, which BB sets and OpenCode merges over the `permission` keys of its own config. OpenCode 2.x ignores that variable, so BB writes the same rules (`edit`, `shell`, `webfetch` and `external_directory`, each on `*`) to the session itself with `opencode api PATCH /api/session/<id>` before the first prompt, ahead of the session's other rules such as allowed additional directories. In `accept-edits` OpenCode edits files without asking and asks before shell commands, web fetches and paths outside the workspace; BB shows those requests as approvals. In `full` all four are allowed. Changing a thread's permission mode restarts the OpenCode session with the new policy; the conversation is restored. In `accept-edits`, if the launch command does not end in `acp` or OpenCode 2.x rejects the rules, the session fails to start instead of running without them. In `full` there is nothing to enforce, so a launch command that does not end in `acp` only logs a warning once.
Approving a request "for session" is remembered by BB for that thread's ACP session: the agent is answered with its allow-once option, and later requests with the same subject (the same command, write scope, or tool) are approved without asking. BB sends an agent's allow-always option only when the agent offers no allow-once option, so agents such as Cursor do not write the grant to their global config, and a new thread asks again.
OpenCode and Grok ACP support the core `bb thread compact` command; Cursor ACP does not expose compatible compaction. Check the actual agent's capabilities before attempting provider-specific recovery.
OpenCode 2.x also reports compaction through its `opencode/compaction` session metadata. bb maps those notifications to the same compaction row.
bb sends `clientCapabilities.session.compaction: {}` at `initialize`. An agent that reports its own compaction with the ACP `compaction_update` session upda
bb is an agentic IDE that builds itself. It can control, customize, and automate itself, laying the groundwork for your own software factory. Every surface — the desktop app, web app, CLI, and HTTP API — is a first-class way to drive bb.
Other skills on bb.
More skills from other plugins.
agentmail
Use your assigned AgentMail inbox to read email tasks, explicitly send or reply, and check delivery. Provided automatically by…
adr-create
Create a new Architecture Decision Record with sequential numbering and AgentDB registration
Questions about acp-provider.
- Which coding agents can use acp-provider?
- acp-provider installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.

