@kitionstage/dsh-kits
v0.1.1-stage.20
Published
The Kition kits in DeepSeek Harness: each kit file opens in its own Kition editor in the right sidebar, an agent’s edits appear there live, and agents get the kits’ KHP tools, an editing skill per kit and the person’s draft review.
Maintainers
Readme
kition-kits: the Kition kits in DeepSeek Harness
@kitionstage/dsh-kits is a DeepSeek Harness plugin
(a bundle) for the 16 Kition kits: Note, for Markdown notes; Table, for .ktable tables; Board,
for whiteboards; Doc, for word-processing documents (.docx); Sheet, for spreadsheets; Slide, for presentations; PDF;
HTML, for .html pages; Photo, for layered images; Vector, for vector drawings; Layout, for page
layouts; Design, for interface designs; Film, for video projects; Motion, for motion graphics; CAD,
for .dxf drawings; and Scene, for 3D scenes. A kit's file opens in the kit's own editor in
DeepSeek Harness's right sidebar, where you edit it; DeepSeek Harness's agents create, inspect,
edit and check the same files with the kits' Kit Harness Protocol (KHP) tools, and an agent's edit
of a file open in the editor appears there as it happens. No Kition app needs to run: the plugin
starts kition gateway (@kitionstage/cli) for each workspace folder that needs it. It is the DeepSeek
Harness counterpart of the Claude Code plugin in plugins/claude-code/kition-kits.
What it adds:
- The kits' editors in the right sidebar. Click a file of a type only Kition opens (
.ktable,.kboard,.kslide,.kdesign,.psd,.dxf, ...) in the file tree, and it opens in its kit's editor in a tab. A type DeepSeek Harness previews itself (.md,.markdown,.html,.htm,.pdf,.docx,.xlsx,.pptx,.csv,.svg,.xls) keeps DeepSeek Harness's preview; the kit is under Open with in the preview's toolbar ("Kition Note", "Kition Doc", ...), or first when you set it so (Settings, below). A type a kit only views (Sheet's.csv,.ods,.xls; Vector's.svg,.ai,.eps; Design's.fig,.sketch; Layout's.idml) opens read-only, marked so, whether or not the kit is installed yet. Saving is the editor's own (Cmd+S, its Save button). The tab's title shows●while it has unsaved edits and a Draft mark while an agent's draft waits (before the name, which a narrow tab cuts), and closing it with unsaved edits asks first, for a Kition tab and an Open with preview alike; so does leaving or reloading the web UI. DeepSeek Harness's keyboard shortcuts work with the keyboard in the editor. The editor follows DeepSeek Harness's theme and its language (English and Chinese). - The agent's edits, live. The KHP tools
mcp__kition__kit_inspect,_commands,_run,_check,_query,_batch,_export,_create,_draft_readyand_draft_reopen(those the installed kits offer), routed to the right kit by the file's extension, and the kits' resources (each kit's manifest, a document's objects) through DeepSeek Harness's resource tools. A session's calls act on that session's own workspace folder and go to its gateway: a file open in the editor is edited there, as a step in the editor's history; any other file through the kit's headless engine. Paths outside the folder are refused (KHP A29). When an agent is about to edit a file that is not open, a live window opens it first, so that edit and the turn's next ones run in its editor as you watch, without taking the keyboard from where you type (Settings). The window is small and floats at the top right, beside the conversation where the page has room, else over its right side, so the conversation keeps its width; it shows the document in the editor's Menus display mode (a menu bar, no ribbon), and its Open in editor button opens the full editor in the right sidebar. A file the agent only created opens with its first content, not as an empty page. In a page too small for the window, the file is a tab in the right sidebar. You close it, and it stays closed for that turn. - A review card at the end of each turn. Each kit file the turn changed gets a card in the chat:
its name and kit, a picture of the draft, what changed (objects created, changed, deleted), and
where it stands: edited live in the open editor, edited, created, a draft for your review (ready,
or stale when the file changed since it began), merged, discarded, the draft gone, the file
deleted; or that Kition is not installed or does not answer, with Try again. Open opens the file
in the sidebar; Review opens the editor's review of the draft in the right sidebar's tab (a live
window moves there). Merge, Discard and, for a stale draft, Merge and overwrite are yours: buttons
in the card, never an agent's tool (KHP A14). The card follows the draft as it changes, the open
editor takes a merge, and a conversation opened again shows its cards. What you did to a draft
(merged, discarded, by you, when) is recorded with the workspace, in
.kition/dsh-reviews.json, so every browser shows it; a draft merged or discarded elsewhere (the CLI, another editor) shows as no longer there, which is all the plugin knows of it. - The agent's drafts, for you to review. An agent's draft (
draft: true) leaves the file as it is; the editor shows a banner ("An agent drafted changes to this file — Review") with the comparison and the pictures before and after, and Merge and Discard./drafts-list,/drafts-compare <file>,/drafts-merge <file>and/drafts-discard <file>do the same from the chat; merge and discard are not in the agent's catalog and only start when you type them. - A skill per kit,
<kit>-editing: the kit's own model guide (agent/guide.mdin its repository): how its documents are built, how objects are addressed, the workflow (inspect, find commands, run in small steps, check, fix) and worked examples. They are in every agent's skill catalog; the agent loads one with theskilltool when it works with that kit's files.
Install
One package: the plugin brings its own kition. It depends on @kitionstage/cli at its own version,
whose package for your platform, @kitionstage/cli-<platform>, carries the kition executable; adding
the plugin by name or from its .tgz installs both with it. Nothing else is installed by hand.
The plugin has a kition for: darwin-arm64 (macOS, Apple silicon), darwin-x64 (macOS, Intel),
linux-arm64 and linux-x64 (Linux with glibc), and win32-x64 (Windows).
On disk the plugin takes about 0.7 MB and its kition about 14 MB (measured on macOS, Apple
silicon). kition downloads each kit with its editor the first time a file of it is opened (the
tab shows the download's progress, and "Try again" when it fails), into ~/.kition/kits: about 40
to 70 MB per kit on disk (measured: Note, Table, Sheet, Vector's editor). The download is the kit's
two npm packages, smaller: Note's is 14.0 MB for its darwin-arm64 package and 13.0 MB for its
editor; Table's editor is 22.2 MB. They come from npm, as the plugin does: KITION_NPM_REGISTRY
when set, else the registry your ~/.npmrc names, else registry.npmjs.org, else its mirror
registry.npmmirror.com, each checked against the integrity the kit index gives (kition-sdk's
docs/sdk/cli.md, "The registries"). Nothing is downloaded from GitHub.
Which kition runs, in this order:
KITION_BIN, when you set it (a development build, for one);KITION_KITS_MCP, when it names akition(then the draft skills' server is the gateways' too);- the plugin's own, from
@kitionstage/cli-<platform>beside it; - a
kitionyou installed (on thePATH, else in~/.kition/bin,~/.cargo/bin,/usr/local/bin,/opt/homebrew/bin).
Elsewhere (a platform without a package, such as Linux with musl or FreeBSD; an install with
optional dependencies left out, --omit=optional or --no-optional; a plugin added from a folder,
below), a Kition tab and a card say why and what to do, and agents have one tool, kition_setup,
that answers the same; set KITION_BIN to a kition you built (cargo build -p kition-cli in
kition-sdk). The kit tools appear without a restart once a kition can run: the plugin looks again
every 15 seconds and whenever you open a kit file.
Every kition shares your kit store and index, ~/.kition (KITION_HOME, KITION_INDEX): the
plugin's and one you installed for another agent (the Claude Code plugin, npm install -g
@kitionstage/cli) install kits once for both. Two versions do not mix on one workspace: a kition mcp
of another version beside the plugin's gateway serves in its own process (its edits of a file open
in the plugin's editors are then not live, and the editor's save is refused over a change it did
not see), and the
plugin uses no gateway of another version, saying which one runs and how to stop it.
kition-sdk's release publishes the plugin with the @kitionstage/cli it depends on, at the same
version, after it. A release rehearsal publishes it as <scope>/dsh-kits (such as
@kitionstage/dsh-kits), depending on <scope>/cli; its kition then installs that scope's kits
(KITION_NPM_SCOPE, unless you set it). To try an unreleased change, pack them from a kition-sdk
checkout and install the plugin's .tgz with @kitionstage/cli reachable, or set KITION_BIN:
npm pack ./plugins/deepseek-harness/kition-kits # kition-dsh-kits-<version>.tgzDeepSeek Harness (web). DeepSeek Harness 0.2.2-rc.5 needs Node.js 24.9 or later, and
dsh plugin needs pnpm on the PATH. Install into the profile you run, web for the browser UI:
dsh plugin --profile web add @kitionstage/dsh-kits # or ./kition-dsh-kits-<version>.tgz from npm packdsh plugin creates a profile it does not know with DeepSeek Harness's base bundle only, which has
no browser UI; the shipped profile names (web, headless, ...) start from their own template.
For the browser UI under another name, create the profile from the web template first:
dsh --profile <profile> --from-default-profile web --dump-config
dsh plugin --profile <profile> add ./kition-dsh-kits-<version>.tgzdsh --profile <profile> --dump-config then shows the plugin's layer, # == @kitionstage/dsh-kits.
Restart a running profile after adding the plugin. dsh plugin --profile <profile> remove
@kitionstage/dsh-kits removes it. In the headless profile, which has no browser UI, the plugin gives
the agents the tools and the skills.
DeepSeek Harness Desktop. Its profile, desktop, takes plugins only through the app's Plugins
page or its own command line (the npm dsh refuses it). Quit the app, then:
"/Applications/DeepSeek Harness.app/Contents/Resources/runtime/cli/bin/dsh" plugin --profile desktop add ./kition-dsh-kits-<version>.tgzand start the app again. After the package is published, the Plugins page installs it by name:
Add plugin, type @kitionstage/dsh-kits, Install, then Enable now, and start the app
again; the page installs from the registry it shows (by default a mirror of npm in mainland China,
which copies new npm versions within minutes), and its own command line takes the name in place of
the .tgz.
A folder. dsh plugin add <folder> and the Plugins page's local folder link the folder as it
is: neither installs its dependencies (pnpm add <folder>, seen on 0.2.2-rc.5 and Desktop's
0.2.2-rc.2), so the plugin has no kition of its own until you run npm install --omit=dev in the
folder; a tab says so. It is for a checkout; add the plugin's .tgz otherwise (or, once it is
published, its name).
Settings
On the plugin's own page in DeepSeek Harness (Plugins, @kitionstage/dsh-kits), kept in the profile:
| Setting | Default | What it does |
| --- | --- | --- |
| Live window | on | While an agent edits a kit file that is not open, show it in a floating window |
| Open after the agent's first edit | off | Open a file in the right sidebar after an agent's first edit of it in a turn (instead of the floating window) |
| Open first in | DeepSeek Harness's preview | Which opens a .md, .html, .pdf, .docx, .xlsx, .pptx, .csv or .svg file first: DeepSeek Harness's preview, or the Kition editor (the other stays under Open with) |
They are the host row's settings (kition-kits-host, its Config), which the browser module reads
through DeepSeek Harness's settings service. The page shows them in DeepSeek Harness's language
(English or Chinese); the schema's own descriptions carry both (Schema.i18n), for any other
place that shows the schema.
Options
DeepSeek Harness bundles have no settings form, so the options are environment variables of the
dsh process (of the app, for Desktop):
| Variable | What it is |
| --- | --- |
| KITION_BIN | The kition executable, before the plugin's own (such as target/debug/kition from cargo build -p kition-cli). Unset: as in Install, above |
| KITION_KITS_DIR | A folder with one folder per kit, each holding its kit.json and headless executable. Unset: the kits kition installs in ~/.kition/kits |
| KITION_KIT_REPOS | A folder of kit checkouts, kition-<kit>/. Every kit built there with cargo build -p kition-<kit> is served from target/debug/kition-<kit> with its repository's kit.json |
| KITION_KITS_UNIFIED | true (the default): mcp__kition__kit_<action> tools routed by file extension. Anything else: mcp__kition__<prefix>_<action> per installed kit, such as mcp__kition__note_run |
| KITION_LIVE_WAIT_MS | How long an agent's edit of a file not open waits, at most, for a watching browser to answer that it opens the file's live window (default 3000, at most 10000; 0 never waits). A browser that answered it is opening the editor gets until 8 seconds after the edit was announced for the editor to attach (a kit's editor loaded for the first time takes about 3 seconds). An edit never waits when no browser shows the session, or the live window is off |
| KITION_KITS_MCP | The draft skills' server, as bin/kits-mcp.mjs starts it: kition (started as kition mcp) or a kition-kits-mcp. Unset: kition as above, else kition-kits-mcp on the PATH, else npx -y @kitionstage/cli mcp. A kition named here is also the one the gateways use, unless KITION_BIN is set; it must have the gateway command |
KITION_HOME, KITION_INDEX and KITION_NPM_SCOPE are kition's own (its kit store and lockfiles, its kit index, and the npm scope of the kits and the index; a release rehearsal's plugin sets the scope to its own when it is not set).
How it fits together
package.jsondeclares the bundle (dsh.bundle.patch,cordis.patch.yml), its browser module (dsh.client,exports["./client"],lib/client.js), its host module (main,lib/host.mjs), and the DeepSeek Harness releases it supports,engines.dsh>=0.2.2-rc.2 <0.3.0-0. DeepSeek Harness compares the range with prereleases included: it accepts 0.2.2-rc.2 and every later 0.2.x, prereleases too, and refuses 0.3.0 and its prereleases (a plain<0.3.0would let 0.3.0-rc.1 in).dsh plugin addrefuses a plugin whose range the running DeepSeek Harness is outside, and installs nothing.cordis.patch.ymlinserts two rows on the host.kition-kits-hostloads the package by its name: its host module, and, in a profile with the browser UI, its browser module.kition-kits-skills, a@deepseek-ai/dsh-skill-filesystemrow (includeDefaultRoots: false), adds the plugin'sskills/folder to the host's global skill layer, which every agent's catalog merges (in thewebprofile beside each agent preset's own skills). In a bundle's patch,baseUrlis the profile's folder ($DSH_HOME/profiles/<profile>/), not the bundle's, so the row finds the plugin's folder where the profile resolves@kitionstage/dsh-kits/package.json.- The gateways (
lib/gateways.mjs,lib/kition.mjs). The host module starts onekition gateway --workspace <folder> --stdin-lifetimeper workspace folder, with thekitionfound as in Install (the plugin's own:@kitionstage/cli-<platform>'s executable, found from@kitionstage/cli's folder, started directly) and the kit options above, the first time a tab or a tool call needs it, and reuses it. A gateway that another process already runs for the folder is used through its lockfile (kition gatewayexits 3 and names it) when it is the samekitionversion; one of another version is not, and the tab says which runs. A gateway that stops is started again on the next request, with its new token. The gateways the host started stop with it (their stdin closes). - The kit tools (
lib/tools.mjs,lib/mcp.mjs). The host module registers the kits' tools with DeepSeek Harness's tool registry under the names its MCP client would give them,mcp__kition__<tool>, and the kits' instructions as the MCP server section of the system prompt. The tools and the instructions come from akition mcpfor an empty folder of its own, run once at start, and are listed again after calls (a kit installed on first use can add tools). That first list can take seconds, and DeepSeek Harness offers a step the tools registered when the step begins, so the unified tools' names (kit_inspect, ..., known beforehand) are registered at start, each with a condition (when) that DeepSeek Harness waits for while it prepares a step: it holds until the first list (at most 30 seconds) and admits the tool only if the kits listed it, its definition filled in from the list. A call goes to the kits' MCP server of the gateway of the calling session's workspace folder (POST /api/v1/mcp/kits, one connection per agent). DeepSeek Harness's own MCP client cannot do this: it runs one server per host, on one folder (in Desktop the host's folder is the profile's), and a tool call carries nothing that names the session it comes from; a registered tool is given its calling agent and session. A result's preview images are saved as attachments when the model takes images, else replaced by a note, as the MCP client does. Each call's outcome (the file, its kit, live or draft) is kept with its result in the session log (presentationMeta), where the browser module's turn projection reads it. The kits' MCP resources go the same way, registered with DeepSeek Harness's resource service as serverkition. Whilekitionis missing there is onlykition_setup;lib/freshness.mjslists the tools again when it appears or its executable changes (an upgrade also stops the gateways of the old one). - The proxy (
lib/routes.mjs,lib/forward.mjs). The host module serves each gateway under/kition/w/<key>/on DeepSeek Harness's own web server (and, in Desktop, through itsdsh-app://forwarding), where<key>names a workspace folder. Every request passes DeepSeek Harness's own login check first (its connection service's Host and Origin fence and browser cookie; plugin routes are not guarded otherwise), and nothing reaches a gateway for a folder no DeepSeek Harness session or project works in./kition/api/open?session=<id>&path=<file>gives a session's file's editor address, the file inside the session's folder, and starts its gateway. The proxy adds the gateway's token, which never reaches the browser, drops the browser'sOrigin,Cookie,Refererand anyKition-Token, and streams the bridge's events, ranges and large saves as they come (kition-sdkdocs/sdk/gateway-page.md). - The browser module (
lib/client.js, built bybuild-client.mjsfromsrc/client/). It registers a right sidebar tab type for the extensions only Kition opens and a document preview for each kit whose extensions DeepSeek Harness previews (the extensions each published kit edits or only views come from the kits' manifests at build time). A tab frames the gateway's editor page, same-origin, in a frame nameddsh-sidebar-html-<tab id>with adata-html-previewattribute, the frames DeepSeek Harness Desktop hands its shortcuts to, and speaks the page'spostMessageprotocol: theme and language, title, unsaved mark, read-only, draft, review, close requests. In the web UI it gives the page DeepSeek Harness's own shortcut bindings (keys=), so the editor hands them back. The document preview's title is the plugin's (it stands in for DeepSeek Harness's, drawn the same way) and both tab kinds have its close guard. - The review cards (
src/client/turn.ts,src/client/gateway.ts). A projection registered with DeepSeek Harness's conversation engine (uiConversation.events.register,kitionTurn) reads each turn's kit tool calls and results; the turn's tail (conversation.chat.turnTail) shows a card per file the turn changed, with the gateway's drafts (followed through its bridge'skit/draftsChanged, the pages' messages, and every 10 seconds) and their comparison. Merge and Discard go through the proxy from the person's click in the card, which records them (lib/reviews.mjs,GET /kition/api/reviews?session=<id>); the card shows the record of its session and turn, else the latest of the file's records made after its draft. The settings card is on the plugin's page (plugins.bundle.config), bound to the host row's settings (configForms). Questions (closing unsaved edits, discarding a draft) are a small dialog in the page, not the browser'sconfirm, which stops the page (in Desktop it is a native window). - The live window (
lib/live.mjs,src/client/placement.ts). A watcher in the composer's dock (conversation.input.dock) keeps an event stream open on/kition/api/live?session=<id>. Before the host forwards a session'srunorbatchof a file (not a draft), it announces the file there and waits (KITION_LIVE_WAIT_MS, above) for an answer: the editor is open already, it is opening (then attached, or not), or none opens. The watcher opens the file docked (sidebarRight.openResource), floats it right of the conversation column (sidebarRight.float, at least 420 by 360, at most 640 by 760) when the page has room, and keeps the keyboard where it was. Edits the host does not announce (drafts, new files) open the window once they show in the turn. bin/kits-mcp.mjsstartskition mcpwith the options; the draft skills run itsdrafts <command> ...passthrough on the session's folder.- A
/nametoken anywhere in your message injects that skill's instructions into the turn; the rest of your message stays as you wrote it, and the skill reads the file from it (DeepSeek Harness replaces no$ARGUMENTS). A skill withdisable-model-invocation: trueis never in the agent's catalog and theskilltool refuses it, so/drafts-mergeand/drafts-discardonly start from your own message. skills/<kit>-editing/SKILL.mdis generated bynode tools/agent-plugin-skills.mjs(in kition-sdk) from each published kit'sagent/guide.mdandkit.json, with the same guides as the Claude Code plugin's; only the opening paragraph, which names the tools as each harness shows them, differs. The publication allowlist ispublished-kits.jsonat the SDK root. Edit the guide in the kit's repository, never the skill;node tools/agent-plugin-skills.mjs --checkfails when they differ. Thedrafts-*skills are written by hand.
Limits
- Of the view-only types, the tests open Sheet's
.csvand Vector's.svg; the other kits' view-only types (Vector's.ai,.eps; Design's.fig,.sketch; Layout's.idml; Sheet's.ods,.xls,.xlsb,.etand templates) are offered as their kits declare them, untested: the kit repositories have no sample files of them. - A draft merged or discarded outside DeepSeek Harness (the CLI, another editor) leaves no record: its card says the draft is no longer there, not what became of it. The records are kept per workspace folder, the latest 1000.
- A card is there for each file the turn changed; a turn that only read kit files has none.
- The live window waits for no browser that is not showing the session: an agent's edit while nobody watches runs in the headless engine. When the page has no room right of the conversation (a narrow window, a wide right sidebar), the live window is the sidebar's tab.
- The kits' unified tools are offered from a session's first step, which waits for the kits'
first tool list (at most 30 seconds after DeepSeek Harness started). With
KITION_KITS_UNIFIEDoff, the per-kit tools' names are not known before that list, so a step that begins sooner goes without them. - DeepSeek Harness sends every tool definition with every request; the kits' tools are large (with Note and Table installed, about 93,000 characters of definitions).
- The skill catalog shows at most 500 characters of a skill's description; the Scene kit's is longer and is cut there.
- The draft skills work on the session's current folder; after the agent changed its working folder to a subfolder, they look there.
- Merging and discarding are yours (KHP A14) as far as the cards, the editor and the skills go; an
agent with a shell could still run the launcher's
drafts mergeitself, as with any harness. - Quitting DeepSeek Harness Desktop with unsaved edits in a Kition tab does not ask: Electron shows no page's question (it refuses to close the window instead, which kept the app from quitting at all), and the app offers plugins no question of their own at quit. Save first; closing the tab asks.
- Tested on macOS (Apple silicon), with Chromium for the web UI (as a Windows browser, the test's device): the plugin's own kition there is the one tested. Windows and Linux hosts have not been run, nor a browser on another machine than DeepSeek Harness; their kition packages are built and checked by the release, not run with DeepSeek Harness.
- The Plugins page of Desktop installs from the registry it shows; a new version reaches its default mirror only once the mirror has copied it from npm.
Test
tools/dsh-plugin.test.mjs(in kition-sdk) checks the manifest, what the archive packs, the patch, the browser module (built from its sources, the extensions it claims), the skills and the launcher, the dependency on@kitionstage/cliat the plugin's version and the release's order and platforms;tools/dsh-plugin-host.test.mjsthe host module: findingkition(KITION_BIN, the plugin's own in a hoisted and an isolated node_modules, a system one only withgateway, and why there is none), the gateways (one per folder, reused, none of another kition version, started again, stopped), the proxy (the login gate first, workspace keys, paths, header hygiene, event streams, ranges, large bodies, an unreachable gateway), the kit tools (each session's calls on its own folder's gateway, the setup tool while kition is missing, the tools listed again when kition appears or changes, the resources) against a stand-in gateway (test/fake-kition.mjs);tools/dsh-plugin-client.test.tsthe turn projection and the review card's states and actions.test/e2e.shruns the published DeepSeek Harness runtime'sheadlessprofile, with the plugin installed bydsh plugin addunder aDSH_HOMEof its own. A scripted model (test/scripted-model.mjs, an OpenAI Chat Completions server reached through the route intest/scripted-route.cordis.patch.yml) asks formcp__kition__kit_inspecton a real note, then runs the launcher'sdrafts listwith thebashtool as the draft skills do.test/check.mjschecks the session log'stool/callandtool/resultevents, the final answer, and the skill catalog. No model account is needed.test/e2e.sh <kition> <folder of kit repositories> <a .md file><kition>is akitionexecutable, and the folder holds kit checkouts with a debug build of the Note kit (kition-note/target/debug/kition-note). The first run installs the published@deepseek-ai/dshruntime into a cache folder (DSH_KITS_CACHE, about 1 GB) withnpm install --global --prefix, as people install it.pnpm test:dsh:e2e(in kition-sdk,test/web.e2e.ts) runs the web UI of that runtime in Chromium, with the plugin installed into a profile from thewebtemplate from a local registry that holds it with@kitionstage/cliand this platform's package made as the release makes them, noKITION_BINand no kition on thePATH(the gateway is the plugin's own kition), the real Table, Note and Sheet kits, Vector's editor and a scripted model (one that takes images), under a HOME of its own:/kition/refuses a request without DeepSeek Harness's login, a foreign Host and a cross-site Origin; a.ktableclicked in the file tree opens the Table editor, DeepSeek Harness's settings shortcut pressed in it opens DeepSeek Harness's settings, its language reaches the page, an edit marks the tab, reloading then asks (the browser's question) and closing the tab asks (a dialog in the page), and Cmd+S saves it to disk; a.mdkeeps DeepSeek Harness's preview and opens in Kition Note from Open with, which follows the theme, marks unsaved edits on DeepSeek Harness's tab and asks before it closes; the agent'smcp__kition__kit_runreaches the open editor live, its preview picture reaches the model as an image, the kits' instructions are in the system prompt, a resource reads throughread_mcp_resource, a gateway killed and started again takes the next edit live, and its drafts show the banner and the tab's mark; review cards, every action a real click: the first edit of a file not open runs live in the live window, which covers neither the composer nor the cards and leaves the keyboard there; Open, Review (in the sidebar's tab, filling it), Merge (the open editor following), Discard, Merge and overwrite of a stale draft, a draft merged with the CLI shown as gone, the same cards after a reload and in another browser; in Chinese, dark and a narrower window the cards, the tab's Draft mark, the review and the settings card are whole and translated; the live window turned off on the plugin's page opens nothing; a.csvopens read-only in Kition Sheet and a.svgin Kition Vector, which is not installed; the gateway stops with DeepSeek Harness.pnpm test:dsh:desktop(test/desktop.e2e.ts, macOS) starts the installed DeepSeek Harness Desktop with a HOME, a DSH_HOME and an Electron user data folder of its own, noKITION_BINand no kition on thePATH, installs the plugin's.tgzwith the app's CLI from the same kind of local registry (its own kition comes with it, and runs the gateway), opens a.ktablein the Table editor, closes its tab with Cmd+W pressed in the editor, has a scripted agent add a record in the open editor, live, merges the agent's draft of another from its review card, the open editor following, has the agent's edit of a file not open run live in the live window, and keeps a setting; then, in a profile of its own, installs the plugin by name from the Plugins page, opens a.ktablewith the plugin's kition, and closes the app with unsaved edits in it.
Both need Node.js 24.9 or later and pnpm, a built kition (cargo build -p kition-cli) and the
gateway e2e's kit index with editor packages (kition-sdk examples/gateway-page).
Versions
| DeepSeek Harness | Where | Tested |
| --- | --- | --- |
| 0.2.2-rc.5 (upstream commit 2e39e704) | the published npm runtime: web and headless profiles | test/e2e.sh, pnpm test:dsh:e2e |
| 0.2.2-rc.2 | bundled in DeepSeek Harness Desktop 0.2.2-rc.2 | pnpm test:dsh:desktop |
The pin (KitAgent D4) is dsh in package.json: the target 0.2.2-rc.5 and the versions tested.
Every DeepSeek Harness API the plugin uses (the tool registry and its presentation metadata, the
resource service, the system prompt, the web server, the connection service, the sessions, the
settings service, the right sidebar's tab types, close guards and floating panels, the document
previews, the conversation engine and the turn tail, the composer's dock, the plugin page's
configuration slot, the shortcuts, the theme and the locale) has the same source in both; what a
profile lacks (the web server in headless) is left out, never told apart by version.
