dsh-kiki: Installation and Integration of Kiki in DeepSeek Harness

Preface

When developing agents with DeepSeek Harness (DSH), you often need to switch between multiple sessions, tools, and agents, manually managing task distribution and result aggregation. Kiki is a Mac application that can act as an AI chief of staff, automatically deciding which team member should execute a task and bringing back the results. The dsh-kiki plugin integrates Kiki into the DSH web interface sidebar, displaying DSH sessions as cards within Kiki, while providing the model with tools to interact with Kiki.

Plugin Positioning

dsh-kiki is a client-side plugin maintained by lkyxuan, released under the open-source MIT license. The core problem it solves is: allowing DSH users to manage the Kiki application without leaving the browser, syncing DSH’s session state to Kiki, and enabling the model to directly invoke Kiki’s agent services.

Core Features

1. Kiki Row in the Sidebar

The plugin adds a Kiki row to the DSH web sidebar, displaying different content based on Kiki’s running status:

  • Kiki is running: Shows the full Kiki page, along with a toggle to report DSH sessions to Kiki
  • Kiki.app is installed but not running: Shows an “Open Kiki” button
  • Kiki not installed (macOS): Shows a Kiki introduction and an “Install Kiki” button
  • Windows / Linux: A notice that Kiki currently only supports macOS

2. Session Reporting to Kiki

DSH sessions appear as cards in Kiki’s overview, with statuses including: Working, Needs You (requires approval or a question), Completed with the last answer, and Error. Sub-sessions are skipped. When Kiki is not running, no data is sent.

3. Model Tool Integration

The plugin provides three Kiki tools for the model:

  • kiki_ask: Hands a task to a specific Kiki member, returns a ticket ID, and does not wait for the result
  • kiki_services: Reads local services registered in Kiki (read-only)
  • kiki_query: Queries services in Kiki

4. Automatic Kiki Installation

Clicking the “Install Kiki” button (macOS only) automatically downloads and installs Kiki:

  1. Downloads the latest Kiki-mac-<arch>.zip (approximately 100 MB) from dl.kikibao.com, falling back to GitHub Releases on failure
  2. Verifies the SHA256 checksum of the downloaded file
  3. Extracts Kiki.app to /Applications or ~/Applications, without overwriting an existing installation
  4. Opens Kiki and writes ~/kiki-data/edition.json to mark that Kiki was installed by DSH, including the DSH path and version

After installation, Kiki operates with standard Mac app behavior (launch at login, auto-updates). The plugin is MIT-licensed, while the Kiki application itself is proprietary.

5. DeepSeek Key Handoff

When Kiki was installed by DSH and you have a DeepSeek key saved in DSH, the Kiki page will prompt you to hand off the key. The key is sent only to the local Kiki instance (127.0.0.1), and only executes when you click “Yes”.

Installation and Enablement

Install the plugin via the command line:

dsh plugin --profile web add dsh-kiki

After installation, restart dsh web. In the desktop client, search for dsh-kiki in the plugin manager to install it.

Configuration and Settings

The plugin provides the following configuration variables:

Variable Effect
KIKI_URL Kiki address, defaults to http://127.0.0.1:4567
KIKI_MCP_TOKEN Token for Kiki on another computer. A local Kiki instance issues the token on first use, saved in $DSH_HOME/kiki.json (permissions 0600)
KIKI_DSH_KIKI=off Disables the plugin

You can also turn off the session reporting feature on the Kiki page. When DSH is launched by a Kiki member, the plugin stays silent, as Kiki already displays that work.

How It Works

The plugin consists of two parts:

  • Host side (lib/index.js): Listens to session/event, calls Kiki’s MCP endpoint (POST /api/coders/mcp, tool kiki_report), registers three tools on ctx.tools, and serves the /dsh-kiki/* pages. Write requests require the x-dsh-kiki header and a same-origin Origin.
  • Browser side (lib/client.js): The sidebar.panellist row in the sidebar and the main page. When Kiki is running, the page is an iframe of http://127.0.0.1:4567, so it only works in a browser on the same Mac.

Compatibility

The plugin was tested against DSH 0.2.2-rc.1 and requires Node.js >= 24.9.0. Dependencies are @deepseek-ai/cordis, @deepseek-ai/dsh-credentials, @deepseek-ai/dsh-tools, and react (all optional).

Use Cases and Notes

This plugin is suitable for macOS users who need to collaborate with Kiki for agent development within DSH. When using it, please note:

  • The plugin runs with the permissions of the current DSH process
  • Communicates only with local 127.0.0.1; external domains are accessed only when downloading Kiki
  • Reads the DeepSeek key in DSH only when the user explicitly clicks “Yes” to hand off the key
  • Review the source code and license before installation to ensure compliance with security requirements

Conclusion

dsh-kiki brings Kiki’s chief-of-staff capabilities into DSH, turning DSH sessions into visible cards in Kiki and allowing the model to directly invoke Kiki’s agent services through tools. Installation and configuration are straightforward, making it well-suited for developers who need seamless collaboration between DSH and Kiki. For more details, see the plugin directory page or the GitHub repository.

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye