rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:slaren/dsh-llm-llamacpp
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
A Cordis plugin for DeepSeek Harness that adds one or more llama.cpp servers as model providers and shows this session's live prompt and decode progress in the composer dock.
Private package: not published to npm. Tested with DSH
0.2.xand a currentllama-serverbuild.
servers becomes a
provider route with its own baseURL, optional alias, and optional
credential reference. Nothing is auto-discovered or rewritten.servers map./v1/models; loaded context, output cap,
and modalities come from /props; reasoning levels come from the server's
own /apply-template list.0.2.x.llama-server with the OpenAI-compatible API. /props supplies model and
context facts, /apply-template supplies reasoning levels, and /metrics and
/slots supply the live server readings.Start llama-server with the flags that expose the readings this plugin shows:
llama-server \
-m /path/to/model.gguf \
--host 127.0.0.1 --port 9931 \
--metrics --slots --jinja
--metrics enables /metrics: throughput, prompt-cache hit rate, speculative
decoding, and the server counters in All metrics. It is optional — the pill
and Server slots still work without it — but without it the All metrics
section only says that metrics are disabled.--slots enables /slots, which feeds Server slots and the session-context
line. Current builds enable it by default; do not pass --no-slots unless you
accept losing those readings. If --metrics is also off, the dialog then has
no server readings at all: only the pill's own SSE progress remains.--jinja uses the model's Jinja chat template, which reasoning and tool calls
depend on. Current builds enable it by default; add it explicitly if your build
disables Jinja or you pass --no-jinja.--api-key is optional. If you use it, store the same key in the DSH provider
card.-np above 1 lets concurrent sessions keep separate slots, and -c sets the
context window. The plugin reads both from /props; neither is configured in
DSH.--props is not required: the plugin only reads /props with GET, and that flag
only enables POST /props.
Install the bundle directly from GitHub. Open Settings → Plugins and install
from the GitHub spec below, or call plugin_manager with action: install_bundle and:
github:slaren/dsh-llm-llamacpp
The HTTPS form works too: https://github.com/slaren/dsh-llm-llamacpp. The
manager installs the package and its dependencies, selects the bundle, and
applies the bundled cordis.patch.yml. Restart the host if DSH reports that a
restart is required.
The same install from a shell, using npx:
npx @deepseek-ai/dsh plugin --profile web add github:slaren/dsh-llm-llamacpp
web is the profile to install into; substitute another profile name when
needed. If dsh is already on your PATH, use dsh plugin ... instead of
npx @deepseek-ai/dsh plugin ....
For local development, clone the repository and install the checkout by path instead:
git clone https://github.com/slaren/dsh-llm-llamacpp.git
cd dsh-llm-llamacpp
npm install
Then pass the absolute path (for example link:/path/to/dsh-llm-llamacpp) to
install_bundle. A host-side change needs a plugin reload; client changes
appear after a page refresh.
http://127.0.0.1:9931/v1.
A bare host:port is rejected.--api-key. No secret is stored in the
plugin config.Or declare routes directly in the profile patch:
- insert:
- id: dsh-llm-llamacpp
name: dsh-llm-llamacpp
config:
servers:
llamacpp-local:
alias: local
baseURL: http://127.0.0.1:9931/v1
apiKeyEnv: LLAMACPP_LOCAL_API_KEY
Model ids, context window, output cap, and reasoning levels are read from the server, never configured here.
While a request is streaming, the pill shows progress such as
prompt 250/1K (25%) · ETA 5s · 100 tok/s, then
decode · 226 tok · 44 tok/s. Click it for the Live progress, Server slots, and
All metrics sections; collapsed sections keep their headline and persist the
preference in localStorage.
node --check index.js client.js
node test/client-test.mjs
node test/parity-test.mjs
LLAMA_CPP_BASE=http://127.0.0.1:9931/v1 \
LLAMA_CPP_MODEL=<model-id> node test/host-test.mjs
test/template-test.mjs is an optional live matrix that starts llama-server
with different chat templates. See AGENTS.md for architecture and
invariants, LLAMA_CPP_INTEGRATION.md for upstream
proposals, and CREDITS.md for the llama.brand attribution.
llama-server.The plugin code is released under the MIT License.
The llama.brand mark in icon.svg and in the client's pill and dialog title is
third-party artwork. It is not relicensed by MIT; see CREDITS.md
for its license and the brand-usage grant.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek。