ACP

Configure Kimchi as a native ACP agent in VS Code, Zed, or JetBrains IDEs, with tool calls, file edits, and model routing built in.

This tutorial configures Kimchi as an ACP (Agent Client Protocol) agent in your IDE — letting JetBrains and VS Code spawn Kimchi natively, with full tool call support, file edits, and smart model routing built in.

No provider URL configuration. No custom extension logic. Just Kimchi running as a first-class agent in your editor.

Overview

By the end of this tutorial, you'll have Kimchi available as a native agent in your JetBrains IDE or VS Code, selectable from the agent picker and ready to use without any additional configuration.

This tutorial is intended for developers familiar with command-line tools and JSON configuration files.

Prerequisites

Before starting, ensure you have:

  1. A Kimchi API key — Go to Kimchi → API Keys and click Create API key. Copy the key and store it securely.
  2. Kimchi Coding v0.0.7 or later — Run the update command:
kimchi update

Confirm your version:

kimchi --version
📘

Kimchi's ACP mode is compatible with any IDE or editor that supports the Agent Client Protocol — including JetBrains IDEs, VS Code, and Zed. The core agent properties (command, args, env) are consistent across all tools — the surrounding configuration structure varies by tool.

Setup

Find your binary path

ACP configuration requires an absolute path to the kimchi binary. Run:

which kimchi

The path is usually ~/.local/bin/kimchi. Copy the full output — you'll need it in the next step.

Register Kimchi as an ACP agent

Select your editor below. Replace command with the path from Step 1 and YOUR_API_KEY with the key you copied from the Kimchi console.

Open or create ~/.jetbrains/acp.json and add the following:

{
  "agent_servers": {
    "kimchi": {
      "command": "/Users/YOUR_USERNAME/.local/bin/kimchi",
      "args": ["--mode", "acp"],
      "env": {
        "KIMCHI_API_KEY": "YOUR_API_KEY"
      }
    }
  }
}

Restart your IDE for the configuration to take effect.

Start a session

Open your project, select Kimchi from the agent picker, and start chatting. Kimchi handles model routing automatically — no additional configuration needed.

MCP tools

You can configure MCP tools in Kimchi's config file — they're available in all ACP sessions automatically.

Alternatively, the ACP client can supply per-session MCP servers via the mcpServers field on session/new and session/load, as defined by the ACP spec. These are merged with the servers from Kimchi's config — on a name collision, the caller-supplied server wins. Both stdio and HTTP transports are supported; SSE is not.

Model selection

The active model is exposed as a session config option (configId: "model") — a select type listing all available models plus a Multi-Model entry. Selecting Multi-Model enables multi-model orchestration mode — the harness assigns an orchestrator model and routes subtasks to specialised models automatically. Selecting any other model switches back to single-model mode.

Clients can read the current model from the configOptions returned by session creation or load, and change it at any time via setSessionConfigOption with configId: "model". The value is either a model ref in provider/modelId format or "multi-model". When multi-model mode is active, the current model ID reflects the orchestrator (e.g. multi-model/<orchestrator-ref>).

For details on how multi-model orchestration works and how to configure model roles, see Multi-model orchestration.

Tool permissions

When Kimchi needs to run a tool that requires approval — such as executing a shell command or writing a file — the ACP session sends a permission request to your IDE. The IDE presents the approval prompt directly in its UI, so you can allow or deny the action without leaving your editor.

Permission choices include:

  • Allow once — approve this specific call only.
  • Allow for session — remember the approval for matching calls for the rest of the session.
  • Allow wildcard — remember a broader approval (e.g. all commands in a directory) for the session.
  • Deny — block the call and optionally tell the agent what to do differently.

Subagent workers (used internally by multi-model orchestration) do not prompt — they use the classifier to decide whether a tool call is safe, and block if confirmation would be needed.

Permission modes

You can switch between permission modes during a session to control how much autonomy the agent has:

ModeBehaviour
defaultPrompts before write operations — the agent asks before editing files or running commands.
planRead-only — the agent can explore the codebase but cannot make changes.
autoThe agent runs safe operations automatically and only prompts for potentially destructive ones.
yoloNo prompting — all tool calls execute immediately.

The active mode is visible in your IDE and can be changed at any time through the session settings. If your organization has set an allowed-modes policy, only the permitted modes are advertised in the permissions-mode config option — disallowed modes are hidden from the picker and rejected if set programmatically.

Kimchi can also change the mode or model itself during a session — for example, switching from plan to default after completing a planning phase, or falling back to a different model when one is unavailable. When this happens, Kimchi sends a config_option_update notification to the IDE so the displayed mode and model stay in sync.

Slash commands

ACP sessions support slash commands. When a session starts or is resumed, the client receives an available_commands_update notification listing the commands the agent supports. The client can then present these commands in its UI (e.g. a command palette) and execute them on behalf of the user.

Currently available commands:

CommandDescription
/bugReport a bug — opens a pre-filled GitHub issue form. Accepts an optional title as input.
/skill:<name>Invoke a discovered skill by name. Accepts an optional prompt.

Skill commands

Kimchi automatically discovers skills from all configured skill directories and advertises them as /skill:<name> slash commands in ACP sessions. When a session starts, the client receives the full list of available skill commands alongside built-in commands like /bug.

To invoke a skill, type /skill:<name> followed by an optional prompt:

/skill:lint-fix src/

The agent loads the skill's full SKILL.md content and applies it to the current turn. If you do not add a prompt, the agent follows the skill instructions on its own.

Kimchi also preloads the skill list into the system prompt as a compact set of names and descriptions. When a request matches a skill's description, the agent loads the full skill content on demand, the same as in TUI sessions.

Slash commands that require user interaction — such as confirmations, text input, or selection pickers — surface those prompts to the ACP client automatically. If the client does not support a particular prompt type, the agent treats it as a dismissal and continues without crashing.

Append to the system prompt

ACP clients can append custom content to the system prompt by including an appendSystemPrompt field in the _meta["kimchi.dev"] namespace of a NewSessionRequest or LoadSessionRequest. The value must be a non-empty string. Kimchi ignores non-string, empty, and whitespace-only values.

{
  "_meta": {
    "kimchi.dev": {
      "appendSystemPrompt": "Always run the project's test suite before reporting a task complete."
    }
  }
}

Kimchi appends the meta content to the composed system prompt through the same mechanism as the --append-system-prompt CLI flag. When both are present, the CLI flag content comes first and the meta content follows it. When neither is present, the system prompt does not change.

The _meta namespace is the extension point the ACP spec reserves for custom data. Implementations must not add custom fields at the root of a type.

Authentication

Kimchi advertises authentication methods during initialization so ACP clients can authenticate users without manual API key configuration.

Auth methods

MethodIDWhen advertisedHow it works
Agent Authkimchi-agentAlwaysBrowser-based login through the Kimchi web app
Terminal Authkimchi-terminalOnly when the client advertises the auth.terminal capabilityThe client launches kimchi login as a separate process

When a client calls authenticate with methodId: "kimchi-agent", Kimchi runs the browser OAuth flow and persists the API key. Kimchi then refreshes the model list so the next session has models available immediately.

authenticate is never called for Terminal Auth; the login completes in the client-launched kimchi login process.

Logout

Kimchi advertises logout support via agentCapabilities.auth.logout. Clients can call unstable_logout to clear stored credentials, including the persisted API key and OAuth tokens.

Plan progress

ACP sessions publish the session's todo list as plan sessionUpdates, so clients that render plans can display task progress as it changes. During a Ferment, the entries track the ferment's phases and steps, matching the progress shown on the TUI dashboard.

Todo statePlan entry status
Not startedpending
In progressin_progress
Completedcompleted
Blockedpending

ACP v1 has no blocked status, so a blocked step arrives as pending. Clients that need to tell blocked steps apart can read the entry's _meta["kimchi.dev"].todoStatus field, which reports blocked, with an optional note explaining the blocker.

Updates go only to the session that owns the todos, so work in one ACP session never appears in another. When you resume a session, Kimchi re-sends the current plan immediately so the client starts with up-to-date progress.

Context window usage

At the end of every turn, Kimchi sends the ACP client a usage_update notification with the context tokens in use and the total window size. IDEs that support this notification (such as Zed) display a context window usage indicator automatically. You do not need to configure anything.

Current limitations

This is an early release. The following features are not yet supported:

FeatureNotes
Audio inputNon-text prompt blocks (other than images) are silently dropped. You'll see a one-time warning in stderr.
Session persistenceEach session starts fresh.
Slash commandsMost slash commands require the TUI and have no effect in ACP mode. /bug, /permissions, and /skill:<name> commands are fully functional in ACP sessions.

Troubleshooting

Kimchi doesn't appear in the agent picker

  • Check that the command value is an absolute path — ~/... won't work
  • Restart your IDE after editing the config
  • Run kimchi --version in your terminal to confirm the binary is accessible

Connection errors

  • Verify your KIMCHI_API_KEY is correct
  • Confirm you're on harness v0.0.7+ (kimchi update)

Tool results coming back empty

If a tool call completes but shows no content, check the harness logs for errors. Text and image tool results are forwarded to the client automatically. MCP resource blocks are converted to text by the MCP bridge before reaching the ACP layer.


Did this page help you?