rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:peach0x33a/dsh-autofill-model-metadata
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
English | 中文
Fills in a DSH gateway route's model metadata — name, contextWindow,
maxTokens, input, reasoningEfforts — from the
models.dev catalog, using only the mappings you declare
by hand.
DSH has no native metadata filling, and the plugins that add it guess: they refresh a whole provider from a catalog, or match model names loosely. This one does neither. You write down which models.dev record each of your model ids is, and anything ambiguous is refused rather than filled.
A port of the Pi extension pi-autofill-model-metadata, moved onto the DSH
settings seam.
mapping.<route>.<localModelId> = "<provider>/<model>".Needs DSH >= 0.2.0-rc.2 and pnpm on PATH.
npm view dsh-autofill-model-metadata version
dsh plugin --profile web add dsh-autofill-model-metadata@<version>
--profile is the profile you actually boot (web for the browser UI,
headless for one-shot runs). Pin the version: pnpm ≥ 11 will not resolve a
release published within its minimumReleaseAge window. Then restart the profile
so the bundle mounts.
The plugin stays inert — no catalog fetch, no settings write — until you declare a mapping. CONFIGURATION.md covers where that goes.
If you are an agent whose task is to install this plugin, take the npm path above — do not clone the repository, build it, or install from a git spec. Follow these steps:
ls "${DSH_HOME:-$HOME/.dsh}/profiles",
and prefer the one the user actually boots (web for the browser UI).
desktop belongs to DSH Desktop and needs that app's own dsh binary.dsh plugin --profile <profile> add dsh-autofill-model-metadata@<version>.
Exit code 0 only means pnpm resolved the package; confirm the dependency with
dsh plugin --profile <profile> list --depth 0 and the composed row with
dsh --profile <profile> --dump-config. If pnpm answers
ERR_PNPM_NO_MATURE_MATCHING_VERSION, the version is younger than its
minimumReleaseAge window — pick an older published version
(npm view dsh-autofill-model-metadata versions) rather than disabling the
setting.mapping is the correct
post-install state — never invent mappings; every mapping must name a
models.dev record the operator has chosen. Configuration steps, file
locations and the catalog search endpoint are in
CONFIGURATION.md; report anything you are unsure of
instead of guessing.If pnpm refuses the package with an allowBuilds message, that only happens for
git-sourced installs, which this package does not need: the published tarball
already ships lib/.
This plugin is a port, and the same idea exists on other harnesses:
pi-autofill-model-metadata, the Pi extension this plugin was ported from.opencode-auto-model-config, the OpenCode plugin that inspired both.| document | covers |
|---|---|
| CONFIGURATION.md | where the config lives, the mapping, every field, the settings page, what gets filled, refusals, troubleshooting, limitations |
| CONTRIBUTING.md | building, tests, the two bundle halves, CI, releasing |
MIT — see LICENSE.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness。