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 resultkiki_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:
- Downloads the latest
Kiki-mac-<arch>.zip(approximately 100 MB) fromdl.kikibao.com, falling back to GitHub Releases on failure - Verifies the SHA256 checksum of the downloaded file
- Extracts
Kiki.appto/Applicationsor~/Applications, without overwriting an existing installation - Opens Kiki and writes
~/kiki-data/edition.jsonto 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 tosession/event, calls Kiki’s MCP endpoint (POST /api/coders/mcp, toolkiki_report), registers three tools onctx.tools, and serves the/dsh-kiki/*pages. Write requests require thex-dsh-kikiheader and a same-originOrigin. - Browser side (
lib/client.js): Thesidebar.panellistrow in the sidebar and the main page. When Kiki is running, the page is an iframe ofhttp://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.