Repository navigation
Description
The workflow
Install and sign in to Kimi Code on the machine hosting a bb environment, select it as a provider, choose its models, use its native skills, and continue sessions with bb's permission controls and saved history.
I would like the npm Kimi Code CLI to be a shipped, automatically discovered ACP provider (acp-kimi). A tested prototype is available in my fork; I am asking for maintainer sign-off on the feature before opening a PR, as requested by CONTRIBUTING.md.
What happens today
At upstream main a6fff60, bb already supports custom/registry ACP agents, including a route to configure Kimi. This request is for built-in discovery and Kimi-specific behavior, not a claim that Kimi cannot run through generic ACP.
Kimi is absent from the shipped known-agent list. During prototype validation with Kimi Code 2.2.0, two integration behaviors also needed handling:
- A native
yolodefault can execute a tool without emittingsession/request_permission, even though ACP reports native modedefault. Explicitly settingdefaultrestores the approval path needed by bb'saccept-editsmode. - A completed ACP prompt can precede asynchronous history writes. Immediately terminating the CLI and resuming reproduced the same session ID with missing history. Waiting for its advertised
session/closebefore process termination preserved the history in repeated runs.
These observations used the real Kimi CLI and bb ACP bridge with deterministic localhost model responses. They were not tests against a live model service.
What you would expect
- Discover
kimion the target host's PATH and exposeacp-kimi, launchingkimi acp, withkimi loginguidance. - Use ACP model discovery and bb's existing text/tool/session surfaces, through both the UI's provider registration and existing CLI/SDK APIs.
- Index the npm CLI's native user/project skills and configured extra directories.
- Preserve existing custom
id: "kimi"launch overrides, inheriting the Kimi dialect unless explicitly overridden. - Respect bb permissions: normalize restricted sessions to native
default; nativeauto/yolorequire Full Access. Preserve an explicit Plan selection across live restricted turns. - Wait for session close before terminating Kimi so completed conversation/tool history survives release and resume; warn and clean up if close fails or times out.
Prototype: implementation commit 9a7f4e5 · implementation branch.
Key code: known-agent registration, permission handling, graceful close, native skill roots. The prototype includes regression tests and CLI/SDK/configuration documentation.
Context and alternatives
The existing custom ACP/registry setup remains an alternative. The proposed shipped entry adds installation discovery, native skill roots, and consistent vendor-specific behavior without requiring users to reproduce that configuration.
Local verification: investigation and validation report, portable smoke script, sanitized runtime result.
Environment: macOS 26.5.1 arm64, Node 24.18.0, pnpm 9.15.0, Kimi Code 2.2.0, ACP SDK 1.7.0. The implementation is based on the upstream commit linked above.
| Relevant suite | Passed | Skipped |
|---|---|---|
| ACP provider plugin | 95 | 0 |
| ACP bridge | 554 | 4 |
| Templates | 46 | 0 |
| Five selected server integration files | 95 | 0 |
| Total | 790 | 4 |
Relevant typechecks, lint, actual plugin bundling, changed-file formatting, diff/NUL checks, and the provider-literal ratchet passed. Full-repository formatting still reports 208 pre-existing, unchanged files; none are part of this implementation. These are local results for the selected suites, not full-monorepo or hosted-CI results.
The real-CLI smoke passed four consecutive runs after the persistence fix, with 12 assertions in the final run. It verifies streamed text, denied/approved marker-file operations, and preservation of all three assistant replies plus both tool results after immediate close/resume. Each run made 6 localhost requests, received 2 approval requests, and made 0 remote model calls. The saved result predates the commit, but its recorded bridge SHA256 matches the committed source exactly. Reproduction commands are in the linked report.
Boundaries:
- Kimi fork is disabled because its tested ACP fork ignores the destination cwd and MCP overrides.
- Native skill locations target the npm CLI 2+; legacy Python CLI roots are not included. Skill indexing uses the host daemon's environment, independently of custom launch-only env overrides.
- Restoring a restricted session or leaving Full Access resets native mode to
default; Plan can be selected again. - Live model inference, the full bb UI, hosted CI, and Windows/Linux execution have not been verified.
I searched open and closed issues for Kimi. #3835 concerns model tool-schema validation and #1944 concerns shared ACP MCP timeout handling; neither is a request for this built-in provider integration.
Checks
- I searched open and closed issues for the same request.
- If an agent wrote this, the body ends with
> AGENT GENERATED.
AGENT GENERATED
Activity
bb-slop-cop commentedon Oct 25, 2026
🚨 SLOP COP 🚨 ·
new-issue-autopilotApplied the missing classification:
providers,provider-acpThis adds built-in provider support beyond the existing custom ACP configuration workaround. The requested integration spans discovery, native skills, permissions, and session lifecycle within the existing ACP subsystem. No existing classification values were replaced.
Bug reproduction and a fix PR were skipped because the final Type is Feature; this request needs maintainer product approval rather than an automatic bug fix.