READMESource: main@bcc5d4bf
my-bench
A minimal DeepSeek Harness UI plugin that adds one sidebar page of its own: an icon in the left column, and a full page in the main area when it is selected.
It is the smallest complete example of a Client-half plugin: bundle manifest, loader patch, empty Host
module, and a client.js that registers into sidebar.panellist and main.
Install
From the Harness Web UI: sidebar Plugins → Add plugin → local directory, pointing at this directory. For a Git install, give the repository URL instead:
git+https://github.com/<you>/my-bench.git
After installing, refresh the page (the Client half does not need an app restart).
What you should see
- The Plugins page lists
my-benchwith this title and icon. - The left column gains a 🛠 entry at the bottom (
order: 20). - Selecting it opens the page in the main area.
Layout
| File | Purpose |
|---|---|
package.json |
dsh.bundle.patch makes it installable; dsh.client makes it a browser bundle |
cordis.patch.yml |
inserts the my-bench row |
index.js |
Host half; empty here, and where tools would be registered |
client.js |
registers the sidebar entry and the page; owns all UI text |
locale/*.json |
meta.title / meta.description shown in the Plugins page |
icon.svg |
icon shown in the Plugins page |
Extending
- Add a tool: register it in
index.jswithctx.tools.register(defineTool({...})). - Show tool output: call it from
BenchPagethrough the Client remote service, or subscribe to a session projection. - Change the surface: swap
sidebar.panellist+mainforconversation.composer.dockorconversation.view.
License
MIT
No comments yet. Be the first to write one.