dsh-web-search-ddg
aooyoo
Zero-token DuckDuckGo search provider for the DeepSeek Harness (DSH) web seam — local headless browser, no API key, no m…
PROJECT TOPICS
PROJECT README
External plugin for DSH Web. It keeps the built-in session status row, updates its input, output, and unabridged total token counts while a response streams, and adds a second row for generation throughput:
Input ~7.9K tok · Output ~12 tok · Total ~7,912 tok
TPS 31.4 tok/s
~ marks a value that still includes the current request's input estimate. Streamed DeepSeek output is counted with the official tokenizer; provider usage replaces all provisional values when it arrives. Exact cache accounting continues to come from DSH's durable token-usage projection. A retry replaces the prior estimate for that step, and an aborted turn removes its unsettled estimate.
TPS is the number of tokens added after the first output sample divided by the elapsed time between the first and latest token-bearing stream events. Final usage, block-end, and assistant-message events correct counts but do not extend that interval. A one-sample response therefore has no TPS value instead of an artificial terminal-event rate.
Load the plugin without estimator settings:
- insert:
- id: live-stats
name: '@proton1917/dsh-live-stats'
The bundled tokenizer comes from DeepSeek's official tokenizer download. See THIRD_PARTY_NOTICES.md for its source, checksums, and license references.
0.1.0-rc.5 or later with the optional liveTokenUsage client projection contract.~/Projects/dsh-live-stats and the harness checkout at ~/deepseek-harness, matching the local link: development dependencies in package.json. Adjust those links if your checkouts use another layout.pnpm install
pnpm run typecheck
pnpm test
pnpm run build
Build the plugin, link it into the Web profile, then start DSH Web with the overlay:
dsh plugin --profile web add @proton1917/dsh-live-stats@link:$HOME/Projects/dsh-live-stats
dsh web --patch $HOME/Projects/dsh-live-stats/cordis.yml
For client and server hot updates, run the Web app in development mode and keep the plugin watcher in a second terminal:
dsh web --patch $HOME/Projects/dsh-live-stats/cordis.yml --dev
cd ~/Projects/dsh-live-stats
pnpm run dev
The plugin watcher rebuilds lib/index.js and lib/client.js; DSH Web reloads the client contribution through HMR without replacing the page.
BSD-3-Clause. See LICENSE.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。