rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:zhaochunqi/dsh-magpie-route
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README

A DeepSeek Harness (dsh) plugin that shows the real upstream model behind a magpie routing-group alias, directly below the composer.
DSH's model picker only knows the routing-group alias you configured (for example magpie/group/daily). The local magpie gateway decides which upstream provider/model actually serves each request, and that can change from turn to turn. This plugin reads the gateway's own route record and shows the real result.
● magpie real route · 13:32 magpie/group/daily → workbuddy/glm-5.3
provider/model, and the matched routing rule.X-Magpie-Session, so the gateway can report this session's current/last route; an in-flight request shows its already-picked target with a "进行中 / in flight" marker.magpie real route in English and magpie 真实路由 in Chinese (and switches live when the UI language changes).magpie provider, so it tracks whatever host/port your DSH profile configures (default http://127.0.0.1:3425).Install the dsh-magpie-route package into your DSH profile (Plugin Manager → Add plugin, or install_bundle with the npm spec), then reload/restart so the client bundle is picked up.
For a local checkout instead, install the bundle directory with plugin_manager install_bundle and refresh the page.
No configuration is required. The Host half discovers the gateway from DSH itself: every magpie inference reports its resolved endpoint through llm-pi-ai/request-headers, and before the first inference it reads llm-pi-ai's providers.magpie.baseURL (then magpie-anthropic, then http://127.0.0.1:3425). An explicit baseURL in the plugin row's config wins, so you only set it to point at an address DSH does not know about.
baseURL that DSH reports for each magpie inference through the llm-pi-ai/request-headers waterfall (no config-file parsing), contributes X-Magpie-Session: <dsh session id> (a header only; no request-body, model, or tool change), then reads GET {baseURL}/v1/magpie/route?session=<dsh session id> for this session's current/last route.llm-pi-ai's configured providers.magpie.baseURL from the live Loader config (falling back to http://127.0.0.1:3425), so the first paint already uses the right port.GET {baseURL}/v1/magpie/trace is the fallback for the first paint, before any inference has happened in this Host process./plugins/magpie-route/route, because the magpie gateway sends no CORS headers. The route checks DSH's connection.requestRejection (Host/Origin trust and browser authentication) before serving data, in addition to rejecting a mismatched Origin header.dsh trace row.trace keeps a recent window (about 60 rows), not full history. For full history use magpie usage --csv.trace reports provider/model; the final served_model (for example hy4-free) appears in magpie usage --csv.magpie provider. If that DSH value is stale (for example after moving magpie without reconnecting it), the dock shows the same stale endpoint; set config.baseURL to correct it.Remove the dsh-magpie-route bundle from Plugin Manager, or remove_bundle it from the profile.
MIT. This is an unofficial integration; magpie is a separate product, and this project is not affiliated with it.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: llm、deepseek、llm-routing、deepseek-harness。