Replaces the composer model seat with a periodic-table picker and adds a Model table settings page where each model gets a display name, icon, element, and color; clicking an element previews the model and a button switches the current session to it without sending a message.
Install
# from a prebuilt release tarball
dsh plugin --profile web add -w "https://github.com/MicroCapCap/periodic-model-picker/releases/download/v0.2.2/periodic-model-picker-0.2.2.tgz"
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:MicroCapCap/periodic-model-picker
Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).
README
Replaces the composer's model seat with a periodic table and adds a Model table page to DSH settings. Like the table it imitates, only elements that have a model are active; the rest stay gray.
- Elements without a model are gray and inert.
- Each model is assigned to one element and has its own color; the model's row in settings controls all four properties (name, icon, element, color).
- Every model can have a custom display name and a brand icon (Claude, ChatGPT,
Gemini, DeepSeek, Qwen, Mistral, Grok, a neutral circle, a glyph, or your own
SVG). These come from
@local/claude-model-look, which this plugin replaces. - The big heading (
Model 4by default) is editable. - Descriptions come from the catalog when it has one; otherwise the host half
generates a one-sentence description with the configured LLM and caches it
under
$DSH_HOME/model-picker/descriptions.json. - Clicking a tile previews its model. Use this model switches the session; clicking a tile or opening the picker never sends a message.
Settings → Model table
Everything is edited here; the picker itself has no configuration UI.
- Table — the big heading shown over the table.
- Models — one row per catalog model with four columns: Model (display name), Icon (brand id, or empty to infer it), Element (which element it occupies), Color. Setting an element already taken by another model moves it away. “No element” leaves the model off the table. Elements that no model occupies stay gray.
- Custom icons — paste an SVG (a
viewBoxhelps) ortext:✨for a glyph, then use that id in a model row. - Badges — optional JSON keyed by
provider/model; fieldscontext,price,released,description. - Reset all settings clears everything.
The first time a catalogue is seen, model i is assigned element i (H, He, Li, …); the rest of the table is gray. Move a model with its Element cell to rearrange the table.
Picker
- Search filters by display name, catalogue name, id, provider, or description.
- Chips: All, Featured (first model per provider), Reasoning (models with effort levels), and one chip per provider.
- The detail card shows the element, the model icon and name, the id, the description, the configured badges, the reasoning effort selector when the model advertises efforts, and the selection button.
- The modal is deliberately compact (roughly half the linear size of the first version).
Esc, the close button, or a click on the backdrop closes the picker.
Configuration
Stored in localStorage under dsh.periodic-model-picker.v1:
{
"heading": "Model 4",
"mapping": { "3": "provider/model-id", "4": "__none__" },
"colors": { "models": { "provider/model-id": "#ffd400" } },
"names": { "provider/model-id": "My Model" },
"icons": { "provider/model-id": "claude" },
"marks": { "brand1": "text:✦" },
"meta": {
"provider/model-id": {
"context": "1M input · 64K output",
"price": "Input $1.50 / Output $7.50",
"released": "Released Nov 12, 2026",
"description": "Optional manual description override."
}
}
}
mappingvalues areprovider/model, or__none__for an empty element. The settings Element column writes this map for you.colors.modelsis keyed byprovider/model; unset colors fall back to the palette of the element the model occupies. Colors saved by the older per-element editor (colors.element,colors.category) still apply to whichever model sits on that element.namesandiconsare keyed byprovider/model; empty falls back to the catalogue name and the inferred brand.marksholds custom icon sources: raw SVG ortext:<glyph>.- On first load, display names and icons stored by
@local/claude-model-look(dsh.claude-model-look.v1) are imported once.
Host half
index.js registers an exact HTTP route:
GET /model-picker/descriptions
→ { "descriptions": { "provider/model": "One sentence." } }
- The catalog's own description wins and is never regenerated.
- Missing descriptions are generated once per model with
ctx.llm.stream(), one sentence, no marketing adjectives, and cached by provider/model plus model name. - Generation is capped at eight models per request, each call has a 20-second timeout, and a failure is ignored rather than shown as an error.
- The route returns display text only; it reads no sessions and no credentials.
- The route is registered with
auth: 'required', so a host with the token-provider admission authenticates it before the handler runs; older hosts still applyconnection.requestRejectionwhen that service exists. Either way a web page cannot use it to trigger model calls.
Install
- Add this directory to the active profile through the plugin manager (or the
profile's
dsh.profile.bundles). - Do not also install
@local/claude-model-look— its names and icons are part of this plugin now. - Restart the Host (the route, the seat replacement and the settings page are read at boot).
- The composer model button is replaced by the periodic-table trigger; the settings page appears as Model table.
Development
Node 20.11 or newer.
node --check index.js
node --check client.js
node tests/host.mjs # route shape, generation, cache, catalog precedence
node tests/smoke.mjs # module protocol, model seat, settings page
node tests/data.mjs # elements, grid, mapping, names, icons, colors
node tests/render.mjs # seat, modal and settings render without crashing
License
MIT. See LICENSE.
Links
More in this category
zhu1090093659/dsh-web#packages/dsh-task-board★ 10645
Task board for the dsh web GUI: a sidebar multi-column kanban whose cards run in real DSH agent sessions and can also be scheduled with cron expressions, executed host-side even with the browser closed.
zhu1090093659/dsh-web#packages/dsh-web-all★ 10645
Plugin and skin collection for the DSH Web UI: task board, Git graph, right-side panel, remote mobile UI, pet, live token stats, and a skin center.
ccch1mneyyy/dsh-TUI★ 8283
Claude Code-style full-screen terminal UI: pixel-whale header, live status line, and streaming thought expansion.
MeteorNOX/DeepSeek-Balance-Whale-Widget★ 7472
A fixed-corner whale widget for the DSH web GUI — balance, today's usage and per-turn cost with peak/off-peak pricing, editable balance-alert and daily-budget bubbles, a module-based custom bubble queue with A/B weighted choices and random lines or images, 30+ vendor templates (OpenAI, OpenRouter, Kimi, SiliconFlow, Ark, Zhipu, MiniMax and more) with per-model balance and subscription quota, plus task-end sound, imported audio, custom roles and a resource manager. Local-only, no telemetry.
omdsh-dev/DSH-better-sidebar★ 5336
Full sidebar workbench with file rendering and editing, terminal, Git, and subagents; third-party plugins can register new tabs.
omdsh-dev/dsh-genui★ 1060
Interactive UI components rendered inline in replies: layout, charts, forms, quizzes, mermaid, 3D scenes, and an action event loop back to the model.
Community comments
Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.